summaryrefslogtreecommitdiffstats
path: root/src/slv2_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-12 04:25:39 +0000
committerDavid Robillard <d@drobilla.net>2011-02-12 04:25:39 +0000
commitc32c1593bc6b7c887e7c106531de2567b0da5aa1 (patch)
treefedac05f9957c298de652900646811a0b35b4815 /src/slv2_internal.h
parent4d75c4711b12747e37286f5c3cc5bf741d7b351e (diff)
downloadlilv-c32c1593bc6b7c887e7c106531de2567b0da5aa1.tar.gz
lilv-c32c1593bc6b7c887e7c106531de2567b0da5aa1.tar.bz2
lilv-c32c1593bc6b7c887e7c106531de2567b0da5aa1.zip
Make UI support a compile-time option, and separate UI functions into slv2/ui.h.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2930 a436a847-0d15-0410-975c-d299462d15a1
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 ********* */