X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevicemanager.hpp;h=2c9343001211409e8e836d95c9d5d623417ebcd2;hp=43d93a7a88f5778d0bed24bcead6ec1f2e9dc85e;hb=b5940cf0ef30b3519389da8c8768aee4d4424415;hpb=6f925ba9d6faf1077b73c5a5808259576081716a diff --git a/pv/devicemanager.hpp b/pv/devicemanager.hpp index 43d93a7a..2c934300 100644 --- a/pv/devicemanager.hpp +++ b/pv/devicemanager.hpp @@ -23,12 +23,16 @@ #include #include #include +#include #include +#include using std::list; using std::map; +using std::set; using std::shared_ptr; using std::string; +using std::vector; namespace Glib { class VariantBase; @@ -40,6 +44,8 @@ class Context; class Driver; } +using sigrok::ConfigKey; + namespace pv { namespace devices { @@ -52,7 +58,7 @@ class Session; class DeviceManager { public: - DeviceManager(shared_ptr context); + DeviceManager(shared_ptr context, std::string driver); ~DeviceManager() = default; @@ -61,6 +67,7 @@ public: shared_ptr context(); const list< shared_ptr >& devices() const; + shared_ptr user_spec_device() const; list< shared_ptr > driver_scan( shared_ptr driver, @@ -76,9 +83,14 @@ private: bool compare_devices(shared_ptr a, shared_ptr b); + static map + drive_scan_options(vector user_spec, + set driver_opts); + protected: shared_ptr context_; list< shared_ptr > devices_; + shared_ptr user_spec_device_; }; } // namespace pv