From: Bert Vermeulen Date: Fri, 25 Jan 2013 02:38:44 +0000 (+0100) Subject: Deprecate SR_DI_PATTERNS. X-Git-Tag: dsupstream~317 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dd96ea98793ed089f1b0a7dd31f417774f14ad80;p=libsigrok.git Deprecate SR_DI_PATTERNS. This is replaced by SR_CONF_PATTERN_MODE. --- diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 7fc00fb7..345468c4 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -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; } diff --git a/libsigrok.h b/libsigrok.h index d8b90f98..4492c040 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 patterns (in pattern generator mode). */ - SR_DI_PATTERNS, /** Supported buffer sizes. */ SR_DI_BUFFERSIZES, /** Supported time bases. */