mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
5ee6dc2120
@ -47,6 +47,21 @@ static void server_client_dispatch_command(struct client *, struct imsg *);
|
||||
static void server_client_dispatch_identify(struct client *, struct imsg *);
|
||||
static void server_client_dispatch_shell(struct client *);
|
||||
|
||||
/* Number of attached clients. */
|
||||
u_int
|
||||
server_client_how_many(void)
|
||||
{
|
||||
struct client *c;
|
||||
u_int n;
|
||||
|
||||
n = 0;
|
||||
TAILQ_FOREACH(c, &clients, entry) {
|
||||
if (c->session != NULL && (~c->flags & CLIENT_DETACHING))
|
||||
n++;
|
||||
}
|
||||
return (n);
|
||||
}
|
||||
|
||||
/* Identify mode callback. */
|
||||
static void
|
||||
server_client_callback_identify(__unused int fd, __unused short events,
|
||||
|
1
tmux.h
1
tmux.h
@ -1840,6 +1840,7 @@ void server_update_socket(void);
|
||||
void server_add_accept(int);
|
||||
|
||||
/* server-client.c */
|
||||
u_int server_client_how_many(void);
|
||||
void server_client_set_identify(struct client *);
|
||||
void server_client_clear_identify(struct client *, struct window_pane *);
|
||||
void server_client_set_key_table(struct client *, const char *);
|
||||
|
Loading…
Reference in New Issue
Block a user