]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/libsigrok.h
Fix #442 by renaming sr_dev_driver.priv to .context
[libsigrok.git] / include / libsigrok / libsigrok.h
index 43e6de00e568f763ec8479e127cf94151ab0fabd..233e04a6ce969dd881c02f3c6d5092536e9a356e 100644 (file)
@@ -624,6 +624,9 @@ enum sr_configkey {
        /** The device can act as an LCR meter. */
        SR_CONF_LCRMETER,
 
+       /** The device can act as an electronic load. */
+       SR_CONF_ELECTRONIC_LOAD,
+
        /*--- Driver scan options -------------------------------------------*/
 
        /**
@@ -891,6 +894,9 @@ enum sr_configkey {
        /* Output frequency target in Hz. */
        SR_CONF_OUTPUT_FREQUENCY_TARGET,
 
+       /** Over-temperature protection (OTP) active. */
+       SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE,
+
        /*--- Special stuff -------------------------------------------------*/
 
        /** Scan options supported by the driver. */
@@ -983,7 +989,7 @@ enum sr_dev_inst_type {
        SR_INST_SCPI,
        /** Device-instance type for user-created "devices". */
        SR_INST_USER,
-       /** Device instance type for modbus devices. */
+       /** Device instance type for Modbus devices. */
        SR_INST_MODBUS,
 };
 
@@ -1067,8 +1073,8 @@ struct sr_dev_driver {
                        void *cb_data);
 
        /* Dynamic */
-       /** Device driver private data. Initialized by init(). */
-       void *priv;
+       /** Device driver context, considered private. Initialized by init(). */
+       void *context;
 };
 
 /**