while (devices) {
device = devices->data;
- if (device->plugin && device->plugin->close)
- device->plugin->close(device->plugin_index);
+ if (device->plugin && device->plugin->closedev)
+ device->plugin->closedev(device->plugin_index);
sr_device_destroy(device);
}
}
return found_probe;
}
-/* TODO: return SIGROK_ERR if probenum not found */
+/* TODO: return SR_ERR if probenum not found */
void sr_device_probe_name(struct sr_device *device, int probenum,
const char *name)
{
p->name = g_strdup(name);
}
-/* TODO: return SIGROK_ERR if probenum not found */
+/* TODO: return SR_ERR if probenum not found */
void sr_device_trigger_clear(struct sr_device *device)
{
struct sr_probe *p;
}
}
-/* TODO: return SIGROK_ERR if probenum not found */
+/* TODO: return SR_ERR if probenum not found */
void sr_device_trigger_set(struct sr_device *device, int probenum,
const char *trigger)
{