#include "io_memory_p.h"
#include <gwenhywfar/iolayer_be.h>
#include <gwenhywfar/iorequest_be.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 <unistd.h>
#include <fcntl.h>
Go to the source code of this file.
Functions | |
int | GWEN_Io_LayerMemory_AddRequest (GWEN_IO_LAYER *io, GWEN_IO_REQUEST *r) |
int | GWEN_Io_LayerMemory_DelRequest (GWEN_IO_LAYER *io, GWEN_IO_REQUEST *r) |
GWENHYWFAR_CB void | GWEN_Io_LayerMemory_freeData (void *bp, void *p) |
GWEN_IO_LAYER * | GWEN_Io_LayerMemory_fromString (const uint8_t *p, int size) |
GWEN_BUFFER * | GWEN_Io_LayerMemory_GetBuffer (const GWEN_IO_LAYER *io) |
int | GWEN_Io_LayerMemory_HasWaitingRequests (GWEN_IO_LAYER *io) |
GWEN_IO_LAYER * | GWEN_Io_LayerMemory_new (GWEN_BUFFER *buffer) |
GWEN_IO_LAYER_WORKRESULT | GWEN_Io_LayerMemory_WorkOnRequests (GWEN_IO_LAYER *io) |
int GWEN_Io_LayerMemory_AddRequest | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_REQUEST * | r | |||
) |
Definition at line 126 of file io_memory.c.
References DBG_INFO, GWEN_Buffer_AppendBytes(), GWEN_Buffer_GetBytesLeft(), GWEN_Buffer_GetPosPointer(), GWEN_Buffer_IncrementPos(), GWEN_ERROR_EOF, GWEN_ERROR_NOT_OPEN, GWEN_ERROR_NOT_SUPPORTED, GWEN_INHERIT_GETDATA, GWEN_Io_Layer_GetStatus(), GWEN_Io_Layer_SetStatus(), GWEN_Io_Layer_StatusConnected, GWEN_Io_Layer_StatusDisconnected, GWEN_Io_Request_Finished(), GWEN_IO_REQUEST_FLAGS_READALL, GWEN_Io_Request_GetBufferPos(), GWEN_Io_Request_GetBufferPtr(), GWEN_Io_Request_GetBufferSize(), GWEN_Io_Request_GetFlags(), GWEN_Io_Request_GetType(), GWEN_Io_Request_SetBufferPos(), GWEN_Io_Request_StatusFinished, GWEN_Io_Request_TypeDisconnect, GWEN_Io_Request_TypeRead, GWEN_Io_Request_TypeWrite, and GWEN_LOGDOMAIN.
Referenced by GWEN_Io_LayerMemory_new().
int GWEN_Io_LayerMemory_DelRequest | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_REQUEST * | r | |||
) |
Definition at line 230 of file io_memory.c.
References GWEN_ERROR_INVALID.
Referenced by GWEN_Io_LayerMemory_new().
GWENHYWFAR_CB void GWEN_Io_LayerMemory_freeData | ( | void * | bp, | |
void * | p | |||
) |
Definition at line 83 of file io_memory.c.
References GWEN_Buffer_free(), GWEN_FREE_OBJECT, GWEN_IO_LAYER_FLAGS_TAKEOVER, and GWEN_Io_Layer_GetFlags().
Referenced by GWEN_Io_LayerMemory_new().
int GWEN_Io_LayerMemory_HasWaitingRequests | ( | GWEN_IO_LAYER * | io | ) |
GWEN_IO_LAYER_WORKRESULT GWEN_Io_LayerMemory_WorkOnRequests | ( | GWEN_IO_LAYER * | io | ) |
Definition at line 114 of file io_memory.c.
References GWEN_INHERIT_GETDATA, and GWEN_Io_Layer_WorkResultBlocking.
Referenced by GWEN_Io_LayerMemory_new().