drop wallet_ptr from places where it isn't used

This commit is contained in:
Czarek Nakamoto
2023-12-29 00:20:22 +01:00
parent 7d30d2f2d3
commit eabe10d3d9
2 changed files with 6 additions and 6 deletions

View File

@@ -391,14 +391,14 @@ bool MONERO_WalletManager_closeWallet(void* wallet_ptr, bool store) {
store);
}
bool MONERO_WalletManager_walletExists(void* wallet_ptr, const char* path) {
bool MONERO_WalletManager_walletExists(const char* path) {
return Monero::WalletManagerFactory::getWalletManager()->walletExists(std::string(path));
}
const char* MONERO_WalletManager_errorString(void* wallet_ptr) {
const char* MONERO_WalletManager_errorString() {
return Monero::WalletManagerFactory::getWalletManager()->errorString().c_str();
}
void MONERO_WalletManager_setDaemonAddress(void* wallet_ptr, const char* address) {
void MONERO_WalletManager_setDaemonAddress(const char* address) {
return Monero::WalletManagerFactory::getWalletManager()->setDaemonAddress(std::string(address));
}

View File

@@ -662,14 +662,14 @@ void* MONERO_WalletManager_recoveryWallet(const char* path, const char* password
// virtual bool closeWallet(Wallet *wallet, bool store = true) = 0;
bool MONERO_WalletManager_closeWallet(void* wallet_ptr, bool store);
// virtual bool walletExists(const std::string &path) = 0;
bool MONERO_WalletManager_walletExists(void* wallet_ptr, const char* path);
bool MONERO_WalletManager_walletExists(const char* path);
// virtual bool verifyWalletPassword(const std::string &keys_file_name, const std::string &password, bool no_spend_key, uint64_t kdf_rounds = 1) const = 0;
// virtual bool queryWalletDevice(Wallet::Device& device_type, const std::string &keys_file_name, const std::string &password, uint64_t kdf_rounds = 1) const = 0;
// virtual std::vector<std::string> findWallets(const std::string &path) = 0;
// virtual std::string errorString() const = 0;
const char* MONERO_WalletManager_errorString(void* wallet_ptr);
const char* MONERO_WalletManager_errorString();
// virtual void setDaemonAddress(const std::string &address) = 0;
void MONERO_WalletManager_setDaemonAddress(void* wallet_ptr, const char* address);
void MONERO_WalletManager_setDaemonAddress(const char* address);
// virtual bool connected(uint32_t *version = NULL) = 0;
// virtual uint64_t blockchainHeight() = 0;
// virtual uint64_t blockchainTargetHeight() = 0;