diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-09-21 20:31:04 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-09-21 20:31:04 +0200 |
commit | 90d1a00c1080876edb629ce86aadc8df023ce05f (patch) | |
tree | cfe28c3ad09845eb211e9f18ec9f1535666f2c4f /src/device/device.hpp | |
parent | Merge pull request #4209 (diff) | |
parent | query backing device (diff) | |
download | monero-90d1a00c1080876edb629ce86aadc8df023ce05f.tar.xz |
Merge pull request #4266
bce474be query backing device (m2049r)
Diffstat (limited to 'src/device/device.hpp')
-rw-r--r-- | src/device/device.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/device/device.hpp b/src/device/device.hpp index d14b8848c..87f1430f4 100644 --- a/src/device/device.hpp +++ b/src/device/device.hpp @@ -78,7 +78,6 @@ namespace hw { return false; } - class device { protected: std::string name; @@ -96,6 +95,12 @@ namespace hw { TRANSACTION_CREATE_FAKE, TRANSACTION_PARSE }; + enum device_type + { + SOFTWARE = 0, + LEDGER = 1 + }; + /* ======================================================================= */ /* SETUP/TEARDOWN */ @@ -109,7 +114,9 @@ namespace hw { virtual bool connect(void) = 0; virtual bool disconnect(void) = 0; - virtual bool set_mode(device_mode mode) = 0; + virtual bool set_mode(device_mode mode) = 0; + + virtual device_type get_type() const = 0; /* ======================================================================= */ |