From 217126c9872dc5a6e867603ad618bb85ceaa3c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 3 Apr 2016 15:13:43 +0200 Subject: vis: change vis_pipe API and cleanup related code --- vis.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 0199e63..c038de1 100644 --- a/vis.h +++ b/vis.h @@ -399,9 +399,9 @@ bool vis_prompt_cmd(Vis*, const char *cmd); * if read_std{out,err} are non-NULL they will be called when output from * the forked process is available. */ -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)); +int vis_pipe(Vis *vis, Filerange *range, const char *argv[], + void *stdout_context, ssize_t (*read_stdout)(void *stdout_context, char *data, size_t len), + void *stderr_context, ssize_t (*read_stderr)(void *stderr_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 -- cgit v1.2.3