2020-06-28 17:43:08 +00:00
|
|
|
#ifndef WF_IMPL_UTIL_JSON_UTIL_H
|
|
|
|
#define WF_IMPL_UTIL_JSON_UTIL_H
|
2020-02-28 22:17:41 +00:00
|
|
|
|
|
|
|
#include <jansson.h>
|
2020-06-28 13:51:34 +00:00
|
|
|
#include "webfuse/status.h"
|
2020-02-28 22:17:41 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2020-07-16 17:30:18 +00:00
|
|
|
struct wf_jsonrpc_error;
|
|
|
|
|
2020-02-28 22:17:41 +00:00
|
|
|
extern int
|
|
|
|
wf_impl_json_get_int(
|
|
|
|
json_t const * object,
|
|
|
|
char const * key,
|
|
|
|
int default_value);
|
|
|
|
|
|
|
|
extern wf_status
|
|
|
|
wf_impl_jsonrpc_get_status(
|
2020-07-16 17:30:18 +00:00
|
|
|
struct wf_jsonrpc_error const * error);
|
2020-02-28 22:17:41 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|