=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.426 retrieving revision 1.427 diff -c -r1.426 -r1.427 *** src/usr.bin/tmux/tmux.h 2013/10/10 12:13:29 1.426 --- src/usr.bin/tmux/tmux.h 2013/10/10 12:13:56 1.427 *************** *** 1,4 **** ! /* $OpenBSD: tmux.h,v 1.426 2013/10/10 12:13:29 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tmux.h,v 1.427 2013/10/10 12:13:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 62,68 **** * Maximum sizes of strings in message data. Don't forget to bump * PROTOCOL_VERSION if any of these change! */ - #define COMMAND_LENGTH 2048 /* packed argv size */ #define TERMINAL_LENGTH 128 /* length of TERM environment variable */ #define ENVIRON_LENGTH 1024 /* environment variable length */ --- 62,67 ---- *************** *** 475,490 **** * Don't forget to bump PROTOCOL_VERSION if any of these change! */ struct msg_command_data { ! pid_t pid; /* from $TMUX or -1 */ ! int session_id; /* from $TMUX or -1 */ ! int argc; ! char argv[COMMAND_LENGTH]; ! }; struct msg_identify_data { char cwd[MAXPATHLEN]; - char term[TERMINAL_LENGTH]; int flags; --- 474,487 ---- * Don't forget to bump PROTOCOL_VERSION if any of these change! */ struct msg_command_data { ! pid_t pid; /* from $TMUX or -1 */ ! int session_id; /* from $TMUX or -1 */ ! int argc; ! }; /* followed by packed argv */ struct msg_identify_data { char cwd[MAXPATHLEN]; char term[TERMINAL_LENGTH]; int flags; *************** *** 1319,1325 **** #define CLIENT_EXIT 0x4 #define CLIENT_REDRAW 0x8 #define CLIENT_STATUS 0x10 ! #define CLIENT_REPEAT 0x20 /* allow command to repeat within repeat time */ #define CLIENT_SUSPENDED 0x40 #define CLIENT_BAD 0x80 #define CLIENT_IDENTIFY 0x100 --- 1316,1322 ---- #define CLIENT_EXIT 0x4 #define CLIENT_REDRAW 0x8 #define CLIENT_STATUS 0x10 ! #define CLIENT_REPEAT 0x20 #define CLIENT_SUSPENDED 0x40 #define CLIENT_BAD 0x80 #define CLIENT_IDENTIFY 0x100 *************** *** 1922,1931 **** /* server-fn.c */ void server_fill_environ(struct session *, struct environ *); void server_write_ready(struct client *); ! int server_write_client( ! struct client *, enum msgtype, const void *, size_t); ! void server_write_session( ! struct session *, enum msgtype, const void *, size_t); void server_redraw_client(struct client *); void server_status_client(struct client *); void server_redraw_session(struct session *); --- 1919,1928 ---- /* server-fn.c */ void server_fill_environ(struct session *, struct environ *); void server_write_ready(struct client *); ! int server_write_client(struct client *, enum msgtype, const void *, ! size_t); ! void server_write_session(struct session *, enum msgtype, const void *, ! size_t); void server_redraw_client(struct client *); void server_status_client(struct client *); void server_redraw_session(struct session *);