diff --git a/jni/audioencoder.h b/jni/beginvision.h similarity index 100% rename from jni/audioencoder.h rename to jni/beginvision.h diff --git a/jni/libnatpmp_build.mk b/jni/libnatpmp_build.mk index d81cea9..64530bd 100644 --- a/jni/libnatpmp_build.mk +++ b/jni/libnatpmp_build.mk @@ -1,4 +1,4 @@ LOCAL_SRC_FILES += libnatpmp/natpmp.c\ - libnatpmp/getgateway.c - + libnatpmp/getgateway.c\ + natpmpclient.cpp diff --git a/jni/mp3encoder.cpp b/jni/mp3encoder.cpp index 6361006..25e8bdb 100644 --- a/jni/mp3encoder.cpp +++ b/jni/mp3encoder.cpp @@ -1,4 +1,4 @@ -#include "audioencoder.h" +#include "beginvision.h" #include "libmp3lame/lame.h" diff --git a/jni/natpmpclient.cpp b/jni/natpmpclient.cpp new file mode 100644 index 0000000..52b7bee --- /dev/null +++ b/jni/natpmpclient.cpp @@ -0,0 +1,10 @@ +#include "beginvision.h" + +#define JNIDEFINE(fname) Java_teaonly_droideye_MainActivity_##fname + +extern "C" { + JNIEXPORT jstring JNICALL JNIDEFINE(nativeQueryInternet)(JNIEnv* env, jclass clz); +}; + + +