]> 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 4cd68930c132487fd2c5b36fcc042f2bc8c1b683..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 -------------------------------------------*/
 
        /**
@@ -986,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,
 };
 
@@ -1070,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;
 };
 
 /**