diff options
author | wm4 <wm4@nowhere> | 2014-10-19 05:27:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-19 05:51:37 +0200 |
commit | 5548c75e5507da6a0f9fb6a45a07a5cc6edd9393 (patch) | |
tree | abd1a7442abf056900a518ffa6bfe3606f1329cc /misc/json.c | |
parent | 987146362e35820cd96d7de4f48b13ec4ee25d7c (diff) | |
download | mpv-5548c75e5507da6a0f9fb6a45a07a5cc6edd9393.tar.bz2 mpv-5548c75e5507da6a0f9fb6a45a07a5cc6edd9393.tar.xz |
lua: expose JSON parser
The JSON parser was introduced for the IPC protocol, but I guess it's
useful here too.
The motivation for this commit is the same as with 8e4fa5fc (again).
Diffstat (limited to 'misc/json.c')
-rw-r--r-- | misc/json.c | 5 |
1 files changed, 5 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, '"')) |