aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2016-10-16 19:36:37 +0000
committernicm <nicm>2016-10-16 19:36:37 +0000
commit3f35b5299fb2c08637aa12757185e5b82eeb3fc1 (patch)
tree5323b2851735c5b1052a4c2bae303f532bee191c /tmux.h
parent026ad08b56b4577beab6bad06b8a7a21602bca11 (diff)
downloadrtmux-3f35b5299fb2c08637aa12757185e5b82eeb3fc1.tar.gz
rtmux-3f35b5299fb2c08637aa12757185e5b82eeb3fc1.tar.bz2
rtmux-3f35b5299fb2c08637aa12757185e5b82eeb3fc1.zip
Provide a way for hooks to tag formats onto the commands they fire so
that the user can get at additional information - now used for the "hook" format, more to come.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 1ce6e692..0f2cda51 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1250,7 +1250,8 @@ struct cmdq_item {
u_int number;
time_t time;
- const char *hook;
+ struct format_tree *formats;
+
int flags;
#define CMDQ_FIRED 0x1
#define CMDQ_WAITING 0x2
@@ -1783,6 +1784,8 @@ struct cmdq_item *cmdq_get_command(struct cmd_list *, struct cmd_find_state *,
struct cmdq_item *cmdq_get_callback(cmdq_cb, void *);
void cmdq_insert_after(struct cmdq_item *, struct cmdq_item *);
void cmdq_append(struct client *, struct cmdq_item *);
+void printflike(3, 4) cmdq_format(struct cmdq_item *, const char *,
+ const char *, ...);
u_int cmdq_next(struct client *);
void cmdq_guard(struct cmdq_item *, const char *, int);
void printflike(2, 3) cmdq_print(struct cmdq_item *, const char *, ...);