1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

added integrative test of low level api

This commit is contained in:
Falk Werner
2020-04-02 22:00:01 +02:00
parent 06c01995fe
commit 48e3575d6d
3 changed files with 115 additions and 5 deletions

View File

@@ -23,13 +23,10 @@ static int wf_impl_server_protocol_callback(
size_t len)
{
struct lws_protocols const * ws_protocol = lws_get_protocol(wsi);
if (NULL == ws_protocol)
{
return 0;
}
if (NULL == ws_protocol) { return 0; }
if (ws_protocol->callback != &wf_impl_server_protocol_callback) { return 0; }
struct wf_server_protocol * protocol = ws_protocol->user;
wf_timer_manager_check(protocol->timer_manager);
struct wf_impl_session * session = wf_impl_session_manager_get(&protocol->session_manager, wsi);