aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ext/state.lv2/state.h2
-rw-r--r--ext/state.lv2/state.ttl6
2 files changed, 5 insertions, 3 deletions
diff --git a/ext/state.lv2/state.h b/ext/state.lv2/state.h
index cb6f2fc..4e1c28a 100644
--- a/ext/state.lv2/state.h
+++ b/ext/state.lv2/state.h
@@ -35,6 +35,8 @@ extern "C" {
#define LV2_STATE_URI "http://lv2plug.in/ns/ext/state"
+#define LV2_STATE_INTERFACE_URI LV2_STATE_URI "#Interface"
+
typedef void* LV2_State_Handle;
/**
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
<p>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".</p>
+LV2_Descriptor::extension_data() when it is called with
+LV2_STATE_INTERFACE_URI.</p>
<p>The plugin data file should describe this like so:</p>
<pre class="turtle-code">