diff options
author | David Robillard <d@drobilla.net> | 2011-04-29 02:46:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-29 02:46:53 +0000 |
commit | 3760ff6900140d9bae6f811f8d13112862adc751 (patch) | |
tree | c166c4bca4b7eeba5967c691619f0df36f6aa113 /src/util.c | |
parent | c1c9e8fd70ba0e8f377ffc551c817ecd8dee796e (diff) | |
download | lilv-3760ff6900140d9bae6f811f8d13112862adc751.tar.gz lilv-3760ff6900140d9bae6f811f8d13112862adc751.tar.bz2 lilv-3760ff6900140d9bae6f811f8d13112862adc751.zip |
Remove half-assed qname API.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3226 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -110,26 +110,3 @@ lilv_get_lang() return lang; } - -uint8_t* -lilv_qname_expand(const LilvPlugin* p, const char* qname) -{ - const size_t qname_len = strlen(qname); - SerdNode qname_node = { (const uint8_t*)qname, - qname_len + 1, qname_len, - SERD_CURIE }; - - SerdChunk uri_prefix; - SerdChunk uri_suffix; - if (serd_env_expand(p->world->namespaces, &qname_node, &uri_prefix, &uri_suffix)) { - const size_t uri_len = uri_prefix.len + uri_suffix.len; - char* uri = malloc(uri_len + 1); - memcpy(uri, uri_prefix.buf, uri_prefix.len); - memcpy(uri + uri_prefix.len, uri_suffix.buf, uri_suffix.len); - uri[uri_len] = '\0'; - return (uint8_t*)uri; - } else { - LILV_ERRORF("Failed to expand QName `%s'\n", qname); - return NULL; - } -} |