sr: rename sr_hw_hwcap_get() to sr_devopt_get()

This commit is contained in:
Bert Vermeulen 2012-08-04 14:35:40 +02:00
parent fabe59b326
commit 3cf91809a5
2 changed files with 4 additions and 4 deletions

View File

@ -264,17 +264,17 @@ SR_API const struct sr_hwcap_option *sr_drvopt_get(int hwopt)
/**
* 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];
}

View File

@ -71,7 +71,7 @@ SR_API int sr_info_get(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_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 -------------------------------------------------------------*/