Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (757 Bytes)

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

    
9
/* client.c callbacks */
10

    
11
void cleanup(void);
12
void input_start_list(void);
13
void input_stop_list(void);
14
void server_got_reply(char *x);
15

    
16
/* commands.c */
17

    
18
void cmd_build_tree(void);
19
void cmd_help(char *cmd, int len);
20
int cmd_complete(char *cmd, int len, char *buf, int again);
21
char *cmd_expand(char *cmd);
22

    
23
/* common.c */
24

    
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);