From 1e06c66c776e2dca217059d7d94309b0c5431a3f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Mar 2014 09:19:32 +0100 Subject: java: new helper library for the Android port --- src/Main.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Main.cxx') diff --git a/src/Main.cxx b/src/Main.cxx index b64d68cf2..6a04e5071 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -90,6 +90,8 @@ #endif #ifdef ANDROID +#include "java/Global.hxx" +#include "java/File.hxx" #include "org_musicpd_Bridge.h" #endif @@ -673,8 +675,11 @@ int mpd_main(int argc, char *argv[]) gcc_visibility_default JNIEXPORT void JNICALL -Java_org_musicpd_Bridge_run(JNIEnv *, jclass) +Java_org_musicpd_Bridge_run(JNIEnv *env, jclass) { + Java::Init(env); + Java::File::Initialise(env); + mpd_main(0, nullptr); } -- cgit v1.2.3