diff options
author | David Robillard <d@drobilla.net> | 2018-05-26 15:29:48 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-24 11:04:04 -0400 |
commit | 247affdf0f48edcae95188e96ddad0f80ee09617 (patch) | |
tree | 0a3c9aaa5a16a4b8b41cf675734c7f3ef36107b7 /test/missing_descriptor.lv2 | |
parent | 18ce03173dc8663b3f88c7010693641bad42eac4 (diff) | |
download | lilv-247affdf0f48edcae95188e96ddad0f80ee09617.tar.gz lilv-247affdf0f48edcae95188e96ddad0f80ee09617.tar.bz2 lilv-247affdf0f48edcae95188e96ddad0f80ee09617.zip |
WIP: Port to serd1
Diffstat (limited to 'test/missing_descriptor.lv2')
-rw-r--r-- | test/missing_descriptor.lv2/test_missing_descriptor.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/missing_descriptor.lv2/test_missing_descriptor.c b/test/missing_descriptor.lv2/test_missing_descriptor.c index 330e534..00ed8ae 100644 --- a/test/missing_descriptor.lv2/test_missing_descriptor.c +++ b/test/missing_descriptor.lv2/test_missing_descriptor.c @@ -6,8 +6,6 @@ #include "serd/serd.h" #include <assert.h> -#include <stdbool.h> -#include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -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); |