From: Joel Holdsworth Date: Sat, 28 Mar 2015 13:08:03 +0000 (+0000) Subject: DeviceManager: Added const context accessor X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=72d85f366c78efac46c3332cfbfe11e73c5765a2 DeviceManager: Added const context accessor --- diff --git a/pv/devicemanager.cpp b/pv/devicemanager.cpp index c7111e8..326cbca 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 5aed775..b99a047 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 >&