From 5254f28fe0aa3c724e44e900835bbfd8fe00318b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 25 Dec 2013 06:01:25 +0000 Subject: 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 --- suil/suil.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'suil') 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; @@ -212,6 +215,19 @@ SUIL_API 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. -- cgit v1.2.1