mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
424 B
28 lines
424 B
#ifndef oi_error_h
|
|
#define oi_error_h
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
enum oi_error_domain
|
|
{ OI_ERROR_GNUTLS
|
|
, OI_ERROR_EV
|
|
, OI_ERROR_CLOSE
|
|
, OI_ERROR_SHUTDOWN
|
|
, OI_ERROR_OPEN
|
|
, OI_ERROR_SEND
|
|
, OI_ERROR_RECV
|
|
, OI_ERROR_WRITE
|
|
, OI_ERROR_READ
|
|
, OI_ERROR_SENDFILE
|
|
};
|
|
|
|
struct oi_error {
|
|
enum oi_error_domain domain;
|
|
int code; /* errno */
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif // oi_error_h
|
|
|