version 1.62, 2016/01/19 15:59:12 |
version 1.63, 2016/10/10 21:29:23 |
|
|
|
|
#include "tmux.h" |
#include "tmux.h" |
|
|
struct sessions sessions; |
struct sessions sessions; |
u_int next_session_id; |
static u_int next_session_id; |
struct session_groups session_groups; |
struct session_groups session_groups; |
|
|
void session_free(int, short, void *); |
static void session_free(int, short, void *); |
|
|
void session_lock_timer(int, short, void *); |
static void session_lock_timer(int, short, void *); |
|
|
struct winlink *session_next_alert(struct winlink *); |
static struct winlink *session_next_alert(struct winlink *); |
struct winlink *session_previous_alert(struct winlink *); |
static struct winlink *session_previous_alert(struct winlink *); |
|
|
RB_GENERATE(sessions, session, entry, session_cmp); |
RB_GENERATE(sessions, session, entry, session_cmp); |
|
|
|
|
} |
} |
|
|
/* Free session. */ |
/* Free session. */ |
void |
static void |
session_free(__unused int fd, __unused short events, void *arg) |
session_free(__unused int fd, __unused short events, void *arg) |
{ |
{ |
struct session *s = arg; |
struct session *s = arg; |
|
|
} |
} |
|
|
/* Lock session if it has timed out. */ |
/* Lock session if it has timed out. */ |
void |
static void |
session_lock_timer(__unused int fd, __unused short events, void *arg) |
session_lock_timer(__unused int fd, __unused short events, void *arg) |
{ |
{ |
struct session *s = arg; |
struct session *s = arg; |
|
|
return (w->references != 1); |
return (w->references != 1); |
} |
} |
|
|
struct winlink * |
static struct winlink * |
session_next_alert(struct winlink *wl) |
session_next_alert(struct winlink *wl) |
{ |
{ |
while (wl != NULL) { |
while (wl != NULL) { |
|
|
return (session_set_current(s, wl)); |
return (session_set_current(s, wl)); |
} |
} |
|
|
struct winlink * |
static struct winlink * |
session_previous_alert(struct winlink *wl) |
session_previous_alert(struct winlink *wl) |
{ |
{ |
while (wl != NULL) { |
while (wl != NULL) { |