Revision a5e9f3d2 client/client.h

View differences:

client/client.h
6 6
 *	Can be freely distributed and used under the terms of the GNU GPL.
7 7
 */
8 8

  
9
/* client.c callbacks */
10 9

  
11
void cleanup(void);
10
extern int init, busy, interactive;
11
extern int term_lns, term_cls;
12

  
13
/* birdc.c / birdcl.c */
14

  
12 15
void input_start_list(void);
13 16
void input_stop_list(void);
14
void server_got_reply(char *x);
17

  
18
void input_init(void);
19
void input_notify(int prompt);
20
void input_read(void);
21

  
22
void more_begin(void);
23
void more_end(void);
24

  
25
void cleanup(void);
15 26

  
16 27
/* commands.c */
17 28

  
......
20 31
int cmd_complete(char *cmd, int len, char *buf, int again);
21 32
char *cmd_expand(char *cmd);
22 33

  
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
34
/* client.c */
30 35

  
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);
36
void submit_command(char *cmd_raw);

Also available in: Unified diff