iorequest.c File Reference

#include "iorequest_p.h"
#include "i18n_l.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/gui.h>
#include <assert.h>

Go to the source code of this file.

Functions

void GWEN_Io_Request_AddFlags (GWEN_IO_REQUEST *r, uint32_t f)
void GWEN_Io_Request_Attach (GWEN_IO_REQUEST *r)
void GWEN_Io_Request_Finished (GWEN_IO_REQUEST *r, GWEN_IO_REQUEST_STATUS st, int result)
void GWEN_Io_Request_free (GWEN_IO_REQUEST *r)
uint32_t GWEN_Io_Request_GetBufferPos (const GWEN_IO_REQUEST *r)
uint8_t * GWEN_Io_Request_GetBufferPtr (const GWEN_IO_REQUEST *r)
uint32_t GWEN_Io_Request_GetBufferSize (const GWEN_IO_REQUEST *r)
uint32_t GWEN_Io_Request_GetFlags (const GWEN_IO_REQUEST *r)
uint32_t GWEN_Io_Request_GetGuiId (const GWEN_IO_REQUEST *r)
GWEN_IO_LAYERGWEN_Io_Request_GetIncomingLayer (const GWEN_IO_REQUEST *r)
GWEN_IO_LAYERGWEN_Io_Request_GetIoLayer (const GWEN_IO_REQUEST *r)
int GWEN_Io_Request_GetResultCode (const GWEN_IO_REQUEST *r)
GWEN_IO_REQUEST_STATUS GWEN_Io_Request_GetStatus (const GWEN_IO_REQUEST *r)
GWEN_IO_REQUEST_TYPE GWEN_Io_Request_GetType (const GWEN_IO_REQUEST *r)
GWEN_IO_REQUESTGWEN_Io_Request_new (GWEN_IO_REQUEST_TYPE t, uint8_t *pBuffer, uint32_t lBuffer, GWEN_IO_REQUEST_FINISH_FN finishFn, void *user_data, uint32_t guiid)
void GWEN_Io_Request_SetBufferPos (GWEN_IO_REQUEST *r, uint32_t i)
void GWEN_Io_Request_SetFlags (GWEN_IO_REQUEST *r, uint32_t f)
void GWEN_Io_Request_SetGuiId (GWEN_IO_REQUEST *r, uint32_t i)
void GWEN_Io_Request_SetIncomingLayer (GWEN_IO_REQUEST *r, GWEN_IO_LAYER *iol)
void GWEN_Io_Request_SetIoLayer (GWEN_IO_REQUEST *r, GWEN_IO_LAYER *io)
void GWEN_Io_Request_SetResultCode (GWEN_IO_REQUEST *r, int result)
void GWEN_Io_Request_SetStatus (GWEN_IO_REQUEST *r, GWEN_IO_REQUEST_STATUS st)
void GWEN_Io_Request_SubFlags (GWEN_IO_REQUEST *r, uint32_t f)
GWEN_IO_LAYERGWEN_Io_Request_TakeIncomingLayer (GWEN_IO_REQUEST *r)
const char * GWEN_Io_RequestStatus_toString (GWEN_IO_REQUEST_STATUS st)
const char * GWEN_Io_RequestType_toString (GWEN_IO_REQUEST_TYPE t)

Function Documentation

void GWEN_Io_Request_AddFlags ( GWEN_IO_REQUEST r,
uint32_t  f 
)
void GWEN_Io_Request_Attach ( GWEN_IO_REQUEST r  ) 
void GWEN_Io_Request_Finished ( GWEN_IO_REQUEST r,
GWEN_IO_REQUEST_STATUS  st,
int  result 
)
void GWEN_Io_Request_free ( GWEN_IO_REQUEST r  ) 

Definition at line 96 of file iorequest.c.

References GWEN_FREE_OBJECT, GWEN_Io_Layer_free(), GWEN_IO_REQUEST_FLAGS_TAKEOVER, and GWEN_LIST_FINI.

