From 77eebec72c0507309ce89f8cdaceff4adfd147cf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 12 Jan 2022 16:18:17 -0500 Subject: Add serd_nodes_file_uri() --- include/serd/serd.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/serd') 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 @@ -1459,6 +1459,18 @@ SERD_API 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. -- cgit v1.2.1