diff options
author | nicm <nicm> | 2016-10-16 22:06:40 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-10-16 22:06:40 +0000 |
commit | 41e633acf5d08cbd8976771bd2b74f14abda3969 (patch) | |
tree | 70b43438375ebfaf1cddab734b1913658ade661b /cmd-attach-session.c | |
parent | d15d54c2c8e6b95695169442eb2a27d814efc078 (diff) | |
download | rtmux-41e633acf5d08cbd8976771bd2b74f14abda3969.tar.gz rtmux-41e633acf5d08cbd8976771bd2b74f14abda3969.tar.bz2 rtmux-41e633acf5d08cbd8976771bd2b74f14abda3969.zip |
Use the notify name string instead of going via an enum and change
existing hooks to use notifys instead.
Diffstat (limited to 'cmd-attach-session.c')
-rw-r--r-- | cmd-attach-session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-attach-session.c b/cmd-attach-session.c index d999eb76..5807eefc 100644 --- a/cmd-attach-session.c +++ b/cmd-attach-session.c @@ -105,7 +105,7 @@ cmd_attach_session(struct cmdq_item *item, int dflag, int rflag, c->session = s; server_client_set_key_table(c, NULL); status_timer_start(c); - notify_attached_session_changed(c); + notify_client("client-session-changed", c); session_update_activity(s, NULL); gettimeofday(&s->last_attached_time, NULL); server_redraw_client(c); @@ -137,7 +137,7 @@ cmd_attach_session(struct cmdq_item *item, int dflag, int rflag, c->session = s; server_client_set_key_table(c, NULL); status_timer_start(c); - notify_attached_session_changed(c); + notify_client("client-session-changed", c); session_update_activity(s, NULL); gettimeofday(&s->last_attached_time, NULL); server_redraw_client(c); @@ -145,7 +145,7 @@ cmd_attach_session(struct cmdq_item *item, int dflag, int rflag, if (~c->flags & CLIENT_CONTROL) proc_send(c->peer, MSG_READY, -1, NULL, 0); - hooks_run(c->session->hooks, c, NULL, "client-attached"); + notify_client("client-attached", c); c->flags |= CLIENT_ATTACHED; } recalculate_sizes(); |