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;
|
||||
};
|
||||
|
||||
#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 */
|
||||
|
|
Loading…
Reference in New Issue