Statistics
| Branch: | Revision:

iof-bird-daemon / client / client.h @ d2c392d4

History | View | Annotate | Download (757 Bytes)

1 ed608150 Martin Mares
/*
2
 *        BIRD Client
3
 *
4 9fac310d Martin Mares
 *        (c) 1999--2000 Martin Mares <mj@ucw.cz>
5 ed608150 Martin Mares
 *
6
 *        Can be freely distributed and used under the terms of the GNU GPL.
7
 */
8 c51f132d Martin Mares
9 8322ecde Tomas Hlavacek
/* client.c callbacks */
10 c51f132d Martin Mares
11
void cleanup(void);
12 fae0396e Martin Mares
void input_start_list(void);
13
void input_stop_list(void);
14 8322ecde Tomas Hlavacek
void server_got_reply(char *x);
15 0223d4ff Martin Mares
16
/* commands.c */
17
18
void cmd_build_tree(void);
19
void cmd_help(char *cmd, int len);
20 fae0396e Martin Mares
int cmd_complete(char *cmd, int len, char *buf, int again);
21 e69e4ed9 Martin Mares
char *cmd_expand(char *cmd);
22 e4549161 Tomas Hlavacek
23 d2c392d4 Ondrej Zajicek
/* common.c */
24 e4549161 Tomas Hlavacek
25
#define STATE_PROMPT           0
26
#define STATE_CMD_SERVER       1
27
#define STATE_CMD_USER         2
28
29
#define SERVER_READ_BUF_LEN 4096
30
31
int handle_internal_command(char *cmd);
32
void submit_server_command(char *cmd);
33
void server_connect(void);
34
void server_read(void);
35
void server_send(char *cmd);