Revision b9672a84 nest/cli.h

View differences:

nest/cli.h
24 24
typedef struct cli {
25 25
  pool *pool;
26 26
  void *priv;				/* Private to sysdep layer */
27
  int inited;
28 27
  byte rx_buf[CLI_RX_BUF_SIZE];
29 28
  byte *rx_pos, *rx_aux;		/* sysdep */
30 29
  struct cli_out *tx_buf, *tx_pos, *tx_write;
31 30
  event *event;
31
  void (*cont)(struct cli *c);
32
  void *rover;				/* Private to continuation routine */
33
  int last_reply;
32 34
} cli;
33 35

  
34 36
extern pool *cli_pool;
35 37

  
38
/* Functions to be called by command handlers */
39

  
40
void cli_printf(cli *, int, char *, ...);
41

  
42
/* Functions provided to sysdep layer */
43

  
36 44
cli *cli_new(void *);
37 45
void cli_init(void);
38 46
void cli_free(cli *);
39 47
void cli_kick(cli *);
40 48
void cli_written(cli *);
41
void cli_printf(cli *, int, char *, ...);
42 49

  
43
/* Function provided by sysdep layer */
50
/* Functions provided by sysdep layer */
44 51

  
45 52
int cli_write(cli *);
46
void cli_disconnect(cli *);
47 53
int cli_get_command(cli *);
48 54

  
49 55
#endif

Also available in: Unified diff