From: Bert Vermeulen Date: Mon, 25 Mar 2013 19:41:28 +0000 (+0100) Subject: struct sr_samplerates is now obsolete X-Git-Tag: dsupstream~210 X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=38f1e846a81a4fee1a28c0f3547c4ac821b0f882 struct sr_samplerates is now obsolete sr_config_get() of SR_CONF_SAMPLERATE now returns a GVARIANT_TYPE_DICTIONARY. This dictionary contains a single key-value pair. Possible values for the key: - "samplerates": the value is an array of GVARIANT_TYPE_UINT64 representing all valid samplerates. - "samplerate-steps": the value is an array of GVARIANT_TYPE_UINT64 with exactly three members, which represent the lowest samplerate, highest samplerate, and the minimum step, respectively. --- diff --git a/libsigrok.h b/libsigrok.h index 351bc0a4..a606dfb0 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -722,18 +722,6 @@ enum { SR_ST_STOPPING, }; -/* - * A device supports either a range of samplerates with steps of a given - * granularity, or is limited to a set of defined samplerates. Use either - * step or list, but not both. - */ -struct sr_samplerates { - uint64_t low; - uint64_t high; - uint64_t step; - const uint64_t *list; -}; - struct sr_dev_driver { /* Driver-specific */ char *name;