X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=source%2Fdrv-api.c;h=26707b336380b3b4b3cb33947e0d39be78662db9;hp=ae594f17947ba6e2a21fdf4976360214dbf44a9e;hb=d73e0933046c580cc6d52f7099364a2af6ce141f;hpb=28fca3a8f9e73c86d27f20065e51c69a9118a60e diff --git a/source/drv-api.c b/source/drv-api.c index ae594f1..26707b3 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(int 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(int 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(int 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) {