plugin = p->data;
if (strcmp(plugin->name, devicestring))
continue;
- num_devices = sr_init_hwplugins(plugin);
+ num_devices = sr_init_hwplugin(plugin);
if (num_devices == 1) {
devices = sr_device_list();
device = devices->data;
if (opt_continuous) {
capabilities = device->plugin->get_capabilities();
- if (!sr_find_hwcap(capabilities, SR_HWCAP_CONTINUOUS)) {
+ if (!sr_has_hwcap(capabilities, SR_HWCAP_CONTINUOUS)) {
printf("This device does not support continuous sampling.");
sr_session_destroy();
return;
}
capabilities = device->plugin->get_capabilities();
- if (sr_find_hwcap(capabilities, SR_HWCAP_LIMIT_MSEC)) {
+ if (sr_has_hwcap(capabilities, 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");