libsigrok.h: Add some missing enum names for consistency.
This commit is contained in:
parent
6b2d33856f
commit
768579456c
|
@ -63,7 +63,7 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Status/error codes returned by libsigrok functions. */
|
/** Status/error codes returned by libsigrok functions. */
|
||||||
enum {
|
enum sr_error_code {
|
||||||
SR_OK = 0, /**< No error. */
|
SR_OK = 0, /**< No error. */
|
||||||
SR_ERR = -1, /**< Generic/unspecified error. */
|
SR_ERR = -1, /**< Generic/unspecified error. */
|
||||||
SR_ERR_MALLOC = -2, /**< Malloc/calloc/realloc error. */
|
SR_ERR_MALLOC = -2, /**< Malloc/calloc/realloc error. */
|
||||||
|
@ -864,7 +864,7 @@ struct sr_dev_inst {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Types of device instance, struct sr_dev_inst.type */
|
/** Types of device instance, struct sr_dev_inst.type */
|
||||||
enum {
|
enum sr_dev_inst_type {
|
||||||
/** Device instance type for USB devices. */
|
/** Device instance type for USB devices. */
|
||||||
SR_INST_USB = 10000,
|
SR_INST_USB = 10000,
|
||||||
/** Device instance type for serial port devices. */
|
/** Device instance type for serial port devices. */
|
||||||
|
@ -874,7 +874,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Device instance status, struct sr_dev_inst.status */
|
/** Device instance status, struct sr_dev_inst.status */
|
||||||
enum {
|
enum sr_dev_inst_status {
|
||||||
/** The device instance was not found. */
|
/** The device instance was not found. */
|
||||||
SR_ST_NOT_FOUND = 10000,
|
SR_ST_NOT_FOUND = 10000,
|
||||||
/** The device instance was found, but is still booting. */
|
/** The device instance was found, but is still booting. */
|
||||||
|
|
Loading…
Reference in New Issue