diff options
author | David Robillard <d@drobilla.net> | 2011-02-11 04:58:06 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-11 04:58:06 +0000 |
commit | 38de3875424f70f89d617c228e0815680e300700 (patch) | |
tree | c848d26d01d5eb715c1bb0df924998e14774077f /src/plugin.c | |
parent | ad69b46ed592c3f8b680f29653702b03b0559963 (diff) | |
download | lilv-38de3875424f70f89d617c228e0815680e300700.tar.gz lilv-38de3875424f70f89d617c228e0815680e300700.tar.bz2 lilv-38de3875424f70f89d617c228e0815680e300700.zip |
Better, tested, i18n system.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2916 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/plugin.c b/src/plugin.c index cb3d630..180c82a 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -406,7 +406,7 @@ SLV2_API SLV2Value slv2_plugin_get_name(SLV2Plugin plugin) { - SLV2Values results = slv2_plugin_get_value_by_qname_i18n(plugin, "doap:name"); + SLV2Values results = slv2_plugin_get_value_by_qname(plugin, "doap:name"); SLV2Value ret = NULL; if (results) { @@ -456,30 +456,6 @@ slv2_plugin_get_value_by_qname(SLV2Plugin p, SLV2_API SLV2Values -slv2_plugin_get_value_by_qname_i18n(SLV2Plugin p, - const char* predicate) -{ - uint8_t* pred_uri = slv2_qname_expand(p, predicate); - if (!pred_uri) { - return NULL; - } - - SLV2Node pred_node = sord_get_uri( - p->world->model, true, (const uint8_t*)pred_uri); - - SLV2Matches results = slv2_plugin_find_statements( - p, - p->plugin_uri->val.uri_val, - pred_node, - NULL); - - slv2_node_free(pred_node); - free(pred_uri); - return slv2_values_from_stream_i18n(p, results); -} - -SLV2_API -SLV2Values slv2_plugin_get_value_for_subject(SLV2Plugin p, SLV2Value subject, SLV2Value predicate) |