=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.872 retrieving revision 1.873 diff -c -r1.872 -r1.873 *** src/usr.bin/tmux/tmux.h 2019/03/18 11:58:40 1.872 --- src/usr.bin/tmux/tmux.h 2019/03/18 14:10:25 1.873 *************** *** 1,4 **** ! /* $OpenBSD: tmux.h,v 1.872 2019/03/18 11:58:40 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tmux.h,v 1.873 2019/03/18 14:10:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 704,709 **** --- 704,710 ---- struct window_mode_entry; struct window_mode { const char *name; + const char *default_format; struct screen *(*init)(struct window_mode_entry *, struct cmd_find_state *, struct args *); *************** *** 1587,1592 **** --- 1588,1595 ---- void format_free(struct format_tree *); void printflike(3, 4) format_add(struct format_tree *, const char *, const char *, ...); + void format_each(struct format_tree *, void (*)(const char *, + const char *, void *), void *); char *format_expand_time(struct format_tree *, const char *); char *format_expand(struct format_tree *, const char *); char *format_single(struct cmdq_item *, const char *, *************** *** 2156,2161 **** --- 2159,2165 ---- /* window.c */ extern struct windows windows; extern struct window_pane_tree all_window_panes; + extern const struct window_mode *all_window_modes[]; int window_cmp(struct window *, struct window *); RB_PROTOTYPE(windows, window, entry, window_cmp); int winlink_cmp(struct winlink *, struct winlink *);