X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Flibsigrok%2Flibsigrok.h;h=a384f611d53cf687a1c52cac90b44d13df1dcf44;hb=7d7fd93c947dcaa94f3d90bfb6b0bf3ce01d774d;hp=5309efbdbb55fd34c426a6ab5e14f8df030e9e3c;hpb=2c24077466a299ead689c90f01f55f6d86c7386b;p=libsigrok.git diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 5309efbd..a384f611 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -652,10 +652,15 @@ 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) -#define SR_CONF_MASK 0x1fffffff +/** 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), +}; /** Configuration keys */ enum sr_configkey { @@ -975,14 +980,8 @@ enum sr_configkey { /*--- Special stuff -------------------------------------------------*/ - /** Scan options supported by the driver. */ - SR_CONF_SCAN_OPTIONS = 40000, - - /** Device options for a particular device. */ - SR_CONF_DEVICE_OPTIONS, - /** Session filename. */ - SR_CONF_SESSIONFILE, + SR_CONF_SESSIONFILE = 40000, /** The device supports specifying a capturefile to inject. */ SR_CONF_CAPTUREFILE,