summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-01-24 19:11:47 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-01-24 19:11:47 +0000
commit38c599a96818f72492019b9f38af1421b37c2e65 (patch)
treefa082f2a0717481d28dcb8de815d0a39ae3cadc7 /usr.bin/tmux/tmux.h
parent4856937ff10a8987fbb03b4e1d9db5a2f7e2d300 (diff)
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 *);