From de5aa9e275107f59cdf12f76fe55895605ee7dc6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 27 Sep 2011 22:26:16 +0000 Subject: 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 --- src/env.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/env.c b/src/env.c index f7204121..d53ef73e 100644 --- a/src/env.c +++ b/src/env.c @@ -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) { -- cgit v1.2.1