summaryrefslogtreecommitdiffstats
path: root/src/pluginclass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pluginclass.c')
-rw-r--r--src/pluginclass.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/pluginclass.c b/src/pluginclass.c
index 2f0afe7..96ad2cb 100644
--- a/src/pluginclass.c
+++ b/src/pluginclass.c
@@ -17,7 +17,7 @@
#include "lilv_internal.h"
#include "lilv/lilv.h"
-#include "sord/sord.h"
+#include "serd/serd.h"
#include "zix/tree.h"
#include <stdbool.h>
@@ -25,16 +25,17 @@
LilvPluginClass*
lilv_plugin_class_new(LilvWorld* world,
- const SordNode* parent_node,
- const SordNode* uri,
+ const SerdNode* parent_node,
+ const SerdNode* uri,
const char* label)
{
LilvPluginClass* pc = (LilvPluginClass*)malloc(sizeof(LilvPluginClass));
- pc->world = world;
- pc->uri = lilv_node_new_from_node(world, uri);
- pc->label = lilv_node_new(world, LILV_VALUE_STRING, label);
- pc->parent_uri =
- (parent_node ? lilv_node_new_from_node(world, parent_node) : NULL);
+
+ pc->world = world;
+ pc->uri = serd_node_copy(uri);
+ pc->label = serd_new_string(SERD_MEASURE_STRING(label));
+ pc->parent_uri = (parent_node ? serd_node_copy(parent_node) : NULL);
+
return pc;
}