From 12a98d0aee7251ab9ef26a5c3a1ae82f5daaf287 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Wed, 17 Sep 2014 19:38:14 +0200 Subject: [PATCH] new-driver: Use uint32_t for config keys. --- source/drv-api.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/drv-api.c b/source/drv-api.c index 26707b3..f0d09d4 100644 --- a/source/drv-api.c +++ b/source/drv-api.c @@ -85,7 +85,7 @@ static int cleanup(void) return SR_OK; } -static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi, +static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { int ret; @@ -104,7 +104,7 @@ static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi, return ret; } -static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi, +static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { int ret; @@ -125,7 +125,7 @@ static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi, return ret; } -static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi, +static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *sdi, const struct sr_channel_group *cg) { int ret; @@ -145,7 +145,7 @@ static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi, } static int dev_acquisition_start(const struct sr_dev_inst *sdi, - void *cb_data) + void *cb_data) { (void)sdi; (void)cb_data; -- 2.30.2