1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

switched prefix to wfp for old wf stuff

This commit is contained in:
Falk Werner
2020-06-16 23:57:41 +02:00
parent 2f80ebffcc
commit 83b76a1a5a
133 changed files with 1324 additions and 1324 deletions

View File

@@ -5,7 +5,7 @@
void wfp_impl_close(
struct wfp_impl_invokation_context * context,
json_t * params,
int WF_UNUSED_PARAM(id))
int WFP_UNUSED_PARAM(id))
{
size_t const param_count = json_array_size(params);
if (4 == param_count)
@@ -29,10 +29,10 @@ void wfp_impl_close(
}
void wfp_impl_close_default(
ino_t WF_UNUSED_PARAM(inode),
uint32_t WF_UNUSED_PARAM(handle),
int WF_UNUSED_PARAM(flags),
void * WF_UNUSED_PARAM(user_data))
ino_t WFP_UNUSED_PARAM(inode),
uint32_t WFP_UNUSED_PARAM(handle),
int WFP_UNUSED_PARAM(flags),
void * WFP_UNUSED_PARAM(user_data))
{
// empty
}

View File

@@ -1,5 +1,5 @@
#ifndef WF_PROVIDER_IMPL_OPERATION_CLOSE_H
#define WF_PROVIDER_IMPL_OPERATION_CLOSE_H
#ifndef WFP_PROVIDER_IMPL_OPERATION_CLOSE_H
#define WFP_PROVIDER_IMPL_OPERATION_CLOSE_H
#include "webfuse_provider/impl/provider.h"

View File

@@ -13,7 +13,7 @@ struct wfp_request;
extern WFP_API void wfp_impl_respond_error(
struct wfp_request * request,
wf_status status);
wfp_status status);
#ifdef __cplusplus
}

View File

@@ -29,10 +29,10 @@ void wfp_impl_getattr(
void wfp_impl_getattr_default(
struct wfp_request * request,
ino_t WF_UNUSED_PARAM(inode),
void * WF_UNUSED_PARAM(user_data))
ino_t WFP_UNUSED_PARAM(inode),
void * WFP_UNUSED_PARAM(user_data))
{
wfp_impl_respond_error(request, WF_BAD_NOENTRY);
wfp_impl_respond_error(request, WFP_BAD_NOENTRY);
}
void wfp_impl_respond_getattr(

View File

@@ -1,5 +1,5 @@
#ifndef WF_PROVIDER_IMPL_OPERATION_GETATTR_H
#define WF_PROVIDER_IMPL_OPERATION_GETATTR_H
#ifndef WFP_PROVIDER_IMPL_OPERATION_GETATTR_H
#define WFP_PROVIDER_IMPL_OPERATION_GETATTR_H
#include "webfuse_provider/impl/provider.h"

View File

@@ -59,10 +59,10 @@ void wfp_impl_respond_lookup(
void wfp_impl_lookup_default(
struct wfp_request * request,
ino_t WF_UNUSED_PARAM(parent),
char const * WF_UNUSED_PARAM(name),
void * WF_UNUSED_PARAM(user_data))
ino_t WFP_UNUSED_PARAM(parent),
char const * WFP_UNUSED_PARAM(name),
void * WFP_UNUSED_PARAM(user_data))
{
wfp_impl_respond_error(request, WF_BAD_NOENTRY);
wfp_impl_respond_error(request, WFP_BAD_NOENTRY);
}

View File

@@ -1,5 +1,5 @@
#ifndef WF_PROVIDER_IMPL_OPERATION_LOOKUP_H
#define WF_PROVIDER_IMPL_OPERATION_LOOKUP_H
#ifndef WFP_PROVIDER_IMPL_OPERATION_LOOKUP_H
#define WFP_PROVIDER_IMPL_OPERATION_LOOKUP_H
#include "webfuse_provider/impl/provider.h"

View File

@@ -29,11 +29,11 @@ void wfp_impl_open(
void wfp_impl_open_default(
struct wfp_request * request,
ino_t WF_UNUSED_PARAM(inode),
int WF_UNUSED_PARAM(flags),
void * WF_UNUSED_PARAM(user_data))
ino_t WFP_UNUSED_PARAM(inode),
int WFP_UNUSED_PARAM(flags),
void * WFP_UNUSED_PARAM(user_data))
{
wfp_impl_respond_error(request, WF_BAD_NOENTRY);
wfp_impl_respond_error(request, WFP_BAD_NOENTRY);
}
void wfp_impl_respond_open(

View File

@@ -1,5 +1,5 @@
#ifndef WF_PROVIDER_IMPL_OPERATION_OPEN_H
#define WF_PROVIDER_IMPL_OPERATION_OPEN_H
#ifndef WFP_PROVIDER_IMPL_OPERATION_OPEN_H
#define WFP_PROVIDER_IMPL_OPERATION_OPEN_H
#include "webfuse_provider/impl/provider.h"

View File

@@ -38,13 +38,13 @@ void wfp_impl_read(
void wfp_impl_read_default(
struct wfp_request * request,
ino_t WF_UNUSED_PARAM(inode),
uint32_t WF_UNUSED_PARAM(handle),
size_t WF_UNUSED_PARAM(offset),
size_t WF_UNUSED_PARAM(length),
void * WF_UNUSED_PARAM(user_data))
ino_t WFP_UNUSED_PARAM(inode),
uint32_t WFP_UNUSED_PARAM(handle),
size_t WFP_UNUSED_PARAM(offset),
size_t WFP_UNUSED_PARAM(length),
void * WFP_UNUSED_PARAM(user_data))
{
wfp_impl_respond_error(request, WF_BAD_NOENTRY);
wfp_impl_respond_error(request, WFP_BAD_NOENTRY);
}
void wfp_impl_respond_read(
@@ -54,9 +54,9 @@ void wfp_impl_respond_read(
{
if (0 < length)
{
size_t const size = wf_base64_encoded_size(length) + 1;
size_t const size = wfp_base64_encoded_size(length) + 1;
char * buffer = malloc(size);
wf_base64_encode((uint8_t const *) data, length, buffer, size);
wfp_base64_encode((uint8_t const *) data, length, buffer, size);
json_t * result = json_object();
json_object_set_new(result, "data", json_string(buffer));

View File

@@ -1,5 +1,5 @@
#ifndef WF_PROVIDER_IMPL_OPERATION_READ_H
#define WF_PROVIDER_IMPL_OPERATION_READ_H
#ifndef WFP_PROVIDER_IMPL_OPERATION_READ_H
#define WFP_PROVIDER_IMPL_OPERATION_READ_H
#include "webfuse_provider/impl/provider.h"

View File

@@ -26,10 +26,10 @@ void wfp_impl_readdir(
void wfp_impl_readdir_default(
struct wfp_request * request,
ino_t WF_UNUSED_PARAM(directory),
void * WF_UNUSED_PARAM(user_data))
ino_t WFP_UNUSED_PARAM(directory),
void * WFP_UNUSED_PARAM(user_data))
{
wfp_impl_respond_error(request, WF_BAD_NOENTRY);
wfp_impl_respond_error(request, WFP_BAD_NOENTRY);
}
void wfp_impl_respond_readdir(

View File

@@ -1,5 +1,5 @@
#ifndef WF_PROVIDER_IMPL_OPERATION_READDIR_H
#define WF_PROVIDER_IMPL_OPERATION_READDIR_H
#ifndef WFP_PROVIDER_IMPL_OPERATION_READDIR_H
#define WFP_PROVIDER_IMPL_OPERATION_READDIR_H
#include "webfuse_provider/impl/provider.h"