From 7c25d40076f863bdd019b637912e473d2e748040 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Nov 2011 17:27:16 +0000 Subject: Define LV2_STATE_INTERFACE_URI. --- ext/state.lv2/state.ttl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/state.lv2/state.ttl') diff --git a/ext/state.lv2/state.ttl b/ext/state.lv2/state.ttl index 1d85bd3..c79188e 100644 --- a/ext/state.lv2/state.ttl +++ b/ext/state.lv2/state.ttl @@ -133,7 +133,7 @@ void my_restore(LV2_Handle instance, const void* my_extension_data(const char* uri) { static const LV2_State_Interface state_iface = { my_save, my_restore }; - if (!strcmp(uri, "http://lv2plug.in/ns/ext/state#Interface")) { + if (!strcmp(uri, LV2_STATE_INTERFACE_URI)) { return &state_iface; } } @@ -180,8 +180,8 @@ state:Interface

A structure (LV2_State_Interface) which contains functions to be called by the host to save and restore state. In order to support this extension, the plugin must return a valid LV2_State_Interface from -LV2_Descriptor::extension_data() when it is called with URI -"http://lv2plug.in/ns/ext/state#StateInterface".

+LV2_Descriptor::extension_data() when it is called with +LV2_STATE_INTERFACE_URI.

The plugin data file should describe this like so:

-- 
cgit v1.2.1