const struct sr_dev_inst *sdi, struct sr_channel_group *cg,
uint32_t key, GVariant **gvar)
{
- if (sr_dev_config_capabilities(sdi, cg, key) & SR_CONF_GET)
+ if (sr_dev_config_capabilities_list(sdi, cg, key) & SR_CONF_GET)
return sr_config_get(driver, sdi, cg, key, gvar);
return SR_ERR_NA;
{
(void)driver;
- if (sr_dev_config_capabilities(sdi, cg, key) & SR_CONF_SET)
+ if (sr_dev_config_capabilities_list(sdi, cg, key) & SR_CONF_SET)
return sr_config_set(sdi, cg, key, gvar);
return SR_ERR_NA;
const struct sr_dev_inst *sdi, struct sr_channel_group *cg,
uint32_t key, GVariant **gvar)
{
- if (sr_dev_config_capabilities(sdi, cg, key) & SR_CONF_LIST)
+ if (sr_dev_config_capabilities_list(sdi, cg, key) & SR_CONF_LIST)
return sr_config_list(driver, sdi, cg, key, gvar);
return SR_ERR_NA;
return SR_ERR;
}
- if (sr_dev_config_capabilities(sdi, NULL, SR_CONF_LIMIT_MSEC)
+ if (sr_dev_config_capabilities_list(sdi, NULL, SR_CONF_LIMIT_MSEC)
& SR_CONF_SET) {
gvar = g_variant_new_uint64(time_msec);
if (sr_config_set(sdi, NULL, SR_CONF_LIMIT_MSEC, gvar) != SR_OK) {
g_critical("Failed to configure time limit.");
return SR_ERR;
}
- } else if (sr_dev_config_capabilities(sdi, NULL, SR_CONF_SAMPLERATE)
+ } else if (sr_dev_config_capabilities_list(sdi, NULL, SR_CONF_SAMPLERATE)
& (SR_CONF_GET | SR_CONF_SET)) {
/* Convert to samples based on the samplerate. */
sr_config_get(driver, sdi, NULL, SR_CONF_SAMPLERATE, &gvar);
g_array_free(opts, TRUE);
}
- if ((opts = sr_driver_scan_options(driver))) {
+ if ((opts = sr_driver_scan_options_list(driver))) {
if (opts->len > 0) {
printf("Scan options:\n");
for (i = 0; i < opts->len; i++) {
g_variant_unref(gvar_list);
} else if (key == SR_CONF_LIMIT_SAMPLES
- && (sr_dev_config_capabilities(sdi, NULL, key)
+ && (sr_dev_config_capabilities_list(sdi, NULL, key)
& SR_CONF_LIST)) {
/*
* If implemented in config_list(), this denotes the