aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-02-04 15:33:36 +0100
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commitc644f404054e6d68f3bb645cf93b8ad1501b8938 (patch)
tree6291623c37dd9ef6be062113bf6ac5afa8115171 /src/node.h
parentb0d4ae792c88cc55f9cc9a579530a1a13a158fda (diff)
downloadserd-c644f404054e6d68f3bb645cf93b8ad1501b8938.tar.gz
serd-c644f404054e6d68f3bb645cf93b8ad1501b8938.tar.bz2
serd-c644f404054e6d68f3bb645cf93b8ad1501b8938.zip
Make nodes opaque
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/node.h b/src/node.h
index 58673284..60e0d2ff 100644
--- a/src/node.h
+++ b/src/node.h
@@ -10,9 +10,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* SERD_NONNULL
@@ -28,10 +28,10 @@ serd_node_buffer_c(const SerdNode* SERD_NONNULL node)
}
SerdNode* SERD_ALLOCATED
-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* SERD_NULLABLE* SERD_NONNULL dst,
- const SerdNode* SERD_NULLABLE src);
+serd_node_set(SerdNode* SERD_NONNULL* SERD_NONNULL dst,
+ const SerdNode* SERD_NONNULL src);
#endif // SERD_SRC_NODE_H