mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
36 lines
613 B
C
36 lines
613 B
C
#ifndef WSFS_ADAPTER_IMPL_CREDENTIALS_H
|
|
#define WSFS_ADAPTER_IMPL_CREDENTIALS_H
|
|
|
|
#include <jansson.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
struct credentials
|
|
{
|
|
char * type;
|
|
json_t * data;
|
|
};
|
|
|
|
extern void credentials_init(
|
|
struct credentials * credentials,
|
|
char const * type,
|
|
json_t * data);
|
|
|
|
extern void credentials_cleanup(
|
|
struct credentials * credentials);
|
|
|
|
extern char const * credentials_type(
|
|
struct credentials const * credentials);
|
|
|
|
extern char const * credentials_get(
|
|
struct credentials const * credentials,
|
|
char const * key);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |