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:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user