summaryrefslogtreecommitdiffstats
path: root/misc/json.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-30 14:56:50 +0100
committerwm4 <wm4@nowhere>2017-10-30 15:32:24 +0100
commit694157e024e52e6fcb01cfd2e9c6d50b85f9621f (patch)
tree3b393b96fb8799381ce03b4fe63248983e903f2f /misc/json.h
parent2d958dbf2bd918391f3b3f48fe131d3eb783463a (diff)
downloadmpv-694157e024e52e6fcb01cfd2e9c6d50b85f9621f.tar.bz2
mpv-694157e024e52e6fcb01cfd2e9c6d50b85f9621f.tar.xz
m_option: pretty print mpv_node for OSD
Somewhat useful for debugging. Unfortunately libass (or something else) strips leading whitespace, making it look slightly more ugly than necessary. Still an improvement.
Diffstat (limited to 'misc/json.h')
-rw-r--r--misc/json.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/json.h b/misc/json.h
index 0a9f8d7839..43d565b275 100644
--- a/misc/json.h
+++ b/misc/json.h
@@ -24,5 +24,6 @@
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);
+int json_write_pretty(char **s, struct mpv_node *src);
#endif