/*
* This file is part of the sigrok project.
*
- * Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
+ * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
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;