diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-10-21 20:11:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-10-21 20:11:47 +0000 |
commit | 90ad041fa581a907a6efd1d9764b80f37d373447 (patch) | |
tree | cb3b7dddfb7c705f10fdbac6b3e623507fb849cc /tmux.h | |
parent | 59e667906f2530a9dc7a6bdb2871c7f2a27a4906 (diff) | |
download | rtmux-90ad041fa581a907a6efd1d9764b80f37d373447.tar.gz rtmux-90ad041fa581a907a6efd1d9764b80f37d373447.tar.bz2 rtmux-90ad041fa581a907a6efd1d9764b80f37d373447.zip |
Client tidying: get rid of client_ctx struct in favour of two variables in
client.c, and move the functions in client-fn.c into other files.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -1052,19 +1052,6 @@ struct client { }; ARRAY_DECL(clients, struct client *); -/* Client context. */ -struct client_ctx { - struct imsgbuf ibuf; - - enum { - CCTX_DETACH, - CCTX_EXIT, - CCTX_DIED, - CCTX_SHUTDOWN - } exittype; - const char *errstr; -}; - /* Key/command line command. */ struct cmd_ctx { /* @@ -1503,14 +1490,8 @@ void cmd_buffer_free(struct cmd *); size_t cmd_buffer_print(struct cmd *, char *, size_t); /* client.c */ -int client_init(char *, struct client_ctx *, int, int); -int client_main(struct client_ctx *); -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); +struct imsgbuf *client_init(char *, int, int); +__dead void client_main(void); /* key-bindings.c */ extern struct key_bindings key_bindings; |