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" 85 snprintf(buffer, bsize-1,
"Error %d [%s]", c, s?s:
"none");
104 s=
I18N(
"Generic error");
110 s=
I18N(
"Not available");
113 s=
I18N(
"Bad socket type");
122 s=
I18N(
"In Progress");
125 s=
I18N(
"Startup error");
128 s=
I18N(
"Interrupted system call");
131 s=
I18N(
"Not supported");
134 s=
I18N(
"Broken pipe");
137 s=
I18N(
"Memory full");
140 s=
I18N(
"Bad address");
143 s=
I18N(
"Buffer overflow");
146 s=
I18N(
"Host not found");
149 s=
I18N(
"No address");
152 s=
I18N(
"No recovery");
158 s=
I18N(
"Unknown DNS error");
161 s=
I18N(
"Bad address family");
164 s=
I18N(
"Could not load");
167 s=
I18N(
"Could not resolve a symbol");
173 s=
I18N(
"Could not read");
176 s=
I18N(
"Could not write");
179 s=
I18N(
"Could not close");
185 s=
I18N(
"Partial data");
191 s=
I18N(
"Already registered");
194 s=
I18N(
"Not registered");
200 s=
I18N(
"Could not encrypt");
203 s=
I18N(
"Could not decrypt");
206 s=
I18N(
"Could not sign");
209 s=
I18N(
"Could not verify");
212 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...