From: Uwe Hermann Date: Sun, 4 May 2014 17:58:56 +0000 (+0200) Subject: libsigrok.h: Add some missing enum names for consistency. X-Git-Tag: libsigrok-0.3.0~9 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=768579456c7800e462a404c2c28af1e306989fd8;p=libsigrok.git libsigrok.h: Add some missing enum names for consistency. --- diff --git a/libsigrok.h b/libsigrok.h index 552e1075..4a81b96d 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -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. */ @@ -864,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. */ @@ -874,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. */