X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=session_file.c;h=259472e55ceef57fba4482f26515adf321ca24cb;hb=a9a245b428cb9645d73044f6741818d2499efefc;hp=e4f41a5e9c7c18b747c43a4dc5f0874434fb9c39;hpb=69040b7c8ff82aef2ad712b7881492d0fa4c86a8;p=libsigrok.git diff --git a/session_file.c b/session_file.c index e4f41a5e..259472e5 100644 --- a/session_file.c +++ b/session_file.c @@ -120,17 +120,17 @@ SR_API int sr_session_load(const char *filename) /* first device, init the plugin */ dev->plugin->init((char *)filename); sr_session_dev_add(dev); - dev->plugin->config_set(devcnt, SR_HWCAP_CAPTUREFILE, val); + dev->plugin->dev_config_set(devcnt, SR_HWCAP_CAPTUREFILE, val); g_ptr_array_add(capturefiles, val); } else if (!strcmp(keys[j], "samplerate")) { sr_parse_sizestring(val, &tmp_u64); - dev->plugin->config_set(devcnt, SR_HWCAP_SAMPLERATE, &tmp_u64); + dev->plugin->dev_config_set(devcnt, SR_HWCAP_SAMPLERATE, &tmp_u64); } else if (!strcmp(keys[j], "unitsize")) { tmp_u64 = strtoull(val, NULL, 10); - dev->plugin->config_set(devcnt, SR_HWCAP_CAPTURE_UNITSIZE, &tmp_u64); + dev->plugin->dev_config_set(devcnt, SR_HWCAP_CAPTURE_UNITSIZE, &tmp_u64); } else if (!strcmp(keys[j], "total probes")) { total_probes = strtoull(val, NULL, 10); - dev->plugin->config_set(devcnt, SR_HWCAP_CAPTURE_NUM_PROBES, &total_probes); + dev->plugin->dev_config_set(devcnt, SR_HWCAP_CAPTURE_NUM_PROBES, &total_probes); for (p = 0; p < total_probes; p++) { snprintf(probename, SR_MAX_PROBENAME_LEN, "%" PRIu64, p); sr_dev_probe_add(dev, probename);