diff options
Diffstat (limited to 'src/wallet/api')
-rw-r--r-- | src/wallet/api/wallet.cpp | 7 | ||||
-rw-r--r-- | src/wallet/api/wallet2_api.h | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 2a972cf78..032b873d6 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -249,6 +249,13 @@ struct Wallet2CallbackImpl : public tools::i_wallet2_callback } } + virtual void on_device_button_pressed() + { + if (m_listener) { + m_listener->onDeviceButtonPressed(); + } + } + virtual boost::optional<epee::wipeable_string> on_device_pin_request() { if (m_listener) { diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h index 377330401..0af3b1867 100644 --- a/src/wallet/api/wallet2_api.h +++ b/src/wallet/api/wallet2_api.h @@ -386,6 +386,11 @@ struct WalletListener virtual void onDeviceButtonRequest(uint64_t code) { (void)code; } /** + * @brief called by device if the button was pressed + */ + virtual void onDeviceButtonPressed() { } + + /** * @brief called by device when PIN is needed */ virtual optional<std::string> onDevicePinRequest() { |