diff options
author | David Robillard <d@drobilla.net> | 2021-02-24 15:49:21 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | 94d3433dcf0e77d2c867c9a2dd6928acfea4184c (patch) | |
tree | 7746100e00d4d587ea64ca3034c53058051ebcf5 /src/node.c | |
parent | 290be9610e32bb427dd0456e4b1e26526c479004 (diff) | |
download | serd-94d3433dcf0e77d2c867c9a2dd6928acfea4184c.tar.gz serd-94d3433dcf0e77d2c867c9a2dd6928acfea4184c.tar.bz2 serd-94d3433dcf0e77d2c867c9a2dd6928acfea4184c.zip |
Add serd_node_uri_view()
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -458,6 +458,18 @@ serd_node_string_view(const SerdNode* const node) return r; } +SerdURIView +serd_node_uri_view(const SerdNode* const node) +{ + SerdURIView result = SERD_URI_NULL; + + if (node->type == SERD_URI) { + serd_uri_parse(serd_node_string(node), &result); + } + + return result; +} + SerdNodeFlags serd_node_flags(const SerdNode* const node) { |