summaryrefslogtreecommitdiffstats
path: root/suil
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-11 04:48:38 +0000
committerDavid Robillard <d@drobilla.net>2012-04-11 04:48:38 +0000
commitf6263cffe3289c8d8c1566195fbf0f4d14ffdc27 (patch)
tree96c3ec5a8a28207b335d018e0468b0e8b3e7b0fc /suil
parent1b3485bcd0fa09e44aff5457db1d399b611a7151 (diff)
downloadsuil-f6263cffe3289c8d8c1566195fbf0f4d14ffdc27.tar.gz
suil-f6263cffe3289c8d8c1566195fbf0f4d14ffdc27.tar.bz2
suil-f6263cffe3289c8d8c1566195fbf0f4d14ffdc27.zip
Add suil_host_set_touch_func.
Saner feature array manipulation. Implement port index and subscribe/unsubscribe functions via new UI features. git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4160 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'suil')
-rw-r--r--suil/suil.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/suil/suil.h b/suil/suil.h
index d025df9..3c3ce19 100644
--- a/suil/suil.h
+++ b/suil/suil.h
@@ -105,6 +105,12 @@ typedef uint32_t (*SuilPortUnsubscribeFunc)(
uint32_t protocol,
const LV2_Feature* const* features);
+/** Function called when a control is grabbed or released. */
+typedef void (*SuilTouchFunc)(
+ SuilController controller,
+ uint32_t port_index,
+ bool grabbed);
+
/**
Create a new UI host descriptor.
@param write_func Function to send a value to a plugin port.
@@ -120,6 +126,16 @@ suil_host_new(SuilPortWriteFunc write_func,
SuilPortUnsubscribeFunc unsubscribe_func);
/**
+ Set a touch function for a host descriptor.
+
+ Note this function will only be called if the UI supports it.
+*/
+SUIL_API
+void
+suil_host_set_touch_func(SuilHost* host,
+ SuilTouchFunc touch_func);
+
+/**
Free @c host.
*/
SUIL_API