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 /cmd.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 'cmd.c')
-rw-r--r-- | cmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -96,10 +96,12 @@ extern const struct cmd_entry cmd_send_prefix_entry; extern const struct cmd_entry cmd_server_info_entry; extern const struct cmd_entry cmd_set_buffer_entry; extern const struct cmd_entry cmd_set_environment_entry; +extern const struct cmd_entry cmd_set_hook_entry; extern const struct cmd_entry cmd_set_option_entry; extern const struct cmd_entry cmd_set_window_option_entry; extern const struct cmd_entry cmd_show_buffer_entry; extern const struct cmd_entry cmd_show_environment_entry; +extern const struct cmd_entry cmd_show_hooks_entry; extern const struct cmd_entry cmd_show_messages_entry; extern const struct cmd_entry cmd_show_options_entry; extern const struct cmd_entry cmd_show_window_options_entry; @@ -183,10 +185,12 @@ const struct cmd_entry *cmd_table[] = { &cmd_server_info_entry, &cmd_set_buffer_entry, &cmd_set_environment_entry, + &cmd_set_hook_entry, &cmd_set_option_entry, &cmd_set_window_option_entry, &cmd_show_buffer_entry, &cmd_show_environment_entry, + &cmd_show_hooks_entry, &cmd_show_messages_entry, &cmd_show_options_entry, &cmd_show_window_options_entry, |