=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.1058 retrieving revision 1.1059 diff -u -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 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.1058 2020/06/01 09:43:01 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.1059 2020/06/01 19:39:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1912,6 +1912,7 @@ #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,6 +1923,7 @@ 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 *);