struct dev_context *devc;
struct sr_dev_inst *sdi;
struct sr_usb_dev_inst *usb;
- struct sr_hwopt *opt;
+ struct sr_config *src;
struct sr_probe *probe;
libusb_device *dev;
GSList *usb_devices, *devices, *l;
conn = NULL;
for (l = options; l; l = l->next) {
- opt = l->data;
- switch (opt->hwopt) {
+ src = l->data;
+ switch (src->key) {
case SR_HWOPT_CONN:
- conn = opt->value;
+ conn = src->value;
break;
}
}
static int hw_info_get(int info_id, const void **data,
const struct sr_dev_inst *sdi)
{
-
/* TODO */
(void)data;
(void)sdi;
switch (info_id) {
default:
- sr_err("Unknown info_id: %d.", info_id);
return SR_ERR_ARG;
}