aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-30 16:32:12 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-30 16:32:12 +0000
commit5f13bb0c3ade513ec3f88af8b6c0f575fa00cc4b (patch)
treec5951ede730fd867a6b658479574472d8eb1bcfa /tmux.h
parent479d614884f66e9fa11f1292a2ef36991da46c1d (diff)
downloadrtmux-5f13bb0c3ade513ec3f88af8b6c0f575fa00cc4b.tar.gz
rtmux-5f13bb0c3ade513ec3f88af8b6c0f575fa00cc4b.tar.bz2
rtmux-5f13bb0c3ade513ec3f88af8b6c0f575fa00cc4b.zip
There aren't many client message types or code to handle them so get rid of the
lookup table and use a switch, merge the tiny handler functions into it, and move the whole lot to client.c. Also change client_msg_dispatch to consume as many messages as possible and move the call to it to the right place so it checks for signals afterwards. Prompted by suggestions from eric@.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index 900aa200..62a2dac0 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1338,13 +1338,12 @@ size_t cmd_option_print(struct cmd *, char *, size_t);
/* client.c */
int client_init(char *, struct client_ctx *, int, int);
int client_main(struct client_ctx *);
-
-/* client-msg.c */
int client_msg_dispatch(struct client_ctx *);
/* client-fn.c */
void client_write_server(struct client_ctx *, enum msgtype, void *, size_t);
void client_fill_session(struct msg_command_data *);
+void client_suspend(void);
/* key-bindings.c */
extern struct key_bindings key_bindings;