diff options
author | erdgeist <> | 2007-11-23 18:12:50 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-23 18:12:50 +0000 |
commit | 616302c13962e6b9be9b0ca552ded9cd37e85597 (patch) | |
tree | 2042454ee60444ebf267c0706e97a18c03a754c4 /ot_iovec.h | |
parent | b1c8723609578b05b999f9cb58b9c90c4787f9d6 (diff) |
make ot_iovecs fix last interface more sane, also add a convenience function that handles the task of fixing, allocating and - if necessary - freeing
Diffstat (limited to 'ot_iovec.h')
-rw-r--r-- | ot_iovec.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -7,8 +7,11 @@ | |||
7 | #include <sys/uio.h> | 7 | #include <sys/uio.h> |
8 | 8 | ||
9 | void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ); | 9 | void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ); |
10 | void iovec_fixlast( int *iovec_entries, struct iovec **iovector, size_t new_alloc ); | 10 | void iovec_fixlast( int *iovec_entries, struct iovec **iovector, void *last_ptr ); |
11 | void iovec_free( int *iovec_entries, struct iovec **iovector ); | 11 | void iovec_free( int *iovec_entries, struct iovec **iovector ); |
12 | |||
12 | size_t iovec_length( int *iovec_entries, struct iovec **iovector ); | 13 | size_t iovec_length( int *iovec_entries, struct iovec **iovector ); |
13 | 14 | ||
15 | void *iovec_fix_increase_or_free( int *iovec_entries, struct iovec **iovector, void *last_ptr, size_t new_alloc ); | ||
16 | |||
14 | #endif | 17 | #endif |