2019-02-25 20:35:38 +00:00
|
|
|
#ifndef WSFS_PROVIDER_CLIENT_PROTOCOL_INTERN_H
|
|
|
|
#define WSFS_PROVIDER_CLIENT_PROTOCOL_INTERN_H
|
2019-02-18 22:30:39 +00:00
|
|
|
|
2019-02-25 19:17:13 +00:00
|
|
|
#include "wsfs/provider/client_protocol.h"
|
|
|
|
#include "wsfs/provider/provider.h"
|
|
|
|
#include "wsfs/provider/request.h"
|
2019-02-18 22:30:39 +00:00
|
|
|
|
2019-02-26 14:42:59 +00:00
|
|
|
#include "wsfs/message_queue.h"
|
|
|
|
|
2019-02-18 22:30:39 +00:00
|
|
|
struct wsfsp_client_protocol
|
|
|
|
{
|
2019-02-24 17:03:22 +00:00
|
|
|
struct wsfsp_request request;
|
2019-02-18 22:30:39 +00:00
|
|
|
struct wsfsp_provider provider;
|
|
|
|
void * user_data;
|
2019-02-26 14:42:59 +00:00
|
|
|
struct lws * wsi;
|
|
|
|
struct wsfs_message_queue queue;
|
2019-02-18 22:30:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern void wsfsp_client_protocol_init(
|
|
|
|
struct wsfsp_client_protocol * protocol,
|
|
|
|
struct wsfsp_provider const * provider,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
extern void wsfsp_client_protocol_cleanup(
|
|
|
|
struct wsfsp_client_protocol * protocol);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|