]> sigrok.org Git - pulseview.git/commitdiff
SigSession: Added DeviceManager accessor functions
authorJoel Holdsworth <redacted>
Thu, 13 Nov 2014 12:46:25 +0000 (12:46 +0000)
committerUwe Hermann <redacted>
Thu, 13 Nov 2014 18:34:39 +0000 (19:34 +0100)
pv/sigsession.cpp
pv/sigsession.h

index 5a794417f2112754f6cf0cc566202b452b49c5d8..4f26842f5b8c89c1a8e16bc47d7f12e1753271be 100644 (file)
@@ -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<sigrok::Session>& SigSession::session() const
 {
        return _session;
index cea426a0d2eb12833a1a9b1f705188cee91c95dc..08a0fd0fadb5cbe23b89e8e93acea84dae027599 100644 (file)
@@ -79,6 +79,10 @@ public:
 
        ~SigSession();
 
+       DeviceManager& device_manager();
+
+       const DeviceManager& device_manager() const;
+
        const std::shared_ptr<sigrok::Session>& session() const;
 
        std::shared_ptr<sigrok::Device> device() const;