2016-08-28 17:33:52 +00:00
|
|
|
#ifndef MP_MISC_NODE_H_
|
|
|
|
#define MP_MISC_NODE_H_
|
|
|
|
|
|
|
|
#include "libmpv/client.h"
|
2022-12-16 01:18:45 +00:00
|
|
|
#include "misc/bstr.h"
|
2016-08-28 17:33:52 +00:00
|
|
|
|
|
|
|
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);
|
2022-12-16 01:18:45 +00:00
|
|
|
struct mpv_node *node_map_badd(struct mpv_node *dst, struct bstr key, int format);
|
2016-08-28 17:33:52 +00:00
|
|
|
void node_map_add_string(struct mpv_node *dst, const char *key, const char *val);
|
2024-09-04 01:13:47 +00:00
|
|
|
void node_map_add_bstr(struct mpv_node *dst, const char *key, bstr val);
|
2017-10-26 20:26:43 +00:00
|
|
|
void node_map_add_int64(struct mpv_node *dst, const char *key, int64_t v);
|
|
|
|
void node_map_add_double(struct mpv_node *dst, const char *key, double v);
|
|
|
|
void node_map_add_flag(struct mpv_node *dst, const char *key, bool v);
|
2018-05-12 12:48:24 +00:00
|
|
|
mpv_node *node_map_get(mpv_node *src, const char *key);
|
2022-12-16 01:18:45 +00:00
|
|
|
mpv_node *node_map_bget(mpv_node *src, struct bstr key);
|
2018-05-17 13:29:03 +00:00
|
|
|
bool equal_mpv_value(const void *a, const void *b, mpv_format format);
|
|
|
|
bool equal_mpv_node(const struct mpv_node *a, const struct mpv_node *b);
|
2016-08-28 17:33:52 +00:00
|
|
|
|
|
|
|
#endif
|