aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-20 09:47:26 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit530edb265fbbed20e6d3a6fd7a36461ff83d9b46 (patch)
tree0f67206d7631bcff366c02cbedcd7f20b405dcb7 /include
parent0f9816d67bc67a396607291f845ca2a33c2285a7 (diff)
downloadserd-530edb265fbbed20e6d3a6fd7a36461ff83d9b46.tar.gz
serd-530edb265fbbed20e6d3a6fd7a36461ff83d9b46.tar.bz2
serd-530edb265fbbed20e6d3a6fd7a36461ff83d9b46.zip
Add serd_env_unset_prefix()
Diffstat (limited to 'include')
-rw-r--r--include/serd/env.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/serd/env.h b/include/serd/env.h
index 9ec2ef6a..a894ee4f 100644
--- a/include/serd/env.h
+++ b/include/serd/env.h
@@ -73,6 +73,18 @@ serd_env_set_prefix(SerdEnv* ZIX_NONNULL env,
ZixStringView uri);
/**
+ Unset a namespace prefix.
+
+ This removes the namespace prefix with the given name, if present. No such
+ prefix being found is not considered an error, that is, the call is
+ successful as long as the prefix is not set in the env upon return.
+
+ @return #SERD_SUCCESS if the prefix was removed or not present, or an error.
+*/
+SERD_API SerdStatus
+serd_env_unset_prefix(SerdEnv* ZIX_NONNULL env, ZixStringView name);
+
+/**
Qualify `uri` into a prefix and suffix (like a CURIE) if possible.
@param env Environment with prefixes to use.