mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
+ stub of Kiwix JNI
This commit is contained in:
parent
f2f9f19e35
commit
239daec094
29
JNIKiwix.h
Normal file
29
JNIKiwix.h
Normal file
@ -0,0 +1,29 @@
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
/* Header for class JNIKiwix */
|
||||
|
||||
#ifndef _Included_JNIKiwix
|
||||
#define _Included_JNIKiwix
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Class: JNIKiwix
|
||||
* Method: nativeLoadZIM
|
||||
* Signature: ()Ljava/lang/Boolean;
|
||||
*/
|
||||
JNIEXPORT jobject JNICALL Java_JNIKiwix_nativeLoadZIM
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: JNIKiwix
|
||||
* Method: nativeGetContent
|
||||
* Signature: (Ljava/lang/String;)Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jstring JNICALL Java_JNIKiwix_nativeGetContent
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
12
JNIKiwix.java
Normal file
12
JNIKiwix.java
Normal file
@ -0,0 +1,12 @@
|
||||
public class JNIKiwix {
|
||||
public native Boolean nativeLoadZIM();
|
||||
public native String nativeGetContent(String url);
|
||||
|
||||
static {
|
||||
System.loadLibrary("kiwix");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
return;
|
||||
}
|
||||
}
|
11
kiwix.c
Normal file
11
kiwix.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <jni.h>
|
||||
#include "JNIKiwix.h"
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_JNIKiwix_nativeLoadZIM(JNIEnv *env, jobject obj) {
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL Java_JNIKiwix_nativeGetContent(JNIEnv *env, jobject obj, jstring url) {
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user