summaryrefslogtreecommitdiff
path: root/libbridge/src/main
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2023-12-30 13:47:07 +0100
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2023-12-30 13:47:07 +0100
commit48e6f061420a9da04ed658e35d1ad8768791147f (patch)
tree0ff0e2696d42375182a6ecf33e1ead425fe1cb62 /libbridge/src/main
parent7bd5002cc92e71ed972a08dc5ebd6478cc3680d4 (diff)
feat: cache build results
debug: void MONERO_DEBUG_test0(); bool MONERO_DEBUG_test1(bool x); int MONERO_DEBUG_test2(int x); uint64_t MONERO_DEBUG_test3(uint64_t x); void* MONERO_DEBUG_test4(uint64_t x); const char* MONERO_DEBUG_test5(); const char* MONERO_DEBUG_test5_std();
Diffstat (limited to 'libbridge/src/main')
-rw-r--r--libbridge/src/main/cpp/wallet2_api_c.cpp40
-rw-r--r--libbridge/src/main/cpp/wallet2_api_c.h8
2 files changed, 44 insertions, 4 deletions
diff --git a/libbridge/src/main/cpp/wallet2_api_c.cpp b/libbridge/src/main/cpp/wallet2_api_c.cpp
index adb82f5..3dcb637 100644
--- a/libbridge/src/main/cpp/wallet2_api_c.cpp
+++ b/libbridge/src/main/cpp/wallet2_api_c.cpp
@@ -447,10 +447,44 @@ void MONERO_WalletManagerFactory_setLogLevel(int level) {
// DEBUG functions
+// As it turns out we need a bit more functions to make sure that the library is working.
+// 0) void
+// 1) bool
+// 2) int
+// 3) uint64_t
+// 4) void*
+// 5) const char*
-// the Answer to the Ultimate Question of Life, the Universe, and Everything.
-int MONERO_DEBUG_theAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything(int x) {
- return x*42;
+void MONERO_DEBUG_test0() {
+ return;
+}
+
+bool MONERO_DEBUG_test1(bool x) {
+ return x;
+}
+
+int MONERO_DEBUG_test2(int x) {
+ return x;
+}
+
+uint64_t MONERO_DEBUG_test3(uint64_t x) {
+ return x;
+}
+
+void* MONERO_DEBUG_test4(uint64_t x) {
+ int y = x;
+ return reinterpret_cast<void*>(&y);
+}
+
+const char* MONERO_DEBUG_test5() {
+ const char *text = "This is a const char* text";
+ return text;
+}
+
+const char* MONERO_DEBUG_test5_std() {
+ std::string text ("This is a std::string text");
+ const char *text2 = "This is a text";
+ return text2;
}
#ifdef __cplusplus
diff --git a/libbridge/src/main/cpp/wallet2_api_c.h b/libbridge/src/main/cpp/wallet2_api_c.h
index 1b6316d..1fccf6c 100644
--- a/libbridge/src/main/cpp/wallet2_api_c.h
+++ b/libbridge/src/main/cpp/wallet2_api_c.h
@@ -727,7 +727,13 @@ void MONERO_WalletManagerFactory_setLogLevel(int level);
// };
// }
-int MONERO_DEBUG_theAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything(int x);
+void MONERO_DEBUG_test0();
+bool MONERO_DEBUG_test1(bool x);
+int MONERO_DEBUG_test2(int x);
+uint64_t MONERO_DEBUG_test3(uint64_t x);
+void* MONERO_DEBUG_test4(uint64_t x);
+const char* MONERO_DEBUG_test5();
+const char* MONERO_DEBUG_test5_std();
#ifdef __cplusplus
}