sr: add conn to sdi, for storing a ptr to device-specific connection info
What's in conn depends on the long-ignored inst_type field.
This commit is contained in:
parent
0223135bfb
commit
9e2e98640a
1
device.c
1
device.c
|
@ -243,6 +243,7 @@ SR_PRIV struct sr_dev_inst *sr_dev_inst_new(int index, int status,
|
|||
sdi->model = model ? g_strdup(model) : NULL;
|
||||
sdi->version = version ? g_strdup(version) : NULL;
|
||||
sdi->probes = NULL;
|
||||
sdi->conn = NULL;
|
||||
sdi->priv = NULL;
|
||||
|
||||
return sdi;
|
||||
|
|
|
@ -704,6 +704,7 @@ struct sr_dev_inst {
|
|||
char *model;
|
||||
char *version;
|
||||
GSList *probes;
|
||||
void *conn;
|
||||
void *priv;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue