diff options
Diffstat (limited to 'src/env.c')
-rw-r--r-- | src/env.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -326,3 +326,11 @@ serd_env_foreach(const SerdEnv* env, func(handle, env->prefixes[i].name, env->prefixes[i].uri); } } + +void +serd_env_send_prefixes(const SerdEnv* env, SerdSink* sink) +{ + for (size_t i = 0; i < env->n_prefixes; ++i) { + serd_sink_set_prefix(sink, env->prefixes[i].name, env->prefixes[i].uri); + } +} |