set<const Capability *> Configurable::config_capabilities(const ConfigKey *key) const
{
- int caps = sr_dev_config_capabilities(config_sdi, config_channel_group,
- key->id());
+ int caps = sr_dev_config_capabilities_list(config_sdi,
+ config_channel_group, key->id());
set<const Capability *> result;
bool Configurable::config_check(const ConfigKey *key,
const Capability *capability) const
{
- int caps = sr_dev_config_capabilities(config_sdi, config_channel_group,
- key->id());
+ int caps = sr_dev_config_capabilities_list(config_sdi,
+ config_channel_group, key->id());
return (caps & capability->id());
}
SR_API int sr_dev_channel_enable(struct sr_channel *channel,
gboolean state);
SR_API gboolean sr_dev_has_option(const struct sr_dev_inst *sdi, int key);
-SR_API int sr_dev_config_capabilities(const struct sr_dev_inst *sdi,
+SR_API int sr_dev_config_capabilities_list(const struct sr_dev_inst *sdi,
const struct sr_channel_group *cg, int key);
SR_API GArray *sr_dev_options(const struct sr_dev_driver *driver,
const struct sr_dev_inst *sdi, const struct sr_channel_group *cg);
*
* @since 0.4.0
*/
-SR_API int sr_dev_config_capabilities(const struct sr_dev_inst *sdi,
+SR_API int sr_dev_config_capabilities_list(const struct sr_dev_inst *sdi,
const struct sr_channel_group *cg, const int key)
{
GVariant *gvar;