2019-02-22 15:59:08 +00:00
|
|
|
#ifndef WSFS_SERVER_PROTOCOL_INTERN_H
|
|
|
|
#define WSFS_SERVER_PROTOCOL_INTERN_H
|
2019-02-05 23:58:51 +00:00
|
|
|
|
|
|
|
#include "wsfs/server_protocol.h"
|
|
|
|
#include "wsfs/filesystem.h"
|
2019-02-09 02:08:02 +00:00
|
|
|
#include "wsfs/message_queue.h"
|
|
|
|
#include "wsfs/jsonrpc/server.h"
|
2019-02-09 18:02:53 +00:00
|
|
|
#include "wsfs/time/timeout_manager.h"
|
2019-02-05 23:58:51 +00:00
|
|
|
|
|
|
|
struct wsfs_server_protocol
|
|
|
|
{
|
2019-02-09 18:02:53 +00:00
|
|
|
struct wsfs_timeout_manager timeout_manager;
|
2019-02-05 23:58:51 +00:00
|
|
|
struct wsfs_filesystem filesystem;
|
2019-02-09 02:08:02 +00:00
|
|
|
struct wsfs_jsonrpc_server rpc;
|
|
|
|
struct wsfs_message_queue queue;
|
|
|
|
struct lws * wsi;
|
2019-02-05 23:58:51 +00:00
|
|
|
};
|
|
|
|
|
2019-02-09 02:08:02 +00:00
|
|
|
extern bool wsfs_server_protocol_init(
|
2019-02-05 23:58:51 +00:00
|
|
|
struct wsfs_server_protocol * protocol,
|
|
|
|
char * mount_point);
|
|
|
|
|
|
|
|
extern void wsfs_server_protocol_cleanup(
|
|
|
|
struct wsfs_server_protocol * protocol);
|
|
|
|
|
|
|
|
#endif
|