aboutsummaryrefslogtreecommitdiffstats
path: root/ext/contexts.lv2/contexts.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-07 23:15:55 +0000
committerDavid Robillard <d@drobilla.net>2011-01-07 23:15:55 +0000
commite3df093f4592a8b2f3da22674ec1f6e8916ef06b (patch)
tree61162ad1cf2502602616b16a279ea6192d811bf0 /ext/contexts.lv2/contexts.h
parent2fa250041ea04d46c6fbe2875be2b8ded0f0b192 (diff)
downloadlv2-e3df093f4592a8b2f3da22674ec1f6e8916ef06b.tar.xz
Update contexts extension.
Diffstat (limited to 'ext/contexts.lv2/contexts.h')
-rw-r--r--ext/contexts.lv2/contexts.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/ext/contexts.lv2/contexts.h b/ext/contexts.lv2/contexts.h
index 98c795c..f49b474 100644
--- a/ext/contexts.lv2/contexts.h
+++ b/ext/contexts.lv2/contexts.h
@@ -30,8 +30,6 @@
#define LV2_CONTEXTS_URI "http://lv2plug.in/ns/ext/contexts"
-#define LV2_CONTEXT_MESSAGE "http://lv2plug.in/ns/ext/contexts#MessageContext"
-
static inline void
lv2_contexts_set_port_valid(void* flags, uint32_t index) {
((uint8_t*)flags)[index / 8] |= 1 << (index % 8);
@@ -67,5 +65,18 @@ typedef struct {
} LV2_Contexts_MessageContext;
+typedef void* LV2_Contexts_Request_Run_Data;
+
+typedef struct {
+
+ /** Pointer to opaque host data (to be passed to request_run) */
+ LV2_Contexts_Request_Run_Data data;
+
+ /** Request the host execute the context with the given URI */
+ void (*request_run)(LV2_Contexts_Request_Run_Data host_handle,
+ uint32_t context_uri);
+
+} LV2_Contexts_Request_Run_Feature;
+
#endif /* LV2_CONTEXTS_H */