diff options
Diffstat (limited to 'sal/android/lo-bootstrap.c')
-rw-r--r-- | sal/android/lo-bootstrap.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sal/android/lo-bootstrap.c b/sal/android/lo-bootstrap.c index a180e62eb434..9adadef636ce 100644 --- a/sal/android/lo-bootstrap.c +++ b/sal/android/lo-bootstrap.c @@ -1633,6 +1633,25 @@ Java_org_libreoffice_android_Bootstrap_initUCBHelper(JNIEnv* env, (*InitUCBHelper)(); } +__attribute__ ((visibility("default"))) +jint +Java_org_libreoffice_android_Bootstrap_createWindowFoo(JNIEnv* env, + jobject clazz) +{ + int (*createWindowFoo)(void); + (void) env; + (void) clazz; + + lo_dlopen("libvcllo.so"); + createWindowFoo = dlsym(RTLD_DEFAULT, "createWindowFoo"); + if (createWindowFoo == NULL) { + LOGE("createWindowFoo: createWindowFoo not found"); + return 0; + } + return (*createWindowFoo)(); +} + + /* Code for reading lines from the pipe based on the (Apache-licensed) Android * logwrapper.c */ |