aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-02-20 13:17:03 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commit53c28210b9e81ba33fddce89b2d61fb7c99445dc (patch)
tree524885916085088ee8d2744cbe3ff4ed217f149f /src/node.c
parent19b9f627ba195cab7c7ebea9daca9ead6e4f5d9a (diff)
downloadserd-53c28210b9e81ba33fddce89b2d61fb7c99445dc.tar.gz
serd-53c28210b9e81ba33fddce89b2d61fb7c99445dc.tar.bz2
serd-53c28210b9e81ba33fddce89b2d61fb7c99445dc.zip
Rename SerdURI to SerdURIView
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/node.c b/src/node.c
index 8f7a3aad..b2cca085 100644
--- a/src/node.c
+++ b/src/node.c
@@ -26,7 +26,7 @@
#endif
static size_t
-serd_uri_string_length(const SerdURI* const uri)
+serd_uri_string_length(const SerdURIView* const uri)
{
size_t len = uri->path_base.len;
@@ -104,9 +104,9 @@ serd_node_equals(const SerdNode* const a, const SerdNode* const b)
}
SerdNode
-serd_node_new_uri_from_node(const SerdNode* const uri_node,
- const SerdURI* const base,
- SerdURI* const out)
+serd_node_new_uri_from_node(const SerdNode* const uri_node,
+ const SerdURIView* const base,
+ SerdURIView* const out)
{
return (uri_node->type == SERD_URI && uri_node->buf)
? serd_node_new_uri_from_string(uri_node->buf, base, out)
@@ -114,16 +114,16 @@ serd_node_new_uri_from_node(const SerdNode* const uri_node,
}
SerdNode
-serd_node_new_uri_from_string(const char* const str,
- const SerdURI* const base,
- SerdURI* const out)
+serd_node_new_uri_from_string(const char* const str,
+ const SerdURIView* const base,
+ SerdURIView* const out)
{
if (!str || str[0] == '\0') {
// Empty URI => Base URI, or nothing if no base is given
return base ? serd_node_new_uri(base, NULL, out) : SERD_NODE_NULL;
}
- SerdURI uri;
+ SerdURIView uri;
serd_uri_parse(str, &uri);
return serd_node_new_uri(&uri, base, out); // Resolve/Serialise
}
@@ -175,9 +175,9 @@ is_dir_sep(const char c)
}
SerdNode
-serd_node_new_file_uri(const char* const path,
- const char* const hostname,
- SerdURI* const out)
+serd_node_new_file_uri(const char* const path,
+ const char* const hostname,
+ SerdURIView* const out)
{
const size_t path_len = strlen(path);
const size_t hostname_len = hostname ? strlen(hostname) : 0;
@@ -226,11 +226,11 @@ serd_node_new_file_uri(const char* const path,
}
SerdNode
-serd_node_new_uri(const SerdURI* const uri,
- const SerdURI* const base,
- SerdURI* const out)
+serd_node_new_uri(const SerdURIView* const uri,
+ const SerdURIView* const base,
+ SerdURIView* const out)
{
- SerdURI abs_uri = *uri;
+ SerdURIView abs_uri = *uri;
if (base) {
serd_uri_resolve(uri, base, &abs_uri);
}
@@ -252,10 +252,10 @@ serd_node_new_uri(const SerdURI* const uri,
}
SerdNode
-serd_node_new_relative_uri(const SerdURI* const uri,
- const SerdURI* const base,
- const SerdURI* const root,
- SerdURI* const out)
+serd_node_new_relative_uri(const SerdURIView* const uri,
+ const SerdURIView* const base,
+ const SerdURIView* const root,
+ SerdURIView* const out)
{
const size_t uri_len = serd_uri_string_length(uri);
const size_t base_len = serd_uri_string_length(base);