diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-01 19:47:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-07-01 19:47:02 +0000 |
commit | dd41035a4d71057108da8c7b5e1876cc02b4995c (patch) | |
tree | a8122ccd8c988b6a7e7645db1e8d7637e7992b1c /tmux.h | |
parent | 87b9851f3a125820e04844733f792350f5ae3e2c (diff) |
Protocol versioning, version is checked on identify message.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.172 2008-06-30 05:34:06 nicm Exp $ */ +/* $Id: tmux.h,v 1.173 2008-07-01 19:47:02 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -19,6 +19,8 @@ #ifndef TMUX_H #define TMUX_H +#define PROTOCOL_VERSION -1 + /* Shut up gcc warnings about empty if bodies. */ #define RB_AUGMENT(x) do {} while (0) @@ -330,7 +332,7 @@ struct buffer { #define TTY_KKEYPADOFF 22 #define TTY_KKEYPADON 23 #define TTY_MOUSEON 24 -#define TTY_MOUSEOFF 25 /* XXX merge allon/off into 1 arg? */ +#define TTY_MOUSEOFF 25 /* XXX merge all on/off into 1 arg? */ /* Message codes. */ enum hdrtype { @@ -361,6 +363,7 @@ struct msg_command_data { struct msg_identify_data { char tty[TTY_NAME_MAX]; + int version; u_int sx; u_int sy; |