]> sigrok.org Git - libsigrok.git/blobdiff - src/session_file.c
Change sr_dev_inst_new() to take no parameters.
[libsigrok.git] / src / session_file.c
index bd5b827f41734abf8ceb3056c31c264b26d5ba63..9f8ee75660556dc6cb4b34ca3a23746fed25a945 100644 (file)
@@ -170,8 +170,9 @@ SR_API int sr_session_load(const char *filename, struct sr_session **session)
                        for (j = 0; keys[j]; j++) {
                                val = g_key_file_get_string(kf, sections[i], keys[j], NULL);
                                if (!strcmp(keys[j], "capturefile")) {
-                                       sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
+                                       sdi = sr_dev_inst_new();
                                        sdi->driver = &session_driver;
+                                       sdi->status = SR_ST_ACTIVE;
                                        if (!session_driver_initialized) {
                                                /* first device, init the driver */
                                                session_driver_initialized = 1;