]> sigrok.org Git - libsigrok.git/commitdiff
sr: add conn to sdi, for storing a ptr to device-specific connection info
authorBert Vermeulen <redacted>
Mon, 1 Oct 2012 01:03:24 +0000 (03:03 +0200)
committerBert Vermeulen <redacted>
Tue, 16 Apr 2013 15:57:08 +0000 (17:57 +0200)
What's in conn depends on the long-ignored inst_type field.

device.c
libsigrok.h

index 62395be57f3de405f6522e327d458d74f345d8c4..2ad678497421a0247e264374b2f61cc6e5d075a8 100644 (file)
--- 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;
index 6c34c384cf6fc14e7c50af718edc6f8e61ce2aca..069e446fb1c839010b4c2f5ebcbc97b9d5243b39 100644 (file)
@@ -704,6 +704,7 @@ struct sr_dev_inst {
        char *model;
        char *version;
        GSList *probes;
+       void *conn;
        void *priv;
 };