#include <gwenhywfar/iolayer.h>
#include <gwenhywfar/ringbuffer.h>
Go to the source code of this file.
typedef int(* GWEN_IO_LAYER_CODE_DECODE_FN)(GWEN_IO_LAYER *io, uint8_t *pBuffer, uint32_t lBuffer) |
Definition at line 21 of file io_codec_be.h.
typedef int(* GWEN_IO_LAYER_CODE_ENCODE_FN)(GWEN_IO_LAYER *io, const uint8_t *pBuffer, uint32_t lBuffer) |
Definition at line 17 of file io_codec_be.h.
GWENHYWFAR_API void GWEN_Io_LayerCodec_AbortRequests | ( | GWEN_IO_LAYER * | io, | |
int | errorCode | |||
) |
Definition at line 663 of file io_codec.c.
References GWEN_INHERIT_GETDATA, GWEN_Io_Layer_DelRequest(), GWEN_Io_Layer_GetBaseLayer(), GWEN_Io_Request_Finished(), GWEN_Io_Request_free(), GWEN_Io_Request_StatusFinished, and NULL.
Referenced by GWEN_Io_LayerTls_DelRequest().
GWENHYWFAR_API int GWEN_Io_LayerCodec_CheckWriteOut | ( | const GWEN_IO_LAYER * | io | ) |
Definition at line 321 of file io_codec.c.
References GWEN_ERROR_TRY_AGAIN, GWEN_INHERIT_GETDATA, GWEN_RingBuffer_GetMaxUnsegmentedWrite(), GWEN_RingBuffer_new(), and NULL.
Referenced by GWEN_Io_LayerTls_Push().
GWENHYWFAR_API int GWEN_Io_LayerCodec_EnsureReadOk | ( | GWEN_IO_LAYER * | io | ) |
Definition at line 371 of file io_codec.c.
References DBG_DEBUG, DBG_INFO, GWEN_ERROR_IN_PROGRESS, GWEN_ERROR_TRY_AGAIN, GWEN_INHERIT_GETDATA, GWEN_Io_Layer_AddRequest(), GWEN_Io_Layer_GetBaseLayer(), GWEN_Io_Request_free(), GWEN_Io_Request_new(), GWEN_Io_Request_TypeRead, GWEN_LOGDOMAIN, GWEN_RingBuffer_GetMaxUnsegmentedRead(), GWEN_RingBuffer_GetMaxUnsegmentedWrite(), GWEN_RingBuffer_GetWritePointer(), GWEN_RingBuffer_new(), and NULL.
Referenced by GWEN_Io_LayerTls_Pull().
GWENHYWFAR_API uint32_t GWEN_Io_LayerCodec_GetCurrentGuiId | ( | const GWEN_IO_LAYER * | io | ) |
Definition at line 79 of file io_codec.c.
References GWEN_INHERIT_GETDATA.
GWENHYWFAR_API GWEN_RINGBUFFER* GWEN_Io_LayerCodec_GetReadBuffer | ( | const GWEN_IO_LAYER * | io | ) |
Definition at line 347 of file io_codec.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Io_LayerTls_Pull().
GWENHYWFAR_API GWEN_RINGBUFFER* GWEN_Io_LayerCodec_GetWriteBuffer | ( | const GWEN_IO_LAYER * | io | ) |
Definition at line 359 of file io_codec.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Io_LayerTls_Push().
GWENHYWFAR_API GWEN_IO_LAYER* GWEN_Io_LayerCodec_new | ( | const char * | typeName, | |
GWEN_IO_LAYER * | baseLayer | |||
) |
Definition at line 38 of file io_codec.c.
References GWEN_INHERIT_SETDATA, GWEN_Io_Layer_new(), GWEN_Io_Layer_SetAddRequestFn(), GWEN_Io_Layer_SetDelRequestFn(), GWEN_Io_Layer_SetHasWaitingRequestsFn(), GWEN_Io_Layer_SetWorkOnRequestsFn(), GWEN_Io_LayerCodec_AddRequest(), GWEN_Io_LayerCodec_DelRequest(), GWEN_Io_LayerCodec_freeData(), GWEN_Io_LayerCodec_HasWaitingRequests(), GWEN_Io_LayerCodec_WorkOnRequests(), and GWEN_NEW_OBJECT.
Referenced by GWEN_Io_LayerTls_new().
GWENHYWFAR_API void GWEN_Io_LayerCodec_Reset | ( | GWEN_IO_LAYER * | io | ) |
Definition at line 709 of file io_codec.c.
References GWEN_ERROR_ABORTED, GWEN_INHERIT_GETDATA, GWEN_Io_LayerCodec_AbortInRequests(), GWEN_Io_LayerCodec_AbortOutRequests(), GWEN_RingBuffer_free(), and NULL.
Referenced by GWEN_Io_LayerTls_AddRequest(), and GWEN_Io_LayerTls_WorkOnRequests().
GWENHYWFAR_API void GWEN_Io_LayerCodec_SetCurrentGuiId | ( | GWEN_IO_LAYER * | io, | |
uint32_t | guiid | |||
) |
Definition at line 91 of file io_codec.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Io_LayerTls_WorkOnRequests().
GWENHYWFAR_API GWEN_IO_LAYER_CODE_DECODE_FN GWEN_Io_LayerCodec_SetDecodeFn | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER_CODE_DECODE_FN | f | |||
) |
Definition at line 748 of file io_codec.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Io_LayerTls_new().
GWENHYWFAR_API GWEN_IO_LAYER_CODE_ENCODE_FN GWEN_Io_LayerCodec_SetEncodeFn | ( | GWEN_IO_LAYER * | io, | |
GWEN_IO_LAYER_CODE_ENCODE_FN | f | |||
) |
Definition at line 731 of file io_codec.c.
References GWEN_INHERIT_GETDATA.
Referenced by GWEN_Io_LayerTls_new().