aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-01-12 16:18:17 -0500
committerDavid Robillard <d@drobilla.net>2022-01-28 21:57:29 -0500
commit77eebec72c0507309ce89f8cdaceff4adfd147cf (patch)
treea0ce99f34ed769e980d094b7df51761ecf9dcf1e /include
parentd91b3c9ec59976c40742c852d25dccf67b445e61 (diff)
downloadserd-77eebec72c0507309ce89f8cdaceff4adfd147cf.tar.gz
serd-77eebec72c0507309ce89f8cdaceff4adfd147cf.tar.bz2
serd-77eebec72c0507309ce89f8cdaceff4adfd147cf.zip
Add serd_nodes_file_uri()
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 7a280b64..52245077 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -1460,6 +1460,18 @@ const SerdNode* SERD_ALLOCATED
serd_nodes_parsed_uri(SerdNodes* SERD_NONNULL nodes, SerdURIView uri);
/**
+ Make a file URI node from a path and optional hostname.
+
+ A new node will be constructed with serd_node_construct_file_uri() if an
+ equivalent one is not already in the set.
+*/
+SERD_API
+const SerdNode* SERD_ALLOCATED
+serd_nodes_file_uri(SerdNodes* SERD_NONNULL nodes,
+ SerdStringView path,
+ SerdStringView hostname);
+
+/**
Make a literal node with optional datatype or language.
This can create complex literals with an associated datatype URI or language