From 6e1fbcc41b9d5e627faa704a31ca150715b09861 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Fri, 25 Jan 2013 11:19:12 +0100 Subject: [PATCH] Deprecate SR_DI_FILTERS. This is replaced by SR_CONF_FILTER. --- hardware/hantek-dso/api.c | 6 +++--- libsigrok.h | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) 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, }; /*