bindings: Change return type of config_list to Glib::VariantContainerBase.

This commit is contained in:
Martin Ling 2014-07-24 13:17:19 +01:00
parent 1d67cfb4ea
commit e194c01197
2 changed files with 3 additions and 3 deletions

View File

@ -328,13 +328,13 @@ void Configurable::config_set(const ConfigKey *key, Glib::VariantBase value)
key->get_id(), value.gobj()));
}
Glib::VariantBase Configurable::config_list(const ConfigKey *key)
Glib::VariantContainerBase Configurable::config_list(const ConfigKey *key)
{
GVariant *data;
check(sr_config_list(
config_driver, config_sdi, config_channel_group,
key->get_id(), &data));
return Glib::VariantBase(data);
return Glib::VariantContainerBase(data);
}
Device::Device(struct sr_dev_inst *structure) :

View File

@ -258,7 +258,7 @@ public:
/** Set configuration for the given key to a specified value. */
void config_set(const ConfigKey *key, Glib::VariantBase value);
/** Enumerate available values for the given configuration key. */
Glib::VariantBase config_list(const ConfigKey *key);
Glib::VariantContainerBase config_list(const ConfigKey *key);
protected:
Configurable(
struct sr_dev_driver *driver,