diff -r 5229a5d098b2 -r cefec18b8268 src/lib/errors.h --- a/src/lib/errors.h Thu May 28 00:35:02 2009 +0300 +++ b/src/lib/errors.h Thu May 28 01:17:36 2009 +0300 @@ -34,6 +34,11 @@ enum libc_error_code { ERR_LIBC_NONE, ERR_SIGACTION, ///< sigaction: + ERR_READ, ///< read: + ERR_WRITE, ///< write: + ERR_WRITE_EOF, ///< write: EOF + ERR_FCNTL, ///< fcntl: + ERR_CLOSE, ///< close: }; const struct error_list libc_errors; @@ -42,6 +47,7 @@ * Errors for libevent */ enum libevent_error_code { + ERR_EVENT_NONE, ERR_EVENT_NEW, ///< event_new ERR_EVENT_ADD, ///< event_add ERR_EVENT_DEL, ///< event_del @@ -49,4 +55,18 @@ const struct error_list libevent_errors; +/** + * Errors for lua + */ +enum lua_error_code { + ERR_LUA_NONE, + ERR_LUA_MEM, ///< memory error + ERR_LUA_SYNTAX, ///< syntax error + ERR_LUA_RUN, ///< runtime erorr + ERR_LUA_ERR, ///< error-handling error + ERR_LUA_FILE, ///< filesystem error +}; + +const struct error_list lua_errors; + #endif /* LIBQMSK_ERRORS_H */