JNI ready for testing. -fPIC enabled for objects in src and jni.

This commit is contained in:
aegis 2013-05-10 12:05:20 +02:00
parent 1529c0641e
commit 106b8bb6a7
25 changed files with 954 additions and 145 deletions

View file

@ -0,0 +1,15 @@
#include "jhammer.h"
#include "com_upstandinghackers_hammer_Parser.h"
JNIEXPORT void JNICALL Java_com_upstandinghackers_hammer_Parser_bindIndirect
(JNIEnv *env, jobject this, jobject parser)
{
h_bind_indirect(UNWRAP(env, this), UNWRAP(env, parser));
}
JNIEXPORT void JNICALL Java_com_upstandinghackers_hammer_Parser_free
(JNIEnv *env, jobject this)
{
//XXX NOT IMPLEMENTED
//h_free(UNWRAP(env, this));
}