diff options
author | David Robillard <d@drobilla.net> | 2018-12-20 13:08:46 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | f58e9a1cd558de40efaa26a0a6e58ae5c61bbcfc (patch) | |
tree | 7b79769543fe96dfbe54193acf342832d4a61576 /src | |
parent | d5dc0ea200f6f16dc0799b08ab5cc347ad92f530 (diff) | |
download | serd-f58e9a1cd558de40efaa26a0a6e58ae5c61bbcfc.tar.gz serd-f58e9a1cd558de40efaa26a0a6e58ae5c61bbcfc.tar.bz2 serd-f58e9a1cd558de40efaa26a0a6e58ae5c61bbcfc.zip |
Add serd_env_write_prefixes()
Diffstat (limited to 'src')
-rw-r--r-- | src/env.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -326,3 +326,12 @@ serd_env_foreach(const SerdEnv* env, func(handle, env->prefixes[i].name, env->prefixes[i].uri); } } + +void +serd_env_write_prefixes(const SerdEnv* env, const SerdSink* sink) +{ + for (size_t i = 0; i < env->n_prefixes; ++i) { + serd_sink_write_prefix( + sink, env->prefixes[i].name, env->prefixes[i].uri); + } +} |