mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
1c9d1c8420
* moves implementation to impl subdirectory * adds prefix _impl to implementation symbols * removes double compilation for shared and static libraries * fixes include guards * fixes usage of extern "C"
73 lines
1.7 KiB
C
73 lines
1.7 KiB
C
#ifndef WSFS_ADAPTER_IMPL_SERVER_CONFIG_H
|
|
#define WSFS_ADAPTER_IMPL_SERVER_CONFIG_H
|
|
|
|
#include "wsfs/adapter/impl/authenticators.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct wsfs_server_config
|
|
{
|
|
char * mount_point;
|
|
char * document_root;
|
|
char * key_path;
|
|
char * cert_path;
|
|
char * vhost_name;
|
|
int port;
|
|
struct wsfs_impl_authenticators authenticators;
|
|
};
|
|
|
|
extern struct wsfs_server_config * wsfs_impl_server_config_create(void);
|
|
|
|
extern void wsfs_impl_server_config_dispose(
|
|
struct wsfs_server_config * config);
|
|
|
|
extern void wsfs_impl_server_config_init(
|
|
struct wsfs_server_config * config);
|
|
|
|
extern void wsfs_impl_server_config_cleanup(
|
|
struct wsfs_server_config * config);
|
|
|
|
extern void wsfs_impl_server_config_clone(
|
|
struct wsfs_server_config * config,
|
|
struct wsfs_server_config * clone);
|
|
|
|
extern void wsfs_impl_server_config_set_mountpoint(
|
|
struct wsfs_server_config * config,
|
|
char const * mount_point);
|
|
|
|
extern void wsfs_impl_server_config_set_documentroot(
|
|
struct wsfs_server_config * config,
|
|
char const * document_root);
|
|
|
|
extern void wsfs_impl_server_config_set_keypath(
|
|
struct wsfs_server_config * config,
|
|
char const * key_path);
|
|
|
|
extern void wsfs_impl_server_config_set_certpath(
|
|
struct wsfs_server_config * config,
|
|
char const * cert_path);
|
|
|
|
extern void wsfs_impl_server_config_set_vhostname(
|
|
struct wsfs_server_config * config,
|
|
char const * vhost_name);
|
|
|
|
extern void wsfs_impl_server_config_set_port(
|
|
struct wsfs_server_config * config,
|
|
int port);
|
|
|
|
extern void wsfs_impl_server_config_add_authenticator(
|
|
struct wsfs_server_config * config,
|
|
char const * type,
|
|
wsfs_authenticate_fn * authenticate,
|
|
void * user_data
|
|
);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|