diff options
author | 2015-12-08 01:10:31 +0000 | |
---|---|---|
committer | 2015-12-08 01:10:31 +0000 | |
commit | 1443aefcc42706551d85aa19073380e15b827873 (patch) | |
tree | b7489c688990cd4281d18af08fb61bf8d191e28a /usr.bin/tmux/tmux.c | |
parent | UTF-8 support: implement -m for character counting (diff) | |
download | wireguard-openbsd-1443aefcc42706551d85aa19073380e15b827873.tar.xz wireguard-openbsd-1443aefcc42706551d85aa19073380e15b827873.zip |
Add hooks infrastructure, basic commands (set-hook, show-hooks) and a
couple of not very useful client hooks. This will eventually let
commands be run at various points and on notifications. Joint work with
Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r-- | usr.bin/tmux/tmux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index 5df75994b08..a0c4c5e85e9 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.162 2015/11/24 23:46:15 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.163 2015/12/08 01:10:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -38,6 +38,7 @@ struct options *global_options; /* server options */ struct options *global_s_options; /* session options */ struct options *global_w_options; /* window options */ struct environ *global_environ; +struct hooks *global_hooks; struct timeval start_time; const char *socket_path; @@ -269,6 +270,8 @@ main(int argc, char **argv) flags |= CLIENT_UTF8; } + global_hooks = hooks_create(NULL); + global_environ = environ_create(); for (var = environ; *var != NULL; var++) environ_put(global_environ, *var); |