aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-06-30 16:15:15 -0400
committerDavid Robillard <d@drobilla.net>2021-06-30 16:19:59 -0400
commitc1cae48eb3851239817c8cda5a8266815fb3173e (patch)
treec9ceda4eb0fa59b12a269b665c9822c719a1c80b /include
parent8113202c98888e092e1f4cdc2ee3ab34509d949c (diff)
downloadserd-c1cae48eb3851239817c8cda5a8266815fb3173e.tar.gz
serd-c1cae48eb3851239817c8cda5a8266815fb3173e.tar.bz2
serd-c1cae48eb3851239817c8cda5a8266815fb3173e.zip
Make node qualify and expand functions tolerate a null Env
This is convenient in places where you don't necessarily need an Env, since these methods will work the same as with an empty Env.
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 68443304..fcba2ddf 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -684,7 +684,7 @@ serd_env_set_prefix_from_strings(SerdEnv* SERD_NONNULL env,
/// Qualify `uri` into a CURIE if possible
SERD_API
bool
-serd_env_qualify(const SerdEnv* SERD_NONNULL env,
+serd_env_qualify(const SerdEnv* SERD_NULLABLE env,
const SerdNode* SERD_NONNULL uri,
SerdNode* SERD_NONNULL prefix,
SerdChunk* SERD_NONNULL suffix);
@@ -697,7 +697,7 @@ serd_env_qualify(const SerdEnv* SERD_NONNULL env,
*/
SERD_API
SerdStatus
-serd_env_expand(const SerdEnv* SERD_NONNULL env,
+serd_env_expand(const SerdEnv* SERD_NULLABLE env,
const SerdNode* SERD_NONNULL curie,
SerdChunk* SERD_NONNULL uri_prefix,
SerdChunk* SERD_NONNULL uri_suffix);
@@ -709,7 +709,7 @@ serd_env_expand(const SerdEnv* SERD_NONNULL env,
*/
SERD_API
SerdNode
-serd_env_expand_node(const SerdEnv* SERD_NONNULL env,
+serd_env_expand_node(const SerdEnv* SERD_NULLABLE env,
const SerdNode* SERD_NONNULL node);
/// Call `func` for each prefix defined in `env`