tpl.h | tpl.h | |||
---|---|---|---|---|
skipping to change at line 42 | skipping to change at line 42 | |||
#include <inttypes.h> /* uint32_t */ | #include <inttypes.h> /* uint32_t */ | |||
#endif | #endif | |||
#if defined __cplusplus | #if defined __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#define TPL_API | #define TPL_API | |||
/* bit flags (external) */ | /* bit flags (external) */ | |||
#define TPL_FILE (1 << 0) | #define TPL_FILE (1 << 0) | |||
#define TPL_MEM (1 << 1) | #define TPL_MEM (1 << 1) | |||
#define TPL_FD (1 << 2) | #define TPL_PREALLOCD (1 << 2) | |||
#define TPL_UFREE (1 << 3) | #define TPL_EXCESS_OK (1 << 3) | |||
#define TPL_DATAPEEK (1 << 4) | #define TPL_FD (1 << 4) | |||
#define TPL_UFREE (1 << 5) | ||||
#define TPL_DATAPEEK (1 << 6) | ||||
#define TPL_FXLENS (1 << 7) | ||||
#define TPL_GETSIZE (1 << 8) | ||||
/* do not add flags here without renumbering the internal flags! */ | /* do not add flags here without renumbering the internal flags! */ | |||
/* flags for tpl_gather mode */ | /* flags for tpl_gather mode */ | |||
#define TPL_GATHER_BLOCKING 1 | #define TPL_GATHER_BLOCKING 1 | |||
#define TPL_GATHER_NONBLOCKING 2 | #define TPL_GATHER_NONBLOCKING 2 | |||
#define TPL_GATHER_MEM 3 | #define TPL_GATHER_MEM 3 | |||
/* Hooks for error logging, memory allocation functions and fatal */ | /* Hooks for error logging, memory allocation functions and fatal */ | |||
typedef int (tpl_print_fcn)(const char *fmt, ...); | typedef int (tpl_print_fcn)(const char *fmt, ...); | |||
typedef void *(tpl_malloc_fcn)(size_t sz); | typedef void *(tpl_malloc_fcn)(size_t sz); | |||
End of changes. 1 change blocks. | ||||
5 lines changed or deleted | 9 lines changed or added | |||