version 1.189, 2016/10/09 16:24:34 |
version 1.190, 2016/10/10 21:29:23 |
|
|
|
|
#include "tmux.h" |
#include "tmux.h" |
|
|
void server_client_free(int, short, void *); |
static void server_client_free(int, short, void *); |
void server_client_check_focus(struct window_pane *); |
static void server_client_check_focus(struct window_pane *); |
void server_client_check_resize(struct window_pane *); |
static void server_client_check_resize(struct window_pane *); |
key_code server_client_check_mouse(struct client *); |
static key_code server_client_check_mouse(struct client *); |
void server_client_repeat_timer(int, short, void *); |
static void server_client_repeat_timer(int, short, void *); |
void server_client_check_exit(struct client *); |
static void server_client_check_exit(struct client *); |
void server_client_check_redraw(struct client *); |
static void server_client_check_redraw(struct client *); |
void server_client_set_title(struct client *); |
static void server_client_set_title(struct client *); |
void server_client_reset_state(struct client *); |
static void server_client_reset_state(struct client *); |
int server_client_assume_paste(struct session *); |
static int server_client_assume_paste(struct session *); |
|
|
void server_client_dispatch(struct imsg *, void *); |
static void server_client_dispatch(struct imsg *, void *); |
void server_client_dispatch_command(struct client *, struct imsg *); |
static void server_client_dispatch_command(struct client *, struct imsg *); |
void server_client_dispatch_identify(struct client *, struct imsg *); |
static void server_client_dispatch_identify(struct client *, struct imsg *); |
void server_client_dispatch_shell(struct client *); |
static void server_client_dispatch_shell(struct client *); |
|
|
/* Check if this client is inside this server. */ |
/* Check if this client is inside this server. */ |
int |
int |
|
|
} |
} |
|
|
/* Free dead client. */ |
/* Free dead client. */ |
void |
static void |
server_client_free(__unused int fd, __unused short events, void *arg) |
server_client_free(__unused int fd, __unused short events, void *arg) |
{ |
{ |
struct client *c = arg; |
struct client *c = arg; |
|
|
} |
} |
|
|
/* Check for mouse keys. */ |
/* Check for mouse keys. */ |
key_code |
static key_code |
server_client_check_mouse(struct client *c) |
server_client_check_mouse(struct client *c) |
{ |
{ |
struct session *s = c->session; |
struct session *s = c->session; |
|
|
} |
} |
|
|
/* Is this fast enough to probably be a paste? */ |
/* Is this fast enough to probably be a paste? */ |
int |
static int |
server_client_assume_paste(struct session *s) |
server_client_assume_paste(struct session *s) |
{ |
{ |
struct timeval tv; |
struct timeval tv; |
|
|
} |
} |
|
|
/* Check if pane should be resized. */ |
/* Check if pane should be resized. */ |
void |
static void |
server_client_check_resize(struct window_pane *wp) |
server_client_check_resize(struct window_pane *wp) |
{ |
{ |
struct timeval tv = { .tv_usec = 250000 }; |
struct timeval tv = { .tv_usec = 250000 }; |
|
|
} |
} |
|
|
/* Check whether pane should be focused. */ |
/* Check whether pane should be focused. */ |
void |
static void |
server_client_check_focus(struct window_pane *wp) |
server_client_check_focus(struct window_pane *wp) |
{ |
{ |
struct client *c; |
struct client *c; |
|
|
* tty_region/tty_reset/tty_update_mode already take care of not resetting |
* tty_region/tty_reset/tty_update_mode already take care of not resetting |
* things that are already in their default state. |
* things that are already in their default state. |
*/ |
*/ |
void |
static void |
server_client_reset_state(struct client *c) |
server_client_reset_state(struct client *c) |
{ |
{ |
struct window *w = c->session->curw->window; |
struct window *w = c->session->curw->window; |
|
|
} |
} |
|
|
/* Repeat time callback. */ |
/* Repeat time callback. */ |
void |
static void |
server_client_repeat_timer(__unused int fd, __unused short events, void *data) |
server_client_repeat_timer(__unused int fd, __unused short events, void *data) |
{ |
{ |
struct client *c = data; |
struct client *c = data; |
|
|
} |
} |
|
|
/* Check if client should be exited. */ |
/* Check if client should be exited. */ |
void |
static void |
server_client_check_exit(struct client *c) |
server_client_check_exit(struct client *c) |
{ |
{ |
if (!(c->flags & CLIENT_EXIT)) |
if (!(c->flags & CLIENT_EXIT)) |
|
|
} |
} |
|
|
/* Check for client redraws. */ |
/* Check for client redraws. */ |
void |
static void |
server_client_check_redraw(struct client *c) |
server_client_check_redraw(struct client *c) |
{ |
{ |
struct session *s = c->session; |
struct session *s = c->session; |
|
|
} |
} |
|
|
/* Set client title. */ |
/* Set client title. */ |
void |
static void |
server_client_set_title(struct client *c) |
server_client_set_title(struct client *c) |
{ |
{ |
struct session *s = c->session; |
struct session *s = c->session; |
|
|
} |
} |
|
|
/* Dispatch message from client. */ |
/* Dispatch message from client. */ |
void |
static void |
server_client_dispatch(struct imsg *imsg, void *arg) |
server_client_dispatch(struct imsg *imsg, void *arg) |
{ |
{ |
struct client *c = arg; |
struct client *c = arg; |
|
|
} |
} |
|
|
/* Handle command message. */ |
/* Handle command message. */ |
void |
static void |
server_client_dispatch_command(struct client *c, struct imsg *imsg) |
server_client_dispatch_command(struct client *c, struct imsg *imsg) |
{ |
{ |
struct msg_command_data data; |
struct msg_command_data data; |
|
|
} |
} |
|
|
/* Handle identify message. */ |
/* Handle identify message. */ |
void |
static void |
server_client_dispatch_identify(struct client *c, struct imsg *imsg) |
server_client_dispatch_identify(struct client *c, struct imsg *imsg) |
{ |
{ |
const char *data, *home; |
const char *data, *home; |
|
|
} |
} |
|
|
/* Handle shell message. */ |
/* Handle shell message. */ |
void |
static void |
server_client_dispatch_shell(struct client *c) |
server_client_dispatch_shell(struct client *c) |
{ |
{ |
const char *shell; |
const char *shell; |