diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-23 17:32:26 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-23 17:32:26 +0000 |
commit | 84392ffc0d9aaa81ef213e2c32af5f25d728043e (patch) | |
tree | 46ac2a62285e4c8f774dbc4ca190185e518d4020 /tmux.h | |
parent | c6828bf32bab1559ebac1c9721380cfa49f150cc (diff) | |
download | rtmux-84392ffc0d9aaa81ef213e2c32af5f25d728043e.tar.gz rtmux-84392ffc0d9aaa81ef213e2c32af5f25d728043e.tar.bz2 rtmux-84392ffc0d9aaa81ef213e2c32af5f25d728043e.zip |
Sync OpenBSD patchset 433:
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 | 25 |
1 files changed, 3 insertions, 22 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.482 2009-10-23 17:27:40 tcunha Exp $ */ +/* $Id: tmux.h,v 1.483 2009-10-23 17:32:26 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1050,19 +1050,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 { /* @@ -1501,14 +1488,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; |