summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'json.h')
-rw-r--r--json.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/json.h b/json.h
index 39b0091..f0ab380 100644
--- a/json.h
+++ b/json.h
@@ -233,5 +233,8 @@ void json_set_string(json_node *node, const char *str, size_t length);
const char *json_get_number(json_node *node);
void json_set_number(json_node *node, const char *number, size_t length);
+/* Utility function used by json_get to automatically apply from_json to its result. */
+const char *from_json_cstring(const char *input, const char *funcname);
+
#endif