_context(context),
_saving(false)
{
- check(sr_session_new(context->structure, &_structure));
+ check(sr_session_new(context->_structure, &_structure));
_context->_session = this;
}
_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)