From 05569f7b80560271071fc2bea46836b40a3f8277 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Fri, 19 Apr 2024 16:28:59 +0200 Subject: [PATCH] Wallet::reconnectDevice implementation --- monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.cpp | 5 ++++- monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.cpp b/monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.cpp index 337ff6e..6f41dce 100644 --- a/monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.cpp +++ b/monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.cpp @@ -1482,7 +1482,10 @@ const char* MONERO_Wallet_deviceShowAddress(void* wallet_ptr, uint32_t accountIn return buffer; } // virtual bool reconnectDevice() = 0; -const char* MONERO_Wallet_reconnectDevice(void* wallet_ptr); +bool MONERO_Wallet_reconnectDevice(void* wallet_ptr) { + Monero::Wallet *wallet = reinterpret_cast(wallet_ptr); + return wallet->reconnectDevice(); +}; uint64_t MONERO_Wallet_getBytesReceived(void* wallet_ptr) { Monero::Wallet *wallet = reinterpret_cast(wallet_ptr); diff --git a/monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.h b/monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.h index 4cd1daf..121b994 100644 --- a/monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.h +++ b/monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.h @@ -808,7 +808,7 @@ extern ADDAPI uint64_t MONERO_Wallet_coldKeyImageSync(void* wallet_ptr, uint64_t // virtual void deviceShowAddress(uint32_t accountIndex, uint32_t addressIndex, const std::string &paymentId) = 0; extern ADDAPI const char* MONERO_Wallet_deviceShowAddress(void* wallet_ptr, uint32_t accountIndex, uint32_t addressIndex); // virtual bool reconnectDevice() = 0; -extern ADDAPI const char* MONERO_Wallet_reconnectDevice(void* wallet_ptr); +extern ADDAPI bool MONERO_Wallet_reconnectDevice(void* wallet_ptr); // virtual uint64_t getBytesReceived() = 0; extern ADDAPI uint64_t MONERO_Wallet_getBytesReceived(void* wallet_ptr); // virtual uint64_t getBytesSent() = 0;