mirror of
https://github.com/tmux/tmux.git
synced 2025-09-05 16:27:03 +00:00
Sync OpenBSD patchset 196:
Rename struct hdrtype to msgtype which is a better name and can be used even when struct hdr disappears.
This commit is contained in:
12
tmux.h
12
tmux.h
@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.h,v 1.398 2009-07-28 23:19:06 tcunha Exp $ */
|
||||
/* $Id: tmux.h,v 1.399 2009-07-30 20:21:55 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -286,7 +286,7 @@ struct tty_term_code_entry {
|
||||
};
|
||||
|
||||
/* Message codes. */
|
||||
enum hdrtype {
|
||||
enum msgtype {
|
||||
MSG_COMMAND,
|
||||
MSG_DETACH,
|
||||
MSG_ERROR,
|
||||
@ -312,7 +312,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;
|
||||
};
|
||||
|
||||
@ -1350,7 +1350,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 */
|
||||
@ -1384,9 +1384,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 *);
|
||||
|
Reference in New Issue
Block a user