gwenhywfar 5.10.1
Macros | Functions
error.c File Reference
#include "error_p.h"
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "gwenhywfar/debug.h"
#include "gwenhywfar/misc.h"
#include "gwenhywfar/inetsocket.h"
#include "gwenhywfar/inetaddr.h"
#include "gwenhywfar/libloader.h"
Include dependency graph for error.c:

Go to the source code of this file.

Macros

#define I18N(m)   m
 
#define I18S(m)   m
 

Functions

int GWEN_Error_ModuleFini (void)
 
int GWEN_Error_ModuleInit (void)
 
const char * GWEN_Error_SimpleToString (int i)
 Returns a (very) short string describing the given GWEN error code, or "Unknown error" for unknown codes. More...
 
int GWEN_Error_ToString (int c, char *buffer, int bsize)
 

Macro Definition Documentation

◆ I18N

#define I18N (   m)    m

Definition at line 42 of file error.c.

◆ I18S

#define I18S (   m)    m

Definition at line 43 of file error.c.

Function Documentation

◆ GWEN_Error_ModuleFini()

int GWEN_Error_ModuleFini ( void  )

Deinitializes this module.

Definition at line 71 of file error.c.

Referenced by GWEN_Fini().

Here is the caller graph for this function:

◆ GWEN_Error_ModuleInit()

int GWEN_Error_ModuleInit ( void  )

Initializes this module.

Definition at line 63 of file error.c.

References DBG_VERBOUS, and GWEN_LOGDOMAIN.

Referenced by GWEN_Init().

Here is the caller graph for this function:

◆ GWEN_Error_SimpleToString()

const char * GWEN_Error_SimpleToString ( int  i)

◆ GWEN_Error_ToString()

int GWEN_Error_ToString ( int  c,
char *  buffer,
int  bsize 
)

Dumps the string corresponding to the given erro code.

Returns
1 detailed error message created, 0 otherwise
Parameters
cerror code
bufferpointer to a buffer to receive the message
bsizesize of that buffer in bytes

Definition at line 78 of file error.c.

References GWEN_Error_SimpleToString().

Here is the call graph for this function: