]> sigrok.org Git - libsigrok.git/commitdiff
bindings/cxx/classes.cpp: Fix sr_session_load() invocation.
authorUwe Hermann <redacted>
Wed, 25 Mar 2015 17:25:57 +0000 (18:25 +0100)
committerUwe Hermann <redacted>
Thu, 26 Mar 2015 00:02:40 +0000 (01:02 +0100)
bindings/cxx/classes.cpp

index 0916a2dafb84c1d1ec9f28e39488eb03688106ab..850225fdd467840630442442ab2159e3f852022d 100644 (file)
@@ -898,7 +898,7 @@ Session::Session(shared_ptr<Context> context, string filename) :
        _filename(filename),
        _saving(false)
 {
-       check(sr_session_load(filename.c_str(), &_structure));
+       check(sr_session_load(context->_structure, filename.c_str(), &_structure));
        GSList *dev_list;
        check(sr_session_dev_list(_structure, &dev_list));
        for (GSList *dev = dev_list; dev; dev = dev->next)