1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/lib/wsfs/adapter/impl/credentials.h

36 lines
613 B
C
Raw Normal View History

#ifndef WSFS_ADAPTER_IMPL_CREDENTIALS_H
#define WSFS_ADAPTER_IMPL_CREDENTIALS_H
#include <jansson.h>
2019-03-24 01:10:03 +00:00
#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