diff options
author | David Robillard <d@drobilla.net> | 2018-09-30 17:31:10 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 23:04:21 -0500 |
commit | 870eacef28930c9cc5d84fb7424f4519907ea877 (patch) | |
tree | 2b15d6c630dea76e1bcd2a7ea9364344244ac16e /include | |
parent | fb98f65ba7cef9f3a66043d6f75cea0ccf6adb79 (diff) | |
download | serd-870eacef28930c9cc5d84fb7424f4519907ea877.tar.gz serd-870eacef28930c9cc5d84fb7424f4519907ea877.tar.bz2 serd-870eacef28930c9cc5d84fb7424f4519907ea877.zip |
Add serd_env_copy() and serd_env_equals()
Diffstat (limited to 'include')
-rw-r--r-- | include/serd/serd.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h index 95555013..77b42a24 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -1378,6 +1378,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 |