]> sigrok.org Git - libsigrok.git/blobdiff - hwplugin.c
configure: Add --enable-demo option.
[libsigrok.git] / hwplugin.c
index c5a0b2e9852aa2cedb08b3981c3ed182e97cc62f..c248476bd1d4321e054641736175c39a3edaf4ca 100644 (file)
@@ -42,7 +42,9 @@ struct hwcap_option hwcap_options[] = {
        {0, 0, NULL, NULL},
 };
 
+#ifdef HAVE_LA_DEMO
 extern struct device_plugin demo_plugin_info;
+#endif
 #ifdef HAVE_LA_SALEAE_LOGIC
 extern struct device_plugin saleae_logic_plugin_info;
 #endif
@@ -63,7 +65,9 @@ extern struct device_plugin link_mso19_plugin_info;
 /* TODO: No linked list needed, this can be a simple array. */
 int load_hwplugins(void)
 {
+#ifdef HAVE_LA_DEMO
        plugins = g_slist_append(plugins, (gpointer *)&demo_plugin_info);
+#endif
 #ifdef HAVE_LA_SALEAE_LOGIC
        plugins =
            g_slist_append(plugins, (gpointer *)&saleae_logic_plugin_info);