aboutsummaryrefslogtreecommitdiff
path: root/jni/main.c
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-08-12 21:55:16 +1200
committerArslaan Pathan <[email protected]>2026-08-12 21:55:16 +1200
commita54c2c2ad54e7b7030d3c2c400d591e4412b0264 (patch)
tree0f6edc1d60c6532204de651ec95def7a5ccfc59d /jni/main.c
parent7abebafb865eabdb300e5a578a311be37e203e4e (diff)
downloadmoku-assistant-a54c2c2ad54e7b7030d3c2c400d591e4412b0264.tar.xz
moku-assistant-a54c2c2ad54e7b7030d3c2c400d591e4412b0264.zip
Initialise build system stuff and boilerplate
Diffstat (limited to 'jni/main.c')
-rw-r--r--jni/main.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/jni/main.c b/jni/main.c
new file mode 100644
index 0000000..f309e64
--- /dev/null
+++ b/jni/main.c
@@ -0,0 +1,22 @@
+#include <android_native_app_glue.h>
+#include <android/log.h>
+
+void android_main(struct android_app *state) {
+ /* Declarations */
+ struct android_poll_source *source;
+ int events;
+
+ /* Code starts here */
+ app_dummy();
+
+ /* do stuff here */
+
+ while (1) {
+ if (ALooper_pollAll(-1, NULL, &events, (void**)&source) >= 0) {
+ if (source) {
+ source->process(state, source);
+ }
+ }
+ /* more stuff here */
+ }
+}