From: Joel Holdsworth Date: Mon, 28 Jan 2013 20:25:56 +0000 (+0000) Subject: Made sr_config_get driver argument a const pointer X-Git-Tag: dsupstream~299 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9fd504b9eb37502b4cd2d5d105f9f24ad1b5adf9;p=libsigrok.git Made sr_config_get driver argument a const pointer --- diff --git a/hwdriver.c b/hwdriver.c index 9535b053..bf473da6 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -317,7 +317,7 @@ SR_PRIV struct sr_config *sr_config_make(int key, const void *value) * 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_get(struct sr_dev_driver *driver, int key, +SR_API int sr_config_get(const struct sr_dev_driver *driver, int key, const void **data, const struct sr_dev_inst *sdi) { int ret; diff --git a/proto.h b/proto.h index bed62698..cf99d1bb 100644 --- a/proto.h +++ b/proto.h @@ -68,7 +68,7 @@ SR_API struct sr_dev_driver **sr_driver_list(void); SR_API int sr_driver_init(struct sr_context *ctx, struct sr_dev_driver *driver); SR_API GSList *sr_driver_scan(struct sr_dev_driver *driver, GSList *options); -SR_API int sr_config_get(struct sr_dev_driver *driver, int key, +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);