summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/android.yml4
-rw-r--r--libbridge/src/main/cpp/wallet2_api_c.h13
-rwxr-xr-xshell_gen.sh0
3 files changed, 7 insertions, 10 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index 76ec7ea..2c62183 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -313,8 +313,8 @@ jobs:
with:
body: |
This is a **preview** release to be used by testers.
- It was build from **${{ github.ref }}** commit `${{ github.sha }}`
- Grab corresponding [wallet2_api_c.h](https://git.mrcyjanek.net/mrcyjanek/monero_c/src/commit/${{ github.sha }}/libbridge/src/main/cpp/wallet2_api_c.h)
+ It was built from **${{ github.ref }}** commit `${{ github.sha }}`
+ Grab corresponding [wallet2_api_c.h](https://git.mrcyjanek.net/mrcyjanek/monero_c/src/commit/${{ github.sha }}/libbridge/src/main/cpp/wallet2_api_c.h)
files: |-
${{ github.workspace }}/libbridge/build/${{ matrix.host_triplet }}_libwallet2_api_c.so
${{ github.workspace }}/libbridge/build/${{ matrix.host_triplet }}_libwallet2_api_c.so.sha256 \ No newline at end of file
diff --git a/libbridge/src/main/cpp/wallet2_api_c.h b/libbridge/src/main/cpp/wallet2_api_c.h
index 29d0545..6311c63 100644
--- a/libbridge/src/main/cpp/wallet2_api_c.h
+++ b/libbridge/src/main/cpp/wallet2_api_c.h
@@ -6,6 +6,8 @@
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,LOG_TAG,__VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
*/
+#include <stdint.h>
+#include <stdbool.h>
#ifdef __cplusplus
extern "C"
@@ -356,7 +358,7 @@ const char* MONERO_Wallet_publicSpendKey(void* wallet_ptr);
// virtual void stop() = 0;
void MONERO_Wallet_stop(void* wallet_ptr);
// virtual bool store(const std::string &path) = 0;
-void MONERO_Wallet_store(void* wallet_ptr, const char* path);
+bool MONERO_Wallet_store(void* wallet_ptr, const char* path);
// virtual std::string filename() const = 0;
// virtual std::string keysFilename() const = 0;
// 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;
@@ -372,7 +374,7 @@ void MONERO_Wallet_store(void* wallet_ptr, const char* path);
// virtual bool trustedDaemon() const = 0;
// virtual bool setProxy(const std::string &address) = 0;
// virtual uint64_t balance(uint32_t accountIndex = 0) const = 0;
-uint64_t MONERO_Wallet_balance(void* wallet_ptr, uint32_t accountIndex = 0);
+uint64_t MONERO_Wallet_balance(void* wallet_ptr, uint32_t accountIndex);
// uint64_t balanceAll() const {
// uint64_t result = 0;
// for (uint32_t i = 0; i < numSubaddressAccounts(); ++i)
@@ -380,7 +382,7 @@ uint64_t MONERO_Wallet_balance(void* wallet_ptr, uint32_t accountIndex = 0);
// return result;
// }
// virtual uint64_t unlockedBalance(uint32_t accountIndex = 0) const = 0;
-uint64_t MONERO_Wallet_unlockedBalance(void* wallet_ptr, uint32_t accountIndex = 0);
+uint64_t MONERO_Wallet_unlockedBalance(void* wallet_ptr, uint32_t accountIndex);
// uint64_t unlockedBalanceAll() const {
// uint64_t result = 0;
// for (uint32_t i = 0; i < numSubaddressAccounts(); ++i)
@@ -632,13 +634,8 @@ bool MONERO_WalletManager_closeWallet(void* wallet_ptr, bool store);
// static void setLogLevel(int level);
// static void setLogCategories(const std::string &categories);
// };
-
// }
-
-
-
-
int MONERO_DEBUG_theAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything(int x);
#ifdef __cplusplus
diff --git a/shell_gen.sh b/shell_gen.sh
deleted file mode 100755
index e69de29..0000000
--- a/shell_gen.sh
+++ /dev/null