X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsigsession.cpp;h=622bf8d2c5b4dedf18143df7e5824282178c4995;hp=b5387877dda0a73a513f7cb5f066e030f3b17539;hb=945745012eb57cefa1ef457daf48cfffa99f9ec2;hpb=0fc664a99e0d9a444e593123d1db7a47b1657366 diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index b5387877..622bf8d2 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -25,7 +25,7 @@ #include "sigsession.h" #include "devicemanager.h" -#include "devinst.h" +#include "device/devinst.h" #include "data/analog.h" #include "data/analogsnapshot.h" @@ -85,12 +85,12 @@ SigSession::~SigSession() _session = NULL; } -shared_ptr SigSession::get_device() const +shared_ptr SigSession::get_device() const { return _dev_inst; } -void SigSession::set_device(shared_ptr dev_inst) +void SigSession::set_device(shared_ptr dev_inst) { // Ensure we are not capturing before setting the device stop_capture(); @@ -103,12 +103,12 @@ void SigSession::set_device(shared_ptr dev_inst) update_signals(dev_inst); } -void SigSession::release_device(shared_ptr dev_inst) +void SigSession::release_device(shared_ptr dev_inst) { (void)dev_inst; assert(_capture_state == Stopped); - _dev_inst = shared_ptr(); + _dev_inst = shared_ptr(); } void SigSession::load_file(const string &name, @@ -126,8 +126,8 @@ void SigSession::load_file(const string &name, return; } - shared_ptr dev_inst( - new DevInst((sr_dev_inst*)devlist->data)); + shared_ptr dev_inst( + new device::DevInst((sr_dev_inst*)devlist->data)); g_slist_free(devlist); _decode_traces.clear(); @@ -146,7 +146,8 @@ void SigSession::load_file(const string &name, return; _decode_traces.clear(); - update_signals(shared_ptr(new DevInst(in->sdi))); + update_signals(shared_ptr( + new device::DevInst(in->sdi))); read_sample_rate(in->sdi); _sampling_thread = boost::thread( @@ -386,7 +387,7 @@ sr_input* SigSession::load_input_file_format(const string &filename, return in; } -void SigSession::update_signals(shared_ptr dev_inst) +void SigSession::update_signals(shared_ptr dev_inst) { assert(dev_inst); assert(_capture_state == Stopped); @@ -568,7 +569,7 @@ void SigSession::load_input_thread_proc(const string name, delete in; } -void SigSession::sample_thread_proc(shared_ptr dev_inst, +void SigSession::sample_thread_proc(shared_ptr dev_inst, function error_handler) { assert(dev_inst);