1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

added first idea of API

This commit is contained in:
Falk Werner
2020-02-25 15:36:28 +01:00
parent 3e563f00d6
commit 767bafcd01
5 changed files with 143 additions and 3 deletions

View File

@@ -110,3 +110,29 @@ void wfp_impl_client_config_set_onread(
{
config->provider.read = handler;
}
void wfp_impl_client_config_set_username_credentials(
struct wfp_client_config * config,
char const * username,
char const * password)
{
(void) config;
(void) username;
(void) password;
// ToDo: implement me
}
void wfp_impl_client_config_set_generic_credentials(
struct wfp_client_config * config,
char const * credentials_type,
char const * contents[])
{
(void) config;
(void) credentials_type;
(void) contents;
// ToDo: implement me
}

View File

@@ -70,6 +70,16 @@ extern void wfp_impl_client_config_set_onread(
struct wfp_client_config * config,
wfp_read_fn * handler);
extern void wfp_impl_client_config_set_username_credentials(
struct wfp_client_config * config,
char const * username,
char const * password);
extern void wfp_impl_client_config_set_generic_credentials(
struct wfp_client_config * config,
char const * credentials_type,
char const * contents[]);
#ifdef __cplusplus
}
#endif