diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-22 22:47:01 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-22 22:49:48 +0200 |
commit | 581422994812c3ad0a4e8e3cd74cfac382f58b13 (patch) | |
tree | c0c6ae5cda1479afe617e41e4aa59ccf1dd218bc /android | |
parent | No point searching PATH on Android and iOS (diff) | |
download | core-581422994812c3ad0a4e8e3cd74cfac382f58b13.tar.gz core-581422994812c3ad0a4e8e3cd74cfac382f58b13.zip |
Add JNI wrappers for InitVCL and osl_setCommandArgs
Diffstat (limited to 'android')
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/android/Bootstrap.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java index 8fbcee9b48d2..e5f2f1e2acfc 100644 --- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java +++ b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java @@ -51,6 +51,11 @@ public class Bootstrap extends NativeActivity { private static String TAG = "lo-bootstrap"; + // Native methods in this class are all implemented in + // sal/android/lo-bootstrap.c as the lo-bootstrap library is loaded with + // System.loadLibrary() and Android's JNI works only to such libraries, it + // seems. + private static native boolean setup(String dataDir, String apkFile, String[] ld_library_path); @@ -79,6 +84,15 @@ public class Bootstrap extends NativeActivity // Wrapper for putenv() public static native void putenv(String string); + // A wrapper for InitVCL() in libvcl (svmain.cxx), called indirectly + // through the lo-bootstrap library + public static native void initVCL(); + + // A wrapper for osl_setCommandArgs(). Before calling + // osl_setCommandArgs(), argv[0] is prefixed with the parent directory of + // where the lo-bootstrap library is. + public static native void setCommandArgs(String[] argv); + public static void setup(Activity activity) { String dataDir = null; |