aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-29 19:56:13 -0500
committerDavid Robillard <d@drobilla.net>2018-12-31 11:37:49 -0500
commit201888d97b1382632fcd7b335c37030c8a4922d8 (patch)
treed772f34887be39d41c2f7ed00c5686fc70e399a0 /src/node.h
parent8790f785102ffc5b205ee1ea1fc2586164a6f383 (diff)
downloadserd-201888d97b1382632fcd7b335c37030c8a4922d8.tar.gz
serd-201888d97b1382632fcd7b335c37030c8a4922d8.tar.bz2
serd-201888d97b1382632fcd7b335c37030c8a4922d8.zip
Rename SerdType to SerdNodeType
The old name has become ambiguous with the expanded scope of serd.
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/node.h b/src/node.h
index bfd9ebf5..53936ca3 100644
--- a/src/node.h
+++ b/src/node.h
@@ -24,7 +24,7 @@
struct SerdNodeImpl {
size_t n_bytes; /**< Size in bytes (not including null) */
SerdNodeFlags flags; /**< Node flags (e.g. string properties) */
- SerdType type; /**< Node type */
+ SerdNodeType type; /**< Node type */
};
static inline char*
@@ -39,7 +39,9 @@ serd_node_buffer_c(const SerdNode* node)
return (const char*)(node + 1);
}
-SerdNode* serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdType type);
+SerdNode*
+serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdNodeType type);
+
void serd_node_set(SerdNode** dst, const SerdNode* src);
size_t serd_node_total_size(const SerdNode* node);
void serd_node_zero_pad(SerdNode* node);