Wallet::reconnectDevice implementation

This commit is contained in:
Czarek Nakamoto
2024-04-19 16:28:59 +02:00
parent 53816c3610
commit 05569f7b80
2 changed files with 5 additions and 2 deletions

View File

@@ -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<Monero::Wallet*>(wallet_ptr);
return wallet->reconnectDevice();
};
uint64_t MONERO_Wallet_getBytesReceived(void* wallet_ptr) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);

View File

@@ -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;