1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/lib/wsfs/adapter/impl/filesystem.h
2019-03-24 03:25:29 +01:00

46 lines
799 B
C

#ifndef WSFS_ADAPTER_IMPL_FILESYSTEM_H
#define WSFS_ADAPTER_IMPL_FILESYSTEM_H
#ifndef __cplusplus
#include <stdbool.h>
#endif
#include "wsfs/adapter/impl/fuse_wrapper.h"
#include "wsfs/adapter/impl/operations.h"
#ifdef __cplusplus
extern "C"
{
#endif
struct jsonrpc_server;
struct filesystem
{
struct fuse_args args;
struct fuse_session * session;
struct fuse_buf buffer;
struct operations_context user_data;
};
extern bool filesystem_init(
struct filesystem * filesystem,
struct jsonrpc_server * rpc,
char * mount_point);
extern void filesystem_cleanup(
struct filesystem * filesystem);
extern int filesystem_get_fd(
struct filesystem * filesystem);
extern void filesystem_process_request(
struct filesystem * filesystem);
#ifdef __cplusplus
}
#endif
#endif