From 6d1ceffa9557bf5cd0315949de5791e76e18bdc4 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Fri, 25 Jan 2013 10:58:37 +0100 Subject: [PATCH] Deprecate SR_DI_BUFFERSIZES. This is replaced by SR_CONF_BUFFERSIZE. --- 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 e4d9f6f7..bf3fefab 100644 --- a/hardware/hantek-dso/api.c +++ b/hardware/hantek-dso/api.c @@ -432,9 +432,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi) case SR_DI_HWCAPS: *data = hwcaps; break; - case SR_DI_BUFFERSIZES: - *data = buffersizes; - break; case SR_DI_TIMEBASES: *data = timebases; break; @@ -586,6 +583,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi (void)sdi; switch (key) { + case SR_CONF_BUFFERSIZE: + *data = buffersizes; + break; default: return SR_ERR_ARG; } diff --git a/libsigrok.h b/libsigrok.h index 4492c040..04776ee8 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -553,8 +553,6 @@ enum { SR_DI_HWCAPS, /** Types of logic trigger supported, out of "01crf" (char *). */ SR_DI_TRIGGER_TYPES, - /** Supported buffer sizes. */ - SR_DI_BUFFERSIZES, /** Supported time bases. */ SR_DI_TIMEBASES, /** Supported trigger sources. */