1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

renamed function: wf_impl_server_protocol_create2 to ..create: remove of uuid mountpoint was already API breaking

This commit is contained in:
Falk Werner 2020-03-21 09:18:04 +01:00
parent 43c989e7af
commit 425e017bc4
5 changed files with 6 additions and 17 deletions

View File

@ -23,7 +23,7 @@ struct wf_mountpoint;
/// \return newly created mountpoint or NULL, on error /// \return newly created mountpoint or NULL, on error
/// ///
/// \see wf_server_config_set_mountpoint_factory /// \see wf_server_config_set_mountpoint_factory
/// \see wf_server_protocol_create2 /// \see wf_server_protocol_create
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
typedef struct wf_mountpoint * typedef struct wf_mountpoint *
wf_create_mountpoint_fn( wf_create_mountpoint_fn(

View File

@ -32,17 +32,6 @@ struct wf_server_protocol;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
struct lws_protocols; struct lws_protocols;
//------------------------------------------------------------------------------
/// \brief Creates a new protocol with a given mounpoint.
/// \deprecated This function will be removed soon. Use \ref
/// wf_server_protocol_create2 instead.
///
/// \param mount_point root path of UUID-based file system.
/// \return newly created protocol
//------------------------------------------------------------------------------
extern WF_API struct wf_server_protocol * wf_server_protocol_create(
char * mount_point);
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
/// \brief Creates a new protocol by a mountpoint factory. /// \brief Creates a new protocol by a mountpoint factory.
/// ///
@ -53,7 +42,7 @@ extern WF_API struct wf_server_protocol * wf_server_protocol_create(
/// \param create_mountpoint factory function to create mountpoints /// \param create_mountpoint factory function to create mountpoints
/// \param create_mountpoint_context context of mountpoint factory /// \param create_mountpoint_context context of mountpoint factory
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
extern WF_API struct wf_server_protocol * wf_server_protocol_create2( extern WF_API struct wf_server_protocol * wf_server_protocol_create(
wf_create_mountpoint_fn * create_mountpoint, wf_create_mountpoint_fn * create_mountpoint,
void * create_mountpoint_context); void * create_mountpoint_context);

View File

@ -38,11 +38,11 @@ void wf_server_interrupt(
// server protocol // server protocol
struct wf_server_protocol * wf_server_protocol_create2( struct wf_server_protocol * wf_server_protocol_create(
wf_create_mountpoint_fn * create_mountpoint, wf_create_mountpoint_fn * create_mountpoint,
void * create_mountpoint_context) void * create_mountpoint_context)
{ {
return wf_impl_server_protocol_create2(create_mountpoint, create_mountpoint_context); return wf_impl_server_protocol_create(create_mountpoint, create_mountpoint_context);
} }
void wf_server_protocol_dispose( void wf_server_protocol_dispose(

View File

@ -80,7 +80,7 @@ static int wf_impl_server_protocol_callback(
return 0; return 0;
} }
struct wf_server_protocol * wf_impl_server_protocol_create2( struct wf_server_protocol * wf_impl_server_protocol_create(
wf_create_mountpoint_fn * create_mountpoint, wf_create_mountpoint_fn * create_mountpoint,
void * create_mountpoint_context) void * create_mountpoint_context)
{ {

View File

@ -36,7 +36,7 @@ extern void wf_impl_server_protocol_init(
extern void wf_impl_server_protocol_cleanup( extern void wf_impl_server_protocol_cleanup(
struct wf_server_protocol * protocol); struct wf_server_protocol * protocol);
extern WF_API struct wf_server_protocol * wf_impl_server_protocol_create2( extern WF_API struct wf_server_protocol * wf_impl_server_protocol_create(
wf_create_mountpoint_fn * create_mountpoint, wf_create_mountpoint_fn * create_mountpoint,
void * create_mountpoint_context); void * create_mountpoint_context);