diff options
author | m2049r <m2049r@monerujo.io> | 2018-08-16 10:31:48 +0200 |
---|---|---|
committer | m2049r <m2049r@monerujo.io> | 2018-09-19 18:25:38 +0200 |
commit | bce474be7d9cfa80d9f0970047bfd508db60424f (patch) | |
tree | 438aa4f3d4e2e5a2f8d56ef8747b522b44013e76 /src/device/device.hpp | |
parent | Merge pull request #4391 (diff) | |
download | monero-bce474be7d9cfa80d9f0970047bfd508db60424f.tar.xz |
query backing device
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; /* ======================================================================= */ |