summaryrefslogtreecommitdiffstats
path: root/src/buffio.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-12-18 22:22:24 +0000
committerLennart Poettering <lennart@poettering.net>2003-12-18 22:22:24 +0000
commit51c0330ea15a28d2d7c83a746458dfd5cf1770bc (patch)
tree886bab27438137f7083990d7c3ff8eae1cb79168 /src/buffio.h
parentc79399f437e9268203768ab65b32c20f29093b27 (diff)
further work
git-svn-id: file:///home/lennart/svn/public/ivam2/trunk@8 dbf6933d-3bce-0310-9bcc-ed052ba35b35
Diffstat (limited to 'src/buffio.h')
-rw-r--r--src/buffio.h9
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);