mirror of
git://jb55.com/damus
synced 2024-09-30 00:40:45 +00:00
32 lines
575 B
C
32 lines
575 B
C
|
#ifndef FLATCC_IOV_H
|
||
|
#define FLATCC_IOV_H
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
/*
|
||
|
* The emitter receives one, or a few buffers at a time via
|
||
|
* this type. <sys/iov.h> compatible iovec structure used for
|
||
|
* allocation and emitter interface.
|
||
|
*/
|
||
|
typedef struct flatcc_iovec flatcc_iovec_t;
|
||
|
struct flatcc_iovec {
|
||
|
void *iov_base;
|
||
|
size_t iov_len;
|
||
|
};
|
||
|
|
||
|
/*
|
||
|
* The largest iovec vector the builder will issue. It will
|
||
|
* always be a relatively small number.
|
||
|
*/
|
||
|
#define FLATCC_IOV_COUNT_MAX 8
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* FLATCC_IOV_H */
|