X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=device.c;h=b3b229c063a979e28018cbf5ebaa947acdd9edd2;hb=93a04e3be9cdaa276d9e7fe14da053483b567b74;hp=790264acf651c42c26a74811059a44dcec5429ec;hpb=9fc6aa0a566d093b36cdbdad46e0cbdc116ff538;p=libsigrok.git diff --git a/device.c b/device.c index 790264ac..b3b229c0 100644 --- a/device.c +++ b/device.c @@ -62,7 +62,7 @@ SR_API int sr_dev_scan(void) 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? */ } @@ -75,7 +75,7 @@ SR_API int sr_dev_scan(void) 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;