diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-05-29 23:57:58 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-05-30 00:02:18 +0300 |
commit | c9f5b8a33434266c025d546eeb4c11f49fad8570 (patch) | |
tree | a1af60159c87cf4e97231e75f67c3c836ce5c104 /sal | |
parent | Bin a bunch of pointless comments (diff) | |
download | core-c9f5b8a33434266c025d546eeb4c11f49fad8570.tar.gz core-c9f5b8a33434266c025d546eeb4c11f49fad8570.zip |
Add temporary test JNI method createWindowFoo()...
Change-Id: I8f99399faa3b0762bdea2aac09f1b849639cd191
Diffstat (limited to 'sal')
-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 */ |