aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-18 17:27:16 +0000
committerDavid Robillard <d@drobilla.net>2011-11-18 17:27:16 +0000
commit7c25d40076f863bdd019b637912e473d2e748040 (patch)
tree8e9390ba594e950159e551a8e25a79a0f31f4845 /ext
parentf4b4d8bf43d794db56e0c92a34b894e5bf42889f (diff)
downloadlv2-7c25d40076f863bdd019b637912e473d2e748040.tar.xz
Define LV2_STATE_INTERFACE_URI.
Diffstat (limited to 'ext')
-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 &amp;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">