diff options
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -2225,17 +2225,20 @@ u_int layout_set_next(struct window *); u_int layout_set_previous(struct window *); /* mode-tree.c */ +typedef void (*mode_tree_build_cb)(void *, u_int, uint64_t *, const char *); +typedef void (*mode_tree_draw_cb)(void *, void *, struct screen_write_ctx *, + u_int, u_int); +typedef int (*mode_tree_search_cb)(void *, void *, const char *); +typedef void (*mode_tree_each_cb)(void *, void *, struct client *, key_code); u_int mode_tree_count_tagged(struct mode_tree_data *); void *mode_tree_get_current(struct mode_tree_data *); -void mode_tree_each_tagged(struct mode_tree_data *, void (*)(void *, void *, - struct client *, key_code), struct client *, key_code, int); +void mode_tree_each_tagged(struct mode_tree_data *, mode_tree_each_cb, + struct client *, key_code, int); void mode_tree_up(struct mode_tree_data *, int); void mode_tree_down(struct mode_tree_data *, int); struct mode_tree_data *mode_tree_start(struct window_pane *, struct args *, - void (*)(void *, u_int, uint64_t *, const char *), - struct screen *(*)(void *, void *, u_int, u_int), - int (*)(void *, void *, const char *), void *, const char **, - u_int, struct screen **); + mode_tree_build_cb, mode_tree_draw_cb, mode_tree_search_cb, + void *, const char **, u_int, struct screen **); void mode_tree_build(struct mode_tree_data *); void mode_tree_free(struct mode_tree_data *); void mode_tree_resize(struct mode_tree_data *, u_int, u_int); |