Referenced by GWEN_Io_Layer__WaitForRequest(), GWEN_Io_Layer_ReadPacket(), GWEN_Io_Layer_ReadPacketToBuffer(), GWEN_Io_LayerBuffered_AbortInRequests(), GWEN_Io_LayerBuffered_AbortOutRequests(), GWEN_Io_LayerBuffered_DelRequest(), GWEN_Io_LayerBuffered_ReadLineToBuffer(), GWEN_Io_LayerBuffered_TryFlush(), GWEN_Io_LayerBuffered_WorkOnReadRequest(), GWEN_Io_LayerBuffered_WorkOnWriteRequest(), GWEN_Io_LayerCodec_AbortInRequests(), GWEN_Io_LayerCodec_AbortOutRequests(), GWEN_Io_LayerCodec_AbortRequests(), GWEN_Io_LayerCodec_DelRequest(), GWEN_Io_LayerCodec_EnsureReadOk(), GWEN_Io_LayerCodec_WorkOnOutRequests(), GWEN_Io_LayerCodec_WorkOnReadRequest(), GWEN_Io_LayerCodec_WorkOnWriteRequest(), GWEN_Io_LayerFile_DelRequest(), GWEN_Io_LayerFile_freeData(), GWEN_Io_LayerFile_WorkOnRequests(), GWEN_Io_LayerHttp_AbortInRequests(), GWEN_Io_LayerHttp_AbortOutRequests(), GWEN_Io_LayerHttp_DelRequest(), GWEN_Io_LayerHttp_WorkOnReadRequest1(), GWEN_Io_LayerHttp_WorkOnReadRequest2(), GWEN_Io_LayerHttp_WorkOnWriteRequest1(), GWEN_Io_LayerHttp_WorkOnWriteRequest2(), GWEN_Io_LayerPackets_Abort(), GWEN_Io_LayerPackets_WorkOnReadRequests(), GWEN_Io_LayerPackets_WorkOnWriteRequests(), GWEN_Io_LayerSocket_AbortRequests(), GWEN_Io_LayerSocket_DelRequest(), GWEN_Io_LayerSocket_WorkOnRequests(), GWEN_Io_LayerTls_DelRequest(), GWEN_Io_LayerTls_WorkOnRequests(), GWEN_IpcManager__Work(), and GWEN_IpcMsg_free().

uint32_t GWEN_Io_Request_GetBufferPos ( const GWEN_IO_REQUEST r  ) 
uint8_t* GWEN_Io_Request_GetBufferPtr ( const GWEN_IO_REQUEST r  ) 
uint32_t GWEN_Io_Request_GetBufferSize ( const GWEN_IO_REQUEST r  ) 
uint32_t GWEN_Io_Request_GetFlags ( const GWEN_IO_REQUEST r  ) 
uint32_t GWEN_Io_Request_GetGuiId ( const GWEN_IO_REQUEST r  ) 
GWEN_IO_LAYER* GWEN_Io_Request_GetIncomingLayer ( const GWEN_IO_REQUEST r  ) 

Definition at line 259 of file iorequest.c.

GWEN_IO_LAYER* GWEN_Io_Request_GetIoLayer ( const GWEN_IO_REQUEST r  ) 

Definition at line 214 of file iorequest.c.

int GWEN_Io_Request_GetResultCode ( const GWEN_IO_REQUEST r  ) 
GWEN_IO_REQUEST_STATUS GWEN_Io_Request_GetStatus ( const GWEN_IO_REQUEST r  ) 
GWEN_IO_REQUEST_TYPE GWEN_Io_Request_GetType ( const GWEN_IO_REQUEST r  ) 
GWEN_IO_REQUEST* GWEN_Io_Request_new ( GWEN_IO_REQUEST_TYPE  t,
uint8_t *  pBuffer,
uint32_t  lBuffer,
GWEN_IO_REQUEST_FINISH_FN  finishFn,
void *  user_data,
uint32_t  guiid 
)
void GWEN_Io_Request_SetBufferPos ( GWEN_IO_REQUEST r,
uint32_t  i 
)
void GWEN_Io_Request_SetFlags ( GWEN_IO_REQUEST r,
uint32_t  f 
)
void GWEN_Io_Request_SetGuiId ( GWEN_IO_REQUEST r,
uint32_t  i 
)

Definition at line 205 of file iorequest.c.

Referenced by GWEN_Io_LayerPackets_GetReadRequest().

void GWEN_Io_Request_SetIncomingLayer ( GWEN_IO_REQUEST r,
GWEN_IO_LAYER iol 
)

Definition at line 281 of file iorequest.c.

void GWEN_Io_Request_SetIoLayer ( GWEN_IO_REQUEST r,
GWEN_IO_LAYER io 
)

Definition at line 290 of file iorequest.c.

Referenced by GWEN_Io_Layer_AddRequest(), and GWEN_Io_Layer_DelRequest().

void GWEN_Io_Request_SetResultCode ( GWEN_IO_REQUEST r,
int  result 
)

Definition at line 250 of file iorequest.c.

Referenced by GWEN_Io_Layer_AddRequest(), and GWEN_Io_Request_Finished().

void GWEN_Io_Request_SetStatus ( GWEN_IO_REQUEST r,
GWEN_IO_REQUEST_STATUS  st 
)

Definition at line 232 of file iorequest.c.

Referenced by GWEN_Io_Layer_AddRequest(), and GWEN_Io_Request_Finished().

void GWEN_Io_Request_SubFlags ( GWEN_IO_REQUEST r,
uint32_t  f 
)

Definition at line 151 of file iorequest.c.

Referenced by GWEN_Io_LayerBuffered_WorkOnWriteRequest().

GWEN_IO_LAYER* GWEN_Io_Request_TakeIncomingLayer ( GWEN_IO_REQUEST r  ) 

Definition at line 268 of file iorequest.c.

References NULL.

const char* GWEN_Io_RequestStatus_toString ( GWEN_IO_REQUEST_STATUS  st  ) 
const char* GWEN_Io_RequestType_toString ( GWEN_IO_REQUEST_TYPE  t  ) 

Generated by  doxygen 1.6.2