Similarly, for sessions use a callback to free rather than checking

every loop.
This commit is contained in:
nicm
2015-06-05 18:18:32 +00:00
parent 10e90ae01f
commit 641a9cd3f5
5 changed files with 32 additions and 28 deletions

2
tmux.h
View File

@ -2259,7 +2259,6 @@ void control_notify_session_close(struct session *);
/* session.c */
extern struct sessions sessions;
extern struct sessions dead_sessions;
extern struct session_groups session_groups;
int session_cmp(struct session *, struct session *);
RB_PROTOTYPE(sessions, session, entry, session_cmp);
@ -2271,6 +2270,7 @@ struct session *session_create(const char *, int, char **, const char *,
int, struct environ *, struct termios *, int, u_int,
u_int, char **);
void session_destroy(struct session *);
void session_unref(struct session *);
int session_check_name(const char *);
void session_update_activity(struct session *);
struct session *session_next_session(struct session *);