aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-10-18 12:01:10 +0100
committerThomas Adam <thomas@xteddy.org>2016-10-18 12:01:10 +0100
commit8576ecaf322e5828c86e9621015d68e755c0323b (patch)
treefbf6d39f1c743c1b272dc35c2d3086a8b99552f5 /tmux.h
parentb3ab39c4d94a0d5785de069ba428a8ad53a0af20 (diff)
parent2e5c49a1fd8c534d546899f7c133a0adf212a7d1 (diff)
downloadrtmux-8576ecaf322e5828c86e9621015d68e755c0323b.tar.gz
rtmux-8576ecaf322e5828c86e9621015d68e755c0323b.tar.bz2
rtmux-8576ecaf322e5828c86e9621015d68e755c0323b.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index ed349330..519057e7 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1241,6 +1241,7 @@ enum cmdq_type {
/* Command queue item. */
typedef enum cmd_retval (*cmdq_cb) (struct cmdq_item *, void *);
struct cmdq_item {
+ const char *name;
struct cmdq_list *queue;
struct cmdq_item *next;
@@ -1781,7 +1782,8 @@ char *cmd_list_print(struct cmd_list *);
/* cmd-queue.c */
struct cmdq_item *cmdq_get_command(struct cmd_list *, struct cmd_find_state *,
struct mouse_event *, int);
-struct cmdq_item *cmdq_get_callback(cmdq_cb, void *);
+#define cmdq_get_callback(cb, data) cmdq_get_callback1(#cb, cb, data)
+struct cmdq_item *cmdq_get_callback1(const char *, 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 *,