Skip to content

Instantly share code, notes, and snippets.

@dapurv5
Created January 15, 2013 12:39
Show Gist options
  • Save dapurv5/4538355 to your computer and use it in GitHub Desktop.
Save dapurv5/4538355 to your computer and use it in GitHub Desktop.
jni demo
#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