Revision ae80a2de nest/cli.h
nest/cli.h | ||
---|---|---|
40 | 40 |
struct linpool *parser_pool; /* Pool used during parsing */ |
41 | 41 |
byte *ring_buf; /* Ring buffer for asynchronous messages */ |
42 | 42 |
byte *ring_end, *ring_read, *ring_write; /* Pointers to the ring buffer */ |
43 |
unsigned int ring_overflow; /* Counter of ring overflows */
|
|
44 |
unsigned int log_mask; /* Mask of allowed message levels */
|
|
45 |
unsigned int log_threshold; /* When free < log_threshold, store only important messages */
|
|
46 |
unsigned int async_msg_size; /* Total size of async messages queued in tx_buf */
|
|
43 |
uint ring_overflow; /* Counter of ring overflows */
|
|
44 |
uint log_mask; /* Mask of allowed message levels */
|
|
45 |
uint log_threshold; /* When free < log_threshold, store only important messages */
|
|
46 |
uint async_msg_size; /* Total size of async messages queued in tx_buf */
|
|
47 | 47 |
} cli; |
48 | 48 |
|
49 | 49 |
extern pool *cli_pool; |
... | ... | |
55 | 55 |
|
56 | 56 |
void cli_printf(cli *, int, char *, ...); |
57 | 57 |
#define cli_msg(x...) cli_printf(this_cli, x) |
58 |
void cli_set_log_echo(cli *, unsigned int mask, unsigned int size);
|
|
58 |
void cli_set_log_echo(cli *, uint mask, uint size);
|
|
59 | 59 |
|
60 | 60 |
/* Functions provided to sysdep layer */ |
61 | 61 |
|
... | ... | |
64 | 64 |
void cli_free(cli *); |
65 | 65 |
void cli_kick(cli *); |
66 | 66 |
void cli_written(cli *); |
67 |
void cli_echo(unsigned int class, byte *msg);
|
|
67 |
void cli_echo(uint class, byte *msg); |
|
68 | 68 |
|
69 | 69 |
static inline int cli_access_restricted(void) |
70 | 70 |
{ |
Also available in: Unified diff