]> sigrok.org Git - libsigrok.git/commitdiff
Deprecate SR_DI_PATTERNS.
authorBert Vermeulen <redacted>
Fri, 25 Jan 2013 02:38:44 +0000 (03:38 +0100)
committerBert Vermeulen <redacted>
Fri, 25 Jan 2013 02:38:44 +0000 (03:38 +0100)
This is replaced by SR_CONF_PATTERN_MODE.

hardware/demo/demo.c
libsigrok.h

index 7fc00fb71be318c30baf38a6207b6f42d134b4c6..345468c41be550174350ecd2ea4b7984edf37499 100644 (file)
@@ -237,9 +237,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
        case SR_CONF_SAMPLERATE:
                *data = &cur_samplerate;
                break;
-       case SR_DI_PATTERNS:
-               *data = &pattern_strings;
-               break;
        default:
                return SR_ERR_ARG;
        }
@@ -304,6 +301,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
        case SR_CONF_SAMPLERATE:
                *data = &samplerates;
                break;
+       case SR_CONF_PATTERN_MODE:
+               *data = &pattern_strings;
+               break;
        default:
                return SR_ERR_ARG;
        }
index d8b90f989e97ba9cf349c2d41b840ea1d989ede6..4492c0409bcb589a6fa14806c58896f3714349a6 100644 (file)
@@ -553,8 +553,6 @@ enum {
        SR_DI_HWCAPS,
        /** Types of logic trigger supported, out of "01crf" (char *). */
        SR_DI_TRIGGER_TYPES,
-       /** Supported patterns (in pattern generator mode). */
-       SR_DI_PATTERNS,
        /** Supported buffer sizes. */
        SR_DI_BUFFERSIZES,
        /** Supported time bases. */