*/
SR_API int sr_exit(void)
{
- sr_cleanup_hwplugins();
+ sr_hwplugins_cleanup();
return SR_OK;
}
GSList *plugins, *l;
struct sr_device_plugin *plugin;
- if (!(plugins = sr_list_hwplugins())) {
+ if (!(plugins = sr_hwplugins_list())) {
sr_err("dev: %s: no supported devices/hwplugins", __func__);
return SR_ERR; /* TODO: More specific error? */
}
for (l = plugins; l; l = l->next) {
plugin = l->data;
/* TODO: Handle 'plugin' being NULL. */
- sr_init_hwplugin(plugin);
+ sr_hwplugin_init(plugin);
}
return SR_OK;
*
* @return A GSList of pointers to loaded plugins.
*/
-SR_API GSList *sr_list_hwplugins(void)
+SR_API GSList *sr_hwplugins_list(void)
{
return plugins;
*
* @return The number of devices found and instantiated by the plugin.
*/
-SR_API int sr_init_hwplugin(struct sr_device_plugin *plugin)
+SR_API int sr_hwplugin_init(struct sr_device_plugin *plugin)
{
int num_devices, num_probes, i, j;
int num_initialized_devices = 0;
return num_initialized_devices;
}
-SR_PRIV void sr_cleanup_hwplugins(void)
+SR_PRIV void sr_hwplugins_cleanup(void)
{
struct sr_device_plugin *plugin;
GSList *l;
/*--- hwplugin.c ------------------------------------------------------------*/
SR_PRIV int load_hwplugins(void);
-SR_PRIV void sr_cleanup_hwplugins(void);
+SR_PRIV void sr_hwplugins_cleanup(void);
/*--- session.c -------------------------------------------------------------*/
/*--- hwplugin.c ------------------------------------------------------------*/
-SR_API GSList *sr_list_hwplugins(void);
-SR_API int sr_init_hwplugin(struct sr_device_plugin *plugin);
+SR_API GSList *sr_hwplugins_list(void);
+SR_API int sr_hwplugin_init(struct sr_device_plugin *plugin);
SR_API gboolean sr_has_hwcap(int *capabilities, int hwcap);
SR_API struct sr_hwcap_option *sr_find_hwcap_option(int hwcap);