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:
Bert Vermeulen 2012-10-01 03:03:24 +02:00
parent 0223135bfb
commit 9e2e98640a
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -704,6 +704,7 @@ struct sr_dev_inst {
char *model;
char *version;
GSList *probes;
void *conn;
void *priv;
};