summaryrefslogtreecommitdiffstats
path: root/src/json.h
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-10-06 14:15:47 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-10-06 16:04:14 +0200
commit27fbc658293db97775385f6cc54a36bf0d6c454d (patch)
treec841aa74578c0656a0b725a3d0943e8fffc80cec /src/json.h
parentd89d6c6ce749f0d7dd89e3f6fabe2772f01b8b41 (diff)
#941 Add og_json_parse_string_copy(...) function
This function provides an easy way to copy the content of a json string into a regular C string.
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h
index cf78d46..df7964d 100644
--- a/src/json.h
+++ b/src/json.h
@@ -5,6 +5,7 @@
#include "schedule.h"
int og_json_parse_string(json_t *element, const char **str);
+int og_json_parse_string_copy(json_t *element, char *str, size_t size);
int og_json_parse_uint64(json_t *element, uint64_t *integer);
int og_json_parse_uint(json_t *element, uint32_t *integer);
int og_json_parse_bool(json_t *element, bool *value);