diff options
author | David Robillard <d@drobilla.net> | 2011-02-22 20:14:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-22 20:14:58 +0000 |
commit | fcf7bfe09eb7d4b9a0445ae6f0ac2e933a260189 (patch) | |
tree | 48f52cf706ba8af4366e19cc33fbdff3d5338ba1 /suil | |
parent | aff6b9aaac68a47edc8c644028891f7cc93c7714 (diff) | |
download | suil-fcf7bfe09eb7d4b9a0445ae6f0ac2e933a260189.tar.gz suil-fcf7bfe09eb7d4b9a0445ae6f0ac2e933a260189.tar.bz2 suil-fcf7bfe09eb7d4b9a0445ae6f0ac2e933a260189.zip |
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
Diffstat (limited to 'suil')
-rw-r--r-- | suil/suil.h | 14 |
1 files changed, 12 insertions, 2 deletions
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 |