diff options
author | nicm <nicm> | 2020-03-31 17:14:40 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-03-31 17:14:40 +0000 |
commit | cc8b41f294974cdfb1ddfe3b907da58374ff130f (patch) | |
tree | 32855ba0999368039d3d7d40ecbbec3c096c50f9 /tmux.h | |
parent | e6cddcf752b335cb945bba4619b500b527cfee0a (diff) | |
download | rtmux-cc8b41f294974cdfb1ddfe3b907da58374ff130f.tar.gz rtmux-cc8b41f294974cdfb1ddfe3b907da58374ff130f.tar.bz2 rtmux-cc8b41f294974cdfb1ddfe3b907da58374ff130f.zip |
Add a way to mark environment variables as "hidden" so they can be used
by tmux but are not passed into the environment of new panes.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1048,6 +1048,9 @@ struct environ_entry { char *name; char *value; + int flags; +#define ENVIRON_HIDDEN 0x1 + RB_ENTRY(environ_entry) entry; }; @@ -1957,10 +1960,10 @@ struct environ_entry *environ_first(struct environ *); struct environ_entry *environ_next(struct environ_entry *); void environ_copy(struct environ *, struct environ *); struct environ_entry *environ_find(struct environ *, const char *); -void printflike(3, 4) environ_set(struct environ *, const char *, const char *, - ...); +void printflike(4, 5) environ_set(struct environ *, const char *, int, + const char *, ...); void environ_clear(struct environ *, const char *); -void environ_put(struct environ *, const char *); +void environ_put(struct environ *, const char *, int); void environ_unset(struct environ *, const char *); void environ_update(struct options *, struct environ *, struct environ *); void environ_push(struct environ *); |