summaryrefslogtreecommitdiffstats
path: root/src/slv2_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/slv2_internal.h')
-rw-r--r--src/slv2_internal.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/slv2_internal.h b/src/slv2_internal.h
index 8f69544..60ed023 100644
--- a/src/slv2_internal.h
+++ b/src/slv2_internal.h
@@ -42,6 +42,9 @@ extern "C" {
#endif
#include "slv2/slv2.h"
+#ifdef SLV2_WITH_UI
+#include "slv2/ui.h"
+#endif
#define SLV2_NS_DOAP (const uint8_t*)"http://usefulinc.com/ns/doap#"
#define SLV2_NS_RDFS (const uint8_t*)"http://www.w3.org/2000/01/rdf-schema#"
@@ -150,13 +153,14 @@ struct _SLV2InstanceImpl {
/* ********* UI Instance ********* */
+#ifdef SLV2_WITH_UI
struct _SLV2UIInstance {
void* lib_handle;
const LV2UI_Descriptor* lv2ui_descriptor;
LV2UI_Handle lv2ui_handle;
LV2UI_Widget widget;
};
-
+#endif
/* ********* Plugin Class ********* */
@@ -230,6 +234,8 @@ slv2_world_load_file(SLV2World world, const char* file_uri);
/* ********* Plugin UI ********* */
+#ifdef SLV2_WITH_UI
+
struct _SLV2UI {
struct _SLV2World* world;
SLV2Value uri;
@@ -247,6 +253,7 @@ slv2_ui_new(SLV2World world,
void slv2_ui_free(SLV2UI ui);
+#endif /* SLV2_WITH_UI */
/* ********* Value ********* */