mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
90fc8d3622
This might need to be changed in the future if ev is needed in thread pools or extension libraries. However for now it makes sense to just use a single loop.
29 lines
424 B
C
29 lines
424 B
C
#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
|