summaryrefslogtreecommitdiff
path: root/ot_iovec.h
blob: d7105bdf0567bdfc2f22c7bb11de8dfeb66f99c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
   It is considered beerware. Prost. Skol. Cheers or whatever. */

#ifndef __OT_IOVEC_H__
#define __OT_IOVEC_H__

void  *iovec_increase( 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