diff options
author | David Robillard <d@drobilla.net> | 2011-02-16 01:16:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-16 01:16:32 +0000 |
commit | 4cc15fb56f579e7eab9e0b947c433b96bc4c26f8 (patch) | |
tree | feb005fcf32b46e5e39cc919f31939d54f94b236 /src/plugin.c | |
parent | b9f9dac34231a12828d5427f54fc41be57eefaa5 (diff) | |
download | lilv-4cc15fb56f579e7eab9e0b947c433b96bc4c26f8.tar.gz lilv-4cc15fb56f579e7eab9e0b947c433b96bc4c26f8.tar.bz2 lilv-4cc15fb56f579e7eab9e0b947c433b96bc4c26f8.zip |
Update for new Sord API.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2955 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/plugin.c b/src/plugin.c index 7e639d9..773f3de 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -469,7 +469,7 @@ slv2_plugin_get_value_for_subject(SLV2Plugin p, SLV2Node subject_node = (slv2_value_is_uri(subject)) ? slv2_node_copy(subject->val.uri_val) - : sord_get_blank(p->world->model, false, + : sord_new_blank(p->world->model, (const uint8_t*)slv2_value_as_blank(subject)); if (!subject_node) { @@ -701,8 +701,8 @@ slv2_plugin_get_port_by_symbol(SLV2Plugin p, static SLV2Node slv2_plugin_get_author(SLV2Plugin p) { - SLV2Node doap_maintainer = sord_get_uri( - p->world->model, true, NS_DOAP "maintainer"); + SLV2Node doap_maintainer = sord_new_uri( + p->world->model, NS_DOAP "maintainer"); SLV2Matches maintainers = slv2_plugin_find_statements( p, @@ -729,8 +729,8 @@ slv2_plugin_get_author_name(SLV2Plugin plugin) SLV2Node author = slv2_plugin_get_author(plugin); if (author) { return slv2_plugin_get_one( - plugin, author, sord_get_uri( - plugin->world->model, true, NS_FOAF "name")); + plugin, author, sord_new_uri( + plugin->world->model, NS_FOAF "name")); } return NULL; } @@ -742,8 +742,8 @@ slv2_plugin_get_author_email(SLV2Plugin plugin) SLV2Node author = slv2_plugin_get_author(plugin); if (author) { return slv2_plugin_get_one( - plugin, author, sord_get_uri( - plugin->world->model, true, NS_FOAF "mbox")); + plugin, author, sord_new_uri( + plugin->world->model, NS_FOAF "mbox")); } return NULL; } @@ -755,8 +755,8 @@ slv2_plugin_get_author_homepage(SLV2Plugin plugin) SLV2Node author = slv2_plugin_get_author(plugin); if (author) { return slv2_plugin_get_one( - plugin, author, sord_get_uri( - plugin->world->model, true, NS_FOAF "homepage")); + plugin, author, sord_new_uri( + plugin->world->model, NS_FOAF "homepage")); } return NULL; } @@ -768,11 +768,9 @@ slv2_plugin_get_uis(SLV2Plugin p) { #define NS_UI (const uint8_t*)"http://lv2plug.in/ns/extensions/ui#" - SLV2Node ui_ui = sord_get_uri( - p->world->model, true, NS_UI "ui"); + SLV2Node ui_ui = sord_new_uri(p->world->model, NS_UI "ui"); - SLV2Node ui_binary_node = sord_get_uri( - p->world->model, true, NS_UI "binary"); + SLV2Node ui_binary_node = sord_new_uri(p->world->model, NS_UI "binary"); SLV2UIs result = slv2_uis_new(); SLV2Matches uis = slv2_plugin_find_statements( |