return ret;
}
+SR_API int sr_config_list(struct sr_dev_driver *driver, int id,
+ const void **data, const struct sr_dev_inst *sdi)
+{
+ int ret;
+
+ if (driver == NULL || data == NULL)
+ return SR_ERR;
+
+ if (!driver->config_list)
+ return SR_ERR;
+
+ ret = driver->config_list(id, data, sdi);
+
+ return ret;
+}
+
/**
* Find out if a hardware driver has a specific capability.
*
const struct sr_dev_inst *sdi);
int (*config_set) (int id, const void *value,
const struct sr_dev_inst *sdi);
+ int (*config_list) (int info_id, const void **data,
+ const struct sr_dev_inst *sdi);
/* Device-specific */
int (*dev_open) (struct sr_dev_inst *sdi);
SR_API GSList *sr_driver_scan(struct sr_dev_driver *driver, GSList *options);
SR_API int sr_info_get(struct sr_dev_driver *driver, int id,
const void **data, const struct sr_dev_inst *sdi);
+SR_API int sr_config_list(struct sr_dev_driver *driver, int id,
+ const void **data, const struct sr_dev_inst *sdi);
SR_API gboolean sr_driver_hwcap_exists(struct sr_dev_driver *driver, int hwcap);
SR_API const struct sr_config_info *sr_config_info_get(int key);
SR_API const struct sr_config_info *sr_config_info_name_get(const char *optname);