Created
January 15, 2013 12:39
-
-
Save dapurv5/4538355 to your computer and use it in GitHub Desktop.
jni demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <jni.h> | |
/* Header for class Hello */ | |
#ifndef _Included_Hello | |
#define _Included_Hello | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
/* | |
* Class: Hello | |
* Method: sayHello | |
* Signature: (I)V | |
*/ | |
JNIEXPORT void JNICALL Java_Hello_sayHello(JNIEnv *, jobject, jint); | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment