X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhwdriver.c;h=3348b759562593746bce2792b8a282e49241e5ae;hb=64bc73f5282ec0e7da6e00a8d078191e5375dc5c;hp=26ecbe1a538e92343e84885e4c926c8a26594995;hpb=c4b78389227b4d94ed211618f12a25f49d1ba8a3;p=libsigrok.git diff --git a/src/hwdriver.c b/src/hwdriver.c index 26ecbe1a..3348b759 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -24,7 +24,7 @@ #include #include #include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */ -#include "libsigrok.h" +#include #include "libsigrok-internal.h" /** @cond PRIVATE */ @@ -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; } }