From: Bert Vermeulen Date: Sun, 6 Jan 2013 15:37:41 +0000 (+0100) Subject: unify sr_datafeed_meta_* into one struct containing sr_config X-Git-Tag: dsupstream~338 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9a5693a5acf677c47285307235b9d47bcc3b932e;p=libsigrok.git unify sr_datafeed_meta_* into one struct containing sr_config struct sr_config is the new name for sr_hwopt. Its companion meta struct, sr_hwcap_option, was renamed sr_config_info. --- diff --git a/libsigrok.h b/libsigrok.h index c2ad17f7..7b400f91 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -148,11 +148,10 @@ struct sr_rational { enum { SR_DF_HEADER = 10000, SR_DF_END, + SR_DF_META, SR_DF_TRIGGER, SR_DF_LOGIC, - SR_DF_META_LOGIC, SR_DF_ANALOG, - SR_DF_META_ANALOG, SR_DF_FRAME_BEGIN, SR_DF_FRAME_END, }; @@ -276,6 +275,10 @@ struct sr_datafeed_header { struct timeval starttime; }; +struct sr_datafeed_meta { + GSList *config; +}; + struct sr_datafeed_meta_logic { int num_probes; uint64_t samplerate; @@ -368,11 +371,19 @@ struct sr_probe { char *trigger; }; -struct sr_hwopt { - int hwopt; +struct sr_config { + int key; const void *value; }; +struct sr_config_info { + int key; + char *id; + char *name; + char *description; + int datatype; +}; + /** Hardware driver options. */ enum { /** @@ -515,13 +526,6 @@ enum { SR_HWCAP_CONTINUOUS, }; -struct sr_hwcap_option { - int hwcap; - int type; - char *description; - char *shortname; -}; - struct sr_dev_inst { struct sr_dev_driver *driver; int index;