added mountpoint factory interface

pull/2/head
Falk Werner 4 years ago
parent 8ef90fb504
commit 16705acf81

@ -0,0 +1,28 @@
#ifndef WF_ADAPTER_MOUNTPOINT_H
#define WF_ADAPTER_MOUNTPOINT_H
#ifdef __cplusplus
extern "C"
{
#endif
struct wf_mountpoint;
extern struct wf_mountpoint *
wf_mountpoint_create(
char const * path);
extern void
wf_mountpoint_release(
struct wf_mountpoint * mountpoint);
extern char const *
wf_mountpoint_get_path(
struct wf_mountpoint const * mountpoint);
#ifdef __cplusplus
}
#endif
#endif

@ -0,0 +1,24 @@
#ifndef WF_ADAPTER_MOUNTPOINT_FACTORY_H
#define WF_ADAPTER_MOUNTPOINT_FACTORY_H
#include <webfuse/adapter/api.h>
#ifdef __cplusplus
extern "C"
{
#endif
struct wf_mountpoint;
typedef struct wf_mountpoint *
wf_create_mountpoint_fn(
char const * filesystem,
void * user_data);
#ifdef __cplusplus
}
#endif
#endif

@ -3,6 +3,7 @@
#include "webfuse/adapter/api.h"
#include "webfuse/adapter/authenticate.h"
#include "webfuse/adapter/mountpoint_factory.h"
#ifdef __cplusplus
extern "C"
@ -16,11 +17,15 @@ extern WF_API struct wf_server_config * wf_server_config_create(void);
extern WF_API void wf_server_config_dispose(
struct wf_server_config * config);
extern WF_API void wf_server_config_set_mountpoint(
struct wf_server_config * config,
char const * mount_point);
extern WF_API void wf_server_config_set_mountpoint_factory(
struct wf_server_config * config,
wf_create_mountpoint_fn * create_mountpoint,
void * user_data);
extern WF_API void wf_server_config_set_documentroot(
struct wf_server_config * config,
char const * document_root);

Loading…
Cancel
Save