2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WF_ADAPTER_IMPL_FILESYSTEM_H
|
|
|
|
#define WF_ADAPTER_IMPL_FILESYSTEM_H
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stdbool.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "webfuse/adapter/impl/fuse_wrapper.h"
|
|
|
|
#include "webfuse/adapter/impl/operations.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
|
|
|
|
|
2019-04-17 20:51:16 +00:00
|
|
|
struct wf_impl_session;
|
|
|
|
struct lws;
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
struct wf_impl_filesystem
|
|
|
|
{
|
2019-04-17 20:51:16 +00:00
|
|
|
struct wf_slist_item item;
|
2019-03-26 22:04:53 +00:00
|
|
|
struct fuse_args args;
|
|
|
|
struct fuse_session * session;
|
|
|
|
struct fuse_buf buffer;
|
|
|
|
struct wf_impl_operations_context user_data;
|
2019-04-17 20:51:16 +00:00
|
|
|
struct lws * wsi;
|
|
|
|
char * name;
|
|
|
|
char * id;
|
|
|
|
char * service_path;
|
|
|
|
char * default_path;
|
|
|
|
char * root_path;
|
2019-03-26 22:04:53 +00:00
|
|
|
};
|
|
|
|
|
2019-04-17 20:51:16 +00:00
|
|
|
extern struct wf_impl_filesystem * wf_impl_filesystem_create(
|
|
|
|
struct wf_impl_session * session,
|
|
|
|
char const * name);
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2019-04-17 20:51:16 +00:00
|
|
|
extern void wf_impl_filesystem_dispose(
|
2019-03-26 22:04:53 +00:00
|
|
|
struct wf_impl_filesystem * filesystem);
|
|
|
|
|
|
|
|
extern void wf_impl_filesystem_process_request(
|
|
|
|
struct wf_impl_filesystem * filesystem);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|