summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-01-02 10:12:28 +0100
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-01-02 10:12:28 +0100
commit224da2747fef1898d5b7612dcef8be824d733729 (patch)
tree4cf8a364397a687e130186dec55fdea1e63f9ad4
parent14f36c23b7b48b5cdc9ad6bc8f0480d5aabe5681 (diff)
fix type on filename method
-rw-r--r--libbridge/src/main/cpp/wallet2_api_c.cpp4
-rw-r--r--libbridge/src/main/cpp/wallet2_api_c.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libbridge/src/main/cpp/wallet2_api_c.cpp b/libbridge/src/main/cpp/wallet2_api_c.cpp
index 4d57a36..36197be 100644
--- a/libbridge/src/main/cpp/wallet2_api_c.cpp
+++ b/libbridge/src/main/cpp/wallet2_api_c.cpp
@@ -840,7 +840,7 @@ bool MONERO_Wallet_store(void* wallet_ptr, const char* path) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
return wallet->store(std::string(path));
}
-bool MONERO_Wallet_filename(void* wallet_ptr) {
+const char* MONERO_Wallet_filename(void* wallet_ptr) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
std::string str = wallet->filename();
const std::string::size_type size = str.size();
@@ -848,7 +848,7 @@ bool MONERO_Wallet_filename(void* wallet_ptr) {
memcpy(buffer, str.c_str(), size + 1);
return buffer;
}
-bool MONERO_Wallet_keysFilename(void* wallet_ptr) {
+const char* MONERO_Wallet_keysFilename(void* wallet_ptr) {
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
std::string str = wallet->keysFilename();
const std::string::size_type size = str.size();
diff --git a/libbridge/src/main/cpp/wallet2_api_c.h b/libbridge/src/main/cpp/wallet2_api_c.h
index ce68b10..25db267 100644
--- a/libbridge/src/main/cpp/wallet2_api_c.h
+++ b/libbridge/src/main/cpp/wallet2_api_c.h
@@ -517,9 +517,9 @@ void MONERO_Wallet_stop(void* wallet_ptr);
// virtual bool store(const std::string &path) = 0;
bool MONERO_Wallet_store(void* wallet_ptr, const char* path);
// virtual std::string filename() const = 0;
-bool MONERO_Wallet_filename(void* wallet_ptr);
+const char* MONERO_Wallet_filename(void* wallet_ptr);
// virtual std::string keysFilename() const = 0;
-bool MONERO_Wallet_keysFilename(void* wallet_ptr);
+const char* MONERO_Wallet_keysFilename(void* wallet_ptr);
// virtual bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit = 0, const std::string &daemon_username = "", const std::string &daemon_password = "", bool use_ssl = false, bool lightWallet = false, const std::string &proxy_address = "") = 0;
bool MONERO_Wallet_init(void* wallet_ptr, const char* daemon_address, uint64_t upper_transaction_size_limit, const char* daemon_username, const char* daemon_password, bool use_ssl, bool lightWallet, const char* proxy_address);
// virtual bool createWatchOnly(const std::string &path, const std::string &password, const std::string &language) const = 0;