version 1.144, 2009/10/21 18:20:16 |
version 1.145, 2009/10/21 20:11:47 |
|
|
}; |
}; |
ARRAY_DECL(clients, struct client *); |
ARRAY_DECL(clients, struct client *); |
|
|
/* Client context. */ |
|
struct client_ctx { |
|
struct imsgbuf ibuf; |
|
|
|
enum { |
|
CCTX_DETACH, |
|
CCTX_EXIT, |
|
CCTX_DIED, |
|
CCTX_SHUTDOWN |
|
} exittype; |
|
const char *errstr; |
|
}; |
|
|
|
/* Key/command line command. */ |
/* Key/command line command. */ |
struct cmd_ctx { |
struct cmd_ctx { |
/* |
/* |
|
|
size_t cmd_buffer_print(struct cmd *, char *, size_t); |
size_t cmd_buffer_print(struct cmd *, char *, size_t); |
|
|
/* client.c */ |
/* client.c */ |
int client_init(char *, struct client_ctx *, int, int); |
struct imsgbuf *client_init(char *, int, int); |
int client_main(struct client_ctx *); |
__dead void client_main(void); |
int client_msg_dispatch(struct client_ctx *); |
|
|
|
/* client-fn.c */ |
|
void client_write_server(struct client_ctx *, enum msgtype, void *, size_t); |
|
void client_fill_session(struct msg_command_data *); |
|
void client_suspend(void); |
|
|
|
/* key-bindings.c */ |
/* key-bindings.c */ |
extern struct key_bindings key_bindings; |
extern struct key_bindings key_bindings; |