From 616302c13962e6b9be9b0ca552ded9cd37e85597 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 23 Nov 2007 18:12:50 +0000 Subject: make ot_iovecs fix last interface more sane, also add a convenience function that handles the task of fixing, allocating and - if necessary - freeing --- ot_iovec.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ot_iovec.h') 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 @@ #include void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ); -void iovec_fixlast( int *iovec_entries, struct iovec **iovector, size_t new_alloc ); +void iovec_fixlast( int *iovec_entries, struct iovec **iovector, void *last_ptr ); void iovec_free( int *iovec_entries, struct iovec **iovector ); + size_t iovec_length( int *iovec_entries, struct iovec **iovector ); +void *iovec_fix_increase_or_free( int *iovec_entries, struct iovec **iovector, void *last_ptr, size_t new_alloc ); + #endif -- cgit v1.2.3