diff options
author | David Robillard <d@drobilla.net> | 2011-01-31 00:33:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-31 00:33:19 +0000 |
commit | 8ab85a31c348a40858752a035a14ccb6df5fd6c2 (patch) | |
tree | 972c310181913bfb92776bc655cbbfa2e895eddb /src/pluginclass.c | |
parent | a81b9cdaa2c8d6cf4fcef2472ac0dfa2ca7e47e9 (diff) | |
download | lilv-8ab85a31c348a40858752a035a14ccb6df5fd6c2.tar.gz lilv-8ab85a31c348a40858752a035a14ccb6df5fd6c2.tar.bz2 lilv-8ab85a31c348a40858752a035a14ccb6df5fd6c2.zip |
Replace a bunch of explicit use of librdf_uri (which does not have a Sord equivalent) with librdf_node (which does).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2880 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/pluginclass.c')
-rw-r--r-- | src/pluginclass.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pluginclass.c b/src/pluginclass.c index 7d38a67..6f73083 100644 --- a/src/pluginclass.c +++ b/src/pluginclass.c @@ -29,11 +29,16 @@ /* private */ SLV2PluginClass -slv2_plugin_class_new(SLV2World world, librdf_uri* parent_uri, librdf_uri* uri, const char* label) +slv2_plugin_class_new(SLV2World world, + librdf_node* parent_node, + librdf_node* uri, + const char* label) { + assert(!parent_node || librdf_node_is_resource(parent_node)); + librdf_uri* parent_uri = parent_node ? librdf_node_get_uri(parent_node) : NULL; SLV2PluginClass pc = (SLV2PluginClass)malloc(sizeof(struct _SLV2PluginClass)); pc->world = world; - pc->parent_uri = (parent_uri ? slv2_value_new_librdf_uri(world, parent_uri) : NULL); + pc->parent_uri = (parent_uri ? slv2_value_new_librdf_uri(world, parent_node) : NULL); pc->uri = slv2_value_new_librdf_uri(world, uri); pc->label = slv2_value_new(world, SLV2_VALUE_STRING, label); return pc; |