Skip to content

Commit

Permalink
rename capi uws_req_set_field -> uws_req_set_yield (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackmius authored Jan 24, 2023
1 parent 53ae0a8 commit c5d6875
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions capi/libuwebsockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -1322,4 +1322,4 @@ extern "C"
{
return (struct us_loop_t *)uWS::Loop::get(existing_native_loop);
}
}
}
4 changes: 2 additions & 2 deletions capi/libuwebsockets.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -255,4 +255,4 @@ extern "C"
}
#endif

#endif
#endif

0 comments on commit c5d6875

Please sign in to comment.