annotate src/proto/channel.pro @ 29467:5b3819ce0865 v9.0.0075

patch 9.0.0075: some compilers warn for using an uninitialized variable Commit: https://github.com/vim/vim/commit/be3dbda871ffd1b61f52b9519c23772f62381c67 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 26 11:42:34 2022 +0100 patch 9.0.0075: some compilers warn for using an uninitialized variable Problem: Some compilers warn for using an uninitialized variable. (Tony Mechelynck) Solution: Initialize the variable.
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jul 2022 12:45:03 +0200
parents 0082503ff2ff
children fa309d9af73c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 /* channel.c */
8498
42277980a76d commit https://github.com/vim/vim/commit/8e2c942ce49f2555d7dc2088cf3aa856820c5e32
Christian Brabandt <cb@256bit.org>
parents: 8491
diff changeset
2 void ch_logfile(char_u *fname, char_u *opt);
8114
4aea0b0aa714 commit https://github.com/vim/vim/commit/81661fb86801e6d6e5194b43dfd27d73fcc016ec
Christian Brabandt <cb@256bit.org>
parents: 8094
diff changeset
3 int ch_log_active(void);
8041
c6443e78cf2d commit https://github.com/vim/vim/commit/7707344ddec9069b495b2a5ed41f2104466fc88b
Christian Brabandt <cb@256bit.org>
parents: 8031
diff changeset
4 channel_T *add_channel(void);
10240
175b1116f96a commit https://github.com/vim/vim/commit/b9c31e71f5a4653a27e81c21226039bfa35b9131
Christian Brabandt <cb@256bit.org>
parents: 10233
diff changeset
5 int has_any_channel(void);
22095
2cc0de1e05a6 patch 8.2.1597: the channel source file is too big
Bram Moolenaar <Bram@vim.org>
parents: 22077
diff changeset
6 int channel_still_useful(channel_T *channel);
2cc0de1e05a6 patch 8.2.1597: the channel source file is too big
Bram Moolenaar <Bram@vim.org>
parents: 22077
diff changeset
7 int channel_can_close(channel_T *channel);
8498
42277980a76d commit https://github.com/vim/vim/commit/8e2c942ce49f2555d7dc2088cf3aa856820c5e32
Christian Brabandt <cb@256bit.org>
parents: 8491
diff changeset
8 int channel_unref(channel_T *channel);
8863
e1b84109506a commit https://github.com/vim/vim/commit/107e1eef1df3b786ad3ad49fbdb9e058649303b5
Christian Brabandt <cb@256bit.org>
parents: 8859
diff changeset
9 int free_unused_channels_contents(int copyID, int mask);
e1b84109506a commit https://github.com/vim/vim/commit/107e1eef1df3b786ad3ad49fbdb9e058649303b5
Christian Brabandt <cb@256bit.org>
parents: 8859
diff changeset
10 void free_unused_channels(int copyID, int mask);
7770
42c1a4e63d12 commit https://github.com/vim/vim/commit/d04a020a8a8d7a438b091d49218c438880beb50c
Christian Brabandt <cb@256bit.org>
parents: 7743
diff changeset
11 void channel_gui_register_all(void);
20003
e373843e2980 patch 8.2.0557: no IPv6 support for channels
Bram Moolenaar <Bram@vim.org>
parents: 19245
diff changeset
12 channel_T *channel_open(const char *hostname, int port, int waittime, void (*nb_close_cb)(void));
22095
2cc0de1e05a6 patch 8.2.1597: the channel source file is too big
Bram Moolenaar <Bram@vim.org>
parents: 22077
diff changeset
13 void ch_close_part(channel_T *channel, ch_part_T part);
8059
19304db153bc commit https://github.com/vim/vim/commit/d807036d10615b960c814ef3890ecad335b57f56
Christian Brabandt <cb@256bit.org>
parents: 8049
diff changeset
14 void channel_set_pipes(channel_T *channel, sock_T in, sock_T out, sock_T err);
8386
3b9a306724ec commit https://github.com/vim/vim/commit/014069a7ac51557e531eb3c8b94e36f2193f6c21
Christian Brabandt <cb@256bit.org>
parents: 8318
diff changeset
15 void channel_set_job(channel_T *channel, job_T *job, jobopt_T *options);
22095
2cc0de1e05a6 patch 8.2.1597: the channel source file is too big
Bram Moolenaar <Bram@vim.org>
parents: 22077
diff changeset
16 void channel_write_in(channel_T *channel);
9087
d4606ae170aa commit https://github.com/vim/vim/commit/e0f76d00979c972329f6c371463a20da61ccad65
Christian Brabandt <cb@256bit.org>
parents: 9058
diff changeset
17 void channel_buffer_free(buf_T *buf);
8761
f8707ec9efe4 commit https://github.com/vim/vim/commit/8b877ac38e96424a08a8b8eb713ef4b3cf0064be
Christian Brabandt <cb@256bit.org>
parents: 8669
diff changeset
18 void channel_write_any_lines(void);
8422
5d2c84be23b5 commit https://github.com/vim/vim/commit/99ef06296f3c37490511c03786a2c8672e015c56
Christian Brabandt <cb@256bit.org>
parents: 8386
diff changeset
19 void channel_write_new_lines(buf_T *buf);
10259
a09db7a4afe0 commit https://github.com/vim/vim/commit/dc0ccaee68ca24d10050117fbec757ad33590a17
Christian Brabandt <cb@256bit.org>
parents: 10240
diff changeset
20 readq_T *channel_peek(channel_T *channel, ch_part_T part);
9246
6ee88fa405b3 commit https://github.com/vim/vim/commit/5f1032d2a55b9417a0a6fa225e35089c98a5a419
Christian Brabandt <cb@256bit.org>
parents: 9215
diff changeset
21 char_u *channel_first_nl(readq_T *node);
15454
1d2b5c016f17 patch 8.1.0735: cannot handle binary data
Bram Moolenaar <Bram@vim.org>
parents: 15160
diff changeset
22 char_u *channel_get(channel_T *channel, ch_part_T part, int *outlen);
10259
a09db7a4afe0 commit https://github.com/vim/vim/commit/dc0ccaee68ca24d10050117fbec757ad33590a17
Christian Brabandt <cb@256bit.org>
parents: 10240
diff changeset
23 void channel_consume(channel_T *channel, ch_part_T part, int len);
a09db7a4afe0 commit https://github.com/vim/vim/commit/dc0ccaee68ca24d10050117fbec757ad33590a17
Christian Brabandt <cb@256bit.org>
parents: 10240
diff changeset
24 int channel_collapse(channel_T *channel, ch_part_T part, int want_nl);
8041
c6443e78cf2d commit https://github.com/vim/vim/commit/7707344ddec9069b495b2a5ed41f2104466fc88b
Christian Brabandt <cb@256bit.org>
parents: 8031
diff changeset
25 int channel_can_write_to(channel_T *channel);
c6443e78cf2d commit https://github.com/vim/vim/commit/7707344ddec9069b495b2a5ed41f2104466fc88b
Christian Brabandt <cb@256bit.org>
parents: 8031
diff changeset
26 int channel_is_open(channel_T *channel);
8240
60586ce747c4 commit https://github.com/vim/vim/commit/8b374215ccd35003b95ba1df8f12e03bf8a8adc3
Christian Brabandt <cb@256bit.org>
parents: 8210
diff changeset
27 void channel_close(channel_T *channel, int invoke_close_cb);
8041
c6443e78cf2d commit https://github.com/vim/vim/commit/7707344ddec9069b495b2a5ed41f2104466fc88b
Christian Brabandt <cb@256bit.org>
parents: 8031
diff changeset
28 void channel_clear(channel_T *channel);
c6443e78cf2d commit https://github.com/vim/vim/commit/7707344ddec9069b495b2a5ed41f2104466fc88b
Christian Brabandt <cb@256bit.org>
parents: 8031
diff changeset
29 void channel_free_all(void);
18104
e59ff7b5d7a7 patch 8.1.2047: cannot check the current state
Bram Moolenaar <Bram@vim.org>
parents: 17789
diff changeset
30 int channel_in_blocking_wait(void);
12240
24abce52ad20 patch 8.0.1000: cannot open a terminal without running a job in it
Christian Brabandt <cb@256bit.org>
parents: 12154
diff changeset
31 void channel_handle_events(int only_keep_open);
12250
ac8b2f9c1409 patch 8.0.1005: terminal without job updates slowly in GUI
Christian Brabandt <cb@256bit.org>
parents: 12240
diff changeset
32 int channel_any_keep_open(void);
12154
71e10b81226d patch 8.0.0957: a terminal job can deadlock when sending many keys
Christian Brabandt <cb@256bit.org>
parents: 12096
diff changeset
33 void channel_set_nonblock(channel_T *channel, ch_part_T part);
12240
24abce52ad20 patch 8.0.1000: cannot open a terminal without running a job in it
Christian Brabandt <cb@256bit.org>
parents: 12154
diff changeset
34 int channel_send(channel_T *channel, ch_part_T part, char_u *buf_arg, int len_arg, char *fun);
12584
f28067b83dec patch 8.0.1170: using termdebug results in 100% CPU time
Christian Brabandt <cb@256bit.org>
parents: 12250
diff changeset
35 int channel_poll_setup(int nfd_in, void *fds_in, int *towait);
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
36 int channel_poll_check(int ret_in, void *fds_in);
12584
f28067b83dec patch 8.0.1170: using termdebug results in 100% CPU time
Christian Brabandt <cb@256bit.org>
parents: 12250
diff changeset
37 int channel_select_setup(int maxfd_in, void *rfds_in, void *wfds_in, struct timeval *tv, struct timeval **tvp);
8761
f8707ec9efe4 commit https://github.com/vim/vim/commit/8b877ac38e96424a08a8b8eb713ef4b3cf0064be
Christian Brabandt <cb@256bit.org>
parents: 8669
diff changeset
38 int channel_select_check(int ret_in, void *rfds_in, void *wfds_in);
7899
93c61501c2cf commit https://github.com/vim/vim/commit/d7ece1008ee6173afda6d173bed486ae79c1c38a
Christian Brabandt <cb@256bit.org>
parents: 7868
diff changeset
39 int channel_parse_messages(void);
10418
56cb9538386c commit https://github.com/vim/vim/commit/8a8199e4a1814b10630a770165502abb1121cd1b
Christian Brabandt <cb@256bit.org>
parents: 10259
diff changeset
40 int channel_any_readahead(void);
7931
2679e636e862 commit https://github.com/vim/vim/commit/4b6a6dcbe7bd13170c4884cc17acb1eac2c633d1
Christian Brabandt <cb@256bit.org>
parents: 7899
diff changeset
41 int set_ref_in_channel(int copyID);
17170
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
42 void f_ch_canread(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
43 void f_ch_close(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
44 void f_ch_close_in(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
45 void f_ch_getbufnr(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
46 void f_ch_getjob(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
47 void f_ch_info(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
48 void f_ch_log(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
49 void f_ch_logfile(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
50 void f_ch_open(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
51 void f_ch_read(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
52 void f_ch_readblob(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
53 void f_ch_readraw(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
54 void f_ch_evalexpr(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
55 void f_ch_sendexpr(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
56 void f_ch_evalraw(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
57 void f_ch_sendraw(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
58 void f_ch_setoptions(typval_T *argvars, typval_T *rettv);
cee12488e4bc patch 8.1.1584: the evalfunc.c file is getting too big
Bram Moolenaar <Bram@vim.org>
parents: 16872
diff changeset
59 void f_ch_status(typval_T *argvars, typval_T *rettv);
24812
8fdf839af1f4 patch 8.2.2944: Vim9: no error when using job or channel as a string
Bram Moolenaar <Bram@vim.org>
parents: 22095
diff changeset
60 char_u *channel_to_string_buf(typval_T *varp, char_u *buf);
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
61 /* vim: set ft=c : */