2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WF_ADAPTER_IMPL_OPERATIONS_H
|
|
|
|
#define WF_ADAPTER_IMPL_OPERATIONS_H
|
2019-01-27 02:45:03 +00:00
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
#include "webfuse/adapter/impl/fuse_wrapper.h"
|
2019-01-27 02:45:03 +00:00
|
|
|
|
2019-03-26 14:35:33 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-04-17 20:51:16 +00:00
|
|
|
struct wf_impl_session;
|
2019-04-01 20:15:12 +00:00
|
|
|
struct wf_impl_jsonrpc_proxy;
|
2019-02-02 08:37:18 +00:00
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
struct wf_impl_operations_context
|
2019-02-02 13:49:42 +00:00
|
|
|
{
|
2019-04-17 20:51:16 +00:00
|
|
|
struct wf_impl_session * session;
|
2019-02-02 13:49:42 +00:00
|
|
|
double timeout;
|
2019-04-17 20:51:16 +00:00
|
|
|
char * name;
|
2019-02-02 13:49:42 +00:00
|
|
|
};
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
extern void wf_impl_operation_lookup (
|
2019-02-02 10:45:38 +00:00
|
|
|
fuse_req_t req,
|
|
|
|
fuse_ino_t parent,
|
|
|
|
char const * name);
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
extern void wf_impl_operation_getattr (
|
2019-02-02 10:45:38 +00:00
|
|
|
fuse_req_t request,
|
|
|
|
fuse_ino_t inode,
|
|
|
|
struct fuse_file_info *file_info);
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
extern void wf_impl_operation_readdir (
|
2019-02-02 10:45:38 +00:00
|
|
|
fuse_req_t request,
|
|
|
|
fuse_ino_t inode,
|
|
|
|
size_t size,
|
|
|
|
off_t offset,
|
|
|
|
struct fuse_file_info *file_info);
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
extern void wf_impl_operation_open(
|
2019-02-02 10:45:38 +00:00
|
|
|
fuse_req_t request,
|
|
|
|
fuse_ino_t inode,
|
|
|
|
struct fuse_file_info * file_info);
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
extern void wf_impl_operation_close(
|
2019-02-02 10:45:38 +00:00
|
|
|
fuse_req_t request,
|
|
|
|
fuse_ino_t inode,
|
|
|
|
struct fuse_file_info * file_info);
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
extern void wf_impl_operation_read(
|
2019-02-02 10:45:38 +00:00
|
|
|
fuse_req_t request,
|
|
|
|
fuse_ino_t ino, size_t size, off_t off,
|
|
|
|
struct fuse_file_info *fi);
|
|
|
|
|
2019-04-01 20:15:12 +00:00
|
|
|
extern struct wf_impl_jsonrpc_proxy * wf_impl_operations_context_get_proxy(
|
2019-04-17 20:51:16 +00:00
|
|
|
struct wf_impl_operations_context * context);
|
2019-04-01 20:15:12 +00:00
|
|
|
|
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
|
|
|
|
|