]> sigrok.org Git - pulseview.git/blobdiff - pv/devicemanager.cpp
DeviceManager: Added const context accessor
[pulseview.git] / pv / devicemanager.cpp
index 0c6c354fe6f12e14c06a7cfa955464b8049f4088..326cbca80f5daa0bb278ff388478fb1776d96dda 100644 (file)
@@ -27,7 +27,7 @@
 #include <string>
 #include <vector>
 
-#include <libsigrok/libsigrok.hpp>
+#include <libsigrokcxx/libsigrokcxx.hpp>
 
 #include <boost/algorithm/string/join.hpp>
 #include <boost/filesystem.hpp>
@@ -65,6 +65,11 @@ DeviceManager::~DeviceManager()
 {
 }
 
+const std::shared_ptr<sigrok::Context>& DeviceManager::context() const
+{
+       return context_;
+}
+
 shared_ptr<Context> DeviceManager::context()
 {
        return context_;