photon  1.1
Data Structures | Macros | Typedefs | Functions
photon_buffer_internal.h File Reference
#include <stdint.h>
#include "config.h"
#include "photon.h"

Go to the source code of this file.

Data Structures

struct  photon_acct_t
 
struct  photon_buffer_internal
 
struct  photonBufferInterface
 
struct  photon_buffer_handle
 

Macros

#define BUFFER_IFACES_MAX   16
 
#define BUFFER_FLAG_NIL   0x0000
 
#define BUFFER_FLAG_NOTIFY   (1<<1)
 

Typedefs

typedef struct photon_buffer_internal_t * photonBI
 
typedef struct photon_buffer_handle_t * photonBufferHandle
 

Functions

int photon_buffer_init (photonBufferInterface bi)
 
photonBufferHandle photon_buffer_create (void *addr, uint64_t size, int flags)
 
void photon_buffer_free (photonBufferHandle buf)
 
int photon_buffer_register (photonBufferHandle buf, int flags)
 
int photon_buffer_unregister (photonBufferHandle buf)
 

Macro Definition Documentation

◆ BUFFER_FLAG_NIL

#define BUFFER_FLAG_NIL   0x0000

Definition at line 27 of file photon_buffer_internal.h.

◆ BUFFER_FLAG_NOTIFY

#define BUFFER_FLAG_NOTIFY   (1<<1)

Definition at line 28 of file photon_buffer_internal.h.

◆ BUFFER_IFACES_MAX

#define BUFFER_IFACES_MAX   16

Definition at line 25 of file photon_buffer_internal.h.

Typedef Documentation

◆ photonBI

typedef struct photon_buffer_internal_t* photonBI

Definition at line 58 of file photon_buffer_internal.h.

◆ photonBufferHandle

typedef struct photon_buffer_handle_t* photonBufferHandle

Definition at line 60 of file photon_buffer_internal.h.

Function Documentation

◆ photon_buffer_create()

photonBufferHandle photon_buffer_create ( void *  addr,
uint64_t  size,
int  flags 
)

Definition at line 66 of file photon_buffer_internal.c.

◆ photon_buffer_free()

void photon_buffer_free ( photonBufferHandle  buf)

Definition at line 85 of file photon_buffer_internal.c.

◆ photon_buffer_init()

int photon_buffer_init ( photonBufferInterface  bi)

Definition at line 25 of file photon_buffer_internal.c.

◆ photon_buffer_register()

int photon_buffer_register ( photonBufferHandle  buf,
int  flags 
)

Definition at line 99 of file photon_buffer_internal.c.

◆ photon_buffer_unregister()

int photon_buffer_unregister ( photonBufferHandle  buf)

Definition at line 119 of file photon_buffer_internal.c.