version 1.125, 2009/10/10 14:51:16 |
version 1.126, 2009/10/10 15:03:01 |
|
|
/* Key list for prefix option. */ |
/* Key list for prefix option. */ |
ARRAY_DECL(keylist, int); |
ARRAY_DECL(keylist, int); |
|
|
|
/* Scheduled job. */ |
|
struct job { |
|
char *cmd; |
|
pid_t pid; |
|
|
|
struct client *client; |
|
|
|
int fd; |
|
struct buffer *out; |
|
|
|
void (*callbackfn)(struct job *); |
|
void (*freefn)(void *); |
|
void *data; |
|
|
|
RB_ENTRY(job) entry; |
|
}; |
|
RB_HEAD(jobs, job); |
|
|
/* Screen selection. */ |
/* Screen selection. */ |
struct screen_sel { |
struct screen_sel { |
int flag; |
int flag; |
|
|
char *cwd; |
char *cwd; |
|
|
struct tty tty; |
struct tty tty; |
struct timeval status_timer; |
|
struct timeval repeat_timer; |
struct timeval repeat_timer; |
|
|
|
struct timeval status_timer; |
|
struct jobs status_jobs; |
struct screen status; |
struct screen status; |
|
|
#define CLIENT_TERMINAL 0x1 |
#define CLIENT_TERMINAL 0x1 |
|
|
struct options *, const char *, void *, void (*)(void *)); |
struct options *, const char *, void *, void (*)(void *)); |
void *options_get_data(struct options *, const char *); |
void *options_get_data(struct options *, const char *); |
|
|
|
/* job.c */ |
|
extern struct jobs jobs_tree; |
|
int job_cmp(struct job *, struct job *); |
|
RB_PROTOTYPE(jobs, job, entry, job_cmp); |
|
void job_tree_init(struct jobs *); |
|
void job_tree_free(struct jobs *); |
|
u_int job_tree_size(struct jobs *); |
|
struct job *job_get(struct jobs *, const char *); |
|
struct job *job_add(struct jobs *, struct client *, |
|
const char *, void (*)(struct job *), void (*)(void *), void *); |
|
void job_free(struct job *); |
|
int job_run(struct job *); |
|
void job_kill(struct job *); |
|
|
/* environ.c */ |
/* environ.c */ |
int environ_cmp(struct environ_entry *, struct environ_entry *); |
int environ_cmp(struct environ_entry *, struct environ_entry *); |
RB_PROTOTYPE(environ, environ_entry, entry, environ_cmp); |
RB_PROTOTYPE(environ, environ_entry, entry, environ_cmp); |
|
|
|
|
/* status.c */ |
/* status.c */ |
int status_redraw(struct client *); |
int status_redraw(struct client *); |
char *status_replace(struct session *, const char *, time_t); |
char *status_replace(struct client *, const char *, time_t); |
void printflike2 status_message_set(struct client *, const char *, ...); |
void printflike2 status_message_set(struct client *, const char *, ...); |
void status_message_clear(struct client *); |
void status_message_clear(struct client *); |
int status_message_redraw(struct client *); |
int status_message_redraw(struct client *); |