summaryrefslogtreecommitdiffstats
path: root/suil
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-25 06:01:25 +0000
committerDavid Robillard <d@drobilla.net>2013-12-25 06:01:25 +0000
commit5254f28fe0aa3c724e44e900835bbfd8fe00318b (patch)
tree9e99eb731813d071e95c9be1200c10f19d15a490 /suil
parente580018b756c3af6545eb7a705c709b03d7f79cf (diff)
downloadsuil-5254f28fe0aa3c724e44e900835bbfd8fe00318b.tar.gz
suil-5254f28fe0aa3c724e44e900835bbfd8fe00318b.tar.bz2
suil-5254f28fe0aa3c724e44e900835bbfd8fe00318b.zip
Add suil_instance_get_handle (patch from Rui Nuno Capela) (#925).
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5201 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 6d6981d..d13a3bc 100644
--- a/suil/suil.h
+++ b/suil/suil.h
@@ -75,6 +75,9 @@ typedef struct SuilHostImpl SuilHost;
/** An instance of an LV2 plugin UI. */
typedef struct SuilInstanceImpl SuilInstance;
+/** Opaque pointer to a UI handle. */
+typedef void* SuilHandle;
+
/** Opaque pointer to a UI widget. */
typedef void* SuilWidget;
@@ -213,6 +216,19 @@ void
suil_instance_free(SuilInstance* instance);
/**
+ Get the handle for a UI instance.
+
+ Returns the handle to the UI instance. The returned handle has opaque type
+ to insulate the Suil API from LV2 extensions, but in pactice it is currently
+ of type @ref LV2UI_Handle. This should not normally be needed.
+
+ The returned handle is shared and must not be deleted.
+*/
+SUIL_API
+SuilHandle
+suil_instance_get_handle(SuilInstance* instance);
+
+/**
Get the widget for a UI instance.
Returns an opaque pointer to a widget, the type of which matches the @c