summaryrefslogtreecommitdiffstats
path: root/src/suil_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/suil_internal.h')
-rw-r--r--src/suil_internal.h16
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) */