1 #ifndef LIBOPM_ERROR_H
2 #define LIBOPM_ERROR_H
3 
4 /* Success */
5 #define OPM_SUCCESS               1
6 
7 /* Configuration Errors */
8 #define OPM_ERR_BADKEY            2 /* Unknown or bad key value */
9 #define OPM_ERR_BADVALUE          3 /* Bad value matching key */
10 #define OPM_ERR_BADPROTOCOL       4 /* Unknown protocol in config */
11 
12 /* Read Errors */
13 #define OPM_ERR_MAX_READ          5 /* Socket reached MAX_READ */
14 
15 /* Callback Registration Errors */
16 #define OPM_ERR_CBNOTFOUND        6 /* Callback is out of range */
17 
18 /* opm_scan errors */
19 #define OPM_ERR_BADADDR           7 /* IP in remote struct is bad */
20 #define OPM_ERR_NOPROTOCOLS       8 /* No protocols to scan! */
21 
22 /* bind/connect errors */
23 #define OPM_ERR_BIND              9 /* Error binding to BIND_IP */
24 #define OPM_ERR_NOFD              10/* Unable to allocate file descriptor */
25 
26 #endif /* LIBOPM_ERROR_H */
27