1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/include/webfuse/mountpoint_factory.h

40 lines
1010 B
C
Raw Normal View History

2020-02-17 20:53:42 +00:00
////////////////////////////////////////////////////////////////////////////////
2020-06-28 13:51:34 +00:00
/// \file webfuse/mountpoint_factory.h
2020-02-17 20:53:42 +00:00
/// \brief Defines a factory function to create mointpoints.
////////////////////////////////////////////////////////////////////////////////
2020-06-28 13:51:34 +00:00
#ifndef WF_MOUNTPOINT_FACTORY_H
#define WF_MOUNTPOINT_FACTORY_H
2020-02-13 20:48:42 +00:00
2020-06-28 13:51:34 +00:00
#include <webfuse/api.h>
2020-02-13 20:48:42 +00:00
#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_create
2020-02-17 20:53:42 +00:00
//------------------------------------------------------------------------------
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