diff --git a/include/uv.h b/include/uv.h index 51e70866..8338fdb7 100644 --- a/include/uv.h +++ b/include/uv.h @@ -96,17 +96,6 @@ void uv_unref(); void uv_update_time(); int64_t uv_now(); -/* - * Most functions return boolean: 0 for success and -1 for failure. - * On error the user should then call uv_last_error() to determine - * the error code. - */ -uv_err_t uv_last_error(); -char* uv_strerror(uv_err_t err); -const char* uv_err_name(uv_err_t err); - - - /* * The status parameter is 0 if the request completed successfully, @@ -217,6 +206,16 @@ struct uv_err_s { }; +/* + * Most functions return boolean: 0 for success and -1 for failure. + * On error the user should then call uv_last_error() to determine + * the error code. + */ +uv_err_t uv_last_error(); +char* uv_strerror(uv_err_t err); +const char* uv_err_name(uv_err_t err); + + #define UV_REQ_FIELDS \ /* read-only */ \ uv_req_type type; \