This repository has been archived on 2025-02-12. You can view files and clone it, but cannot push or open issues or pull requests.
NeoStats-opsb/libopm/opm_error.h

27 lines
870 B
C
Raw Normal View History

2003-09-23 14:41:40 +00:00
#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 */