Make SR_CONF_{GET,SET,LIST} into a new enum.
This commit is contained in:
parent
039a2fd78a
commit
c57aa1ac19
|
@ -652,9 +652,16 @@ struct sr_key_info {
|
||||||
const char *description;
|
const char *description;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SR_CONF_GET (1 << 31)
|
/** Configuration capabilities. */
|
||||||
#define SR_CONF_SET (1 << 30)
|
enum sr_configcap {
|
||||||
#define SR_CONF_LIST (1 << 29)
|
/** 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
|
#define SR_CONF_MASK 0x1fffffff
|
||||||
|
|
||||||
/** Configuration keys */
|
/** Configuration keys */
|
||||||
|
|
Loading…
Reference in New Issue