blob: 282654b1f9ed1c4398be65b20fa735f2a4c1ce98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef WOLF_ERRORS_H
#define WOLF_ERRORS_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Possible error codes of the various libwolf functions
*/
typedef enum {
WOLF_OK = 0, /**< no error, everything is fine */
WOLF_ERR_OUT_OF_MEMORY = -1, /**< out of memory in malloc */
WOLF_ERR_INVALID_STATE = -2, /**< the object is called in an illegal moment */
WOLF_ERR_INVALID_VALUE = -3, /**< invalid parameter to a function */
WOLF_ERR_INTERNAL = -4, /**< internal error of the object, usualy rare */
WOLF_ERR_PROGRAMMING = -5, /**< programming mistake, should not happen */
WOLF_ERR_NOT_IMPLEMENTED= -6, /**< not implemented yet */
WOLF_ERR_TIMEOUT = -7 /**< timeout */
} wolf_error_t;
#ifdef __cplusplus
}
#endif
#endif /* ifndef WOLF_ERRORS_H */
|