diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-23 20:24:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-23 20:24:27 +0000 |
commit | 16e017d5a65b68f226835cd200ae3f252b08ed15 (patch) | |
tree | c117b427c0654d4cc132691f8b04b3493d5393db /tmux.h | |
parent | ba84ddcf8e64beac0838bbc4097ef1417e85916f (diff) | |
download | rtmux-16e017d5a65b68f226835cd200ae3f252b08ed15.tar.gz rtmux-16e017d5a65b68f226835cd200ae3f252b08ed15.tar.bz2 rtmux-16e017d5a65b68f226835cd200ae3f252b08ed15.zip |
Tidy client message return slightly: convert flags into an enum, and merge
error string into struct client_ctx as well.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -845,10 +845,13 @@ struct client_ctx { struct buffer *srv_in; struct buffer *srv_out; -#define CCTX_DETACH 0x1 -#define CCTX_EXIT 0x2 -#define CCTX_SHUTDOWN 0x4 - int flags; + enum { + CCTX_DETACH, + CCTX_EXIT, + CCTX_DIED, + CCTX_SHUTDOWN, + } exittype; + const char *errstr; }; /* Key/command line command. */ @@ -1261,7 +1264,7 @@ 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 *, char **); +int client_msg_dispatch(struct client_ctx *); /* client-fn.c */ void client_write_server(struct client_ctx *, enum hdrtype, void *, size_t); |