mirror of
https://github.com/falk-werner/webfuse-provider
synced 2026-03-02 04:09:18 +00:00
feature: added wf_credentials_set_type and wf_credentials_add
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
#ifndef WF_ADAPTER_CLIENT_CREDENTIALS_H
|
||||
#define WF_ADAPTER_CLIENT_CREDENTIALS_H
|
||||
|
||||
#include "webfuse/adapter/api.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
struct wf_client_credentials;
|
||||
|
||||
extern WF_API void
|
||||
wf_client_credentials_set_type(
|
||||
struct wf_client_credentials * credentials,
|
||||
char const * type);
|
||||
|
||||
extern WF_API void
|
||||
wf_client_credentials_add(
|
||||
struct wf_client_credentials * credentials,
|
||||
char const * key,
|
||||
char const * value);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -65,6 +65,28 @@ extern WF_API char const * wf_credentials_get(
|
||||
struct wf_credentials const * credentials,
|
||||
char const * key);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// \brief Sets the type of the credentials.
|
||||
///
|
||||
/// \param credentials Pointer to credentials object.
|
||||
/// \param type Type of credentials.
|
||||
//------------------------------------------------------------------------------
|
||||
extern WF_API void wf_credentials_set_type(
|
||||
struct wf_credentials * credentials,
|
||||
char const * type);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// \brief Adds an item to credentials
|
||||
///
|
||||
/// \param credentials Pointer to credentials object.
|
||||
/// \param key String to identify the item.
|
||||
/// \param key Value of the item.
|
||||
//------------------------------------------------------------------------------
|
||||
extern WF_API void wf_credentials_add(
|
||||
struct wf_credentials * credentials,
|
||||
char const * key,
|
||||
char const * value);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include <webfuse/adapter/mountpoint.h>
|
||||
|
||||
#include <webfuse/adapter/client.h>
|
||||
#include <webfuse/adapter/client_credentials.h>
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user