Defines | Functions

syncio_memory.c File Reference

#include "syncio_memory_p.h"
#include "i18n_l.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/gui.h>
#include <assert.h>
#include <errno.h>
#include <string.h>

Go to the source code of this file.

Defines

#define DISABLE_DEBUGLOG

Functions

void GWENHYWFAR_CB GWEN_SyncIo_Memory_FreeData (void *bp, void *p)
GWEN_SYNCIOGWEN_SyncIo_Memory_fromBuffer (const uint8_t *buffer, int size)
GWEN_BUFFERGWEN_SyncIo_Memory_GetBuffer (const GWEN_SYNCIO *sio)
GWEN_SYNCIOGWEN_SyncIo_Memory_new (GWEN_BUFFER *buffer, int take)
int GWENHYWFAR_CB GWEN_SyncIo_Memory_Read (GWEN_SYNCIO *sio, uint8_t *buffer, uint32_t size)
GWEN_BUFFERGWEN_SyncIo_Memory_TakeBuffer (const GWEN_SYNCIO *sio)
int GWENHYWFAR_CB GWEN_SyncIo_Memory_Write (GWEN_SYNCIO *sio, const uint8_t *buffer, uint32_t size)

Define Documentation

#define DISABLE_DEBUGLOG

Definition at line 29 of file syncio_memory.c.


Function Documentation

void GWENHYWFAR_CB GWEN_SyncIo_Memory_FreeData ( void *  bp,
void *  p 
)

Definition at line 108 of file syncio_memory.c.

References GWEN_Buffer_free(), and GWEN_FREE_OBJECT.

Referenced by GWEN_SyncIo_Memory_fromBuffer(), and GWEN_SyncIo_Memory_new().

GWEN_SYNCIO* GWEN_SyncIo_Memory_fromBuffer ( const uint8_t *  buffer,
int  size 
)
GWEN_BUFFER* GWEN_SyncIo_Memory_GetBuffer ( const GWEN_SYNCIO sio  ) 

Definition at line 119 of file syncio_memory.c.

References GWEN_INHERIT_GETDATA.

GWEN_SYNCIO* GWEN_SyncIo_Memory_new ( GWEN_BUFFER buffer,
int  take 
)
int GWENHYWFAR_CB GWEN_SyncIo_Memory_Read ( GWEN_SYNCIO sio,
uint8_t *  buffer,
uint32_t  size 
)
GWEN_BUFFER* GWEN_SyncIo_Memory_TakeBuffer ( const GWEN_SYNCIO sio  ) 

Definition at line 131 of file syncio_memory.c.

References DBG_ERROR, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and NULL.

int GWENHYWFAR_CB GWEN_SyncIo_Memory_Write ( GWEN_SYNCIO sio,
const uint8_t *  buffer,
uint32_t  size 
)