struct sr_config is the new name for sr_hwopt. Its companion meta
struct, sr_hwcap_option, was renamed sr_config_info.
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,
};
struct timeval starttime;
};
+struct sr_datafeed_meta {
+ GSList *config;
+};
+
struct sr_datafeed_meta_logic {
int num_probes;
uint64_t samplerate;
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 {
/**
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;