From: Martin Ling Date: Tue, 3 Nov 2015 01:59:42 +0000 (+0000) Subject: Make SR_CONF_MASK an internal constant. X-Git-Tag: libsigrok-0.4.0~49 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e318f01b2f17d60fc4b25feb7d23e948cb5ffb8f;p=libsigrok.git Make SR_CONF_MASK an internal constant. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 22d9be45..16375e34 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -662,8 +662,6 @@ enum sr_configcap { SR_CONF_LIST = (1 << 29), }; -#define SR_CONF_MASK 0x1fffffff - /** Configuration keys */ enum sr_configkey { /*--- Device classes ------------------------------------------------*/ diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index cc87e1ed..a045b57e 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -681,6 +681,9 @@ SR_PRIV int sr_log(int loglevel, const char *format, ...) G_GNUC_PRINTF(2, 3); /** Device options for a particular device. */ #define SR_CONF_DEVICE_OPTIONS 0x7FFF0001 +/** Mask for separating config keys from capabilities. */ +#define SR_CONF_MASK 0x1fffffff + /** Values for the changes argument of sr_dev_driver.config_channel_set. */ enum { /** The enabled state of the channel has been changed. */