From: Bert Vermeulen Date: Mon, 1 Oct 2012 01:03:24 +0000 (+0200) Subject: sr: add conn to sdi, for storing a ptr to device-specific connection info X-Git-Tag: dsupstream~126 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=9e2e98640ac2b12545f4923a143d06d3896f8435;hp=0223135bfb6771d7749fa39cff64a78c7a84a674;p=libsigrok.git 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. --- diff --git a/device.c b/device.c index 62395be5..2ad67849 100644 --- a/device.c +++ b/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; diff --git a/libsigrok.h b/libsigrok.h index 6c34c384..069e446f 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -704,6 +704,7 @@ struct sr_dev_inst { char *model; char *version; GSList *probes; + void *conn; void *priv; };