1999-10-29 17:44:44 +08:00
|
|
|
/*
|
|
|
|
* BIRD Client
|
|
|
|
*
|
2000-01-19 23:07:00 +08:00
|
|
|
* (c) 1999--2000 Martin Mares <mj@ucw.cz>
|
1999-10-29 17:44:44 +08:00
|
|
|
*
|
|
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
|
|
*/
|
2000-02-15 20:18:37 +08:00
|
|
|
|
2013-02-25 06:47:22 +08:00
|
|
|
/* client.c callbacks */
|
2000-02-15 20:18:37 +08:00
|
|
|
|
|
|
|
void cleanup(void);
|
2000-02-18 07:37:16 +08:00
|
|
|
void input_start_list(void);
|
|
|
|
void input_stop_list(void);
|
2013-02-25 06:47:22 +08:00
|
|
|
void server_got_reply(char *x);
|
2000-02-18 06:00:13 +08:00
|
|
|
|
|
|
|
/* commands.c */
|
|
|
|
|
|
|
|
void cmd_build_tree(void);
|
|
|
|
void cmd_help(char *cmd, int len);
|
2000-02-18 07:37:16 +08:00
|
|
|
int cmd_complete(char *cmd, int len, char *buf, int again);
|
2000-02-28 06:00:19 +08:00
|
|
|
char *cmd_expand(char *cmd);
|
2013-01-24 00:14:53 +08:00
|
|
|
|
|
|
|
/* client_common.c */
|
|
|
|
|
|
|
|
#define STATE_PROMPT 0
|
|
|
|
#define STATE_CMD_SERVER 1
|
|
|
|
#define STATE_CMD_USER 2
|
|
|
|
|
|
|
|
#define SERVER_READ_BUF_LEN 4096
|
|
|
|
|
|
|
|
int handle_internal_command(char *cmd);
|
|
|
|
void submit_server_command(char *cmd);
|
|
|
|
void server_connect(void);
|
|
|
|
void server_read(void);
|
|
|
|
void server_send(char *cmd);
|