/**
* Get information about a device option.
*
- * @param hwcap The capability to get.
+ * @param hwopt The option to get.
*
* @return A pointer to a struct with information about the parameter, or NULL
* if the capability was not found.
*/
-SR_API const struct sr_hwcap_option *sr_hw_hwcap_get(int hwcap)
+SR_API const struct sr_hwcap_option *sr_devopt_get(int hwopt)
{
int i;
for (i = 0; sr_hwcap_options[i].hwcap; i++) {
- if (sr_hwcap_options[i].hwcap == hwcap)
+ if (sr_hwcap_options[i].hwcap == hwopt)
return &sr_hwcap_options[i];
}
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_hwcap_option *sr_drvopt_get(int hwopt);
-SR_API const struct sr_hwcap_option *sr_hw_hwcap_get(int hwcap);
+SR_API const struct sr_hwcap_option *sr_devopt_get(int hwcap);
/*--- session.c -------------------------------------------------------------*/