Sync OpenBSD patchset 1069:

Add notify hooks for various events, the functions are currently empty
stubs but will be filled in for control mode later. From George Nachman.
This commit is contained in:
Tiago Cunha
2012-03-18 02:22:09 +00:00
parent ba7278373d
commit f41efd9d89
14 changed files with 101 additions and 2 deletions

10
tmux.h
View File

@ -1392,6 +1392,16 @@ void mode_key_init_trees(void);
void mode_key_init(struct mode_key_data *, struct mode_key_tree *);
enum mode_key_cmd mode_key_lookup(struct mode_key_data *, int);
/* notify.c */
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 *);
/* options.c */
int options_cmp(struct options_entry *, struct options_entry *);
RB_PROTOTYPE(options_tree, options_entry, entry, options_cmp);