]> sigrok.org Git - libsigrok.git/blobdiff - src/hwdriver.c
Fix #442 by renaming sr_dev_driver.priv to .context
[libsigrok.git] / src / hwdriver.c
index 26ecbe1a538e92343e84885e4c926c8a26594995..74d75e6a1e5bdad58909aabb93e207b8f68d7f1e 100644 (file)
@@ -397,7 +397,7 @@ SR_API GSList *sr_driver_scan(struct sr_dev_driver *driver, GSList *options)
                return NULL;
        }
 
-       if (!driver->priv) {
+       if (!driver->context) {
                sr_err("Driver not initialized, can't scan for devices.");
                return NULL;
        }
@@ -434,7 +434,7 @@ SR_PRIV void sr_hw_cleanup_all(const struct sr_context *ctx)
        for (i = 0; drivers[i]; i++) {
                if (drivers[i]->cleanup)
                        drivers[i]->cleanup(drivers[i]);
-               drivers[i]->priv = NULL;
+               drivers[i]->context = NULL;
        }
 }