Wallet::reconnectDevice implementation
This commit is contained in:
@@ -1482,7 +1482,10 @@ const char* MONERO_Wallet_deviceShowAddress(void* wallet_ptr, uint32_t accountIn
|
|||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
// virtual bool reconnectDevice() = 0;
|
// 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) {
|
uint64_t MONERO_Wallet_getBytesReceived(void* wallet_ptr) {
|
||||||
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
||||||
|
|||||||
@@ -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;
|
// 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);
|
extern ADDAPI const char* MONERO_Wallet_deviceShowAddress(void* wallet_ptr, uint32_t accountIndex, uint32_t addressIndex);
|
||||||
// virtual bool reconnectDevice() = 0;
|
// 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;
|
// virtual uint64_t getBytesReceived() = 0;
|
||||||
extern ADDAPI uint64_t MONERO_Wallet_getBytesReceived(void* wallet_ptr);
|
extern ADDAPI uint64_t MONERO_Wallet_getBytesReceived(void* wallet_ptr);
|
||||||
// virtual uint64_t getBytesSent() = 0;
|
// virtual uint64_t getBytesSent() = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user