From: Bert Vermeulen Date: Fri, 25 Jan 2013 10:19:12 +0000 (+0100) Subject: Deprecate SR_DI_FILTERS. X-Git-Tag: dsupstream~313 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6e1fbcc41b9d5e627faa704a31ca150715b09861;p=libsigrok.git Deprecate SR_DI_FILTERS. This is replaced by SR_CONF_FILTER. --- diff --git a/hardware/hantek-dso/api.c b/hardware/hantek-dso/api.c index f797b709..8ee795dd 100644 --- a/hardware/hantek-dso/api.c +++ b/hardware/hantek-dso/api.c @@ -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; } diff --git a/libsigrok.h b/libsigrok.h index 9add374b..0a48366b 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -557,8 +557,6 @@ enum { SR_DI_TIMEBASES, /** Supported trigger sources. */ SR_DI_TRIGGER_SOURCES, - /** Supported filter targets. */ - SR_DI_FILTERS, }; /*