2020-02-25 21:05:48 +00:00
|
|
|
#ifndef WF_PROVIDER_IMPL_CREDENTIALS_H
|
|
|
|
#define WF_PROVIDER_IMPL_CREDENTIALS_H
|
|
|
|
|
|
|
|
#include "webfuse/provider/credentials.h"
|
|
|
|
#include <jansson.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct wfp_credentials
|
|
|
|
{
|
|
|
|
char * type;
|
|
|
|
json_t * contents;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern void wfp_impl_credentials_init(
|
|
|
|
struct wfp_credentials * credentials);
|
|
|
|
|
|
|
|
extern void wfp_impl_credentials_cleanup(
|
|
|
|
struct wfp_credentials * credentials);
|
|
|
|
|
|
|
|
extern void wfp_impl_credentials_set_type(
|
|
|
|
struct wfp_credentials * credentials,
|
|
|
|
char const * type);
|
|
|
|
|
|
|
|
extern void wfp_impl_credentials_add(
|
|
|
|
struct wfp_credentials * credentials,
|
|
|
|
char const * key,
|
|
|
|
char const * value);
|
|
|
|
|
2020-03-01 12:42:46 +00:00
|
|
|
extern char const * wfp_impl_credentials_get_type(
|
|
|
|
struct wfp_credentials * credentials);
|
|
|
|
|
|
|
|
extern json_t * wfp_impl_credentials_get(
|
|
|
|
struct wfp_credentials * credentials);
|
2020-02-25 21:05:48 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|