summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-26 23:30:18 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-26 23:30:18 +0100
commitd04a020a8a8d7a438b091d49218c438880beb50c (patch)
treec272db817fc2d5a0a96fd942a81a617d75f0453d /src/proto
parent6650a694547eb744afa060ec62dd8270e99db9f2 (diff)
downloadvim-d04a020a8a8d7a438b091d49218c438880beb50c.zip
patch 7.4.1182
Problem: Still socket code intertwined with netbeans. Solution: Move code from netbeans.c to channel.c
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/channel.pro13
-rw-r--r--src/proto/netbeans.pro1
2 files changed, 11 insertions, 3 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro
index d2e9b3a37..fa1b9e29b 100644
--- a/src/proto/channel.pro
+++ b/src/proto/channel.pro
@@ -1,6 +1,15 @@
/* channel.c */
-int channel_add_netbeans(sock_T fd);
-void channel_remove_netbeans(void);
+void channel_gui_register_all(void);
+int channel_open(char *hostname, int port_in, void (*close_cb)(void));
+int channel_is_open(int idx);
+void channel_close(int idx);
+void channel_save(int idx, char_u *buf, int len);
+char_u *channel_peek(int idx);
+char_u *channel_get(int idx);
+int channel_collapse(int idx);
+void channel_clear(int idx);
+void channel_read(int idx);
+void 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);
int channel_select_setup(int maxfd_in, void *rfds_in);
diff --git a/src/proto/netbeans.pro b/src/proto/netbeans.pro
index c7e1f0688..b01bf02ed 100644
--- a/src/proto/netbeans.pro
+++ b/src/proto/netbeans.pro
@@ -9,7 +9,6 @@ void ex_nbkey(exarg_T *eap);
void ex_nbstart(exarg_T *eap);
void netbeans_beval_cb(BalloonEval *beval, int state);
int netbeans_active(void);
-void netbeans_gui_register(void);
void netbeans_open(char *params, int doabort);
void netbeans_send_disconnect(void);
void netbeans_frame_moved(int new_x, int new_y);