aboutsummaryrefslogtreecommitdiff
path: root/include/dtree/dyn_err.h
blob: 23dae0f5e0eeae6fe3df01fe37a9760043f266c7 (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
27
28
29
/* Make sure we're not included multiple times */
#ifndef _DYN_ERR_H
#define _DYN_ERR_H

/* Also make sure we're _always_ interpreted as a C file */
#ifdef __cplusplus
extern "C" {
#endif

/** Define some generic error codes first that we can propagate **/
typedef enum dt_err {

    /* General purpose error codes */
    FAILURE = -1,
    SUCCESS = 0,

    INVALID_PARAMS,
    MALLOC_FAILED,
    INVALID_PAYLOAD

} dt_err;

const char *rdb_error_getmsg(dt_err *e);

#ifdef __cplusplus
}
#endif
#endif /* _DYN_ERR_H */