Showing the changes to misc/node.h (1 of 16 files). Show all
Unified · Split
| @@ -1,21 +1,24 @@ | ||
| 1 | 1 | #ifndef MP_MISC_NODE_H_ |
| 2 | 2 | #define MP_MISC_NODE_H_ |
| 3 | 3 | |
| 4 | −#include "libmpv/client.h" | |
| 5 | −#include "misc/bstr.h" | |
| 4 | +#include <stdbool.h> | |
| 5 | +#include <stdint.h> | |
| 6 | + | |
| 7 | +struct bstr; | |
| 8 | +struct mpv_node; | |
| 6 | 9 | |
| 7 | 10 | void node_init(struct mpv_node *dst, int format, struct mpv_node *parent); |
| 8 | 11 | struct mpv_node *node_array_add(struct mpv_node *dst, int format); |
| 9 | 12 | struct mpv_node *node_map_add(struct mpv_node *dst, const char *key, int format); |
| 10 | 13 | struct mpv_node *node_map_badd(struct mpv_node *dst, struct bstr key, int format); |
| 11 | 14 | void node_map_add_string(struct mpv_node *dst, const char *key, const char *val); |
| 12 | −void node_map_add_bstr(struct mpv_node *dst, const char *key, bstr val); | |
| 15 | +void node_map_add_bstr(struct mpv_node *dst, const char *key, struct bstr val); | |
| 13 | 16 | void node_map_add_int64(struct mpv_node *dst, const char *key, int64_t v); |
| 14 | 17 | void node_map_add_double(struct mpv_node *dst, const char *key, double v); |
| 15 | 18 | void node_map_add_flag(struct mpv_node *dst, const char *key, bool v); |
| 16 | −mpv_node *node_map_get(mpv_node *src, const char *key); | |
| 17 | −mpv_node *node_map_bget(mpv_node *src, struct bstr key); | |
| 18 | −bool equal_mpv_value(const void *a, const void *b, mpv_format format); | |
| 19 | +struct mpv_node *node_map_get(struct mpv_node *src, const char *key); | |
| 20 | +struct mpv_node *node_map_bget(struct mpv_node *src, struct bstr key); | |
| 21 | +bool equal_mpv_value(const void *a, const void *b, int format); | |
| 19 | 22 | bool equal_mpv_node(const struct mpv_node *a, const struct mpv_node *b); |
| 20 | 23 | |
| 21 | 24 | #endif |