Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00033 #ifndef GWENHYWFAR_ERROR_H
00034 #define GWENHYWFAR_ERROR_H
00035
00036 #include <gwenhywfar/gwenhywfarapi.h>
00037 #include <gwenhywfar/types.h>
00038
00039
00048
00049
00050
00051
00052 #ifdef __cplusplus
00053 extern "C" {
00054 #endif
00055
00060 #define GWEN_SUCCESS 0
00061
00062 #define GWEN_ERROR_GENERIC (-1)
00063 #define GWEN_ERROR_ABORTED (-2)
00064 #define GWEN_ERROR_NOT_AVAILABLE (-3)
00065 #define GWEN_ERROR_USER_ABORTED (-4)
00066 #define GWEN_ERROR_OPEN (-5)
00067 #define GWEN_ERROR_INVALID (-6)
00068
00069 #define GWEN_ERROR_BAD_SOCKETTYPE (-32)
00070 #define GWEN_ERROR_NOT_OPEN (-33)
00071 #define GWEN_ERROR_TIMEOUT (-34)
00072 #define GWEN_ERROR_IN_PROGRESS (-35)
00073 #define GWEN_ERROR_STARTUP (-36)
00074 #define GWEN_ERROR_INTERRUPTED (-37)
00075 #define GWEN_ERROR_BROKEN_PIPE (-39)
00076
00077 #define GWEN_ERROR_MEMORY_FULL (-40)
00078 #define GWEN_ERROR_BAD_ADDRESS (-41)
00079 #define GWEN_ERROR_BUFFER_OVERFLOW (-42)
00080 #define GWEN_ERROR_HOST_NOT_FOUND (-43)
00081 #define GWEN_ERROR_NO_ADDRESS (-44)
00082 #define GWEN_ERROR_NO_RECOVERY (-45)
00083 #define GWEN_ERROR_TRY_AGAIN (-46)
00084 #define GWEN_ERROR_UNKNOWN_DNS_ERROR (-47)
00085 #define GWEN_ERROR_BAD_ADDRESS_FAMILY (-48)
00086
00087 #define GWEN_ERROR_COULD_NOT_LOAD (-49)
00088 #define GWEN_ERROR_COULD_NOT_RESOLVE (-50)
00089 #define GWEN_ERROR_NOT_FOUND (-51)
00090
00091 #define GWEN_ERROR_READ (-52)
00092 #define GWEN_ERROR_WRITE (-53)
00093 #define GWEN_ERROR_CLOSE (-54)
00094 #define GWEN_ERROR_NO_DATA (-55)
00095 #define GWEN_ERROR_PARTIAL (-56)
00096 #define GWEN_ERROR_EOF (-57)
00097
00098 #define GWEN_ERROR_ALREADY_REGISTERED (-58)
00099 #define GWEN_ERROR_NOT_REGISTERED (-59)
00100 #define GWEN_ERROR_BAD_SIZE (-60)
00101 #define GWEN_ERROR_ENCRYPT (-62)
00102 #define GWEN_ERROR_DECRYPT (-63)
00103 #define GWEN_ERROR_SIGN (-64)
00104 #define GWEN_ERROR_VERIFY (-65)
00105 #define GWEN_ERROR_SSL (-66)
00106
00107
00108 #define GWEN_ERROR_NOT_IMPLEMENTED (-67)
00109 #define GWEN_ERROR_NOT_SUPPORTED (-68)
00110 #define GWEN_ERROR_BAD_NAME (-69)
00111 #define GWEN_ERROR_BAD_PIN (-70)
00112 #define GWEN_ERROR_BAD_PIN_0_LEFT (-71)
00113 #define GWEN_ERROR_BAD_PIN_1_LEFT (-72)
00114 #define GWEN_ERROR_BAD_PIN_2_LEFT (-73)
00115 #define GWEN_ERROR_NO_KEY (-74)
00116 #define GWEN_ERROR_REMOVED (-75)
00117 #define GWEN_ERROR_DEFAULT_VALUE (-76)
00118
00119
00120 #define GWEN_ERROR_NOT_CONNECTED (-100)
00121 #define GWEN_ERROR_BAD_DATA (-101)
00122 #define GWEN_ERROR_FOUND (-102)
00123 #define GWEN_ERROR_IO (-103)
00124
00125 #define GWEN_ERROR_INTERNAL (-104)
00126 #define GWEN_ERROR_PERMISSIONS (-105)
00127 #define GWEN_ERROR_CONN_REFUSED (-106)
00128 #define GWEN_ERROR_NET_UNREACHABLE (-107)
00129 #define GWEN_ERROR_SSL_SECURITY (-108)
00130
00131 #define GWEN_ERROR_LOCK (-109)
00132
00133
00134 #define GWEN_ERROR_USEROFFSET (-1000)
00135
00136
00137
00154 GWENHYWFAR_API int GWEN_Error_ToString(int c, char *buffer, int bsize);
00159
00160 #ifdef __cplusplus
00161 }
00162 #endif
00163
00167 #endif
00168
00169