aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-29 14:17:26 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-29 14:17:26 +0000
commitc1d6d7ac6b7eb6c3d3939d2c837281d3ce8caf1b (patch)
treee1e52a5d035ef088fee65ccfa307f14d6053330d /tmux.h
parentd3c461097b71fa548a8b91e114d4046bdc337b4f (diff)
downloadrtmux-c1d6d7ac6b7eb6c3d3939d2c837281d3ce8caf1b.tar.gz
rtmux-c1d6d7ac6b7eb6c3d3939d2c837281d3ce8caf1b.tar.bz2
rtmux-c1d6d7ac6b7eb6c3d3939d2c837281d3ce8caf1b.zip
Rename struct hdrtype to msgtype which is a better name and can be used even
when struct hdr disappears.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/tmux.h b/tmux.h
index 7fc2117c..f16652a7 100644
--- a/tmux.h
+++ b/tmux.h
@@ -287,7 +287,7 @@ struct tty_term_code_entry {
};
/* Message codes. */
-enum hdrtype {
+enum msgtype {
MSG_COMMAND,
MSG_DETACH,
MSG_ERROR,
@@ -313,7 +313,7 @@ enum hdrtype {
* the tmux client hang even if the protocol version is bumped.
*/
struct hdr {
- enum hdrtype type;
+ enum msgtype type;
size_t size;
};
@@ -1351,7 +1351,7 @@ int client_main(struct client_ctx *);
int client_msg_dispatch(struct client_ctx *);
/* client-fn.c */
-void client_write_server(struct client_ctx *, enum hdrtype, void *, size_t);
+void client_write_server(struct client_ctx *, enum msgtype, void *, size_t);
void client_fill_session(struct msg_command_data *);
/* key-bindings.c */
@@ -1385,9 +1385,9 @@ int server_msg_dispatch(struct client *);
const char **server_fill_environ(struct session *);
void server_write_error(struct client *, const char *);
void server_write_client(
- struct client *, enum hdrtype, const void *, size_t);
+ struct client *, enum msgtype, const void *, size_t);
void server_write_session(
- struct session *, enum hdrtype, const void *, size_t);
+ 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 *);