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 /session.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 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -123,7 +123,9 @@ session_create(const char *name, int argc, char **argv, const char *path, s->environ = environ_create(); if (env != NULL) environ_copy(env, s->environ); + s->options = options_create(global_s_options); + s->hooks = hooks_create(global_hooks); s->tio = NULL; if (tio != NULL) { @@ -189,7 +191,9 @@ session_free(__unused int fd, __unused short events, void *arg) if (s->references == 0) { environ_free(s->environ); + options_free(s->options); + hooks_free(s->hooks); free(s->name); free(s); |