2019-02-25 20:35:38 +00:00
|
|
|
#ifndef WSFS_ADAPTER_SERVER_CONFIG_H
|
|
|
|
#define WSFS_ADAPTER_SERVER_CONFIG_H
|
2019-02-05 23:58:51 +00:00
|
|
|
|
2019-02-25 19:17:13 +00:00
|
|
|
#include "wsfs/adapter/api.h"
|
2019-03-23 21:53:14 +00:00
|
|
|
#include "wsfs/adapter/authenticate.h"
|
2019-02-05 23:58:51 +00:00
|
|
|
|
2019-03-23 21:53:14 +00:00
|
|
|
struct wsfs_server_config;
|
2019-02-05 23:58:51 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2019-03-23 21:53:14 +00:00
|
|
|
extern WSFSA_API struct wsfs_server_config * wsfs_server_config_create(void);
|
2019-02-05 23:58:51 +00:00
|
|
|
|
2019-03-23 21:53:14 +00:00
|
|
|
extern WSFSA_API void wsfs_server_config_dispose(
|
2019-02-05 23:58:51 +00:00
|
|
|
struct wsfs_server_config * config);
|
|
|
|
|
2019-03-23 21:53:14 +00:00
|
|
|
|
|
|
|
extern WSFSA_API void wsfs_server_config_set_mountpoint(
|
|
|
|
struct wsfs_server_config * config,
|
|
|
|
char const * mount_point);
|
|
|
|
|
|
|
|
extern WSFSA_API void wsfs_server_config_set_documentroot(
|
|
|
|
struct wsfs_server_config * config,
|
|
|
|
char const * document_root);
|
|
|
|
|
|
|
|
extern WSFSA_API void wsfs_server_config_set_keypath(
|
|
|
|
struct wsfs_server_config * config,
|
|
|
|
char const * key_path);
|
|
|
|
|
|
|
|
extern WSFSA_API void wsfs_server_config_set_certpath(
|
|
|
|
struct wsfs_server_config * config,
|
|
|
|
char const * cert_path);
|
|
|
|
|
|
|
|
extern WSFSA_API void wsfs_server_config_set_vhostname(
|
|
|
|
struct wsfs_server_config * config,
|
|
|
|
char const * vhost_name);
|
|
|
|
|
|
|
|
extern WSFSA_API void wsfs_server_config_set_port(
|
|
|
|
struct wsfs_server_config * config,
|
|
|
|
int port);
|
|
|
|
|
|
|
|
extern WSFSA_API void wsfs_server_config_add_authenticator(
|
|
|
|
struct wsfs_server_config * config,
|
|
|
|
char const * type,
|
|
|
|
wsfs_authenticate_fn * authenticate,
|
|
|
|
void * user_data
|
|
|
|
);
|
2019-02-05 23:58:51 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|