Mercurial > vim
diff src/proto/channel.pro @ 8157:74b44d06d3c7 v7.4.1372
commit https://github.com/vim/vim/commit/6f3a544228c1faf92211cbaf8bbedb1dff883f90
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 20 19:56:13 2016 +0100
patch 7.4.1372
Problem: channel read implementation is incomplete.
Solution: Add ch_read() and options for ch_readraw().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 20 Feb 2016 20:00:05 +0100 |
parents | aa845d10c6fb |
children | b717dae2f26d |
line wrap: on
line diff
--- a/src/proto/channel.pro +++ b/src/proto/channel.pro @@ -23,9 +23,9 @@ void channel_clear(channel_T *channel); void channel_free_all(void); int channel_get_id(void); void channel_read(channel_T *channel, int part, char *func); -char_u *channel_read_block(channel_T *channel, int part); -int channel_read_json_block(channel_T *channel, int part, int id, typval_T **rettv); -channel_T *channel_fd2channel(sock_T fd, int *part); +char_u *channel_read_block(channel_T *channel, int part, int timeout); +int channel_read_json_block(channel_T *channel, int part, int timeout, int id, typval_T **rettv); +channel_T *channel_fd2channel(sock_T fd, int *partp); void channel_handle_events(void); int channel_send(channel_T *channel, int part, char_u *buf, char *fun); int channel_poll_setup(int nfd_in, void *fds_in); @@ -37,4 +37,5 @@ int set_ref_in_channel(int copyID); int channel_part_send(channel_T *channel); int channel_part_read(channel_T *channel); ch_mode_T channel_get_mode(channel_T *channel, int part); +int channel_get_timeout(channel_T *channel, int part); /* vim: set ft=c : */