mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
clone mountpoint factory
This commit is contained in:
parent
431e3c027b
commit
8539ce9338
@ -20,15 +20,12 @@ wf_impl_mountpoint_factory_init(
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
wf_impl_mountpoint_factory_move(
|
wf_impl_mountpoint_factory_clone(
|
||||||
struct wf_impl_mountpoint_factory * factory,
|
struct wf_impl_mountpoint_factory * factory,
|
||||||
struct wf_impl_mountpoint_factory * other)
|
struct wf_impl_mountpoint_factory * other)
|
||||||
{
|
{
|
||||||
other->create_mountpoint = factory->create_mountpoint;
|
other->create_mountpoint = factory->create_mountpoint;
|
||||||
other->user_data = factory->user_data;
|
other->user_data = factory->user_data;
|
||||||
|
|
||||||
factory->create_mountpoint = NULL;
|
|
||||||
factory->user_data = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
@ -26,7 +26,7 @@ wf_impl_mountpoint_factory_init(
|
|||||||
void * user_data);
|
void * user_data);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
wf_impl_mountpoint_factory_move(
|
wf_impl_mountpoint_factory_clone(
|
||||||
struct wf_impl_mountpoint_factory * factory,
|
struct wf_impl_mountpoint_factory * factory,
|
||||||
struct wf_impl_mountpoint_factory * other);
|
struct wf_impl_mountpoint_factory * other);
|
||||||
|
|
||||||
|
@ -48,9 +48,7 @@ void wf_impl_server_config_clone(
|
|||||||
clone->port = config->port;
|
clone->port = config->port;
|
||||||
|
|
||||||
wf_impl_authenticators_clone(&config->authenticators, &clone->authenticators);
|
wf_impl_authenticators_clone(&config->authenticators, &clone->authenticators);
|
||||||
|
wf_impl_mountpoint_factory_clone(&config->mountpoint_factory, &clone->mountpoint_factory);
|
||||||
// ToDo: remove this: move is not clone :-/
|
|
||||||
wf_impl_mountpoint_factory_move(&config->mountpoint_factory, &clone->mountpoint_factory);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wf_server_config * wf_impl_server_config_create(void)
|
struct wf_server_config * wf_impl_server_config_create(void)
|
||||||
|
@ -216,7 +216,7 @@ void wf_impl_server_protocol_init(
|
|||||||
{
|
{
|
||||||
protocol->is_operational = false;
|
protocol->is_operational = false;
|
||||||
|
|
||||||
wf_impl_mountpoint_factory_move(mountpoint_factory, &protocol->mountpoint_factory);
|
wf_impl_mountpoint_factory_clone(mountpoint_factory, &protocol->mountpoint_factory);
|
||||||
|
|
||||||
protocol->timer_manager = wf_timer_manager_create();
|
protocol->timer_manager = wf_timer_manager_create();
|
||||||
wf_impl_session_manager_init(&protocol->session_manager);
|
wf_impl_session_manager_init(&protocol->session_manager);
|
||||||
|
Loading…
Reference in New Issue
Block a user