From: Uwe Hermann Date: Thu, 31 Dec 2015 17:45:17 +0000 (+0100) Subject: Rename sr_dev_config_capabilities() to sr_dev_config_capabilities_list(). X-Git-Tag: libsigrok-0.4.0~47 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0c697a4b339451514d4814974708816ce7858b8e;p=libsigrok.git Rename sr_dev_config_capabilities() to sr_dev_config_capabilities_list(). --- diff --git a/bindings/cxx/classes.cpp b/bindings/cxx/classes.cpp index 15b94a19..eabe36a3 100644 --- a/bindings/cxx/classes.cpp +++ b/bindings/cxx/classes.cpp @@ -509,8 +509,8 @@ void Configurable::config_set(const ConfigKey *key, const Glib::VariantBase &val set 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 result; @@ -524,8 +524,8 @@ set Configurable::config_capabilities(const ConfigKey *key) 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()); } diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index 9dc12827..3a8e346f 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -56,7 +56,7 @@ SR_API int sr_dev_channel_name_set(struct sr_channel *channel, 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); diff --git a/src/device.c b/src/device.c index cb400bf1..e932ea20 100644 --- a/src/device.c +++ b/src/device.c @@ -261,7 +261,7 @@ SR_API GArray *sr_dev_options( * * @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;