/* Derived Base Types */ /* Constants */ /* Errors */ typedef enum { , JVMTI_ERROR_MAX = } jvmtiError; /* Pre-Declarations */ /* Function Types */ /* Structure Types */ /* Include file for the Java(tm) Virtual Machine Tool Interface */ #ifndef _JAVA_JVMTI_H_ #define _JAVA_JVMTI_H_ #include "jni.h" #ifdef __cplusplus extern "C" { #endif enum { JVMTI_VERSION_1 = 0x30010000, JVMTI_VERSION_1_0 = 0x30010000, JVMTI_VERSION_1_1 = 0x30010100, JVMTI_VERSION_1_2 = 0x30010200, JVMTI_VERSION_9 = 0x30090000, JVMTI_VERSION_11 = 0x300B0000, JVMTI_VERSION = 0x30000000 + ( * 0x10000) + ( * 0x100) /* checked out - + /* version: */ }; JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *vm, char *options, void *reserved); JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved); JNIEXPORT void JNICALL Agent_OnUnload(JavaVM *vm); /* Forward declaration of the environment */ struct _jvmtiEnv; struct jvmtiInterface_1_; #ifdef __cplusplus typedef _jvmtiEnv jvmtiEnv; #else typedef const struct jvmtiInterface_1_ *jvmtiEnv; #endif /* __cplusplus */ #ifdef __cplusplus } /* extern "C" */ #endif /* __cplusplus */ #endif /* !_JAVA_JVMTI_H_ */ /* Event IDs */ typedef enum { JVMTI_MIN_EVENT_TYPE_VAL = , , JVMTI_MAX_EVENT_TYPE_VAL = } jvmtiEvent; /* Event Definitions */ typedef void (JNICALL *jvmtiEventReserved)(void); /* Event Callback Structure */ typedef struct { } jvmtiEventCallbacks; typedef void (JNICALL *jvmtiEvent ) (jvmtiEnv *jvmti_env , ); /* Function Interface */ typedef struct jvmtiInterface_1_ { } jvmtiInterface_1; struct _jvmtiEnv { const struct jvmtiInterface_1_ *functions; #ifdef __cplusplus #endif /* __cplusplus */ }; /* : */ jvmtiError (JNICALL * ) (jvmtiEnv* env , ) RESERVED */ void *reserved ; jvmtiError (JNICALL * ) (jvmtiEnv* env ); jvmtiError ( ) { return functions-> (this , ); } /* */ typedef (JNICALL * ) ( , ); struct _ ; typedef struct _ ; struct _ { }; union _ ; typedef union _ ; union _ { };