Advertisement
Guest User

Untitled

a guest
Jul 24th, 2012
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. #ifdef __cplusplus
  2. extern "C" {
  3. #endif
  4. /*
  5.  * VM initialization functions.
  6.  *
  7.  * Note these are the only symbols exported for JNI by the VM.
  8.  */
  9. #if 0  /* In practice, these are not exported by the NDK so don't declare them */
  10. jint JNI_GetDefaultJavaVMInitArgs(void*);
  11. jint JNI_CreateJavaVM(JavaVM**, JNIEnv**, void*);
  12. jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*);
  13. #endif
  14.  
  15. #define JNIIMPORT
  16. #define JNIEXPORT  __attribute__ ((visibility ("default")))
  17. #define JNICALL
  18.  
  19. /*
  20.  * Prototypes for functions exported by loadable shared libs.  These are
  21.  * called by JNI, not provided by JNI.
  22.  */
  23. JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved);
  24. JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* reserved);
  25.  
  26. #ifdef __cplusplus
  27. }
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement