14 #ifndef PHOTON_BUFFER_INTERNAL_H 15 #define PHOTON_BUFFER_INTERNAL_H 25 #define BUFFER_IFACES_MAX 16 27 #define BUFFER_FLAG_NIL 0x0000 28 #define BUFFER_FLAG_NOTIFY (1<<1) 36 typedef struct photon_buffer_internal_t {
50 typedef struct photon_buffer_handle_t {
51 struct photon_buffer_internal_t bint;
58 typedef struct photon_buffer_internal_t *
photonBI;
Convenience pointer type for the buffer structure.
photonBufferHandle photon_buffer_create(void *addr, uint64_t size, int flags)
struct photon_buffer_handle_t * photonBufferHandle
struct photon_buffer_interface_t ** ifaces
int photon_buffer_register(photonBufferHandle buf, int flags)
int photon_buffer_init(photonBufferInterface bi)
Constants and macros for interacting with the library. Only this header is needed to use the Photon A...
int photon_buffer_unregister(photonBufferHandle buf)
void photon_buffer_free(photonBufferHandle buf)
struct photon_buffer_internal_t * photonBI