From 5c92de00f1dfd3bfd61abd2c6d1ada00f78c7f08 Mon Sep 17 00:00:00 2001 From: Zhou Chang Date: Fri, 2 Nov 2012 10:01:28 +0800 Subject: [PATCH] Added Nat uPnP port mapping supported file. --- jni/{audioencoder.h => beginvision.h} | 0 jni/libnatpmp_build.mk | 4 ++-- jni/mp3encoder.cpp | 2 +- jni/natpmpclient.cpp | 10 ++++++++++ 4 files changed, 13 insertions(+), 3 deletions(-) rename jni/{audioencoder.h => beginvision.h} (100%) create mode 100644 jni/natpmpclient.cpp 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); +}; + + +