version 1.1161, 2022/02/22 11:10:41 |
version 1.1162, 2022/03/08 11:28:40 |
|
|
typedef void (*overlay_free_cb)(struct client *, void *); |
typedef void (*overlay_free_cb)(struct client *, void *); |
typedef void (*overlay_resize_cb)(struct client *, void *); |
typedef void (*overlay_resize_cb)(struct client *, void *); |
struct client { |
struct client { |
const char *name; |
const char *name; |
struct tmuxpeer *peer; |
struct tmuxpeer *peer; |
struct cmdq_list *queue; |
struct cmdq_list *queue; |
|
|
struct client_windows windows; |
struct client_windows windows; |
|
|
struct control_state *control_state; |
struct control_state *control_state; |
u_int pause_age; |
u_int pause_age; |
|
|
pid_t pid; |
pid_t pid; |
int fd; |
int fd; |
int out_fd; |
int out_fd; |
struct event event; |
struct event event; |
int retval; |
int retval; |
|
|
struct timeval creation_time; |
struct timeval creation_time; |
struct timeval activity_time; |
struct timeval activity_time; |
|
|
struct environ *environ; |
struct environ *environ; |
struct format_job_tree *jobs; |
struct format_job_tree *jobs; |
|
|
char *title; |
char *title; |
const char *cwd; |
const char *cwd; |
|
|
char *term_name; |
char *term_name; |
int term_features; |
int term_features; |
char *term_type; |
char *term_type; |
char **term_caps; |
char **term_caps; |
u_int term_ncaps; |
u_int term_ncaps; |
|
|
char *ttyname; |
char *ttyname; |
struct tty tty; |
struct tty tty; |
|
|
size_t written; |
size_t written; |
size_t discarded; |
size_t discarded; |
size_t redraw; |
size_t redraw; |
|
|
struct event repeat_timer; |
struct event repeat_timer; |
|
|
struct event click_timer; |
struct event click_timer; |
u_int click_button; |
u_int click_button; |
struct mouse_event click_event; |
struct mouse_event click_event; |
|
|
struct status_line status; |
struct status_line status; |
|
|
#define CLIENT_TERMINAL 0x1 |
#define CLIENT_TERMINAL 0x1 |
#define CLIENT_LOGIN 0x2 |
#define CLIENT_LOGIN 0x2 |
|
|
(CLIENT_DEAD| \ |
(CLIENT_DEAD| \ |
CLIENT_SUSPENDED| \ |
CLIENT_SUSPENDED| \ |
CLIENT_EXIT) |
CLIENT_EXIT) |
#define CLIENT_NODETACHFLAGS \ |
#define CLIENT_NODETACHFLAGS \ |
(CLIENT_DEAD| \ |
(CLIENT_DEAD| \ |
CLIENT_EXIT) |
CLIENT_EXIT) |
#define CLIENT_NOSIZEFLAGS \ |
#define CLIENT_NOSIZEFLAGS \ |
(CLIENT_DEAD| \ |
(CLIENT_DEAD| \ |
CLIENT_SUSPENDED| \ |
CLIENT_SUSPENDED| \ |
CLIENT_EXIT) |
CLIENT_EXIT) |
uint64_t flags; |
uint64_t flags; |
|
|
enum { |
enum { |
CLIENT_EXIT_RETURN, |
CLIENT_EXIT_RETURN, |
CLIENT_EXIT_SHUTDOWN, |
CLIENT_EXIT_SHUTDOWN, |
CLIENT_EXIT_DETACH |
CLIENT_EXIT_DETACH |
} exit_type; |
} exit_type; |
enum msgtype exit_msgtype; |
enum msgtype exit_msgtype; |
char *exit_session; |
char *exit_session; |
char *exit_message; |
char *exit_message; |
|
|
struct key_table *keytable; |
struct key_table *keytable; |
|
|
uint64_t redraw_panes; |
uint64_t redraw_panes; |
|
|
int message_ignore_keys; |
int message_ignore_keys; |
int message_ignore_styles; |
int message_ignore_styles; |
char *message_string; |
char *message_string; |
struct event message_timer; |
struct event message_timer; |
|
|
char *prompt_string; |
char *prompt_string; |
struct utf8_data *prompt_buffer; |
struct utf8_data *prompt_buffer; |
char *prompt_last; |
char *prompt_last; |
size_t prompt_index; |
size_t prompt_index; |
prompt_input_cb prompt_inputcb; |
prompt_input_cb prompt_inputcb; |
prompt_free_cb prompt_freecb; |
prompt_free_cb prompt_freecb; |
void *prompt_data; |
void *prompt_data; |
u_int prompt_hindex[PROMPT_NTYPES]; |
u_int prompt_hindex[PROMPT_NTYPES]; |
enum { PROMPT_ENTRY, PROMPT_COMMAND } prompt_mode; |
enum { |
struct utf8_data *prompt_saved; |
PROMPT_ENTRY, |
|
PROMPT_COMMAND |
|
} prompt_mode; |
|
struct utf8_data *prompt_saved; |
#define PROMPT_SINGLE 0x1 |
#define PROMPT_SINGLE 0x1 |
#define PROMPT_NUMERIC 0x2 |
#define PROMPT_NUMERIC 0x2 |
#define PROMPT_INCREMENTAL 0x4 |
#define PROMPT_INCREMENTAL 0x4 |
#define PROMPT_NOFORMAT 0x8 |
#define PROMPT_NOFORMAT 0x8 |
#define PROMPT_KEY 0x10 |
#define PROMPT_KEY 0x10 |
int prompt_flags; |
int prompt_flags; |
enum prompt_type prompt_type; |
enum prompt_type prompt_type; |
int prompt_cursor; |
int prompt_cursor; |
|
|
struct session *session; |
struct session *session; |
struct session *last_session; |
struct session *last_session; |
|
|
int references; |
int references; |
|
|
void *pan_window; |
void *pan_window; |
u_int pan_ox; |
u_int pan_ox; |
u_int pan_oy; |
u_int pan_oy; |
|
|
overlay_check_cb overlay_check; |
overlay_check_cb overlay_check; |
overlay_mode_cb overlay_mode; |
overlay_mode_cb overlay_mode; |
overlay_draw_cb overlay_draw; |
overlay_draw_cb overlay_draw; |
overlay_key_cb overlay_key; |
overlay_key_cb overlay_key; |
overlay_free_cb overlay_free; |
overlay_free_cb overlay_free; |
overlay_resize_cb overlay_resize; |
overlay_resize_cb overlay_resize; |
void *overlay_data; |
void *overlay_data; |
struct event overlay_timer; |
struct event overlay_timer; |
|
|
struct client_files files; |
struct client_files files; |
|
|
TAILQ_ENTRY(client) entry; |
TAILQ_ENTRY(client) entry; |
}; |
}; |
TAILQ_HEAD(clients, client); |
TAILQ_HEAD(clients, client); |
|
|
|
|
void proc_kill_peer(struct tmuxpeer *); |
void proc_kill_peer(struct tmuxpeer *); |
void proc_toggle_log(struct tmuxproc *); |
void proc_toggle_log(struct tmuxproc *); |
pid_t proc_fork_and_daemon(int *); |
pid_t proc_fork_and_daemon(int *); |
|
uid_t proc_get_peer_uid(struct tmuxpeer *); |
|
|
/* cfg.c */ |
/* cfg.c */ |
extern int cfg_finished; |
extern int cfg_finished; |