diff options
author | David Robillard <d@drobilla.net> | 2011-09-27 22:26:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-09-27 22:26:16 +0000 |
commit | de5aa9e275107f59cdf12f76fe55895605ee7dc6 (patch) | |
tree | 8c627f450f59e6e6d7c840e2a3ad3b2a472b1f21 /src | |
parent | 3f3b0c4087b7125d1ddb62c2a0c455346a038094 (diff) | |
download | serd-de5aa9e275107f59cdf12f76fe55895605ee7dc6.tar.gz serd-de5aa9e275107f59cdf12f76fe55895605ee7dc6.tar.bz2 serd-de5aa9e275107f59cdf12f76fe55895605ee7dc6.zip |
Add serd_env_set_prefix_from_strings for convenience.
Fix configure --debug.
git-svn-id: http://svn.drobilla.net/serd/trunk@217 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src')
-rw-r--r-- | src/env.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -152,6 +152,20 @@ serd_env_set_prefix(SerdEnv* env, return SERD_SUCCESS; } +SERD_API +SerdStatus +serd_env_set_prefix_from_strings(SerdEnv* env, + const uint8_t* name, + const uint8_t* uri) +{ + const SerdNode name_node = serd_node_from_string(SERD_LITERAL, name); + const SerdNode uri_node = serd_node_from_string(SERD_URI, uri); + + SerdStatus ret = serd_env_set_prefix(env, &name_node, &uri_node); + + return ret; +} + static inline bool is_nameStartChar(const uint8_t c) { |