2020-02-17 20:53:42 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// \file adapter/mountpoint_factory.h
|
|
|
|
/// \brief Defines a factory function to create mointpoints.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2020-02-13 20:48:42 +00:00
|
|
|
#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;
|
|
|
|
|
2020-02-17 20:53:42 +00:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
/// \brief Factory function to create mountpoints.
|
|
|
|
///
|
|
|
|
/// \param filesystem name the filesystem
|
|
|
|
/// \param user_data context of the factory
|
|
|
|
/// \return newly created mountpoint or NULL, on error
|
|
|
|
///
|
|
|
|
/// \see wf_server_config_set_mountpoint_factory
|
|
|
|
/// \see wf_server_protocol_create2
|
|
|
|
//------------------------------------------------------------------------------
|
2020-02-13 20:48:42 +00:00
|
|
|
typedef struct wf_mountpoint *
|
|
|
|
wf_create_mountpoint_fn(
|
|
|
|
char const * filesystem,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|