diff options
author | nicm <nicm> | 2020-06-01 19:39:25 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-06-01 19:39:25 +0000 |
commit | 9819470058800953a1c487cc12f923d0a603c3dc (patch) | |
tree | 6cfbc5435aac0f495d84f47f5980ef2bbede2d15 /tmux.h | |
parent | 674ec410b7ecf14fa24e9c3987469a4d9da599c1 (diff) | |
download | rtmux-9819470058800953a1c487cc12f923d0a603c3dc.tar.gz rtmux-9819470058800953a1c487cc12f923d0a603c3dc.tar.bz2 rtmux-9819470058800953a1c487cc12f923d0a603c3dc.zip |
Change format callback to return value rather than storing it in the entry.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1912,6 +1912,7 @@ char *paste_make_sample(struct paste_buffer *); #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 @@ void printflike(3, 4) format_add(struct format_tree *, const char *, 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 *); |