summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-01-24 19:11:46 +0000
committernicm <nicm@openbsd.org>2017-01-24 19:11:46 +0000
commit2f0d274ade81ba63b6c504544237a0e37ce69820 (patch)
treed2540b5403ed2a0eab9a40b7126378a6cce2dea2 /usr.bin/tmux/tmux.h
parentfix make clean and warnings (diff)
downloadwireguard-openbsd-2f0d274ade81ba63b6c504544237a0e37ce69820.tar.xz
wireguard-openbsd-2f0d274ade81ba63b6c504544237a0e37ce69820.zip
If given an array option without an index either show or set all items,
and support -a for array options. Allow the separator for set to be specified in the options table (will be used for backwards compatibility later).
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 68dd635f522..b718cb59c1d 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.702 2017/01/23 10:09:43 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.703 2017/01/24 19:11:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1479,6 +1479,7 @@ struct options_table_entry {
const char *default_str;
long long default_num;
+ const char *separator;
const char *style;
};
@@ -1616,17 +1617,20 @@ const struct options_table_entry *options_table_entry(struct options_entry *);
struct options_entry *options_get_only(struct options *, const char *);
struct options_entry *options_get(struct options *, const char *);
void options_remove(struct options_entry *);
+void options_array_clear(struct options_entry *);
const char *options_array_get(struct options_entry *, u_int);
-int options_array_set(struct options_entry *, u_int, const char *);
+int options_array_set(struct options_entry *, u_int, const char *,
+ int);
int options_array_size(struct options_entry *, u_int *);
+void options_array_assign(struct options_entry *, const char *);
int options_isstring(struct options_entry *);
const char *options_tostring(struct options_entry *, int);
char *options_parse(const char *, int *);
struct options_entry *options_parse_get(struct options *, const char *, int *,
- int);
+ int);
char *options_match(const char *, int *, int *);
struct options_entry *options_match_get(struct options *, const char *, int *,
- int, int *);
+ int, int *);
const char *options_get_string(struct options *, const char *);
long long options_get_number(struct options *, const char *);
const struct grid_cell *options_get_style(struct options *, const char *);