{
struct sr_dev_inst *sdi;
struct sr_channel_group *cg;
- const struct sr_config_info *ci;
+ const struct sr_key_info *ci;
GSList *devices;
GVariant *gvar;
GHashTable *devargs;
}
cg = select_channel_group(sdi);
- if (!(ci = sr_config_info_name_get(opt_get)))
+ if (!(ci = sr_key_info_name_get(SR_KEY_CONFIG, opt_get)))
g_critical("Unknown option '%s'", opt_get);
if ((devargs = parse_generic_arg(opt_config, FALSE)))
int opt_to_gvar(char *key, char *value, struct sr_config *src)
{
- const struct sr_config_info *srci;
+ const struct sr_key_info *srci;
double tmp_double, dlow, dhigh;
uint64_t tmp_u64, p, q, low, high;
GVariant *rational[2], *range[2];
gchar **keyval;
int ret;
- if (!(srci = sr_config_info_name_get(key))) {
+ if (!(srci = sr_key_info_name_get(SR_KEY_CONFIG, key))) {
g_critical("Unknown device option '%s'.", (char *) key);
return -1;
}
void show_drv_detail(struct sr_dev_driver *driver)
{
- const struct sr_config_info *srci;
+ const struct sr_key_info *srci;
GVariant *gvar_opts;
const uint32_t *opts;
gsize num_elements, i;
if (num_elements) {
printf("Driver functions:\n");
for (i = 0; i < num_elements; i++) {
- if (!(srci = sr_config_info_get(opts[i] & SR_CONF_MASK)))
+ if (!(srci = sr_key_info_get(SR_KEY_CONFIG, opts[i] & SR_CONF_MASK)))
continue;
printf(" %s\n", srci->name);
}
if (num_elements) {
printf("Scan options:\n");
for (i = 0; i < num_elements; i++) {
- if (!(srci = sr_config_info_get(opts[i] & SR_CONF_MASK)))
+ if (!(srci = sr_key_info_get(SR_KEY_CONFIG, opts[i] & SR_CONF_MASK)))
continue;
printf(" %s\n", srci->id);
}
opts = g_variant_get_fixed_array(gvar_opts, &num_opts, sizeof(uint32_t));
for (o = 0; o < num_opts; o++) {
key = opts[o] & SR_CONF_MASK;
- if (!(srci = sr_config_info_get(key)))
+ if (!(srci = sr_key_info_get(SR_KEY_CONFIG, key)))
continue;
if (key == SR_CONF_TRIGGER_MATCH) {