]> sigrok.org Git - libsigrok.git/commitdiff
unittests: Update for probe-groups changes.
authorUwe Hermann <redacted>
Sun, 10 Nov 2013 22:22:18 +0000 (23:22 +0100)
committerUwe Hermann <redacted>
Sun, 10 Nov 2013 22:22:18 +0000 (23:22 +0100)
tests/lib.c

index b5a4950843181cd9ddac5d1164c242ab9f680592..58edbf9e0caf459258f5126095c91326cd20c430 100644 (file)
@@ -153,7 +153,7 @@ void srtest_set_samplerate(struct sr_dev_driver *driver, uint64_t samplerate)
        sdi = g_slist_nth_data(driver->priv, 0);
 
        gvar = g_variant_new_uint64(samplerate);
-       ret = driver->config_set(SR_CONF_SAMPLERATE, gvar, sdi);
+       ret = driver->config_set(SR_CONF_SAMPLERATE, gvar, sdi, NULL);
        g_variant_unref(gvar);
 
        fail_unless(ret == SR_OK, "%s: Failed to set SR_CONF_SAMPLERATE: %d.",
@@ -170,7 +170,7 @@ uint64_t srtest_get_samplerate(struct sr_dev_driver *driver)
 
        sdi = g_slist_nth_data(driver->priv, 0);
 
-       ret = driver->config_get(SR_CONF_SAMPLERATE, &gvar, sdi);
+       ret = driver->config_get(SR_CONF_SAMPLERATE, &gvar, sdi, NULL);
        samplerate = g_variant_get_uint64(gvar);
        g_variant_unref(gvar);