mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-13 23:38:52 +02:00
Protocol versioning, version is checked on identify message.
This commit is contained in:
7
tmux.h
7
tmux.h
@ -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;
|
||||
|
Reference in New Issue
Block a user