aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-30 17:31:10 +0200
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:05 -0500
commitab89a23a350016ba6633d4584584f23767977fb4 (patch)
treef527628774b1d76ac2a49301949e2b3d153544aa /include
parentab699377c12033a5b4d562b37f4a56fbe4505a21 (diff)
downloadserd-ab89a23a350016ba6633d4584584f23767977fb4.tar.gz
serd-ab89a23a350016ba6633d4584584f23767977fb4.tar.bz2
serd-ab89a23a350016ba6633d4584584f23767977fb4.zip
Add serd_env_copy() and serd_env_equals()
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 4f713a2f..09017175 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -985,6 +985,16 @@ SERD_API
SerdEnv* SERD_ALLOCATED
serd_env_new(SerdStringView base_uri);
+/// Copy an environment
+SERD_API
+SerdEnv* SERD_ALLOCATED
+serd_env_copy(const SerdEnv* SERD_NULLABLE env);
+
+/// Return true iff `a` is equal to `b`
+SERD_PURE_API
+bool
+serd_env_equals(const SerdEnv* SERD_NULLABLE a, const SerdEnv* SERD_NULLABLE b);
+
/// Free `env`
SERD_API
void