aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2016-10-16 22:06:40 +0000
committernicm <nicm>2016-10-16 22:06:40 +0000
commit41e633acf5d08cbd8976771bd2b74f14abda3969 (patch)
tree70b43438375ebfaf1cddab734b1913658ade661b /tmux.h
parentd15d54c2c8e6b95695169442eb2a27d814efc078 (diff)
downloadrtmux-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 'tmux.h')
-rw-r--r--tmux.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/tmux.h b/tmux.h
index 0f2cda51..39a87df5 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1583,14 +1583,11 @@ enum mode_key_cmd mode_key_lookup(struct mode_key_data *, key_code);
/* notify.c */
void notify_input(struct window_pane *, struct evbuffer *);
-void notify_window_layout_changed(struct window *);
-void notify_window_unlinked(struct session *, struct window *);
-void notify_window_linked(struct session *, struct window *);
-void notify_window_renamed(struct window *);
-void notify_attached_session_changed(struct client *);
-void notify_session_renamed(struct session *);
-void notify_session_created(struct session *);
-void notify_session_closed(struct session *);
+void notify_client(const char *, struct client *);
+void notify_session(const char *, struct session *);
+void notify_session_window(const char *, struct session *, struct window *);
+void notify_window(const char *, struct window *);
+void notify_pane(const char *, struct window_pane *);
/* options.c */
struct options *options_create(struct options *);
@@ -2209,7 +2206,7 @@ void control_notify_window_layout_changed(struct window *);
void control_notify_window_unlinked(struct session *, struct window *);
void control_notify_window_linked(struct session *, struct window *);
void control_notify_window_renamed(struct window *);
-void control_notify_attached_session_changed(struct client *);
+void control_notify_client_session_changed(struct client *);
void control_notify_session_renamed(struct session *);
void control_notify_session_created(struct session *);
void control_notify_session_closed(struct session *);