GSList *plugins, *l;
struct sr_device_plugin *plugin;
- if (!(plugins = sr_hwplugins_list())) {
+ if (!(plugins = sr_hw_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_hwplugin_init(plugin);
+ sr_hw_init(plugin);
}
return SR_OK;
* @return SR_OK upon success, SR_ERR_ARG upon invalid arguments, or SR_ERR
* upon other errors.
*/
-int sr_dev_get_info(const struct sr_device *device, int id,
+SR_API int sr_dev_info_get(const struct sr_device *device, int id,
const void **data)
{
if ((device == NULL) || (device->plugin == NULL))