summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-06-01 19:39:25 +0000
committernicm <nicm@openbsd.org>2020-06-01 19:39:25 +0000
commit11a01e9741cb5c75a27c042291509ca6e19ce507 (patch)
tree139fe27bf12c369a668a2d62b7a9339f64863677 /usr.bin/tmux/tmux.h
parentRemove expired certificate, ok tb@ (diff)
downloadwireguard-openbsd-11a01e9741cb5c75a27c042291509ca6e19ce507.tar.xz
wireguard-openbsd-11a01e9741cb5c75a27c042291509ca6e19ce507.zip
Change format callback to return value rather than storing it in the entry.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 834cac6dbf3..b334500f50c 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -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 <nicholas.marriott@gmail.com>
@@ -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 *);