summaryrefslogtreecommitdiffstats
path: root/utils
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 /utils
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 'utils')
-rw-r--r--utils/lv2_inspect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index b8a5c57..a63b5d0 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -22,7 +22,11 @@
#include <string.h>
#include <math.h>
#include <locale.h>
+
#include "slv2/slv2.h"
+#ifdef SLV2_WITH_UI
+#include "slv2/ui.h"
+#endif
SLV2Value event_class = NULL;
SLV2Value control_class = NULL;
@@ -169,6 +173,7 @@ print_plugin(SLV2Plugin p)
printf("\tBundle: %s\n", slv2_value_as_uri(slv2_plugin_get_bundle_uri(p)));
printf("\tBinary: %s\n", slv2_value_as_uri(slv2_plugin_get_library_uri(p)));
+#ifdef SLV2_WITH_UI
SLV2UIs uis = slv2_plugin_get_uis(p);
if (slv2_values_size(uis) > 0) {
printf("\tGUI: ");
@@ -192,6 +197,7 @@ print_plugin(SLV2Plugin p)
}
}
slv2_uis_free(uis);
+#endif
printf("\tData URIs: ");
SLV2Values data_uris = slv2_plugin_get_data_uris(p);