From: Joel Holdsworth Date: Thu, 13 Nov 2014 12:46:25 +0000 (+0000) Subject: SigSession: Added DeviceManager accessor functions X-Git-Tag: pulseview-0.3.0~508 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4cb0b03353200f6747723e54a5a0e7e57e0ae096;p=pulseview.git SigSession: Added DeviceManager accessor functions --- diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 5a794417..4f26842f 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -92,6 +92,16 @@ SigSession::~SigSession() stop_capture(); } +DeviceManager& SigSession::device_manager() +{ + return _device_manager; +} + +const DeviceManager& SigSession::device_manager() const +{ + return _device_manager; +} + const shared_ptr& SigSession::session() const { return _session; diff --git a/pv/sigsession.h b/pv/sigsession.h index cea426a0..08a0fd0f 100644 --- a/pv/sigsession.h +++ b/pv/sigsession.h @@ -79,6 +79,10 @@ public: ~SigSession(); + DeviceManager& device_manager(); + + const DeviceManager& device_manager() const; + const std::shared_ptr& session() const; std::shared_ptr device() const;