Concord - C Discord API library
A Discord API wrapper library written in C
concord-error.h
Go to the documentation of this file.
1
3
#ifndef CONCORD_ERROR_H
4
#define CONCORD_ERROR_H
5
11
typedef
int
CCORDcode
;
12
13
/* XXX: As new values are added, ccord_strerror() and ccord_code_as_string()
14
* should be updated accordingly! */
22
#define CCORD_INTERNAL_ERROR -200
24
#define CCORD_BAD_ENCODE -101
26
#define CCORD_BAD_DECODE -100
28
#define CCORD_OUT_OF_MEMORY -60
30
#define CCORD_ERRNO -50
32
#define CCORD_CURL_WEBSOCKETS_MISSING -14
34
#define CCORD_CURL_OUTDATED_VERSION -13
36
#define CCORD_MALFORMED_PAYLOAD -12
38
#define CCORD_FULL_WORKER -11
40
#define CCORD_RESOURCE_UNAVAILABLE -10
42
#define CCORD_RESOURCE_OWNERSHIP -9
44
#define CCORD_GLOBAL_INIT -8
46
#define CCORD_CURLM_INTERNAL -7
48
#define CCORD_CURLE_INTERNAL -6
50
#define CCORD_BAD_JSON -5
52
#define CCORD_BAD_PARAMETER -4
54
#define CCORD_UNUSUAL_HTTP_CODE -3
56
#define CCORD_CURL_NO_RESPONSE -2
58
#define CCORD_HTTP_CODE -1
60
#define CCORD_OK 0
61
62
const
char
*
ccord_code_as_string
(
CCORDcode
code);
63
const
char
*
ccord_strerror
(
CCORDcode
code);
64
69
#endif
/* CONCORD_ERROR_H */
CCORDcode
int CCORDcode
Concord error codes.
Definition:
concord-error.h:11
ccord_code_as_string
const char * ccord_code_as_string(CCORDcode code)
ccord_strerror
const char * ccord_strerror(CCORDcode code)
core
concord-error.h
Generated by
1.9.3