2020-06-16 21:57:41 +00:00
|
|
|
#ifndef WFP_JSON_UTIL_H
|
|
|
|
#define WFP_JSON_UTIL_H
|
2020-02-28 22:17:41 +00:00
|
|
|
|
|
|
|
#include <jansson.h>
|
2020-06-16 21:39:45 +00:00
|
|
|
#include "webfuse_provider/status.h"
|
2020-02-28 22:17:41 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern int
|
2020-07-11 19:05:00 +00:00
|
|
|
wfp_impl_json_get_integer(
|
2020-02-28 22:17:41 +00:00
|
|
|
json_t const * object,
|
|
|
|
char const * key,
|
|
|
|
int default_value);
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
extern wfp_status
|
|
|
|
wfp_impl_jsonrpc_get_status(
|
2020-02-28 22:17:41 +00:00
|
|
|
json_t const * error);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|