diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-03 15:13:43 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-04-03 21:38:05 +0200 |
| commit | 217126c9872dc5a6e867603ad618bb85ceaa3c47 (patch) | |
| tree | 46e8df06c02f44ccbcc73dccc0120d380bc2e52d /vis.h | |
| parent | ab2d1ddd0adbeec8061b6560ebedf5a1f7bb5867 (diff) | |
| download | vis-217126c9872dc5a6e867603ad618bb85ceaa3c47.tar.gz vis-217126c9872dc5a6e867603ad618bb85ceaa3c47.tar.xz | |
vis: change vis_pipe API and cleanup related code
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
