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 /src/suil_internal.h | |
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 'src/suil_internal.h')
-rw-r--r-- | src/suil_internal.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/suil_internal.h b/src/suil_internal.h index 4940b69..ed7ebd2 100644 --- a/src/suil_internal.h +++ b/src/suil_internal.h @@ -38,9 +38,9 @@ struct _SuilUI { typedef struct _SuilUI* SuilUI; struct _SuilUIs { - char* plugin_uri; - SuilUI* uis; - size_t n_uis; + char* plugin_uri; + SuilUI* uis; + unsigned n_uis; }; struct _SuilInstance { @@ -50,6 +50,16 @@ struct _SuilInstance { LV2UI_Widget widget; }; +/** Get the UI with the given URI. */ +SuilUI +suil_uis_get(SuilUIs uis, + const char* ui_uri); + +/** Get the best UI for the given type. */ +SuilUI +suil_uis_get_best(SuilUIs uis, + const char* type_uri); + typedef void (*SuilVoidFunc)(); /** dlsym wrapper to return a function pointer (without annoying warning) */ |