Added new error types;

v0.5.xx
Alexander Vdolainen 9 years ago
parent 44610d093a
commit 4c659daa57

@ -28,28 +28,30 @@
#define __SXMP_EPREFIX 200 #define __SXMP_EPREFIX 200
#define SXE_SUCCESS 200 #define SXE_SUCCESS 200
#define SXE_FAILED 201 #define SXE_FAILED 201
#define SXE_ENOMEM 202 #define SXE_ENOMEM 202
#define SXE_BADPROTO 203 #define SXE_BADPROTO 203
#define SXE_ENORPC 204 #define SXE_ENORPC 204
#define SXE_EPERM 205 #define SXE_EPERM 205
#define SXE_TOOLONG 206 #define SXE_TOOLONG 206
#define SXE_EBUSY 207 #define SXE_EBUSY 207
#define SXE_WOULDBLOCK 208 #define SXE_WOULDBLOCK 208
#define SXE_LINKERROR 209 #define SXE_LINKERROR 209
#define SXE_NOSUCHMSG 210 #define SXE_NOSUCHMSG 210
#define SXE_NOSUCHCHAN 211 #define SXE_NOSUCHCHAN 211
#define SXE_ETIMEDOUT 212 #define SXE_ETIMEDOUT 212
#define SXE_IGNORED 213 #define SXE_IGNORED 213
#define SXE_REPLYREQ 214 #define SXE_REPLYREQ 214
#define SXE_RAPIDMSG 215 #define SXE_RAPIDMSG 215
#define SXE_ESSL 216 #define SXE_ESSL 216
#define SXE_NOCHANNELS 217 #define SXE_NOCHANNELS 217
#define SXE_MCHANNELS 218 #define SXE_MCHANNELS 218
#define SXE_MMESSAGES 219 #define SXE_MMESSAGES 219
#define SXE_LINKBROKEN 220 #define SXE_LINKBROKEN 220
#define SXE_INVALINDEX 221 #define SXE_INVALINDEX 221
#define SXE_NOSUCHSTREAMTYPE 222
#define SXE_EOS 223
const char *sxmpl_errno2cstr(int); const char *sxmpl_errno2cstr(int);

@ -351,9 +351,11 @@ static struct __scerrcode __lerr[] = {
{SXE_MMESSAGES, "Active messages limit exceed"}, {SXE_MMESSAGES, "Active messages limit exceed"},
{SXE_LINKBROKEN, "Connection link was broken"}, {SXE_LINKBROKEN, "Connection link was broken"},
{SXE_INVALINDEX, "Invalid index given"}, {SXE_INVALINDEX, "Invalid index given"},
{SXE_NOSUCHSTREAMTYPE, "No such stream type exist"},
{SXE_EOS, "End of stream reached"},
}; };
const char *sntll_errno2cstr(int ec) const char *sxmpl_errno2cstr(int ec)
{ {
return __lerr[ec - __SXMP_EPREFIX].desc; return __lerr[ec - __SXMP_EPREFIX].desc;
} }

Loading…
Cancel
Save