2019-01-27 02:45:03 +00:00
|
|
|
#ifndef _WSFS_OPERATIONS
|
|
|
|
#define _WSFS_OPERATIONS
|
|
|
|
|
2019-01-27 19:32:09 +00:00
|
|
|
#include "wsfs/fuse_wrapper.h"
|
2019-01-27 02:45:03 +00:00
|
|
|
|
2019-02-02 08:37:18 +00:00
|
|
|
struct wsfs_jsonrpc;
|
|
|
|
|
2019-01-30 21:28:50 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-02-02 08:37:18 +00:00
|
|
|
extern int wsfs_operations_loop(
|
|
|
|
char * mount_point,
|
|
|
|
struct wsfs_jsonrpc * rpc);
|
2019-01-27 02:45:03 +00:00
|
|
|
|
2019-01-29 22:11:46 +00:00
|
|
|
extern int wsfs_operation_readdir(
|
|
|
|
char const * path,
|
|
|
|
void * buffer,
|
|
|
|
fuse_fill_dir_t filler,
|
|
|
|
off_t offset,
|
|
|
|
struct fuse_file_info * file_info,
|
|
|
|
enum fuse_readdir_flags flags);
|
|
|
|
|
|
|
|
extern int wsfs_operation_getattr(
|
|
|
|
char const * path,
|
|
|
|
struct stat * buffer,
|
|
|
|
struct fuse_file_info * file_info);
|
|
|
|
|
|
|
|
extern int wsfs_operation_open(
|
|
|
|
char const *path,
|
|
|
|
struct fuse_file_info * file_info);
|
|
|
|
|
2019-01-29 22:47:08 +00:00
|
|
|
extern int wsfs_operation_close(
|
|
|
|
char const *path,
|
|
|
|
struct fuse_file_info * file_info);
|
|
|
|
|
2019-01-29 22:11:46 +00:00
|
|
|
extern int wsfs_operation_read(
|
|
|
|
const char * path,
|
|
|
|
char * buffer,
|
|
|
|
size_t buffer_size,
|
|
|
|
off_t offset,
|
|
|
|
struct fuse_file_info * file_info);
|
2019-01-30 21:28:50 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2019-01-29 22:11:46 +00:00
|
|
|
|
2019-01-27 02:45:03 +00:00
|
|
|
#endif
|
|
|
|
|