From 38f1e846a81a4fee1a28c0f3547c4ac821b0f882 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Mon, 25 Mar 2013 20:41:28 +0100 Subject: [PATCH] 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. --- libsigrok.h | 12 ------------ 1 file changed, 12 deletions(-) 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;