From e3df093f4592a8b2f3da22674ec1f6e8916ef06b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 7 Jan 2011 23:15:55 +0000 Subject: Update contexts extension. --- ext/contexts.lv2/contexts.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'ext/contexts.lv2/contexts.h') 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 */ -- cgit v1.2.1