mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
+ new version
This commit is contained in:
parent
8c69407987
commit
3ca441c48b
4
kiwix.c
4
kiwix.c
@ -7,6 +7,8 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include <kiwix/reader.h>
|
||||
|
||||
/* c2jni type conversion functions */
|
||||
jboolean c2jni(const bool &val) {
|
||||
return val ? JNI_TRUE : JNI_FALSE;
|
||||
@ -58,6 +60,8 @@ void setBoolObjValue(const bool value, const jobject obj, JNIEnv *env) {
|
||||
|
||||
/* Kiwix library functions */
|
||||
JNIEXPORT jboolean JNICALL Java_JNIKiwix_nativeLoadZIM(JNIEnv *env, jobject obj, jstring path) {
|
||||
// kiwix::Reader reader = kiwix::Reader("42.zim");
|
||||
|
||||
return c2jni(true);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user