summaryrefslogtreecommitdiff
path: root/ot_iovec.h
diff options
context:
space:
mode:
authorerdgeist <>2007-11-23 18:12:50 +0000
committererdgeist <>2007-11-23 18:12:50 +0000
commit616302c13962e6b9be9b0ca552ded9cd37e85597 (patch)
tree2042454ee60444ebf267c0706e97a18c03a754c4 /ot_iovec.h
parentb1c8723609578b05b999f9cb58b9c90c4787f9d6 (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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ot_iovec.h b/ot_iovec.h
index a2d329d..d52a167 100644
--- a/ot_iovec.h
+++ b/ot_iovec.h
@@ -7,8 +7,11 @@
7#include <sys/uio.h> 7#include <sys/uio.h>
8 8
9void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ); 9void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc );
10void iovec_fixlast( int *iovec_entries, struct iovec **iovector, size_t new_alloc ); 10void iovec_fixlast( int *iovec_entries, struct iovec **iovector, void *last_ptr );
11void iovec_free( int *iovec_entries, struct iovec **iovector ); 11void iovec_free( int *iovec_entries, struct iovec **iovector );
12
12size_t iovec_length( int *iovec_entries, struct iovec **iovector ); 13size_t iovec_length( int *iovec_entries, struct iovec **iovector );
13 14
15void *iovec_fix_increase_or_free( int *iovec_entries, struct iovec **iovector, void *last_ptr, size_t new_alloc );
16
14#endif 17#endif