diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 15:33:36 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 15:33:54 -0500 |
commit | cda46ec67d41fb120809d5d1d16c05eb1b3882da (patch) | |
tree | a968e71f84289c3ce96b654e9bc285812c17f7d4 /src/node.h | |
parent | a650d2ad2d4785c40405854740e70f487ae1016a (diff) | |
download | serd-cda46ec67d41fb120809d5d1d16c05eb1b3882da.tar.gz serd-cda46ec67d41fb120809d5d1d16c05eb1b3882da.tar.bz2 serd-cda46ec67d41fb120809d5d1d16c05eb1b3882da.zip |
Make nodes opaque
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -22,9 +22,9 @@ #include <stddef.h> struct SerdNodeImpl { - size_t n_bytes; /**< Size in bytes (not including null) */ - SerdNodeFlags flags; /**< Node flags (e.g. string properties) */ - SerdNodeType type; /**< Node type */ + size_t length; ///< Length in bytes (not including null) + SerdNodeFlags flags; ///< Node flags + SerdNodeType type; ///< Node type }; static inline char* @@ -40,7 +40,7 @@ serd_node_buffer_c(const SerdNode* node) } SerdNode* -serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdNodeType type); +serd_node_malloc(size_t length, SerdNodeFlags flags, SerdNodeType type); void serd_node_set(SerdNode** dst, const SerdNode* src); |