2019-02-22 15:59:08 +00:00
|
|
|
#ifndef WSFS_FILESYSTEM_H
|
|
|
|
#define WSFS_FILESYSTEM_H
|
2019-02-05 23:58:51 +00:00
|
|
|
|
2019-02-09 02:08:02 +00:00
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <stdbool.h>
|
|
|
|
#endif
|
|
|
|
|
2019-02-25 19:17:13 +00:00
|
|
|
#include "wsfs/adapter/fuse_wrapper.h"
|
|
|
|
#include "wsfs/adapter/operations.h"
|
2019-02-05 23:58:51 +00:00
|
|
|
|
2019-02-09 02:08:02 +00:00
|
|
|
struct wsfs_jsonrpc_server;
|
|
|
|
|
2019-02-05 23:58:51 +00:00
|
|
|
struct wsfs_filesystem
|
|
|
|
{
|
|
|
|
struct fuse_args args;
|
|
|
|
struct fuse_session * session;
|
|
|
|
struct fuse_buf buffer;
|
|
|
|
struct wsfs_operations_context user_data;
|
|
|
|
};
|
|
|
|
|
2019-02-09 02:08:02 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern bool wsfs_filesystem_init(
|
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,
|
2019-02-05 23:58:51 +00:00
|
|
|
char * mount_point);
|
|
|
|
|
|
|
|
extern void wsfs_filesystem_cleanup(
|
|
|
|
struct wsfs_filesystem * filesystem);
|
|
|
|
|
|
|
|
extern int wsfs_filesystem_get_fd(
|
|
|
|
struct wsfs_filesystem * filesystem);
|
|
|
|
|
|
|
|
extern void wsfs_filesystem_process_request(
|
|
|
|
struct wsfs_filesystem * filesystem);
|
|
|
|
|
2019-02-09 02:08:02 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2019-02-05 23:58:51 +00:00
|
|
|
#endif
|