From: Martin Ling Date: Mon, 2 Nov 2015 20:46:28 +0000 (+0000) Subject: Make SR_CONF_{GET,SET,LIST} into a new enum. X-Git-Tag: libsigrok-0.4.0~56 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c57aa1ac19b437281e60c394483a15aec9080916;p=libsigrok.git Make SR_CONF_{GET,SET,LIST} into a new enum. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 5309efbd..de3136b9 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -652,9 +652,16 @@ struct sr_key_info { const char *description; }; -#define SR_CONF_GET (1 << 31) -#define SR_CONF_SET (1 << 30) -#define SR_CONF_LIST (1 << 29) +/** Configuration capabilities. */ +enum sr_configcap { + /** Value can be read. */ + SR_CONF_GET = (1 << 31), + /** Value can be written. */ + SR_CONF_SET = (1 << 30), + /** Possible values can be enumerated. */ + SR_CONF_LIST = (1 << 29), +}; + #define SR_CONF_MASK 0x1fffffff /** Configuration keys */