]> sigrok.org Git - libsigrok.git/blobdiff - device.c
device: Pass sdi as an function argument to config_list in dev_has_option()
[libsigrok.git] / device.c
index 87031a9afe5a8326f7e8bc9f3cf33bac520c60f4..ce2ca6554a70776b81a5d45d88fa4c864014896e 100644 (file)
--- a/device.c
+++ b/device.c
@@ -210,7 +210,7 @@ SR_API gboolean sr_dev_has_option(const struct sr_dev_inst *sdi, int key)
                return FALSE;
 
        if (sdi->driver->config_list(SR_CONF_DEVICE_OPTIONS,
-                               &gvar, NULL, NULL) != SR_OK)
+                               &gvar, sdi, NULL) != SR_OK)
                return FALSE;
 
        ret = FALSE;
@@ -380,6 +380,7 @@ SR_PRIV void sr_serial_dev_inst_free(struct sr_serial_dev_inst *serial)
 }
 #endif
 
+/** @private */
 SR_PRIV struct sr_usbtmc_dev_inst *sr_usbtmc_dev_inst_new(const char *device)
 {
        struct sr_usbtmc_dev_inst *usbtmc;
@@ -400,6 +401,7 @@ SR_PRIV struct sr_usbtmc_dev_inst *sr_usbtmc_dev_inst_new(const char *device)
        return usbtmc;
 }
 
+/** @private */
 SR_PRIV void sr_usbtmc_dev_inst_free(struct sr_usbtmc_dev_inst *usbtmc)
 {
        g_free(usbtmc->device);