bindings: Change return type of config_list to Glib::VariantContainerBase.
This commit is contained in:
parent
1d67cfb4ea
commit
e194c01197
|
@ -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) :
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue