]> sigrok.org Git - libsigrok.git/commitdiff
Make SR_CONF_{SCAN,DEVICE}_OPTIONS into internal constants.
authorMartin Ling <redacted>
Mon, 2 Nov 2015 01:03:07 +0000 (01:03 +0000)
committerUwe Hermann <redacted>
Thu, 31 Dec 2015 18:00:16 +0000 (19:00 +0100)
These are no longer needed in the public API as we have new wrapper functions.
They are still used internally by drivers.

include/libsigrok/libsigrok.h
src/hwdriver.c
src/libsigrok-internal.h

index de3136b94dbfb77fca4167cb52c4893e678a8f94..22d9be45c4acaafdae315af4ac3250f35b44681f 100644 (file)
@@ -982,12 +982,6 @@ 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,
 
index 5a4b1b01b77ce2aec84cadfdd1a69f76a6112b74..0aa7eb8c0f0517bf44dee0c30c964bdc679fcfe9 100644 (file)
@@ -173,10 +173,6 @@ static struct sr_key_info sr_key_info_config[] = {
                "Over-temperature protection active", NULL},
 
        /* Special stuff */
-       {SR_CONF_SCAN_OPTIONS, SR_T_STRING, "scan_options",
-               "Scan options", NULL},
-       {SR_CONF_DEVICE_OPTIONS, SR_T_STRING, "device_options",
-               "Device options", NULL},
        {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",
                "Session file", NULL},
        {SR_CONF_CAPTUREFILE, SR_T_STRING, "capturefile",
index 12b556aec849e46bc085db574e7f1a0741825d36..cc87e1edc93094d8f3de6aaa3fd14fa4ad814029 100644 (file)
@@ -675,6 +675,12 @@ SR_PRIV int sr_log(int loglevel, const char *format, ...) G_GNUC_PRINTF(2, 3);
 
 /*--- device.c --------------------------------------------------------------*/
 
+/** Scan options supported by a driver. */
+#define SR_CONF_SCAN_OPTIONS 0x7FFF0000
+
+/** Device options for a particular device. */
+#define SR_CONF_DEVICE_OPTIONS 0x7FFF0001
+
 /** Values for the changes argument of sr_dev_driver.config_channel_set. */
 enum {
        /** The enabled state of the channel has been changed. */