aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-12-20 13:02:24 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commitd1ba721d37af61f2b529faaa16bd20ba1e161b06 (patch)
tree2930f07857d5416eb193fe8afbcc4adecdc2e7ea /src/node.h
parent08a3b8a18093d1623309f5f406865f51e7bff39a (diff)
downloadserd-d1ba721d37af61f2b529faaa16bd20ba1e161b06.tar.gz
serd-d1ba721d37af61f2b529faaa16bd20ba1e161b06.tar.bz2
serd-d1ba721d37af61f2b529faaa16bd20ba1e161b06.zip
Add serd_node_compare()
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node.h b/src/node.h
index 359da4b9..fc03bf72 100644
--- a/src/node.h
+++ b/src/node.h
@@ -33,6 +33,12 @@ serd_node_buffer_c(const SerdNode* SERD_NONNULL node)
return (const char*)(node + 1);
}
+static inline const char* SERD_NONNULL
+serd_node_string_i(const SerdNode* const SERD_NONNULL node)
+{
+ return (const char*)(node + 1);
+}
+
SerdNode* SERD_ALLOCATED
serd_node_malloc(size_t length, SerdNodeFlags flags, SerdNodeType type);