]> sigrok.org Git - libsigrok.git/blobdiff - libsigrok.h
Add/update Doxygen @since tags.
[libsigrok.git] / libsigrok.h
index 7f58e1c725d7ce75a502bc7b35c10fdc12a3c978..65d1490f37c46886430b4813af36132744764da5 100644 (file)
@@ -41,9 +41,9 @@ extern "C" {
  *
  * The correct way to get/use the libsigrok API functions is:
  *
  @code{.c}
    #include <libsigrok/libsigrok.h>
  @endcode
* @code{.c}
*   #include <libsigrok/libsigrok.h>
* @endcode
  */
 
 /*
@@ -63,7 +63,7 @@ extern "C" {
  */
 
 /** Status/error codes returned by libsigrok functions. */
-enum {
+enum sr_error_code {
        SR_OK                =  0, /**< No error. */
        SR_ERR               = -1, /**< Generic/unspecified error. */
        SR_ERR_MALLOC        = -2, /**< Malloc/calloc/realloc error. */
@@ -132,7 +132,7 @@ enum sr_loglevel {
 #endif
 
 /** Type definition for callback function for data reception. */
-typedef int (*sr_receive_data_callback_t)(int fd, int revents, void *cb_data);
+typedef int (*sr_receive_data_callback)(int fd, int revents, void *cb_data);
 
 /** Data types used by sr_config_info(). */
 enum sr_datatype {
@@ -828,6 +828,12 @@ enum sr_configkey {
        /** The device has internal storage, into which data is logged. This
         * starts or stops the internal logging. */
        SR_CONF_DATALOG,
+
+       /** Device mode for multi-function devices. */
+       SR_CONF_DEVICE_MODE,
+
+       /** Self test mode. */
+       SR_CONF_TEST_MODE,
 };
 
 /** Device instance data
@@ -858,7 +864,7 @@ struct sr_dev_inst {
 };
 
 /** Types of device instance, struct sr_dev_inst.type */
-enum {
+enum sr_dev_inst_type {
        /** Device instance type for USB devices. */
        SR_INST_USB = 10000,
        /** Device instance type for serial port devices. */
@@ -868,7 +874,7 @@ enum {
 };
 
 /** Device instance status, struct sr_dev_inst.status */
-enum {
+enum sr_dev_inst_status {
        /** The device instance was not found. */
        SR_ST_NOT_FOUND = 10000,
        /** The device instance was found, but is still booting. */