summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lilv_test.c2
-rw-r--r--test/test_plugin.c12
2 files changed, 9 insertions, 5 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c
index 09a4663..c1da9ba 100644
--- a/test/lilv_test.c
+++ b/test/lilv_test.c
@@ -615,7 +615,7 @@ test_plugin(void)
LilvNode* lv2_latency = lilv_new_uri(world,
"http://lv2plug.in/ns/lv2core#latency");
- LilvPort* latency_port = lilv_plugin_get_port_by_parameter(
+ LilvPort* latency_port = lilv_plugin_get_port_by_designation(
plug, out_class, lv2_latency);
lilv_node_free(lv2_latency);
diff --git a/test/test_plugin.c b/test/test_plugin.c
index 5a960b2..cddb0c4 100644
--- a/test/test_plugin.c
+++ b/test/test_plugin.c
@@ -153,7 +153,7 @@ map_uri(Test* plugin, const char* uri)
return plugin->map->map(plugin->map->handle, uri);
}
-static void
+static LV2_State_Status
save(LV2_Handle instance,
LV2_State_Store_Function store,
void* callback_data,
@@ -280,9 +280,11 @@ save(LV2_Handle instance,
free(spath);
}
}
+
+ return LV2_STATE_SUCCESS;
}
-static void
+static LV2_State_Status
restore(LV2_Handle instance,
LV2_State_Retrieve_Function retrieve,
void* callback_data,
@@ -308,7 +310,7 @@ restore(LV2_Handle instance,
&size, &type, &valflags);
if (!map_path) {
- return;
+ return LV2_STATE_ERR_NO_FEATURE;
}
char* apath = (char*)retrieve(
@@ -345,13 +347,15 @@ restore(LV2_Handle instance,
} else {
fprintf(stderr, "error: Failed to restore save file.\n");
}
+
+ return LV2_STATE_SUCCESS;
}
const void*
extension_data(const char* uri)
{
static const LV2_State_Interface state = { save, restore };
- if (!strcmp(uri, LV2_STATE__Interface)) {
+ if (!strcmp(uri, LV2_STATE__interface)) {
return &state;
}
return NULL;