mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
////////////////////////////////////////////////////////////////////////////////
|
|
/// \file adapter/mountpoint_factory.h
|
|
/// \brief Defines a factory function to create mointpoints.
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#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;
|
|
|
|
//------------------------------------------------------------------------------
|
|
/// \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
|
|
//------------------------------------------------------------------------------
|
|
typedef struct wf_mountpoint *
|
|
wf_create_mountpoint_fn(
|
|
char const * filesystem,
|
|
void * user_data);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|