gwenhywfar 5.12.0
syncio_buffered.c File Reference
#include "syncio_buffered_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>
Include dependency graph for syncio_buffered.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG

Functions

int GWENHYWFAR_CB GWEN_SyncIo_Buffered_Connect (GWEN_SYNCIO *sio)
int GWENHYWFAR_CB GWEN_SyncIo_Buffered_Disconnect (GWEN_SYNCIO *sio)
void GWENHYWFAR_CB GWEN_SyncIo_Buffered_FreeData (GWEN_UNUSED void *bp, void *p)
GWEN_SYNCIOGWEN_SyncIo_Buffered_new (GWEN_SYNCIO *baseIo)
int GWENHYWFAR_CB GWEN_SyncIo_Buffered_Read (GWEN_SYNCIO *sio, uint8_t *buffer, uint32_t size)
int GWEN_SyncIo_Buffered_ReadLinesToStringList (GWEN_SYNCIO *sio, int maxLines, GWEN_STRINGLIST *sl)
int GWEN_SyncIo_Buffered_ReadLineToBuffer (GWEN_SYNCIO *sio, GWEN_BUFFER *tbuf)
int GWENHYWFAR_CB GWEN_SyncIo_Buffered_Write (GWEN_SYNCIO *sio, const uint8_t *buffer, uint32_t size)

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 29 of file syncio_buffered.c.

Function Documentation

◆ GWEN_SyncIo_Buffered_Connect()

int GWENHYWFAR_CB GWEN_SyncIo_Buffered_Connect ( GWEN_SYNCIO * sio)

Definition at line 83 of file syncio_buffered.c.

References DBG_INFO, GWEN_LOGDOMAIN, GWEN_SyncIo_Connect(), GWEN_SyncIo_GetBaseIo(), and GWENHYWFAR_CB.

Referenced by GWEN_SyncIo_Buffered_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_SyncIo_Buffered_Disconnect()

int GWENHYWFAR_CB GWEN_SyncIo_Buffered_Disconnect ( GWEN_SYNCIO * sio)

Definition at line 106 of file syncio_buffered.c.

References DBG_INFO, GWEN_LOGDOMAIN, GWEN_SyncIo_Disconnect(), GWEN_SyncIo_GetBaseIo(), and GWENHYWFAR_CB.

Referenced by GWEN_SyncIo_Buffered_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_SyncIo_Buffered_FreeData()

void GWENHYWFAR_CB GWEN_SyncIo_Buffered_FreeData ( GWEN_UNUSED void * bp,
void * p )

Definition at line 72 of file syncio_buffered.c.

References GWEN_FREE_OBJECT, GWEN_RingBuffer_free(), GWEN_UNUSED, and GWENHYWFAR_CB.

Referenced by GWEN_SyncIo_Buffered_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_SyncIo_Buffered_new()

◆ GWEN_SyncIo_Buffered_Read()

◆ GWEN_SyncIo_Buffered_ReadLinesToStringList()

int GWEN_SyncIo_Buffered_ReadLinesToStringList ( GWEN_SYNCIO * sio,
int maxLines,
GWEN_STRINGLIST * sl )

◆ GWEN_SyncIo_Buffered_ReadLineToBuffer()

int GWEN_SyncIo_Buffered_ReadLineToBuffer ( GWEN_SYNCIO * sio,
GWEN_BUFFER * tbuf )

◆ GWEN_SyncIo_Buffered_Write()

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