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-04-23 08:42:35 +08:00
|
|
|
extern int init, busy, interactive;
|
|
|
|
extern int term_lns, term_cls;
|
|
|
|
|
|
|
|
/* birdc.c / birdcl.c */
|
|
|
|
|
2000-02-18 07:37:16 +08:00
|
|
|
void input_start_list(void);
|
|
|
|
void input_stop_list(void);
|
2013-04-23 08:42:35 +08:00
|
|
|
|
|
|
|
void input_init(void);
|
|
|
|
void input_notify(int prompt);
|
|
|
|
void input_read(void);
|
|
|
|
|
|
|
|
void more_begin(void);
|
|
|
|
void more_end(void);
|
|
|
|
|
|
|
|
void cleanup(void);
|
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
|
|
|
|
2013-04-23 08:42:35 +08:00
|
|
|
/* client.c */
|
2013-01-24 00:14:53 +08:00
|
|
|
|
2013-04-23 08:42:35 +08:00
|
|
|
void submit_command(char *cmd_raw);
|
2016-05-13 03:29:04 +08:00
|
|
|
|
|
|
|
/* die() with system error messages */
|
|
|
|
#define DIE(x, y...) die(x ": %s", ##y, strerror(errno))
|