diff options
author | nicm <nicm> | 2015-12-08 01:10:31 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-12-08 01:10:31 +0000 |
commit | d2fb0efcd197bf0d581a0f7b1e27223d095cb339 (patch) | |
tree | 3de4e6a7451d355ff752da7ec6013ea57c95b54c /tmux.c | |
parent | dbfce2a4d8ea0bd4773eacf154fd3e3406d1be5e (diff) | |
download | rtmux-d2fb0efcd197bf0d581a0f7b1e27223d095cb339.tar.gz rtmux-d2fb0efcd197bf0d581a0f7b1e27223d095cb339.tar.bz2 rtmux-d2fb0efcd197bf0d581a0f7b1e27223d095cb339.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 'tmux.c')
-rw-r--r-- | tmux.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |