=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.924 retrieving revision 1.925 diff -u -r1.924 -r1.925 --- src/usr.bin/tmux/tmux.h 2019/08/14 09:58:31 1.924 +++ src/usr.bin/tmux/tmux.h 2019/08/16 11:49:12 1.925 @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.924 2019/08/14 09:58:31 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.925 2019/08/16 11:49:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1682,6 +1682,12 @@ #define SPAWN_EMPTY 0x40 }; +/* Mode tree sort order. */ +struct mode_tree_sort_criteria { + u_int field; + int reversed; +}; + /* tmux.c */ extern struct options *global_options; extern struct options *global_s_options; @@ -2473,7 +2479,8 @@ 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_build_cb)(void *, struct mode_tree_sort_criteria *, + 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 *);