From 247affdf0f48edcae95188e96ddad0f80ee09617 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 26 May 2018 15:29:48 +0200 Subject: WIP: Port to serd1 --- test/missing_port_name.lv2/test_missing_port_name.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'test/missing_port_name.lv2') diff --git a/test/missing_port_name.lv2/test_missing_port_name.c b/test/missing_port_name.lv2/test_missing_port_name.c index 4d017d9..d61fa63 100644 --- a/test/missing_port_name.lv2/test_missing_port_name.c +++ b/test/missing_port_name.lv2/test_missing_port_name.c @@ -6,8 +6,6 @@ #include "serd/serd.h" #include -#include -#include #include #include @@ -25,13 +23,12 @@ main(int argc, char** argv) LilvWorld* world = lilv_world_new(); // Load test plugin bundle - uint8_t* abs_bundle = (uint8_t*)lilv_path_absolute(bundle_path); - SerdNode bundle = serd_node_new_file_uri(abs_bundle, 0, 0, true); - LilvNode* bundle_uri = lilv_new_uri(world, (const char*)bundle.buf); - lilv_world_load_bundle(world, bundle_uri); + char* abs_bundle = lilv_path_absolute(bundle_path); + SerdNode* bundle = + serd_new_file_uri(SERD_MEASURE_STRING(abs_bundle), SERD_EMPTY_STRING()); + lilv_world_load_bundle(world, bundle); free(abs_bundle); - serd_node_free(&bundle); - lilv_node_free(bundle_uri); + serd_node_free(bundle); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); -- cgit v1.2.1