39 # define I18N(m) dgettext("gwenhywfar", m)
54 #include "gwenhywfar/debug.h"
55 #include "gwenhywfar/misc.h"
57 #include "gwenhywfar/inetsocket.h"
58 #include "gwenhywfar/inetaddr.h"
59 #include "gwenhywfar/libloader.h"
82 snprintf(buffer, bsize-1,
"Error %d [%s]", c, s?s:
"none");
100 s=
I18N(
"Generic error");
106 s=
I18N(
"Not available");
109 s=
I18N(
"Bad socket type");
118 s=
I18N(
"In Progress");
121 s=
I18N(
"Startup error");
124 s=
I18N(
"Interrupted system call");
127 s=
I18N(
"Not supported");
130 s=
I18N(
"Broken pipe");
133 s=
I18N(
"Memory full");
136 s=
I18N(
"Bad address");
139 s=
I18N(
"Buffer overflow");
142 s=
I18N(
"Host not found");
145 s=
I18N(
"No address");
148 s=
I18N(
"No recovery");
154 s=
I18N(
"Unknown DNS error");
157 s=
I18N(
"Bad address family");
160 s=
I18N(
"Could not load");
163 s=
I18N(
"Could not resolve a symbol");
169 s=
I18N(
"Could not read");
172 s=
I18N(
"Could not write");
175 s=
I18N(
"Could not close");
181 s=
I18N(
"Partial data");
187 s=
I18N(
"Already registered");
190 s=
I18N(
"Not registered");
196 s=
I18N(
"Could not encrypt");
199 s=
I18N(
"Could not decrypt");
202 s=
I18N(
"Could not sign");
205 s=
I18N(
"Could not verify");
208 s=
I18N(
"Generic SSL error");
int GWEN_Error_ToString(int c, char *buffer, int bsize)
#define GWEN_ERROR_BAD_ADDRESS_FAMILY
#define GWEN_ERROR_HOST_NOT_FOUND
#define GWEN_ERROR_BAD_ADDRESS
#define GWEN_ERROR_UNKNOWN_DNS_ERROR
#define DBG_VERBOUS(dbg_logger, format, args...)
#define GWEN_ERROR_NOT_REGISTERED
#define GWEN_ERROR_BROKEN_PIPE
#define GWEN_ERROR_BUFFER_OVERFLOW
#define GWEN_ERROR_PARTIAL
#define GWEN_ERROR_INTERRUPTED
#define GWEN_ERROR_DECRYPT
#define GWEN_ERROR_IN_PROGRESS
#define GWEN_ERROR_STARTUP
#define GWEN_ERROR_ABORTED
int GWEN_Error_ModuleInit(void)
#define GWEN_ERROR_TRY_AGAIN
#define GWEN_ERROR_GENERIC
int GWEN_Error_ModuleFini(void)
#define GWEN_ERROR_COULD_NOT_RESOLVE
#define GWEN_ERROR_BAD_SOCKETTYPE
#define GWEN_ERROR_NO_ADDRESS
#define GWEN_ERROR_NOT_OPEN
#define GWEN_ERROR_NOT_SUPPORTED
#define GWEN_ERROR_NOT_FOUND
#define GWEN_ERROR_VERIFY
#define GWEN_ERROR_TIMEOUT
#define GWEN_ERROR_NO_RECOVERY
#define GWEN_ERROR_NO_DATA
#define GWEN_ERROR_NOT_AVAILABLE
#define GWEN_ERROR_ENCRYPT
#define GWEN_ERROR_BAD_SIZE
#define GWEN_ERROR_COULD_NOT_LOAD
#define GWEN_ERROR_ALREADY_REGISTERED
#define GWEN_ERROR_MEMORY_FULL
const char * GWEN_Error_SimpleToString(int i)
Returns a (very) short string describing the given GWEN error code, or "Unknown error" for unknown co...