]> sigrok.org Git - pulseview.git/commitdiff
DeviceManager: Added const context accessor
authorJoel Holdsworth <redacted>
Sat, 28 Mar 2015 13:08:03 +0000 (13:08 +0000)
committerJoel Holdsworth <redacted>
Thu, 28 May 2015 14:59:04 +0000 (15:59 +0100)
pv/devicemanager.cpp
pv/devicemanager.hpp

index c7111e865e9f4bc10f5b8f0e83f03a9d47153b21..326cbca80f5daa0bb278ff388478fb1776d96dda 100644 (file)
@@ -65,6 +65,11 @@ DeviceManager::~DeviceManager()
 {
 }
 
+const std::shared_ptr<sigrok::Context>& DeviceManager::context() const
+{
+       return context_;
+}
+
 shared_ptr<Context> DeviceManager::context()
 {
        return context_;
index 5aed775821300805ebc279439dab11995d2f8894..b99a047c6327100f9f0d15fb9b92f0ece53d418a 100644 (file)
@@ -49,6 +49,8 @@ public:
 
        ~DeviceManager();
 
+       const std::shared_ptr<sigrok::Context>& context() const;
+
        std::shared_ptr<sigrok::Context> context();
 
        const std::list< std::shared_ptr<sigrok::HardwareDevice> >&