aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-22 19:41:51 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-22 19:41:51 +0000
commiteddcc3dfa9d3e5b45675de6287f0a359893b1bc1 (patch)
tree24b8c0bfbbac55730e8642a6b0046cf56e1fb86a /tmux.h
parentfd35b6f836565d2d46b8c9869f8ea6590face8d6 (diff)
downloadrtmux-eddcc3dfa9d3e5b45675de6287f0a359893b1bc1.tar.gz
rtmux-eddcc3dfa9d3e5b45675de6287f0a359893b1bc1.tar.bz2
rtmux-eddcc3dfa9d3e5b45675de6287f0a359893b1bc1.zip
Split the server code handling clients, jobs and windows off into separate
files from server.c (merging server-msg.c into the client file) and rather than iterating over each set after poll(), allow a callback to be specified when the fd is added and just walk once over the returned pollfds calling each callback where needed. More to come, getting this in so it is tested.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index e97d4aaa..42badd33 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1517,8 +1517,19 @@ extern struct clients clients;
extern struct clients dead_clients;
int server_start(char *);
-/* server-msg.c */
-int server_msg_dispatch(struct client *);
+/* server-client.c */
+void server_client_create(int);
+void server_client_lost(struct client *);
+void server_client_callback(int, int, void *);
+void server_client_loop(void);
+
+/* server-job.c */
+void server_job_callback(int, int, void *);
+void server_job_loop(void);
+
+/* server-window.c */
+void server_window_callback(int, int, void *);
+void server_window_loop(void);
/* server-fn.c */
void server_fill_environ(struct session *, struct environ *);
@@ -1850,7 +1861,7 @@ void buffer_write8(struct buffer *, uint8_t);
uint8_t buffer_read8(struct buffer *);
/* buffer-poll.c */
-int buffer_poll(struct pollfd *, struct buffer *, struct buffer *);
+int buffer_poll(int, int, struct buffer *, struct buffer *);
/* log.c */
void log_open_tty(int);