struct libusb_device_descriptor des;
int err, i;
- if (!(sdi = sr_get_dev_inst(device_instances, device_index)))
+ if (!(sdi = sr_dev_inst_get(device_instances, device_index)))
return NULL;
libusb_get_device_list(usb_context, &devlist);
{
struct sr_device_instance *sdi;
- if (!(sdi = sr_get_dev_inst(device_instances, device_index))) {
+ if (!(sdi = sr_dev_inst_get(device_instances, device_index))) {
sr_err("zp: %s: sdi was NULL", __func__);
return SR_ERR; /* TODO: SR_ERR_ARG? */
}
struct zp *zp;
void *info;
- if (!(sdi = sr_get_dev_inst(device_instances, device_index))) {
+ if (!(sdi = sr_dev_inst_get(device_instances, device_index))) {
sr_err("zp: %s: sdi was NULL", __func__);
return NULL;
}
{
struct sr_device_instance *sdi;
- sdi = sr_get_dev_inst(device_instances, device_index);
+ sdi = sr_dev_inst_get(device_instances, device_index);
if (sdi)
return sdi->status;
else
uint64_t *tmp_u64;
struct zp *zp;
- if (!(sdi = sr_get_dev_inst(device_instances, device_index))) {
+ if (!(sdi = sr_dev_inst_get(device_instances, device_index))) {
sr_err("zp: %s: sdi was NULL", __func__);
return SR_ERR;
}
unsigned char *buf;
struct zp *zp;
- if (!(sdi = sr_get_dev_inst(device_instances, device_index))) {
+ if (!(sdi = sr_dev_inst_get(device_instances, device_index))) {
sr_err("zp: %s: sdi was NULL", __func__);
return SR_ERR;
}
packet.type = SR_DF_END;
sr_session_bus(session_device_id, &packet);
- if (!(sdi = sr_get_dev_inst(device_instances, device_index))) {
+ if (!(sdi = sr_dev_inst_get(device_instances, device_index))) {
sr_err("zp: %s: sdi was NULL", __func__);
return SR_ERR_BUG;
}