diff options
author | David Robillard <d@drobilla.net> | 2022-01-12 16:18:17 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-28 21:57:29 -0500 |
commit | 77eebec72c0507309ce89f8cdaceff4adfd147cf (patch) | |
tree | a0ce99f34ed769e980d094b7df51761ecf9dcf1e /include | |
parent | d91b3c9ec59976c40742c852d25dccf67b445e61 (diff) | |
download | serd-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.h | 12 |
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 |