1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

added implementation of json parser

This commit is contained in:
Falk Werner
2020-07-11 21:05:00 +02:00
parent 7542f0bbc0
commit 63ca5d5a6d
12 changed files with 1014 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
#include "webfuse_provider/impl/util/json_util.h"
int wfp_impl_json_get_int(json_t const * object, char const * key, int default_value)
int wfp_impl_json_get_integer(json_t const * object, char const * key, int default_value)
{
int result = default_value;
@@ -20,7 +20,7 @@ wfp_impl_jsonrpc_get_status(
wfp_status status = WFP_GOOD;
if (NULL != error)
{
status = wfp_impl_json_get_int(error, "code", WFP_BAD_FORMAT);
status = wfp_impl_json_get_integer(error, "code", WFP_BAD_FORMAT);
}
return status;

View File

@@ -10,7 +10,7 @@ extern "C"
#endif
extern int
wfp_impl_json_get_int(
wfp_impl_json_get_integer(
json_t const * object,
char const * key,
int default_value);