set<const ConfigKey *> Driver::scan_options() const
{
- GArray *opts = sr_driver_scan_options(_structure);
+ GArray *opts = sr_driver_scan_options_list(_structure);
set<const ConfigKey *> result;
for (guint i = 0; i < opts->len; i++)
result.insert(ConfigKey::get(g_array_index(opts, uint32_t, i)));
SR_API struct sr_dev_driver **sr_driver_list(const struct sr_context *ctx);
SR_API int sr_driver_init(struct sr_context *ctx,
struct sr_dev_driver *driver);
-SR_API GArray *sr_driver_scan_options(const struct sr_dev_driver *driver);
+SR_API GArray *sr_driver_scan_options_list(const struct sr_dev_driver *driver);
SR_API GSList *sr_driver_scan(struct sr_dev_driver *driver, GSList *options);
SR_API int sr_config_get(const struct sr_dev_driver *driver,
const struct sr_dev_inst *sdi,
/**
* Enumerate scan options supported by this driver.
*
- * Before calling sr_driver_scan_options(), the user must have previously
+ * Before calling sr_driver_scan_options_list(), the user must have previously
* initialized the driver by calling sr_driver_init().
*
* @param driver The driver to enumerate options for. This must be a pointer
*
* @since 0.4.0
*/
-SR_API GArray *sr_driver_scan_options(const struct sr_dev_driver *driver)
+SR_API GArray *sr_driver_scan_options_list(const struct sr_dev_driver *driver)
{
GVariant *gvar;
const uint32_t *opts;