aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-23 10:48:23 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-23 10:48:23 +0000
commit688a487570e39312c39d7a46e0a7ed6e61392ee8 (patch)
treeed01d3073c1decf05b67adc25a19b0901d16d1e9 /tmux.h
parent21c17da7e6f4631dc418a7b1768d217ce1ccae2f (diff)
downloadrtmux-688a487570e39312c39d7a46e0a7ed6e61392ee8.tar.gz
rtmux-688a487570e39312c39d7a46e0a7ed6e61392ee8.tar.bz2
rtmux-688a487570e39312c39d7a46e0a7ed6e61392ee8.zip
Lift last MAXNAMELEN limit on -s argument.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/tmux.h b/tmux.h
index 46c09a4c..e4c5bfbe 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.64 2007-10-23 10:21:59 nicm Exp $ */
+/* $Id: tmux.h,v 1.65 2007-10-23 10:48:23 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -44,7 +44,6 @@ extern char *__progname;
#define TTY_NAME_MAX 32
#endif
-#define MAXNAMELEN 32
#define MAXTITLELEN 192
/* Fatal errors. */
@@ -283,13 +282,6 @@ enum hdrtype {
MSG_PAUSE,
};
-/* Session identification. */
-struct sessid {
- long long pid; /* pid from $TMUX or -1 */
- u_int idx; /* index from $TMUX */
- char name[MAXNAMELEN]; /* empty for current */
-};
-
/* Message header structure. */
struct hdr {
enum hdrtype type;
@@ -297,7 +289,10 @@ struct hdr {
};
struct msg_command_data {
- struct sessid sid;
+ long long pid; /* pid from $TMUX or -1 */
+ u_int idx; /* index from $TMUX */
+
+ size_t namelen;
};
struct msg_identify_data {
@@ -565,7 +560,7 @@ int client_msg_dispatch(struct client_ctx *, char **);
void client_write_server(struct client_ctx *, enum hdrtype, void *, size_t);
void client_write_server2(
struct client_ctx *, enum hdrtype, void *, size_t, void *, size_t);
-void client_fill_sessid(struct sessid *, char [MAXNAMELEN]);
+void client_fill_session(struct msg_command_data *);
/* key-bindings.c */
extern struct bindings key_bindings;
@@ -587,7 +582,8 @@ int server_start(char *);
int server_msg_dispatch(struct client *);
/* server-fn.c */
-struct session *server_find_sessid(struct sessid *, char **);
+struct session *server_extract_session(
+ struct msg_command_data *, char *, char **);
void server_write_client(
struct client *, enum hdrtype, const void *, size_t);
void server_write_session(