diff options
author | Mark Donszelmann <duns@macserver.donszelmann.org> | 2010-10-26 12:53:27 +0200 |
---|---|---|
committer | Mark Donszelmann <duns@macserver.donszelmann.org> | 2010-10-26 12:53:27 +0200 |
commit | b462f0a345461aa653aee1d71ade66f925543807 (patch) | |
tree | 82798c31d1f94a7ab8b6cea3360d31d529920f87 /src/it/it0003-jni/src/main/c/HelloWorldJNI.c | |
parent | 9af270beb1414531363aa1fcb6cba7565ca0075a (diff) | |
download | maven-nar-plugin-b462f0a345461aa653aee1d71ade66f925543807.tar.gz maven-nar-plugin-b462f0a345461aa653aee1d71ade66f925543807.tar.bz2 maven-nar-plugin-b462f0a345461aa653aee1d71ade66f925543807.tar.xz maven-nar-plugin-b462f0a345461aa653aee1d71ade66f925543807.zip |
Added test for NAR-158 but decided it would not work. Left the test. Native tests will include javah generated directory
Diffstat (limited to 'src/it/it0003-jni/src/main/c/HelloWorldJNI.c')
-rw-r--r-- | src/it/it0003-jni/src/main/c/HelloWorldJNI.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/it/it0003-jni/src/main/c/HelloWorldJNI.c b/src/it/it0003-jni/src/main/c/HelloWorldJNI.c index f663a54..6126a9c 100644 --- a/src/it/it0003-jni/src/main/c/HelloWorldJNI.c +++ b/src/it/it0003-jni/src/main/c/HelloWorldJNI.c @@ -33,3 +33,8 @@ JNIEXPORT jstring JNICALL Java_it0003_HelloWorldJNI_sayHello( JNIEnv *env, jobje return value; } +JNIEXPORT jint JNICALL Java_it0003_HelloWorldJNI_timesHello + (JNIEnv *env, jobject obj, jint x, jint y) { + return x * y; +} + |