summaryrefslogtreecommitdiff
path: root/src/buffer_utils.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-08-15 13:21:54 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-08-15 13:21:54 +0100
commit8d4531d419a2854970d67658fadfa9302308fb6c (patch)
treeca1a850a3b4e5d4e5d2a4b5330babf690987be56 /src/buffer_utils.hh
parenteff32aa1a17e92b09d3a44c06c71230785e94f55 (diff)
Add support for reading from stdin/writing to stdout in filter mode
Note that kakoune still needs to read the whole buffer first, only once stdin is closed can it execute the keys.
Diffstat (limited to 'src/buffer_utils.hh')
-rw-r--r--src/buffer_utils.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer_utils.hh b/src/buffer_utils.hh
index c16b359f..0211a926 100644
--- a/src/buffer_utils.hh
+++ b/src/buffer_utils.hh
@@ -29,6 +29,10 @@ CharCount get_column(const Buffer& buffer,
Buffer* create_fifo_buffer(String name, int fd, bool scroll = false);
+Buffer* create_buffer_from_data(StringView data, StringView name,
+ Buffer::Flags flags,
+ time_t fs_timestamp = InvalidTime);
+
}
#endif // buffer_utils_hh_INCLUDED