diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-07-23 23:42:59 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-07-23 23:42:59 +0000 |
commit | 1870b96578cdc7d6605ce1d08bf2023f54b22935 (patch) | |
tree | cc9fcf689da3cc877a16777a5c9eb8e304955a4f /tmux.h | |
parent | 2e4df706f64cf35d7f7aa1439fa450fd1ac30331 (diff) | |
download | rtmux-1870b96578cdc7d6605ce1d08bf2023f54b22935.tar.gz rtmux-1870b96578cdc7d6605ce1d08bf2023f54b22935.tar.bz2 rtmux-1870b96578cdc7d6605ce1d08bf2023f54b22935.zip |
Sync OpenBSD patchset 172:
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 | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.387 2009-07-23 13:25:27 tcunha Exp $ */ +/* $Id: tmux.h,v 1.388 2009-07-23 23:42:59 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -844,10 +844,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. */ @@ -1260,7 +1263,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); |