mirror of
https://github.com/falk-werner/webfuse-provider
synced 2026-03-02 04:09:18 +00:00
renamed operation_context
This commit is contained in:
@@ -24,7 +24,7 @@ struct wf_impl_filesystem
|
||||
struct fuse_args args;
|
||||
struct fuse_session * session;
|
||||
struct fuse_buf buffer;
|
||||
struct wf_impl_operations_context user_data;
|
||||
struct wf_impl_operation_context user_data;
|
||||
struct lws * wsi;
|
||||
struct wf_mountpoint * mountpoint;
|
||||
};
|
||||
|
||||
@@ -13,8 +13,8 @@ void wf_impl_operation_close(
|
||||
fuse_ino_t inode,
|
||||
struct fuse_file_info * file_info)
|
||||
{
|
||||
struct wf_impl_operations_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operations_context_get_proxy(user_data);
|
||||
struct wf_impl_operation_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operation_context_get_proxy(user_data);
|
||||
|
||||
if (NULL != rpc)
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
#include "webfuse/adapter/impl/session.h"
|
||||
#include <stddef.h>
|
||||
|
||||
struct wf_jsonrpc_proxy * wf_impl_operations_context_get_proxy(
|
||||
struct wf_impl_operations_context * context)
|
||||
struct wf_jsonrpc_proxy * wf_impl_operation_context_get_proxy(
|
||||
struct wf_impl_operation_context * context)
|
||||
{
|
||||
struct wf_jsonrpc_proxy * proxy = NULL;
|
||||
|
||||
|
||||
@@ -10,15 +10,15 @@ extern "C" {
|
||||
struct wf_impl_session;
|
||||
struct wf_jsonrpc_proxy;
|
||||
|
||||
struct wf_impl_operations_context
|
||||
struct wf_impl_operation_context
|
||||
{
|
||||
struct wf_impl_session * session;
|
||||
double timeout;
|
||||
char * name;
|
||||
};
|
||||
|
||||
extern struct wf_jsonrpc_proxy * wf_impl_operations_context_get_proxy(
|
||||
struct wf_impl_operations_context * context);
|
||||
extern struct wf_jsonrpc_proxy * wf_impl_operation_context_get_proxy(
|
||||
struct wf_impl_operation_context * context);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -73,8 +73,8 @@ void wf_impl_operation_getattr (
|
||||
struct fuse_file_info * WF_UNUSED_PARAM(file_info))
|
||||
{
|
||||
struct fuse_ctx const * context = fuse_req_ctx(request);
|
||||
struct wf_impl_operations_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operations_context_get_proxy(user_data);
|
||||
struct wf_impl_operation_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operation_context_get_proxy(user_data);
|
||||
|
||||
if (NULL != rpc)
|
||||
{
|
||||
|
||||
@@ -84,8 +84,8 @@ void wf_impl_operation_lookup (
|
||||
char const * name)
|
||||
{
|
||||
struct fuse_ctx const * context = fuse_req_ctx(request);
|
||||
struct wf_impl_operations_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operations_context_get_proxy(user_data);
|
||||
struct wf_impl_operation_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operation_context_get_proxy(user_data);
|
||||
|
||||
if (NULL != rpc)
|
||||
{
|
||||
|
||||
@@ -48,8 +48,8 @@ void wf_impl_operation_open(
|
||||
fuse_ino_t inode,
|
||||
struct fuse_file_info * file_info)
|
||||
{
|
||||
struct wf_impl_operations_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operations_context_get_proxy(user_data);
|
||||
struct wf_impl_operation_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operation_context_get_proxy(user_data);
|
||||
|
||||
if (NULL != rpc)
|
||||
{
|
||||
|
||||
@@ -111,8 +111,8 @@ void wf_impl_operation_read(
|
||||
off_t offset,
|
||||
struct fuse_file_info * file_info)
|
||||
{
|
||||
struct wf_impl_operations_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operations_context_get_proxy(user_data);
|
||||
struct wf_impl_operation_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operation_context_get_proxy(user_data);
|
||||
|
||||
if (NULL != rpc)
|
||||
{
|
||||
|
||||
@@ -141,8 +141,8 @@ void wf_impl_operation_readdir (
|
||||
off_t offset,
|
||||
struct fuse_file_info * WF_UNUSED_PARAM(file_info))
|
||||
{
|
||||
struct wf_impl_operations_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operations_context_get_proxy(user_data);
|
||||
struct wf_impl_operation_context * user_data = fuse_req_userdata(request);
|
||||
struct wf_jsonrpc_proxy * rpc = wf_impl_operation_context_get_proxy(user_data);
|
||||
|
||||
if (NULL != rpc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user