summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-13 17:04:46 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-13 17:04:46 +0100
commit6463ca229cb9412581419497924c85fcbfc854ab (patch)
tree6c55cc23cf038e6f80ea954e670c691e72dc515a /src/proto
parent00af60bbb6cc7e8ccafddb30a1964f891b800bce (diff)
downloadvim-git-6463ca229cb9412581419497924c85fcbfc854ab.tar.gz
patch 7.4.1310v7.4.1310
Problem: Jobs don't open a channel. Solution: Create pipes and add them to the channel. Add ch_logfile(). Only Unix for now.
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/channel.pro9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro
index 4de172013..3303ccf57 100644
--- a/src/proto/channel.pro
+++ b/src/proto/channel.pro
@@ -1,22 +1,27 @@
/* channel.c */
+void ch_logfile(FILE *file);
+int add_channel(void);
void channel_gui_register_all(void);
int channel_open(char *hostname, int port_in, int waittime, void (*close_cb)(void));
+void channel_set_pipes(int idx, int in, int out, int err);
+void channel_set_job(int idx, job_T *job);
void channel_set_json_mode(int idx, ch_mode_T ch_mode);
void channel_set_timeout(int idx, int timeout);
void channel_set_callback(int idx, char_u *callback);
void channel_set_req_callback(int idx, char_u *callback, int id);
char_u *channel_get(int idx);
int channel_collapse(int idx);
+int channel_can_write_to(int idx);
int channel_is_open(int idx);
void channel_close(int idx);
int channel_save(int idx, char_u *buf, int len);
char_u *channel_peek(int idx);
void channel_clear(int idx);
int channel_get_id(void);
-void channel_read(int idx);
+void channel_read(int idx, int use_stderr, char *func);
char_u *channel_read_block(int idx);
int channel_read_json_block(int ch_idx, int id, typval_T **rettv);
-int channel_socket2idx(sock_T fd);
+int channel_fd2idx(sock_T fd);
int channel_send(int idx, 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);