X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=source%2Fdrv-api.c;h=f0d09d4a9e2ade5421191cb9989558fcc6c99a41;hb=be9ce537e1842a16f9d9d64516a53d64c7a7a39a;hp=8bfe5fddbc519c0b31ef0a588954ca1d94b37a87;hpb=1fd5630e86bdbe3d476d9f5613fe20fd08112c5d;p=sigrok-util.git diff --git a/source/drv-api.c b/source/drv-api.c index 8bfe5fd..f0d09d4 100644 --- a/source/drv-api.c +++ b/source/drv-api.c @@ -85,14 +85,14 @@ static int cleanup(void) return SR_OK; } -static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi, - const struct sr_probe_group *probe_group) +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)probe_group; + (void)cg; ret = SR_OK; switch (key) { @@ -104,13 +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, - const struct sr_probe_group *probe_group) +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)probe_group; + (void)cg; if (sdi->status != SR_ST_ACTIVE) return SR_ERR_DEV_CLOSED; @@ -125,14 +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, - const struct sr_probe_group *probe_group) +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)probe_group; + (void)cg; ret = SR_OK; switch (key) { @@ -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;