diff options
Diffstat (limited to 'src/buffio.h')
-rw-r--r-- | src/buffio.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/buffio.h b/src/buffio.h index 461bff9..a340385 100644 --- a/src/buffio.h +++ b/src/buffio.h @@ -5,17 +5,18 @@ struct buffio { int fd; uint8_t *input_buf; - size_t input_index, input_length; + size_t input_max_length, input_index, input_length; uint8_t *output_buf; - size_t output_index, output_length; + size_t output_max_length, output_index, output_length; int b_read_cb, b_write_cb; void *user; + void (*eof_cb) (struct buffio *b, void *user); - void (*output_cb) (struct buffio *b, void *user); - void (*input_cb) (struct buffio *b, void *user); + void (*output_empty_cb) (struct buffio *b, void *user); + void (*input_ready_cb) (struct buffio *b, void *user); }; struct buffio buffio_new(int fd); |