1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

The CLI I/O functions work as desired.

This commit is contained in:
Martin Mares
1999-10-31 15:43:44 +00:00
parent 7d3aab1c16
commit b9672a845f
5 changed files with 83 additions and 62 deletions

View File

@@ -24,26 +24,32 @@ struct cli_out {
typedef struct cli {
pool *pool;
void *priv; /* Private to sysdep layer */
int inited;
byte rx_buf[CLI_RX_BUF_SIZE];
byte *rx_pos, *rx_aux; /* sysdep */
struct cli_out *tx_buf, *tx_pos, *tx_write;
event *event;
void (*cont)(struct cli *c);
void *rover; /* Private to continuation routine */
int last_reply;
} cli;
extern pool *cli_pool;
/* Functions to be called by command handlers */
void cli_printf(cli *, int, char *, ...);
/* Functions provided to sysdep layer */
cli *cli_new(void *);
void cli_init(void);
void cli_free(cli *);
void cli_kick(cli *);
void cli_written(cli *);
void cli_printf(cli *, int, char *, ...);
/* Function provided by sysdep layer */
/* Functions provided by sysdep layer */
int cli_write(cli *);
void cli_disconnect(cli *);
int cli_get_command(cli *);
#endif