summaryrefslogtreecommitdiff
path: root/src/proto/channel.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-14 19:13:43 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-14 19:13:43 +0100
commit7b3ca76a451b10d238ef946f3231762e0bd988e9 (patch)
treed05c9be4dafb1e5ae77eb76325df7cc40fda2e52 /src/proto/channel.pro
parent0727d362b4dad83d9fdf1caba074213e77e0aa49 (diff)
downloadvim-7b3ca76a451b10d238ef946f3231762e0bd988e9.zip
patch 7.4.1318
Problem: Channel with pipes doesn't work in GUI. Solution: Register input handlers for pipes.
Diffstat (limited to 'src/proto/channel.pro')
-rw-r--r--src/proto/channel.pro5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro
index 56eb887c1..f7480521e 100644
--- a/src/proto/channel.pro
+++ b/src/proto/channel.pro
@@ -2,6 +2,7 @@
void ch_logfile(FILE *file);
channel_T *add_channel(void);
void channel_free(channel_T *channel);
+void channel_gui_register(channel_T *channel);
void channel_gui_register_all(void);
channel_T *channel_open(char *hostname, int port_in, int waittime, void (*close_cb)(void));
void channel_set_pipes(channel_T *channel, int in, int out, int err);
@@ -21,10 +22,10 @@ char_u *channel_peek(channel_T *channel);
void channel_clear(channel_T *channel);
void channel_free_all(void);
int channel_get_id(void);
-void channel_read(channel_T *channel, int use_stderr, char *func);
+void channel_read(channel_T *channel, int what, char *func);
char_u *channel_read_block(channel_T *channel);
int channel_read_json_block(channel_T *channel, int id, typval_T **rettv);
-channel_T *channel_fd2channel(sock_T fd);
+channel_T *channel_fd2channel(sock_T fd, int *what);
int channel_send(channel_T *channel, char_u *buf, char *fun);
int channel_poll_setup(int nfd_in, void *fds_in);
int channel_poll_check(int ret_in, void *fds_in);