diff options
author | wm4 <wm4@nowhere> | 2016-08-28 19:33:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-28 19:39:05 +0200 |
commit | a9a55ea7f28894d9e72be5e8b2d5a9331f1e7be4 (patch) | |
tree | c4e840511799135f85ce4969efc7465b26c83c8d /misc/node.h | |
parent | 5e56c07417934d590665ad8330f04db7dd164229 (diff) | |
download | mpv-a9a55ea7f28894d9e72be5e8b2d5a9331f1e7be4.tar.bz2 mpv-a9a55ea7f28894d9e72be5e8b2d5a9331f1e7be4.tar.xz |
misc: add some annoying mpv_node helpers
Sigh.
Some parts of mpv essentially duplicate this code (with varrying levels
of triviality) - this can be fixed "later".
Diffstat (limited to 'misc/node.h')
-rw-r--r-- | misc/node.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/node.h b/misc/node.h new file mode 100644 index 0000000000..c3b4501dc8 --- /dev/null +++ b/misc/node.h @@ -0,0 +1,11 @@ +#ifndef MP_MISC_NODE_H_ +#define MP_MISC_NODE_H_ + +#include "libmpv/client.h" + +void node_init(struct mpv_node *dst, int format, struct mpv_node *parent); +struct mpv_node *node_array_add(struct mpv_node *dst, int format); +struct mpv_node *node_map_add(struct mpv_node *dst, const char *key, int format); +void node_map_add_string(struct mpv_node *dst, const char *key, const char *val); + +#endif |