* no need to let them all scan
*/
device = NULL;
- plugins = sr_hwplugins_list();
+ plugins = sr_hw_list();
for (p = plugins; p; p = p->next) {
plugin = p->data;
if (strcmp(plugin->name, devicestring))
continue;
- num_devices = sr_hwplugin_init(plugin);
+ num_devices = sr_hw_init(plugin);
if (num_devices == 1) {
devices = sr_dev_list();
device = devices->data;
printf("sigrok-cli %s\n\n", VERSION);
printf("Supported hardware drivers:\n");
- plugins = sr_hwplugins_list();
+ plugins = sr_hw_list();
for (p = plugins; p; p = p->next) {
plugin = p->data;
printf(" %-20s %s\n", plugin->name, plugin->longname);
title = "Supported options:\n";
capabilities = device->plugin->get_capabilities();
for (cap = 0; capabilities[cap]; cap++) {
- if (!(hwo = sr_hwplugins_hwcap_get(capabilities[cap])))
+ if (!(hwo = sr_hw_hwcap_get(capabilities[cap])))
continue;
if (title) {
return;
if (opt_continuous) {
- if (!sr_hwplugin_has_hwcap(device->plugin, SR_HWCAP_CONTINUOUS)) {
+ if (!sr_hw_has_hwcap(device->plugin, SR_HWCAP_CONTINUOUS)) {
printf("This device does not support continuous sampling.");
sr_session_destroy();
return;
return;
}
- if (sr_hwplugin_has_hwcap(device->plugin, SR_HWCAP_LIMIT_MSEC)) {
+ if (sr_hw_has_hwcap(device->plugin, SR_HWCAP_LIMIT_MSEC)) {
if (device->plugin->set_configuration(device->plugin_index,
SR_HWCAP_LIMIT_MSEC, &time_msec) != SR_OK) {
printf("Failed to configure time limit.\n");