summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/json.c5
-rw-r--r--misc/json.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/misc/json.c b/misc/json.c
index 489f087987..b301296ebe 100644
--- a/misc/json.c
+++ b/misc/json.c
@@ -70,6 +70,11 @@ static void eat_ws(char **src)
}
}
+void json_skip_whitespace(char **src)
+{
+ eat_ws(src);
+}
+
static int read_str(void *ta_parent, struct mpv_node *dst, char **src)
{
if (!eat_c(src, '"'))
diff --git a/misc/json.h b/misc/json.h
index e8551fe2a7..f5ad4cf258 100644
--- a/misc/json.h
+++ b/misc/json.h
@@ -22,6 +22,7 @@
#include "libmpv/client.h"
int json_parse(void *ta_parent, struct mpv_node *dst, char **src, int max_depth);
+void json_skip_whitespace(char **src);
int json_write(char **s, struct mpv_node *src);
#endif