]> sigrok.org Git - sigrok-util.git/blobdiff - source/drv-api.c
sigrok-cross-linux: Run sr/srd unit tests.
[sigrok-util.git] / source / drv-api.c
index ae594f17947ba6e2a21fdf4976360214dbf44a9e..f0d09d4a9e2ade5421191cb9989558fcc6c99a41 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(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;