summaryrefslogtreecommitdiff
path: root/monero_libwallet2_api_c/src/main/cpp
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-05-01 14:02:30 +0200
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-05-01 14:02:30 +0200
commitcd90f3bcd0349759030751ec7ce84eec6ee80c43 (patch)
treec9e0538b5bddaab2f9a7c0df1ab388401f081e62 /monero_libwallet2_api_c/src/main/cpp
parentb739dd6b51440905d3a6a6095c79d5ab3d40069a (diff)
expose free functionv0.18.3.3-RC42
Diffstat (limited to 'monero_libwallet2_api_c/src/main/cpp')
-rw-r--r--monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.cpp6
-rw-r--r--monero_libwallet2_api_c/src/main/cpp/wallet2_api_c.h2
2 files changed, 8 insertions, 0 deletions
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 8e12a25..1445c0c 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
@@ -1911,6 +1911,12 @@ uint64_t MONERO_cw_WalletListener_height(void* cw_walletListener_ptr) {
return listener->cw_isNeedToRefresh();
};
+// i hate windows
+
+void MONERO_free(void* ptr) {
+ free(ptr);
+}
+
#ifdef __cplusplus
}
#endif
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 0bc5003..e768764 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
@@ -1011,6 +1011,8 @@ extern ADDAPI bool MONERO_cw_WalletListener_isNewTransactionExist(void* cw_walle
extern ADDAPI void MONERO_cw_WalletListener_resetIsNewTransactionExist(void* cw_walletListener_ptr);
extern ADDAPI uint64_t MONERO_cw_WalletListener_height(void* cw_walletListener_ptr);
+extern ADDAPI void MONERO_free(void* ptr);
+
#ifdef __cplusplus
}
#endif \ No newline at end of file