1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/src/wsfs/operations.h

47 lines
855 B
C
Raw Normal View History

2019-01-27 02:45:03 +00:00
#ifndef _WSFS_OPERATIONS
#define _WSFS_OPERATIONS
#include "wsfs/fuse_wrapper.h"
2019-01-27 02:45:03 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2019-01-27 02:45:03 +00:00
extern void wsfs_operations_init(
struct fuse_operations * operations);
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);
#ifdef __cplusplus
}
#endif
2019-01-29 22:11:46 +00:00
2019-01-27 02:45:03 +00:00
#endif