aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-08 01:10:31 +0000
committernicm <nicm>2015-12-08 01:10:31 +0000
commitd2fb0efcd197bf0d581a0f7b1e27223d095cb339 (patch)
tree3de4e6a7451d355ff752da7ec6013ea57c95b54c /tmux.c
parentdbfce2a4d8ea0bd4773eacf154fd3e3406d1be5e (diff)
downloadrtmux-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.c b/tmux.c
index 68f0092d..fe5e54a5 100644
--- a/tmux.c
+++ b/tmux.c
@@ -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);