sdi->index = index;
sdi->status = status;
- sdi->instance_type = -1;
+ sdi->inst_type = -1;
sdi->vendor = vendor ? g_strdup(vendor) : NULL;
sdi->model = model ? g_strdup(model) : NULL;
sdi->version = version ? g_strdup(version) : NULL;
struct sr_dev_inst {
int index;
int status;
- int instance_type;
+ int inst_type;
char *vendor;
char *model;
char *version;
/* sr_dev_inst types */
enum {
- SR_USB_INSTANCE,
- SR_SERIAL_INSTANCE,
+ SR_USB_INST,
+ SR_SERIAL_INST,
};
/* Device instance status */
/* Device info IDs */
enum {
/* struct sr_dev_inst for this specific device */
- SR_DI_INSTANCE,
+ SR_DI_INST,
/* The number of probes connected to this device */
SR_DI_NUM_PROBES,
/* The probe names on this device */