flatcc_iov.h (575B)
1 #ifndef FLATCC_IOV_H 2 #define FLATCC_IOV_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #include <stdlib.h> 9 10 /* 11 * The emitter receives one, or a few buffers at a time via 12 * this type. <sys/iov.h> compatible iovec structure used for 13 * allocation and emitter interface. 14 */ 15 typedef struct flatcc_iovec flatcc_iovec_t; 16 struct flatcc_iovec { 17 void *iov_base; 18 size_t iov_len; 19 }; 20 21 /* 22 * The largest iovec vector the builder will issue. It will 23 * always be a relatively small number. 24 */ 25 #define FLATCC_IOV_COUNT_MAX 8 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif /* FLATCC_IOV_H */