1999-10-29 09:44:44 +00:00
|
|
|
/*
|
|
|
|
* BIRD Client
|
|
|
|
*
|
2000-01-19 15:07:00 +00:00
|
|
|
* (c) 1999--2000 Martin Mares <mj@ucw.cz>
|
1999-10-29 09:44:44 +00:00
|
|
|
*
|
|
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
|
|
*/
|
2000-02-15 12:18:37 +00:00
|
|
|
|
2013-02-24 22:47:22 +00:00
|
|
|
/* client.c callbacks */
|
2000-02-15 12:18:37 +00:00
|
|
|
|
|
|
|
void cleanup(void);
|
2000-02-17 23:37:16 +00:00
|
|
|
void input_start_list(void);
|
|
|
|
void input_stop_list(void);
|
2013-02-24 22:47:22 +00:00
|
|
|
void server_got_reply(char *x);
|
2000-02-17 22:00:13 +00:00
|
|
|
|
|
|
|
/* commands.c */
|
|
|
|
|
|
|
|
void cmd_build_tree(void);
|
|
|
|
void cmd_help(char *cmd, int len);
|
2000-02-17 23:37:16 +00:00
|
|
|
int cmd_complete(char *cmd, int len, char *buf, int again);
|
2000-02-27 22:00:19 +00:00
|
|
|
char *cmd_expand(char *cmd);
|
2013-01-23 16:14:53 +00: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);
|