From: Joel Holdsworth Date: Sat, 28 Mar 2015 13:08:03 +0000 (+0000) Subject: DeviceManager: Added const context accessor X-Git-Tag: pulseview-0.3.0~224 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=72d85f366c78efac46c3332cfbfe11e73c5765a2;p=pulseview.git DeviceManager: Added const context accessor --- diff --git a/pv/devicemanager.cpp b/pv/devicemanager.cpp index c7111e86..326cbca8 100644 --- a/pv/devicemanager.cpp +++ b/pv/devicemanager.cpp @@ -65,6 +65,11 @@ DeviceManager::~DeviceManager() { } +const std::shared_ptr& DeviceManager::context() const +{ + return context_; +} + shared_ptr DeviceManager::context() { return context_; diff --git a/pv/devicemanager.hpp b/pv/devicemanager.hpp index 5aed7758..b99a047c 100644 --- a/pv/devicemanager.hpp +++ b/pv/devicemanager.hpp @@ -49,6 +49,8 @@ public: ~DeviceManager(); + const std::shared_ptr& context() const; + std::shared_ptr context(); const std::list< std::shared_ptr >&