]> sigrok.org Git - sigrok-util.git/blobdiff - source/drv-api.c
new-driver: Change 'probe_group' to 'channel_group'.
[sigrok-util.git] / source / drv-api.c
index ae594f17947ba6e2a21fdf4976360214dbf44a9e..26707b336380b3b4b3cb33947e0d39be78662db9 100644 (file)
@@ -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) {