X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhwdriver.c;h=3348b759562593746bce2792b8a282e49241e5ae;hp=21cd42e56cb793bc446b9ae512225c4fd3cc4bcb;hb=c1aae90038456a61d0f9313d34e6107c3440d3e7;hpb=daa39012054a10007986b2463ac61efe4cdd6ac8 diff --git a/src/hwdriver.c b/src/hwdriver.c index 21cd42e5..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 */ @@ -169,6 +169,8 @@ static struct sr_config_info sr_config_info_data[] = { "Measured secondary quantity", NULL}, {SR_CONF_EQUIV_CIRCUIT_MODEL, SR_T_STRING, "equiv_circuit_model", "Equivalent circuit model", NULL}, + {SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE, SR_T_BOOL, "otp_active", + "Over-temperature protection active", NULL}, /* Special stuff */ {SR_CONF_SCAN_OPTIONS, SR_T_STRING, "scan_options", @@ -395,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; } @@ -432,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; } }