aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/node.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-10 21:06:16 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commite750f4b6734d086e433e3c9c05b2252f43f4be8f (patch)
tree6eb84ef00642ac32f40bca8a242a9b0d2a6ef3f3 /include/serd/node.h
parent8346ac7f529f5aeb8d8b0e48837e680ea14e8893 (diff)
downloadserd-e750f4b6734d086e433e3c9c05b2252f43f4be8f.tar.gz
serd-e750f4b6734d086e433e3c9c05b2252f43f4be8f.tar.bz2
serd-e750f4b6734d086e433e3c9c05b2252f43f4be8f.zip
Add SerdNodes for storing a cache of interned nodes
Diffstat (limited to 'include/serd/node.h')
-rw-r--r--include/serd/node.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/serd/node.h b/include/serd/node.h
index d140e4c0..8dbdbde4 100644
--- a/include/serd/node.h
+++ b/include/serd/node.h
@@ -120,7 +120,7 @@ typedef uint32_t SerdNodeFlags;
Arguments constructors like #serd_a_file_uri return a temporary view of
their arguments, which can be passed (usually inline) to node construction
- functions like #serd_node_new, or #serd_node_construct.
+ functions like #serd_node_new, #serd_node_construct, or #serd_nodes_get.
@{
*/
@@ -413,6 +413,9 @@ serd_node_construct(size_t buf_size, void* ZIX_NULLABLE buf, SerdNodeArgs args);
nodes with an allocator. The returned nodes must be freed with
serd_node_free() using the same allocator.
+ Note that in most cases it is better to use a #SerdNodes instead of managing
+ individual node allocations.
+
@{
*/