Made sr_config_list driver argument a const pointer
This commit is contained in:
parent
9fd504b9eb
commit
4c961f5ed5
|
@ -377,7 +377,7 @@ SR_API int sr_config_set(const struct sr_dev_inst *sdi, int key,
|
|||
* but this is not to be flagged as an error by the caller; merely
|
||||
* as an indication that it's not applicable.
|
||||
*/
|
||||
SR_API int sr_config_list(struct sr_dev_driver *driver, int key,
|
||||
SR_API int sr_config_list(const struct sr_dev_driver *driver, int key,
|
||||
const void **data, const struct sr_dev_inst *sdi)
|
||||
{
|
||||
int ret;
|
||||
|
|
2
proto.h
2
proto.h
|
@ -72,7 +72,7 @@ SR_API int sr_config_get(const struct sr_dev_driver *driver, int key,
|
|||
const void **data, const struct sr_dev_inst *sdi);
|
||||
SR_API int sr_config_set(const struct sr_dev_inst *sdi, int key,
|
||||
const void *value);
|
||||
SR_API int sr_config_list(struct sr_dev_driver *driver, int key,
|
||||
SR_API int sr_config_list(const struct sr_dev_driver *driver, int key,
|
||||
const void **data, const struct sr_dev_inst *sdi);
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue