]> sigrok.org Git - libsigrok.git/commitdiff
Deprecate SR_DI_BUFFERSIZES.
authorBert Vermeulen <redacted>
Fri, 25 Jan 2013 09:58:37 +0000 (10:58 +0100)
committerBert Vermeulen <redacted>
Fri, 25 Jan 2013 09:58:37 +0000 (10:58 +0100)
This is replaced by SR_CONF_BUFFERSIZE.

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

index e4d9f6f77c90955bdd6521f1448ace4bab66dd27..bf3fefabab114b255d484b9b93f8ef30ebad9b67 100644 (file)
@@ -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;
        }
index 4492c0409bcb589a6fa14806c58896f3714349a6..04776ee8068122b4482e8a2c04ca0874ee206a0f 100644 (file)
@@ -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. */