summaryrefslogtreecommitdiffstats
path: root/src/pluginclass.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-26 15:29:48 +0200
committerDavid Robillard <d@drobilla.net>2021-03-24 11:04:04 -0400
commit247affdf0f48edcae95188e96ddad0f80ee09617 (patch)
tree0a3c9aaa5a16a4b8b41cf675734c7f3ef36107b7 /src/pluginclass.c
parent18ce03173dc8663b3f88c7010693641bad42eac4 (diff)
downloadlilv-247affdf0f48edcae95188e96ddad0f80ee09617.tar.gz
lilv-247affdf0f48edcae95188e96ddad0f80ee09617.tar.bz2
lilv-247affdf0f48edcae95188e96ddad0f80ee09617.zip
WIP: Port to serd1
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;
}