version 1.567, 2015/10/27 15:58:42 |
version 1.568, 2015/10/28 09:51:55 |
|
|
extern char *__progname; |
extern char *__progname; |
extern char **environ; |
extern char **environ; |
|
|
|
struct client; |
|
struct environ; |
|
struct input_ctx; |
|
struct mouse_event; |
|
struct options; |
|
struct session; |
|
struct tmuxpeer; |
|
struct tmuxproc; |
|
|
/* Default global configuration file. */ |
/* Default global configuration file. */ |
#define TMUX_CONF "/etc/tmux.conf" |
#define TMUX_CONF "/etc/tmux.conf" |
|
|
|
|
* Window mode. Windows can be in several modes and this is used to call the |
* Window mode. Windows can be in several modes and this is used to call the |
* right function to handle input and output. |
* right function to handle input and output. |
*/ |
*/ |
struct client; |
|
struct session; |
|
struct mouse_event; |
|
struct window_mode { |
struct window_mode { |
struct screen *(*init)(struct window_pane *); |
struct screen *(*init)(struct window_pane *); |
void (*free)(struct window_pane *); |
void (*free)(struct window_pane *); |
|
|
}; |
}; |
|
|
/* Child window structure. */ |
/* Child window structure. */ |
struct input_ctx; |
|
struct window_pane { |
struct window_pane { |
u_int id; |
u_int id; |
u_int active_point; |
u_int active_point; |
|
|
RB_HEAD(window_pane_tree, window_pane); |
RB_HEAD(window_pane_tree, window_pane); |
|
|
/* Window structure. */ |
/* Window structure. */ |
struct options; |
|
struct window { |
struct window { |
u_int id; |
u_int id; |
|
|
|
|
|
|
RB_ENTRY(environ_entry) entry; |
RB_ENTRY(environ_entry) entry; |
}; |
}; |
RB_HEAD(environ, environ_entry); |
|
|
|
/* Client session. */ |
/* Client session. */ |
struct session_group { |
struct session_group { |
|
|
|
|
struct termios *tio; |
struct termios *tio; |
|
|
struct environ environ; |
struct environ *environ; |
|
|
int references; |
int references; |
|
|
|
|
}; |
}; |
|
|
/* Client connection. */ |
/* Client connection. */ |
struct tmuxproc; |
|
struct tmuxpeer; |
|
struct client { |
struct client { |
struct tmuxpeer *peer; |
struct tmuxpeer *peer; |
|
|
|
|
struct timeval creation_time; |
struct timeval creation_time; |
struct timeval activity_time; |
struct timeval activity_time; |
|
|
struct environ environ; |
struct environ *environ; |
|
|
char *title; |
char *title; |
int cwd; |
int cwd; |
|
|
extern struct options *global_options; |
extern struct options *global_options; |
extern struct options *global_s_options; |
extern struct options *global_s_options; |
extern struct options *global_w_options; |
extern struct options *global_w_options; |
extern struct environ global_environ; |
extern struct environ *global_environ; |
extern char *shell_cmd; |
extern char *shell_cmd; |
extern int debug_level; |
extern int debug_level; |
extern time_t start_time; |
extern time_t start_time; |
|
|
void job_died(struct job *, int); |
void job_died(struct job *, int); |
|
|
/* environ.c */ |
/* environ.c */ |
int environ_cmp(struct environ_entry *, struct environ_entry *); |
struct environ *environ_create(void); |
RB_PROTOTYPE(environ, environ_entry, entry, environ_cmp); |
|
void environ_init(struct environ *); |
|
void environ_free(struct environ *); |
void environ_free(struct environ *); |
|
struct environ_entry *environ_first(struct environ *); |
|
struct environ_entry *environ_next(struct environ_entry *); |
void environ_copy(struct environ *, struct environ *); |
void environ_copy(struct environ *, struct environ *); |
struct environ_entry *environ_find(struct environ *, const char *); |
struct environ_entry *environ_find(struct environ *, const char *); |
void environ_set(struct environ *, const char *, const char *); |
void environ_set(struct environ *, const char *, const char *); |