From c32c1593bc6b7c887e7c106531de2567b0da5aa1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Feb 2011 04:25:39 +0000 Subject: 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 --- utils/lv2_inspect.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utils') 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 #include #include + #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); -- cgit v1.2.1