diff options
author | nicm <nicm> | 2015-04-25 18:33:59 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-04-25 18:33:59 +0000 |
commit | 07dfdb974d36f1eee084b9739d2b8a5b64172ec8 (patch) | |
tree | ef2b368929495145b6130b75a1ce89b539ed7018 /tmux.h | |
parent | 6dbd63ba4f2da666d55267692c610b9ed8d1d8dd (diff) | |
download | rtmux-07dfdb974d36f1eee084b9739d2b8a5b64172ec8.tar.gz rtmux-07dfdb974d36f1eee084b9739d2b8a5b64172ec8.tar.bz2 rtmux-07dfdb974d36f1eee084b9739d2b8a5b64172ec8.zip |
Make message log a TAILQ.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -950,7 +950,6 @@ struct window_pane { }; TAILQ_HEAD(window_panes, window_pane); RB_HEAD(window_pane_tree, window_pane); -ARRAY_DECL(window_pane_list, struct window_pane *); /* Window structure. */ struct window { @@ -1101,7 +1100,6 @@ struct session { RB_ENTRY(session) entry; }; RB_HEAD(sessions, session); -ARRAY_DECL(sessionslist, struct session *); /* TTY information. */ struct tty_key { @@ -1255,7 +1253,9 @@ struct tty_ctx { /* Saved message entry. */ struct message_entry { char *msg; + u_int msg_num; time_t msg_time; + TAILQ_ENTRY(message_entry) entry; }; /* Status output data from a job. */ @@ -1327,7 +1327,8 @@ struct client { char *message_string; struct event message_timer; - ARRAY_DECL(, struct message_entry) message_log; + u_int message_next; + TAILQ_HEAD(, message_entry) message_log; char *prompt_string; char *prompt_buffer; |