2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WF_PROVIDER_IMPL_CLIENT_PROTOCOL_H
|
|
|
|
#define WF_PROVIDER_IMPL_CLIENT_PROTOCOL_H
|
|
|
|
|
|
|
|
#include "webfuse/provider/impl/provider.h"
|
|
|
|
#include "webfuse/provider/impl/request.h"
|
|
|
|
|
2019-04-17 20:51:16 +00:00
|
|
|
#include "webfuse/core/slist.h"
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct wfp_provider;
|
|
|
|
struct lws_protocols;
|
|
|
|
|
|
|
|
struct wfp_client_protocol
|
|
|
|
{
|
|
|
|
struct wfp_request request;
|
|
|
|
struct wfp_provider provider;
|
|
|
|
void * user_data;
|
|
|
|
struct lws * wsi;
|
2019-04-17 20:51:16 +00:00
|
|
|
struct wf_slist messages;
|
2019-03-26 22:04:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern void wfp_impl_client_protocol_init(
|
|
|
|
struct wfp_client_protocol * protocol,
|
|
|
|
struct wfp_provider const * provider,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_protocol_cleanup(
|
|
|
|
struct wfp_client_protocol * protocol);
|
|
|
|
|
|
|
|
extern struct wfp_client_protocol * wfp_impl_client_protocol_create(
|
|
|
|
struct wfp_provider const * provider,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_protocol_dispose(
|
|
|
|
struct wfp_client_protocol * protocol);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_protocol_init_lws(
|
|
|
|
struct wfp_client_protocol * protocol,
|
|
|
|
struct lws_protocols * lws_protocol);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|