summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2019-04-28 20:05:50 +0000
committernicm <nicm>2019-04-28 20:05:50 +0000
commitc4b0da5513ee4c9692f0980408b0da2ee7e3a553 (patch)
tree3bef007901ae51d68f18454f1bbf8a9c2027e11e /tmux.h
parentdfb7bb683057d08303955c49073f4b475bd0e2d6 (diff)
Support multiple occurances of the same argument. Use this for a new
flag -e to new-window, split-window, respawn-window, respawn-pane to pass environment variables into the newly created process. From Steffen Christgau in GitHub issue 1697.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 550c9332..0e79d429 100644
--- a/tmux.h
+++ b/tmux.h
@@ -37,6 +37,7 @@
extern char **environ;
struct args;
+struct args_value;
struct client;
struct cmd_find_state;
struct cmdq_item;
@@ -1578,6 +1579,7 @@ struct spawn_context {
const char *name;
char **argv;
int argc;
+ struct environ *environ;
int idx;
const char *cwd;
@@ -1871,6 +1873,8 @@ void args_free(struct args *);
char *args_print(struct args *);
int args_has(struct args *, u_char);
const char *args_get(struct args *, u_char);
+const char *args_first_value(struct args *, u_char, struct args_value **);
+const char *args_next_value(struct args_value **);
long long args_strtonum(struct args *, u_char, long long, long long,
char **);