From 68c3fa73b29fc1cc560414518a73ceac93f087b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 29 Jan 2016 19:39:38 +0100 Subject: vis: factor out filter command implementation --- vis.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 96a9914..477ffe4 100644 --- a/vis.h +++ b/vis.h @@ -364,6 +364,11 @@ bool vis_cmd(Vis*, const char *cmd); /* execute any kind (:,?,/) of prompt command */ bool vis_prompt_cmd(Vis*, const char *cmd); +/* pipe a given file range to an external process */ +int vis_pipe(Vis *vis, void *context, Filerange *range, const char *argv[], + ssize_t (*read_stdout)(void *context, char *data, size_t len), + ssize_t (*read_stderr)(void *context, char *data, size_t len)); + /* given the start of a key, returns a pointer to the start of the one immediately * following as will be processed by the input system. skips over special keys * such as as well as pseudo keys registered via vis_action_register. */ -- cgit v1.2.3