27 lines
870 B
C
27 lines
870 B
C
![]() |
#ifndef LIBOPM_ERROR_H
|
||
|
#define LIBOPM_ERROR_H
|
||
|
|
||
|
/* Success */
|
||
|
#define OPM_SUCCESS 1
|
||
|
|
||
|
/* Configuration Errors */
|
||
|
#define OPM_ERR_BADKEY 2 /* Unknown or bad key value */
|
||
|
#define OPM_ERR_BADVALUE 3 /* Bad value matching key */
|
||
|
#define OPM_ERR_BADPROTOCOL 4 /* Unknown protocol in config */
|
||
|
|
||
|
/* Read Errors */
|
||
|
#define OPM_ERR_MAX_READ 5 /* Socket reached MAX_READ */
|
||
|
|
||
|
/* Callback Registration Errors */
|
||
|
#define OPM_ERR_CBNOTFOUND 6 /* Callback is out of range */
|
||
|
|
||
|
/* opm_scan errors */
|
||
|
#define OPM_ERR_BADADDR 7 /* IP in remote struct is bad */
|
||
|
#define OPM_ERR_NOPROTOCOLS 8 /* No protocols to scan! */
|
||
|
|
||
|
/* bind/connect errors */
|
||
|
#define OPM_ERR_BIND 9 /* Error binding to BIND_IP */
|
||
|
#define OPM_ERR_NOFD 10/* Unable to allocate file descriptor */
|
||
|
|
||
|
#endif /* LIBOPM_ERROR_H */
|