X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Fdevice.hpp;fp=pv%2Fdevices%2Fdevice.hpp;h=612d750940612e70e24e9eb27291590585f709d3;hp=7e0b58ad065600bdc993751f343ff8eb348d4de1;hb=b48daed65bff5da5fddc6db11377b8730220865f;hpb=8524a597c3625c49cb42436c25fd9b06d9b5b06a diff --git a/pv/devices/device.hpp b/pv/devices/device.hpp index 7e0b58ad..612d7509 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. */