diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-12-12 11:53:42 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-12-12 11:53:42 +0200 |
commit | 0b31baf6e4ce272b0b65e9d5337d1a4c933471cb (patch) | |
tree | 64d74190c831dc7b296d9ef1e6ae8c62501ca490 /src/device | |
parent | Merge pull request #4787 (diff) | |
parent | device/trezor: device/trezor: correct device initialization, status check (diff) | |
download | monero-0b31baf6e4ce272b0b65e9d5337d1a4c933471cb.tar.xz |
Merge pull request #4839
d71f89e2 device/trezor: device/trezor: correct device initialization, status check (Dusan Klinec)
65b9bca7 device/trezor: python2 compatibility - bundle dependencies (Dusan Klinec)
9cf636af device/trezor: ask for KI sync on first refresh (Dusan Klinec)
d21dad70 device: enable to use multiple independent device wallets (Dusan Klinec)
318cc784 device/trezor: passphrase entry on host (Dusan Klinec)
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/device.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/device/device.hpp b/src/device/device.hpp index dd9ad4332..399648f01 100644 --- a/src/device/device.hpp +++ b/src/device/device.hpp @@ -80,6 +80,14 @@ namespace hw { return false; } + class i_device_callback { + public: + virtual void on_button_request() {} + virtual void on_pin_request(epee::wipeable_string & pin) {} + virtual void on_passphrase_request(bool on_device, epee::wipeable_string & passphrase) {} + virtual ~i_device_callback() = default; + }; + class device { protected: std::string name; @@ -129,6 +137,8 @@ namespace hw { virtual device_type get_type() const = 0; virtual device_protocol_t device_protocol() const { return PROTOCOL_DEFAULT; }; + virtual void set_callback(i_device_callback * callback) {}; + virtual void set_derivation_path(const std::string &derivation_path) {}; /* ======================================================================= */ /* LOCKER */ |