X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=source%2Fdrv-api.c;h=f0d09d4a9e2ade5421191cb9989558fcc6c99a41;hb=7facd6cf6456b9f684415502a62db036fdfcdcd8;hp=ae594f17947ba6e2a21fdf4976360214dbf44a9e;hpb=28fca3a8f9e73c86d27f20065e51c69a9118a60e;p=sigrok-util.git diff --git a/source/drv-api.c b/source/drv-api.c index ae594f1..f0d09d4 100644 --- a/source/drv-api.c +++ b/source/drv-api.c @@ -85,12 +85,14 @@ 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; (void)sdi; (void)data; + (void)cg; ret = SR_OK; switch (key) { @@ -102,11 +104,13 @@ 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; (void)data; + (void)cg; if (sdi->status != SR_ST_ACTIVE) return SR_ERR_DEV_CLOSED; @@ -121,12 +125,14 @@ 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; (void)sdi; (void)data; + (void)cg; ret = SR_OK; switch (key) { @@ -139,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;