diff options
author | nicm <nicm> | 2016-10-11 13:21:59 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-10-11 13:21:59 +0000 |
commit | e45401846f0a423bb90ebd3943041a28b2657631 (patch) | |
tree | 9d5d914a2e67829e5729f775e6f95fb460c36cbc /session.c | |
parent | 85d7afaefc1e2cf8008575a776ec70f51d24e1a6 (diff) | |
download | rtmux-e45401846f0a423bb90ebd3943041a28b2657631.tar.gz rtmux-e45401846f0a423bb90ebd3943041a28b2657631.tar.bz2 rtmux-e45401846f0a423bb90ebd3943041a28b2657631.zip |
Add static in window-*.c and move some internal functions out of tmux.h.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -38,6 +38,10 @@ static void session_lock_timer(int, short, void *); static struct winlink *session_next_alert(struct winlink *); static struct winlink *session_previous_alert(struct winlink *); +static void session_group_remove(struct session *); +static u_int session_group_count(struct session_group *); +static void session_group_synchronize1(struct session *, struct session *); + RB_GENERATE(sessions, session, entry, session_cmp); int @@ -582,7 +586,7 @@ session_group_add(struct session *target, struct session *s) } /* Remove a session from its group and destroy the group if empty. */ -void +static void session_group_remove(struct session *s) { struct session_group *sg; @@ -599,7 +603,7 @@ session_group_remove(struct session *s) } /* Count number of sessions in session group. */ -u_int +static u_int session_group_count(struct session_group *sg) { struct session *s; @@ -650,7 +654,7 @@ session_group_synchronize_from(struct session *target) * winlinks then recreating them, then updating the current window, last window * stack and alerts. */ -void +static void session_group_synchronize1(struct session *target, struct session *s) { struct winlinks old_windows, *ww; |