diff options
Diffstat (limited to 'deps/liboi/oi_error.h')
-rw-r--r-- | deps/liboi/oi_error.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/deps/liboi/oi_error.h b/deps/liboi/oi_error.h new file mode 100644 index 0000000000..0f8730f5b5 --- /dev/null +++ b/deps/liboi/oi_error.h @@ -0,0 +1,25 @@ +#ifndef oi_error_h +#define oi_error_h +#ifdef __cplusplus +extern "C" { +#endif + +struct oi_error { + enum { 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 + } domain; + int code; /* errno */ +}; + +#ifdef __cplusplus +} +#endif +#endif // oi_error_h |