21 #ifndef INC_LIBETM_ERROR_H
22 #define INC_LIBETM_ERROR_H
47 TCP_SOCK_CANT_CONNECT,
48 TCP_SOCK_SHOULD_BE_CLOSED,
56 CONNECTION_CLOSED_BY_SERVER,
61 WIN32REGKEY_NOT_FOUND,
62 WIN32REGKEY_CREATE_ERROR,
63 WIN32REGKEY_SAVE_ERROR,
64 WIN32REGKEY_OTHER_ERROR,
72 static const ErrSt lib_error[] = {
76 {OUT_OF_MEMORY,
"Out of memory"},
77 {ZERO_RQ_SIZE,
"Zero requested size"},
78 {NEG_RQ_SIZE,
"Negative requested size"},
79 {NULL_DEST,
"Null destination string"},
80 {SRC_EQ_DEST,
"Source string = destination string"},
81 {STR_OVERLAP,
"Strings overlap"},
82 {NULL_POINTER_FREE,
"Attempting to free a null pointer"},
83 {RNDSTR_UNKNOWN_MODE,
"Generate random string: Unknown mode"},
86 {TCP_SOCK_ERROR,
"TCP socket error"},
87 {TCP_SOCK_CANT_CONNECT,
"TCP socket error: Can't connect"},
88 {TCP_SOCK_SHOULD_BE_CLOSED,
"TCP socket error: Should be closed"},
89 {SELECT_ERROR,
"Select error"},
90 {SELECT_TIMED_OUT,
"Select error: Timed out"},
91 {SELECT_TRUE,
"(Not an error) select TRUE"},
92 {SELECT_FALSE,
"(Not an error) select FALSE"},
93 {TCP_SEND_ERROR,
"TCP send error"},
94 {TCP_RECV_ERROR,
"TCP recv error"},
95 {CONNECTION_CLOSED_BY_SERVER,
"Connection closed by server"},
99 {WIN32_ERROR,
"Win32 error"},
100 {WIN32REGKEY_NOT_FOUND,
"Can't find win32 registry key"},
101 {WIN32REGKEY_CREATE_ERROR,
"Can't create win32 registry key"},
102 {WIN32REGKEY_SAVE_ERROR,
"Can't save win32 registry key"},
103 {WIN32REGKEY_OTHER_ERROR,
"Win32 registry key error (undetermined)"},
107 {LIBETM_LASTERRORCODE,
"Libetm last enumerated error code"}
126 void warning(
int,
const char *, ...);