Skip to content

Commit

Permalink
+ stub of Kiwix JNI
Browse files Browse the repository at this point in the history
  • Loading branch information
kelson42 committed Apr 1, 2013
1 parent f2f9f19 commit 239daec
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
29 changes: 29 additions & 0 deletions JNIKiwix.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions JNIKiwix.java
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions kiwix.c
Original file line number Diff line number Diff line change
@@ -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) {
}

0 comments on commit 239daec

Please sign in to comment.