X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdevices%2Fdevice.hpp;h=0a8f2438decc86fd9f592c2b92cdf89ba3f25236;hb=5237f0c50352b523c6a0c3d7f931081ecdbdecaa;hp=7e0b58ad065600bdc993751f343ff8eb348d4de1;hpb=b485408f20c39ae8d05372a5faffe15653c74705;p=pulseview.git diff --git a/pv/devices/device.hpp b/pv/devices/device.hpp index 7e0b58a..0a8f243 100644 --- a/pv/devices/device.hpp +++ b/pv/devices/device.hpp @@ -25,6 +25,7 @@ #include namespace sigrok { +class ConfigKey; class Device; class Session; } // namespace sigrok @@ -47,6 +48,9 @@ public: std::shared_ptr device() const; + template + T read_config(const sigrok::ConfigKey *key, const T default_value = 0); + /** * Builds the full name. It only contains all the fields. */ @@ -62,6 +66,8 @@ public: virtual void create() = 0; + virtual void start(); + virtual void run(); virtual void stop();