]> sigrok.org Git - libsigrok.git/commitdiff
Deprecate SR_DI_FILTERS.
authorBert Vermeulen <redacted>
Fri, 25 Jan 2013 10:19:12 +0000 (11:19 +0100)
committerBert Vermeulen <redacted>
Fri, 25 Jan 2013 10:19:12 +0000 (11:19 +0100)
This is replaced by SR_CONF_FILTER.

hardware/hantek-dso/api.c
libsigrok.h

index f797b709f95d4bb2c975512ac5f8b388651b20b6..8ee795dda2b0515b24223adaecce6ab919cdc2bb 100644 (file)
@@ -438,9 +438,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
        case SR_DI_TRIGGER_SOURCES:
                *data = trigger_sources;
                break;
-       case SR_DI_FILTERS:
-               *data = filter_targets;
-               break;
        /* TODO remove this */
        case SR_CONF_SAMPLERATE:
                *data = &tmp;
@@ -586,6 +583,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
        case SR_CONF_VDIV:
                *data = vdivs;
                break;
+       case SR_CONF_FILTER:
+               *data = filter_targets;
+               break;
        default:
                return SR_ERR_ARG;
        }
index 9add374be9a24cdc3610b49b892309707a90451d..0a48366b239529b0e50ba3199a0ee7a3e662dbaf 100644 (file)
@@ -557,8 +557,6 @@ enum {
        SR_DI_TIMEBASES,
        /** Supported trigger sources. */
        SR_DI_TRIGGER_SOURCES,
-       /** Supported filter targets. */
-       SR_DI_FILTERS,
 };
 
 /*