From: Uwe Hermann Date: Wed, 25 Mar 2015 17:25:57 +0000 (+0100) Subject: bindings/cxx/classes.cpp: Fix sr_session_load() invocation. X-Git-Tag: libsigrok-0.4.0~555 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c879dca3d71f321c2a972594a2186f01f398dce8;p=libsigrok.git bindings/cxx/classes.cpp: Fix sr_session_load() invocation. --- diff --git a/bindings/cxx/classes.cpp b/bindings/cxx/classes.cpp index 0916a2da..850225fd 100644 --- a/bindings/cxx/classes.cpp +++ b/bindings/cxx/classes.cpp @@ -898,7 +898,7 @@ Session::Session(shared_ptr 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)