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

@@ -3,8 +3,8 @@
/// \brief Webfuse provider client.
////////////////////////////////////////////////////////////////////////////////
#ifndef WF_PROVIDER_CLIENT_H
#define WF_PROVIDER_CLIENT_H
#ifndef WFP_PROVIDER_CLIENT_H
#define WFP_PROVIDER_CLIENT_H
#include "webfuse_provider/api.h"

View File

@@ -3,8 +3,8 @@
/// \brief Client configuration of webfuse provider.
////////////////////////////////////////////////////////////////////////////////
#ifndef WF_PROVIDER_CLIENT_CONFIG_H
#define WF_PROVIDER_CLIENT_CONFIG_H
#ifndef WFP_PROVIDER_CLIENT_CONFIG_H
#define WFP_PROVIDER_CLIENT_CONFIG_H
#include <webfuse_provider/api.h>

View File

@@ -8,8 +8,8 @@
/// libwebsockets applications.
////////////////////////////////////////////////////////////////////////////////
#ifndef WF_PROVIDER_CLIENT_PROTOCOL_H
#define WF_PROVIDER_CLIENT_PROTOCOL_H
#ifndef WFP_PROVIDER_CLIENT_PROTOCOL_H
#define WFP_PROVIDER_CLIENT_PROTOCOL_H
#include "webfuse_provider/api.h"

View File

@@ -1,5 +1,5 @@
#ifndef WF_PROVIDER_CREDENTIALS_H
#define WF_PROVIDER_CREDENTIALS_H
#ifndef WFP_PROVIDER_CREDENTIALS_H
#define WFP_PROVIDER_CREDENTIALS_H
#include <webfuse_provider/api.h>

View File

@@ -3,8 +3,8 @@
/// \brief Buffer used for directory listing.
////////////////////////////////////////////////////////////////////////////////
#ifndef WF_PROVIDER_DIRBUFFER_H
#define WF_PROVIDER_DIRBUFFER_H
#ifndef WFP_PROVIDER_DIRBUFFER_H
#define WFP_PROVIDER_DIRBUFFER_H
#include <sys/types.h>
#include <sys/stat.h>

View File

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

View File

@@ -2,32 +2,32 @@
/// \file protocol_names.h
/// \brief Names of websocket protocol.
////////////////////////////////////////////////////////////////////////////////
#ifndef WF_PROTOCOL_NAMES_H
#define WF_PROTOCOL_NAMES_H
#ifndef WFP_PROTOCOL_NAMES_H
#define WFP_PROTOCOL_NAMES_H
//------------------------------------------------------------------------------
/// \def WF_PROTOCOL_NAME_ADAPTER_SERVER
/// \def WFP_PROTOCOL_NAME_ADAPTER_SERVER
/// \brief Name of the websocket protocol an adapter server is running.
//------------------------------------------------------------------------------
#define WF_PROTOCOL_NAME_ADAPTER_SERVER ("webfuse-adapter-server")
#define WFP_PROTOCOL_NAME_ADAPTER_SERVER ("webfuse-adapter-server")
//------------------------------------------------------------------------------
/// \def WF_PROTOCOL_NAME_ADAPTER_CLIENT
/// \def WFP_PROTOCOL_NAME_ADAPTER_CLIENT
/// \brief Name of the websocket protocol an adapter client is running.
//------------------------------------------------------------------------------
#define WF_PROTOCOL_NAME_ADAPTER_CLIENT ("webfuse-adapter-client")
#define WFP_PROTOCOL_NAME_ADAPTER_CLIENT ("webfuse-adapter-client")
//------------------------------------------------------------------------------
/// \def WF_PROTOCOL_NAME_PROVIDER_CLIENT
/// \def WFP_PROTOCOL_NAME_PROVIDER_CLIENT
/// \brief Name of the websocket protocol an provider client is running.
//------------------------------------------------------------------------------
#define WF_PROTOCOL_NAME_PROVIDER_CLIENT ("webfuse-provider-client")
#define WFP_PROTOCOL_NAME_PROVIDER_CLIENT ("webfuse-provider-client")
//------------------------------------------------------------------------------
/// \def WF_PROTOCOL_NAME_PROVIDER_SERVER
/// \def WFP_PROTOCOL_NAME_PROVIDER_SERVER
/// \brief Name of the websocket protocol an provider server is running.
//------------------------------------------------------------------------------
#define WF_PROTOCOL_NAME_PROVIDER_SERVER ("webfuse-provider-server")
#define WFP_PROTOCOL_NAME_PROVIDER_SERVER ("webfuse-provider-server")
#endif

View File

@@ -3,21 +3,21 @@
/// \brief Generic status code.
////////////////////////////////////////////////////////////////////////////////
#ifndef WF_STATUS_H
#define WF_STATUS_H
#ifndef WFP_STATUS_H
#define WFP_STATUS_H
#define WF_GOOD 0 ///< Positive status code.
#define WF_BAD 1 ///< Generic negative status code.
#define WFP_GOOD 0 ///< Positive status code.
#define WFP_BAD 1 ///< Generic negative status code.
#define WF_BAD_NOTIMPLEMENTED 2 ///< The called function is not implemented (yet).
#define WF_BAD_TIMEOUT 3 ///< A timeout occured.
#define WF_BAD_BUSY 4 ///< Resource is busy, try again later.
#define WF_BAD_FORMAT 5 ///< Invalid format.
#define WFP_BAD_NOTIMPLEMENTED 2 ///< The called function is not implemented (yet).
#define WFP_BAD_TIMEOUT 3 ///< A timeout occured.
#define WFP_BAD_BUSY 4 ///< Resource is busy, try again later.
#define WFP_BAD_FORMAT 5 ///< Invalid format.
#define WF_BAD_NOENTRY 101 ///< Entry not found.
#define WF_BAD_ACCESS_DENIED 102 ///< Access is denied.
#define WFP_BAD_NOENTRY 101 ///< Entry not found.
#define WFP_BAD_ACCESS_DENIED 102 ///< Access is denied.
/// Status code.
typedef int wf_status;
typedef int wfp_status;
#endif

View File

@@ -3,8 +3,8 @@
/// \brief Convenience header to include all functionality of libfuse_provider.
////////////////////////////////////////////////////////////////////////////////
#ifndef WF_PROVIDER_H
#define WF_PROVIDER_H
#ifndef WFP_PROVIDER_H
#define WFP_PROVIDER_H
#include <webfuse_provider/status.h>
#include <webfuse_provider/protocol_names.h>