aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-07-11 17:06:45 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-07-11 17:06:45 +0000
commitb9c873cdaa3256f95a007d501fcab8375930bd94 (patch)
tree5884e8709758af698650ec415d7c1a343b4f71b8 /tmux.h
parentb4b9b831ee9f6b1848657939fb19a7b7076d26f4 (diff)
downloadrtmux-b9c873cdaa3256f95a007d501fcab8375930bd94.tar.gz
rtmux-b9c873cdaa3256f95a007d501fcab8375930bd94.tar.bz2
rtmux-b9c873cdaa3256f95a007d501fcab8375930bd94.zip
Return the command client return code with MSG_EXIT now that MSG_ERROR and
MSG_PRINT are unused. New clients should be compatible with old tmux servers but vice versa may print an error.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index a6d10a0b..c8e2c13d 100644
--- a/tmux.h
+++ b/tmux.h
@@ -413,6 +413,10 @@ struct msg_shell_data {
char shell[MAXPATHLEN];
};
+struct msg_exit_data {
+ int retcode;
+};
+
/* Mode key commands. */
enum mode_key_cmd {
MODEKEY_NONE,
@@ -1081,6 +1085,7 @@ struct message_entry {
struct client {
struct imsgbuf ibuf;
struct event event;
+ int retcode;
struct timeval creation_time;
struct timeval activity_time;