X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=inline;f=pv%2Fdevices%2Fdevice.hpp;h=ceca0777118b106a105ae00b499eb6e60b9c380a;hb=1887da2169397774c9563e9bf44c51ed7efc3646;hp=7e0b58ad065600bdc993751f343ff8eb348d4de1;hpb=b485408f20c39ae8d05372a5faffe15653c74705;p=pulseview.git
diff --git a/pv/devices/device.hpp b/pv/devices/device.hpp
index 7e0b58a..ceca077 100644
--- a/pv/devices/device.hpp
+++ b/pv/devices/device.hpp
@@ -14,8 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
#ifndef PULSEVIEW_PV_DEVICES_DEVICE_HPP
@@ -25,6 +24,7 @@
#include
namespace sigrok {
+class ConfigKey;
class Device;
class Session;
} // namespace sigrok
@@ -47,6 +47,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.
*/
@@ -60,7 +63,11 @@ public:
virtual std::string display_name(
const DeviceManager &device_manager) const = 0;
- virtual void create() = 0;
+ virtual void open() = 0;
+
+ virtual void close() = 0;
+
+ virtual void start();
virtual void run();