diff options
author | Max Kellermann <max@duempel.org> | 2014-03-01 09:19:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-03-01 18:48:20 +0100 |
commit | 1e06c66c776e2dca217059d7d94309b0c5431a3f (patch) | |
tree | 64b3bf4c5051fabf9dff5b9d0c3ed73b3d2bb45b /src/Main.cxx | |
parent | c73771e3ce7a5866f5ddc70d1cc03acf6a104127 (diff) | |
download | mpd-1e06c66c776e2dca217059d7d94309b0c5431a3f.tar.gz mpd-1e06c66c776e2dca217059d7d94309b0c5431a3f.tar.xz mpd-1e06c66c776e2dca217059d7d94309b0c5431a3f.zip |
java: new helper library for the Android port
Diffstat (limited to '')
-rw-r--r-- | src/Main.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
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); } |