summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-05-04 19:54:02 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-05-04 19:54:02 +0200
commitaf9527d1776668699a4c1244a419902af47f8493 (patch)
tree3be34566da01be373a836b5f1730c5435d90b499
parent64b354d6823a0b19333ee65e073e5d8169a44027 (diff)
downloadlibsigrokdecode-af9527d1776668699a4c1244a419902af47f8493.tar.gz
libsigrokdecode-af9527d1776668699a4c1244a419902af47f8493.zip
libsigrokdecode.h: Give type names to all enumerations.
This matches the libsigrok conventions, and will be required (or at least nice to have) for libsigrokdecode language bindings later.
-rw-r--r--libsigrokdecode.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsigrokdecode.h b/libsigrokdecode.h
index f043036..9d2dbd3 100644
--- a/libsigrokdecode.h
+++ b/libsigrokdecode.h
@@ -65,7 +65,7 @@ struct srd_session;
*/
/** Status/error codes returned by libsigrokdecode functions. */
-enum {
+enum srd_error_code {
SRD_OK = 0, /**< No error */
SRD_ERR = -1, /**< Generic/unspecified error */
SRD_ERR_MALLOC = -2, /**< Malloc/calloc/realloc error */
@@ -81,7 +81,7 @@ enum {
};
/* libsigrokdecode loglevels. */
-enum {
+enum srd_loglevel {
SRD_LOG_NONE = 0, /**< Output no messages at all. */
SRD_LOG_ERR = 1, /**< Output error messages. */
SRD_LOG_WARN = 2, /**< Output warnings. */
@@ -126,14 +126,14 @@ enum {
* - add a check in module_sigrokdecode.c:Decoder_put()
* - add a debug string in type_decoder.c:OUTPUT_TYPES
*/
-enum {
+enum srd_output_type {
SRD_OUTPUT_ANN,
SRD_OUTPUT_PYTHON,
SRD_OUTPUT_BINARY,
SRD_OUTPUT_META,
};
-enum {
+enum srd_configkey {
SRD_CONF_SAMPLERATE = 10000,
};