=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.1058 retrieving revision 1.1059 diff -c -r1.1058 -r1.1059 *** src/usr.bin/tmux/tmux.h 2020/06/01 09:43:01 1.1058 --- src/usr.bin/tmux/tmux.h 2020/06/01 19:39:25 1.1059 *************** *** 1,4 **** ! /* $OpenBSD: tmux.h,v 1.1058 2020/06/01 09:43:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tmux.h,v 1.1059 2020/06/01 19:39:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 1912,1917 **** --- 1912,1918 ---- #define FORMAT_WINDOW 0x40000000U struct format_tree; struct format_modifier; + typedef char *(*format_cb)(struct format_tree *); const char *format_skip(const char *, const char *); int format_true(const char *); struct format_tree *format_create(struct client *, struct cmdq_item *, int, *************** *** 1922,1927 **** --- 1923,1929 ---- const char *, ...); void format_add_tv(struct format_tree *, const char *, struct timeval *); + void format_add_cb(struct format_tree *, const char *, format_cb); void format_each(struct format_tree *, void (*)(const char *, const char *, void *), void *); char *format_expand_time(struct format_tree *, const char *);