From c9f5b8a33434266c025d546eeb4c11f49fad8570 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 29 May 2012 23:57:58 +0300 Subject: Add temporary test JNI method createWindowFoo()... Change-Id: I8f99399faa3b0762bdea2aac09f1b849639cd191 --- sal/android/lo-bootstrap.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'sal') 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 */ -- cgit