mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-12 00:48:29 -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 <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include <kiwix/reader.h>
|
||||||
|
|
||||||
/* c2jni type conversion functions */
|
/* c2jni type conversion functions */
|
||||||
jboolean c2jni(const bool &val) {
|
jboolean c2jni(const bool &val) {
|
||||||
return val ? JNI_TRUE : JNI_FALSE;
|
return val ? JNI_TRUE : JNI_FALSE;
|
||||||
@ -58,6 +60,8 @@ void setBoolObjValue(const bool value, const jobject obj, JNIEnv *env) {
|
|||||||
|
|
||||||
/* Kiwix library functions */
|
/* Kiwix library functions */
|
||||||
JNIEXPORT jboolean JNICALL Java_JNIKiwix_nativeLoadZIM(JNIEnv *env, jobject obj, jstring path) {
|
JNIEXPORT jboolean JNICALL Java_JNIKiwix_nativeLoadZIM(JNIEnv *env, jobject obj, jstring path) {
|
||||||
|
// kiwix::Reader reader = kiwix::Reader("42.zim");
|
||||||
|
|
||||||
return c2jni(true);
|
return c2jni(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user