X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hwplugin.c;h=c248476bd1d4321e054641736175c39a3edaf4ca;hb=a61b0e6a35fdf06c98a2304e186a3a17c9fbf8d8;hp=c5a0b2e9852aa2cedb08b3981c3ed182e97cc62f;hpb=1fdb75e14528abd62ebe727537512c741a5759da;p=libsigrok.git diff --git a/hwplugin.c b/hwplugin.c index c5a0b2e9..c248476b 100644 --- a/hwplugin.c +++ b/hwplugin.c @@ -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);