1
0
mirror of https://github.com/falk-werner/webfuse synced 2025-06-13 12:54:15 +00:00
falk-werner_webfuse/lib/webfuse/adapter/impl/filesystem.h

51 lines
984 B
C
Raw Normal View History

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-16 20:09:35 +00:00
#include "webfuse/core/slist.h"
2019-03-26 22:04:53 +00:00
#ifdef __cplusplus
extern "C"
{
#endif
2019-04-02 21:00:03 +00:00
struct wf_impl_session;
2019-04-13 19:44:53 +00:00
struct lws;
2019-03-26 22:04:53 +00:00
struct wf_impl_filesystem
{
2019-04-16 20:09:35 +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-13 19:44:53 +00:00
struct lws * wsi;
char * name;
char * id;
2019-04-16 18:28:29 +00:00
char * service_path;
char * default_path;
char * root_path;
2019-03-26 22:04:53 +00:00
};
2019-04-13 19:44:53 +00:00
extern struct wf_impl_filesystem * wf_impl_filesystem_create(
struct wf_impl_session * session,
char const * name);
2019-04-13 19:44:53 +00:00
extern void wf_impl_filesystem_dispose(
struct wf_impl_filesystem * filesystem);
2019-03-26 22:04:53 +00:00
extern void wf_impl_filesystem_process_request(
struct wf_impl_filesystem * filesystem);
#ifdef __cplusplus
}
#endif
#endif