#include <sigrok-internal.h>
/* The list of loaded plugins lives here. */
-GSList *plugins;
+static GSList *plugins;
/*
* This enumerates which plugin capabilities correspond to user-settable
extern struct sr_device_plugin alsa_plugin_info;
#endif
-
/* TODO: No linked list needed, this can be a simple array. */
int load_hwplugins(void)
{
plugins = g_slist_append(plugins, (gpointer *)&alsa_plugin_info);
#endif
-
return SR_OK;
}
if (plugin->cleanup)
plugin->cleanup();
}
-
}
struct sr_device_instance *sr_device_instance_new(int index, int status,
g_free(sdi->model);
g_free(sdi->version);
g_free(sdi);
-
}
#ifdef HAVE_LIBUSB_1_0