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
|
|
|
|
2017-05-17 15:15:42 +00:00
|
|
|
extern int init, busy, interactive, complete;
|
2013-04-23 00:42:35 +00:00
|
|
|
extern int term_lns, term_cls;
|
|
|
|
|
|
|
|
/* birdc.c / birdcl.c */
|
|
|
|
|
2000-02-17 23:37:16 +00:00
|
|
|
void input_start_list(void);
|
|
|
|
void input_stop_list(void);
|
2013-04-23 00:42:35 +00: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-17 22:00:13 +00:00
|
|
|
|
2017-05-17 15:15:42 +00:00
|
|
|
/* client.c */
|
|
|
|
|
|
|
|
void submit_command(char *cmd_raw);
|
|
|
|
|
2000-02-17 22:00:13 +00:00
|
|
|
/* commands.c */
|
|
|
|
|
|
|
|
void cmd_build_tree(void);
|
2017-05-17 15:15:42 +00:00
|
|
|
void cmd_help(const char *cmd, int len);
|
|
|
|
int cmd_complete(const 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
|
|
|
|
2017-05-17 15:15:42 +00:00
|
|
|
/* complete.c */
|
2013-01-23 16:14:53 +00:00
|
|
|
|
2017-05-17 15:15:42 +00:00
|
|
|
void complete_init(int argc, char **argv);
|
|
|
|
int do_complete(char *cmd);
|
2017-05-18 11:54:56 +00:00
|
|
|
#define COMPLETE_ARGC 3
|
|
|
|
extern const char *comp_now, *comp_last;
|
2016-05-12 19:29:04 +00:00
|
|
|
|
|
|
|
/* die() with system error messages */
|
|
|
|
#define DIE(x, y...) die(x ": %s", ##y, strerror(errno))
|