aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2015-12-15 13:43:07 +0000
committernicm <nicm>2015-12-15 13:43:07 +0000
commitac9778395feb8551e0acbd2f32465b65aeba5e05 (patch)
tree8a2e548635c88e80320d7f5e57a8d1c011c710d2 /tmux.h
parent9d88d82d5e8caa7882a28ac95fda19754e5553e7 (diff)
downloadrtmux-ac9778395feb8551e0acbd2f32465b65aeba5e05.tar.gz
rtmux-ac9778395feb8551e0acbd2f32465b65aeba5e05.tar.bz2
rtmux-ac9778395feb8551e0acbd2f32465b65aeba5e05.zip
Some hooks API changes to fire a hook while waiting another cmdq and
infrastructure that will be needed soon.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 651990f0..2b1b29b0 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1368,6 +1368,8 @@ struct cmd_q {
int references;
int flags;
#define CMD_Q_DEAD 0x1
+#define CMD_Q_REENTRY 0x2
+#define CMD_Q_NOHOOKS 0x4
struct client *client;
int client_exit;
@@ -1375,6 +1377,7 @@ struct cmd_q {
struct cmd_q_items queue;
struct cmd_q_item *item;
struct cmd *cmd;
+ struct cmd_q *parent;
struct cmd_state state;
@@ -1581,7 +1584,10 @@ void hooks_add(struct hooks *, const char *, struct cmd_list *);
void hooks_copy(struct hooks *, struct hooks *);
void hooks_remove(struct hooks *, const char *);
struct hook *hooks_find(struct hooks *, const char *);
-void hooks_run(struct hooks *, const char *, struct client *);
+int printflike(3, 4) hooks_run(struct hooks *, struct client *, const char *,
+ ...);
+int printflike(3, 4) hooks_wait(struct hooks *, struct cmd_q *, const char *,
+ ...);
/* mode-key.c */
extern const struct mode_key_table mode_key_tables[];