From 17c6df0bc3043c57d2c02c58284ec4794f656b3c Mon Sep 17 00:00:00 2001
From: David Robillard
Date: Fri, 30 Mar 2012 23:27:26 +0000
Subject: Fix screwy invalid ExtensionData definitions as classes (now matches
how Feature is used). Add status return codes to state methods for error
handling.
---
lv2/lv2plug.in/ns/ext/worker/worker.h | 4 ++--
lv2/lv2plug.in/ns/ext/worker/worker.ttl | 9 ++++-----
2 files changed, 6 insertions(+), 7 deletions(-)
(limited to 'lv2/lv2plug.in/ns/ext/worker')
diff --git a/lv2/lv2plug.in/ns/ext/worker/worker.h b/lv2/lv2plug.in/ns/ext/worker/worker.h
index b0d87ec..74ac45b 100644
--- a/lv2/lv2plug.in/ns/ext/worker/worker.h
+++ b/lv2/lv2plug.in/ns/ext/worker/worker.h
@@ -29,7 +29,7 @@
#define LV2_WORKER_URI "http://lv2plug.in/ns/ext/worker"
#define LV2_WORKER_PREFIX LV2_WORKER_URI "#"
-#define LV2_WORKER__Interface LV2_WORKER_PREFIX "Interface"
+#define LV2_WORKER__interface LV2_WORKER_PREFIX "interface"
#define LV2_WORKER__schedule LV2_WORKER_PREFIX "schedule"
/**
@@ -60,7 +60,7 @@ typedef LV2_Worker_Status (*LV2_Worker_Respond_Function)(
This is the interface provided by the plugin to implement a worker method.
The plugin's extension_data() method should return an LV2_Worker_Interface
- when called with LV2_WORKER__Interface as its argument.
+ when called with LV2_WORKER__interface as its argument.
*/
typedef struct _LV2_Worker_Interface {
/**
diff --git a/lv2/lv2plug.in/ns/ext/worker/worker.ttl b/lv2/lv2plug.in/ns/ext/worker/worker.ttl
index 517aabb..09f7249 100644
--- a/lv2/lv2plug.in/ns/ext/worker/worker.ttl
+++ b/lv2/lv2plug.in/ns/ext/worker/worker.ttl
@@ -49,14 +49,13 @@ offline rendering, or in real-time with non-real-time work taking place in a
separate thread.
""" .
-work:Interface
- a rdfs:Class ;
- rdfs:subClassOf lv2:ExtensionData ;
+work:interface
+ a lv2:ExtensionData ;
lv2:documentation """
The interface provided by the plugin to implement a worker. To implement
this extension, the plugin must return a valid LV2_Worker_Interface from
LV2_Descriptor::extension_data() when it is called with URI
-LV2_WORKER__Interface.
+LV2_WORKER__interface.
The plugin data file should describe this like so:
@@ -64,7 +63,7 @@ LV2_WORKER__Interface.
<plugin>
a lv2:Plugin ;
- lv2:extensionData work:Interface .
+ lv2:extensionData work:interface .
""" .
--
cgit v1.2.1