mirror of
https://github.com/falk-werner/webfuse-provider
synced 2026-03-02 04:09:18 +00:00
added skeleton of provider example app
This commit is contained in:
@@ -1,39 +1,39 @@
|
||||
#ifndef _WSFSP_CLIENT_H
|
||||
#define _WSFSP_CLIENT_H
|
||||
|
||||
#include "wsfs/api.h"
|
||||
#include "wsfsp/api.h"
|
||||
|
||||
struct wsfs_provider;
|
||||
struct wsfs_provider_client_config;
|
||||
struct wsfsp_provider;
|
||||
struct wsfsp_client;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
extern WSFS_API struct wsfs_provider_client * wsfs_provider_client_create(
|
||||
struct wsfs_provider * provider,
|
||||
extern WSFSP_API struct wsfsp_client * wsfsp_client_create(
|
||||
struct wsfsp_provider * provider,
|
||||
void * user_data);
|
||||
|
||||
extern WSFS_API void wsfs_provider_client_connect(
|
||||
struct wsfs_provider_client * client,
|
||||
extern WSFSP_API void wsfsp_client_connect(
|
||||
struct wsfsp_client * client,
|
||||
char const * url);
|
||||
|
||||
extern WSFS_API void wsfs_provider_client_disconnect(
|
||||
struct wsfs_provider_client * client);
|
||||
extern WSFSP_API void wsfsp_client_disconnect(
|
||||
struct wsfsp_client * client);
|
||||
|
||||
extern WSFS_API void wsfs_provider_client_settimeout(
|
||||
struct wsfs_provider_client * client,
|
||||
extern WSFSP_API void wsfsp_client_settimeout(
|
||||
struct wsfsp_client * client,
|
||||
unsigned int timepoint);
|
||||
|
||||
extern WSFS_API void wsfs_provider_client_dispose(
|
||||
struct wsfs_provider_client * client);
|
||||
extern WSFSP_API void wsfsp_client_dispose(
|
||||
struct wsfsp_client * client);
|
||||
|
||||
extern WSFS_API void wsfs_provider_client_run(
|
||||
struct wsfs_provider_client * client);
|
||||
extern WSFSP_API void wsfsp_client_run(
|
||||
struct wsfsp_client * client);
|
||||
|
||||
extern WSFS_API void wsfs_provider_client_shutdown(
|
||||
struct wsfs_provider_client * client);
|
||||
extern WSFSP_API void wsfsp_client_shutdown(
|
||||
struct wsfsp_client * client);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -14,6 +14,7 @@ using std::size_t;
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "wsfsp/api.h"
|
||||
|
||||
struct wsfsp_request;
|
||||
struct wsfsp_dirbuffer;
|
||||
@@ -82,27 +83,27 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
extern void wsfsp_respond_error(
|
||||
extern WSFSP_API void wsfsp_respond_error(
|
||||
struct wsfsp_request * request,
|
||||
int status);
|
||||
|
||||
extern void wsfsp_respond_lookup(
|
||||
extern WSFSP_API void wsfsp_respond_lookup(
|
||||
struct wsfsp_request * request,
|
||||
struct stat const * stat);
|
||||
|
||||
extern void wsfsp_respond_getattr(
|
||||
extern WSFSP_API void wsfsp_respond_getattr(
|
||||
struct wsfsp_request * request,
|
||||
struct stat const * stat);
|
||||
|
||||
extern void wsfsp_respond_readdir(
|
||||
extern WSFSP_API void wsfsp_respond_readdir(
|
||||
struct wsfsp_request * request,
|
||||
struct wsfsp_dirbuffer * dirbuffer);
|
||||
|
||||
extern void wsfsp_respond_open(
|
||||
extern WSFSP_API void wsfsp_respond_open(
|
||||
struct wsfsp_request * request,
|
||||
uint32_t handle);
|
||||
|
||||
extern void wsfsp_respond_read(
|
||||
extern WSFSP_API void wsfsp_respond_read(
|
||||
struct wsfsp_request * request,
|
||||
char const * data,
|
||||
size_t length);
|
||||
|
||||
Reference in New Issue
Block a user