aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-20 20:58:27 +0200
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:05 -0500
commit40a83074705976ea59f0e1a5d06a4e5c7705472c (patch)
tree942f70ec83597833ed71a9aa6bb507d1b473bc15 /include
parentd4a5e5c0581aa25ac91e1d3d7d5900f0d7202ed9 (diff)
downloadserd-40a83074705976ea59f0e1a5d06a4e5c7705472c.tar.gz
serd-40a83074705976ea59f0e1a5d06a4e5c7705472c.tar.bz2
serd-40a83074705976ea59f0e1a5d06a4e5c7705472c.zip
Make const Env functions tolerant of NULL
This is convenient in places where you don't necessarily need an Env, since in this case these methods work the same as if with an empty Env.
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 79353e50..cfdc8693 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -1030,7 +1030,7 @@ serd_env_free(SerdEnv* SERD_NULLABLE env);
/// Get the current base URI
SERD_PURE_API
const SerdNode* SERD_NULLABLE
-serd_env_base_uri(const SerdEnv* SERD_NONNULL env);
+serd_env_base_uri(const SerdEnv* SERD_NULLABLE env);
/// Set the current base URI
SERD_API
@@ -1058,7 +1058,7 @@ serd_env_set_prefix(SerdEnv* SERD_NONNULL env,
*/
SERD_API
SerdNode* SERD_ALLOCATED
-serd_env_qualify(const SerdEnv* SERD_NONNULL env,
+serd_env_qualify(const SerdEnv* SERD_NULLABLE env,
const SerdNode* SERD_NONNULL uri);
/**
@@ -1072,8 +1072,8 @@ serd_env_qualify(const SerdEnv* SERD_NONNULL env,
*/
SERD_API
SerdNode* SERD_ALLOCATED
-serd_env_expand(const SerdEnv* SERD_NONNULL env,
- const SerdNode* SERD_NONNULL node);
+serd_env_expand(const SerdEnv* SERD_NULLABLE env,
+ const SerdNode* SERD_NULLABLE node);
/// Write all prefixes in `env` to `sink`
SERD_API