rename capi uws_req_set_field -> uws_req_set_yield (#1561)

This commit is contained in:
blackmius
2023-01-25 01:13:19 +03:00
committed by GitHub
parent 53ae0a889f
commit c5d687540a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1214,7 +1214,7 @@ extern "C"
return uwsReq->getYield();
}
void uws_req_set_field(uws_req_t *res, bool yield)
void uws_req_set_yield(uws_req_t *res, bool yield)
{
uWS::HttpRequest *uwsReq = (uWS::HttpRequest *)res;
return uwsReq->setYield(yield);
@@ -1322,4 +1322,4 @@ extern "C"
{
return (struct us_loop_t *)uWS::Loop::get(existing_native_loop);
}
}
}
+2 -2
View File
@@ -237,7 +237,7 @@ extern "C"
//Request
DLL_EXPORT bool uws_req_is_ancient(uws_req_t *res);
DLL_EXPORT bool uws_req_get_yield(uws_req_t *res);
DLL_EXPORT void uws_req_set_field(uws_req_t *res, bool yield);
DLL_EXPORT void uws_req_set_yield(uws_req_t *res, bool yield);
DLL_EXPORT size_t uws_req_get_url(uws_req_t *res, const char **dest);
DLL_EXPORT size_t uws_req_get_full_url(uws_req_t *res, const char **dest);
DLL_EXPORT size_t uws_req_get_method(uws_req_t *res, const char **dest);
@@ -255,4 +255,4 @@ extern "C"
}
#endif
#endif
#endif