2020-06-17 14:51:08 +00:00
|
|
|
#ifndef WFP_IMPL_CLIENT_CONFIG_H
|
|
|
|
#define WFP_IMPL_CLIENT_CONFIG_H
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2020-06-16 21:39:45 +00:00
|
|
|
#include "webfuse_provider/client_config.h"
|
|
|
|
#include "webfuse_provider/impl/provider.h"
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct wfp_client_config
|
|
|
|
{
|
|
|
|
struct wfp_provider provider;
|
|
|
|
void * user_data;
|
|
|
|
char * key_path;
|
|
|
|
char * cert_path;
|
2020-04-01 19:42:50 +00:00
|
|
|
char * ca_filepath;
|
2019-03-26 22:04:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct wfp_client_config * wfp_impl_client_config_create(void);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_dispose(
|
|
|
|
struct wfp_client_config * config);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_userdata(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
void * user_data);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_keypath(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
char const * key_path);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_certpath(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
char const * cert_path);
|
|
|
|
|
2020-04-01 19:42:50 +00:00
|
|
|
extern void wfp_impl_client_config_set_ca_filepath(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
char const * ca_filepath);
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
extern void wfp_impl_client_config_set_onconnected(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
wfp_connected_fn * handler);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_ondisconnected(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
wfp_disconnected_fn * handler);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_onlookup(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
wfp_lookup_fn * handler);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_ongetattr(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
wfp_getattr_fn * handler);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_onreaddir(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
wfp_readdir_fn * handler);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_onopen(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
wfp_open_fn * handler);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_onclose(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
wfp_close_fn * handler);
|
|
|
|
|
|
|
|
extern void wfp_impl_client_config_set_onread(
|
|
|
|
struct wfp_client_config * config,
|
|
|
|
wfp_read_fn * handler);
|
|
|
|
|
2020-02-25 21:05:48 +00:00
|
|
|
extern void wfp_impl_client_config_enable_authentication(
|
2020-02-25 14:36:28 +00:00
|
|
|
struct wfp_client_config * config,
|
2020-02-25 21:05:48 +00:00
|
|
|
wfp_get_credentials_fn * get_credentials);
|
2020-02-25 14:36:28 +00:00
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|