From fcf7bfe09eb7d4b9a0445ae6f0ac2e933a260189 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 22 Feb 2011 20:14:58 +0000 Subject: Implement sane UI selection logic and separate it from instantiation. Cleaner instantiation code. git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3013 a436a847-0d15-0410-975c-d299462d15a1 --- suil/suil.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'suil/suil.h') diff --git a/suil/suil.h b/suil/suil.h index 7e0dbec..f5e5584 100644 --- a/suil/suil.h +++ b/suil/suil.h @@ -59,10 +59,15 @@ typedef struct _SuilUIs* SuilUIs; /** An instance of an LV2 plugin UI. */ typedef struct _SuilInstance* SuilInstance; -/** Return true iff UIs of the given type are supported. */ +/** Return true iff it is possible to load a UI of a given type. + * @param host_type_uri The URI of the desired widget type of the host, + * corresponding to the @a type_uri parameter of @ref suil_instance_new. + * @param ui_type_uri The URI of the UI widget type. + */ SUIL_API bool -suil_ui_type_supported(const char* uri); +suil_ui_type_supported(const char* host_type_uri, + const char* ui_type_uri); /** Create a new empty set of UIs for a particular LV2 plugin. */ SUIL_API @@ -74,6 +79,11 @@ SUIL_API void suil_uis_free(SuilUIs uis); +/** Return the URI of the plugin this set of UIs is for. */ +SUIL_API +const char* +suil_uis_get_plugin_uri(SuilUIs uis); + /** Add a discovered UI to @a uis. */ SUIL_API void -- cgit v1.2.1