client.h 758 Bytes
Newer Older
1 2 3
/*
 *	BIRD Client
 *
4
 *	(c) 1999--2000 Martin Mares <mj@ucw.cz>
5 6 7
 *
 *	Can be freely distributed and used under the terms of the GNU GPL.
 */
8 9


10 11 12 13 14
extern int init, busy, interactive;
extern int term_lns, term_cls;

/* birdc.c / birdcl.c */

15 16
void input_start_list(void);
void input_stop_list(void);
17 18 19 20 21 22 23 24 25

void input_init(void);
void input_notify(int prompt);
void input_read(void);

void more_begin(void);
void more_end(void);

void cleanup(void);
26 27 28 29 30

/* commands.c */

void cmd_build_tree(void);
void cmd_help(char *cmd, int len);
31
int cmd_complete(char *cmd, int len, char *buf, int again);
32
char *cmd_expand(char *cmd);
33

34
/* client.c */
35

36
void submit_command(char *cmd_raw);
37 38 39

/* die() with system error messages */
#define DIE(x, y...) die(x ": %s", ##y, strerror(errno))