diff options
| author | Konstantin Ullrich <konstantinullrich12@gmail.com> | 2024-11-22 15:45:45 +0100 |
|---|---|---|
| committer | Konstantin Ullrich <konstantinullrich12@gmail.com> | 2024-11-22 15:45:45 +0100 |
| commit | ca89b74eb585fbf9436c4e8a9c58371f41eb22b4 (patch) | |
| tree | 1beaacc8190b8a69c7674dedffffa3d48c4b892f /monero_libwallet2_api_c | |
| parent | 1cccda90358e43ae8f45f9010bfb38f5e38606e5 (diff) | |
Revert some stuff
Diffstat (limited to 'monero_libwallet2_api_c')
4 files changed, 10 insertions, 3 deletions
diff --git a/monero_libwallet2_api_c/monero_libwallet2_api_c.exp b/monero_libwallet2_api_c/monero_libwallet2_api_c.exp index 8419a8e..da92116 100644 --- a/monero_libwallet2_api_c/monero_libwallet2_api_c.exp +++ b/monero_libwallet2_api_c/monero_libwallet2_api_c.exp @@ -254,6 +254,7 @@ _MONERO_Wallet_deviceShowAddress _MONERO_Wallet_reconnectDevice _MONERO_Wallet_getBytesReceived _MONERO_Wallet_getBytesSent +_MONERO_Wallet_getStateIsConnected _MONERO_Wallet_setLedgerExchange _MONERO_WalletManager_createWallet _MONERO_WalletManager_openWallet diff --git a/monero_libwallet2_api_c/src/main/cpp/monero_checksum.h b/monero_libwallet2_api_c/src/main/cpp/monero_checksum.h index ffd5517..a58b670 100644 --- a/monero_libwallet2_api_c/src/main/cpp/monero_checksum.h +++ b/monero_libwallet2_api_c/src/main/cpp/monero_checksum.h @@ -1,6 +1,6 @@ #ifndef MONEROC_CHECKSUMS #define MONEROC_CHECKSUMS -const char * MONERO_wallet2_api_c_h_sha256 = "87ec362cdf9b3e6403d899c11e7ae39d932a8098c3ebb360723b537bded2d8de"; -const char * MONERO_wallet2_api_c_cpp_sha256 = "32cc5fbbdb89e77f33619b7f3d942cfac4202f3a3838605a396aed3882d668b5-b089f9ee69924882c5d14dd1a6991deb05d9d1cd"; -const char * MONERO_wallet2_api_c_exp_sha256 = "c1f785d62709fd8b849063ecf4fe8854d9e3b05b568b9716de98d33e7bdaf522"; +const char * MONERO_wallet2_api_c_h_sha256 = "6fa19c7357e6674ee044cca718648bee2be9d2ab819395bd9c4fb8e63e0bcca7"; +const char * MONERO_wallet2_api_c_cpp_sha256 = "bc35885da4f8744ec9989f52b7e3212b9d028da754fe7816d990299eec61da65-b089f9ee69924882c5d14dd1a6991deb05d9d1cd"; +const char * MONERO_wallet2_api_c_exp_sha256 = "a81491e78d8f4568236856376d432705b48312c252050c1faeabc24c193764ce"; #endif 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 f44e46a..6cdd349 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 @@ -1607,6 +1607,11 @@ uint64_t MONERO_Wallet_getBytesSent(void* wallet_ptr) { return wallet->getBytesSent(); } +bool MONERO_Wallet_getStateIsConnected(void* wallet_ptr) { + Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr); + return wallet->getStateIsConnected(); +} + void MONERO_Wallet_setLedgerExchange(void* wallet_ptr, int (*sendToLedgerDevice) (unsigned char *command, unsigned int cmd_len, unsigned char *response, unsigned int max_resp_len)) { Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr); return wallet->setLedgerExchange(sendToLedgerDevice); 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 80a72c5..b2af9d8 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 @@ -834,6 +834,7 @@ extern ADDAPI uint64_t MONERO_Wallet_getBytesReceived(void* wallet_ptr); // virtual uint64_t getBytesSent() = 0; extern ADDAPI uint64_t MONERO_Wallet_getBytesSent(void* wallet_ptr); // HIDAPI_DUMMY +extern ADDAPI bool MONERO_Wallet_getStateIsConnected(void* wallet_ptr); extern ADDAPI void MONERO_Wallet_setLedgerExchange(void* wallet_ptr, int (*sendToLedgerDevice) (unsigned char *command, unsigned int cmd_len, unsigned char *response, unsigned int max_resp_len)); // }; |
