diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-28 16:42:34 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-28 16:57:59 +0300 |
commit | 6db50818c1f6685adc4551c6927c9420f0872775 (patch) | |
tree | 2f5540f13a224fa496270f8617e9572c47ffd67a /sal/android | |
parent | bb84db9f44fd1fcadd86841411ac40d22281c157 (diff) |
Add JNI wrapper for InitUCBHelper() and call it
Diffstat (limited to 'sal/android')
-rw-r--r-- | sal/android/lo-bootstrap.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sal/android/lo-bootstrap.c b/sal/android/lo-bootstrap.c index 27f4e07f0522..068ba7cab069 100644 --- a/sal/android/lo-bootstrap.c +++ b/sal/android/lo-bootstrap.c @@ -1577,6 +1577,27 @@ Java_org_libreoffice_android_Bootstrap_setCommandArgs(JNIEnv* env, (*osl_setCommandArgs)(c_argc, c_argv); } +// public static native void initUCBhelper(); + +__attribute__ ((visibility("default"))) +void +Java_org_libreoffice_android_Bootstrap_initUCBHelper(JNIEnv* env, + jobject clazz) +{ + void (*InitUCBHelper)(void); + (void) env; + (void) clazz; + + /* This obviously should be called only after the ucbhelper so has been loaded */ + + InitUCBHelper = dlsym(RTLD_DEFAULT, "InitUCBHelper"); + if (InitUCBHelper == NULL) { + LOGE("InitUCBHelper: InitUCBHelper not found"); + return; + } + (*InitUCBHelper)(); +} + __attribute__ ((visibility("default"))) JavaVM * lo_get_javavm(void) |