Crossfire JXClient, Trunk
Classes | Macros | Typedefs | Enumerations | Functions
jni.h File Reference
#include <stdio.h>
#include <stdarg.h>
#include "jni_md.h"
Include dependency graph for jni.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  JavaVM_
 
struct  JavaVMAttachArgs
 
struct  JavaVMInitArgs
 
struct  JavaVMOption
 
struct  JNIEnv_
 
struct  JNIInvokeInterface_
 
struct  JNINativeInterface_
 
struct  JNINativeMethod
 
union  jvalue
 

Macros

#define _JNI_IMPORT_OR_EXPORT_   JNIIMPORT
 
#define JDK1_2
 
#define JDK1_4
 
#define JNI_ABORT   2
 
#define JNI_COMMIT   1
 
#define JNI_EDETACHED   (-2) /* thread detached from the VM */
 
#define JNI_EEXIST   (-5) /* VM already created */
 
#define JNI_EINVAL   (-6) /* invalid arguments */
 
#define JNI_ENOMEM   (-4) /* not enough memory */
 
#define JNI_ERR   (-1) /* unknown error */
 
#define JNI_EVERSION   (-3) /* JNI version error */
 
#define JNI_FALSE   0
 
#define JNI_OK   0 /* success */
 
#define JNI_TRUE   1
 
#define JNI_VERSION_1_1   0x00010001
 
#define JNI_VERSION_1_2   0x00010002
 
#define JNI_VERSION_1_4   0x00010004
 
#define JNI_VERSION_1_6   0x00010006
 
#define JNI_VERSION_1_8   0x00010008
 

Typedefs

typedef jobject jarray
 
typedef const struct JNIInvokeInterface_JavaVM
 
typedef struct JavaVMAttachArgs JavaVMAttachArgs
 
typedef struct JavaVMInitArgs JavaVMInitArgs
 
typedef struct JavaVMOption JavaVMOption
 
typedef unsigned char jboolean
 
typedef jarray jbooleanArray
 
typedef jarray jbyteArray
 
typedef unsigned short jchar
 
typedef jarray jcharArray
 
typedef jobject jclass
 
typedef double jdouble
 
typedef jarray jdoubleArray
 
typedef struct _jfieldID * jfieldID
 
typedef float jfloat
 
typedef jarray jfloatArray
 
typedef jarray jintArray
 
typedef jarray jlongArray
 
typedef struct _jmethodID * jmethodID
 
typedef const struct JNINativeInterface_JNIEnv
 
typedef struct _jobject * jobject
 
typedef jarray jobjectArray
 
typedef enum _jobjectType jobjectRefType
 
typedef short jshort
 
typedef jarray jshortArray
 
typedef jint jsize
 
typedef jobject jstring
 
typedef jobject jthrowable
 
typedef union jvalue jvalue
 
typedef jobject jweak
 

Enumerations

enum  _jobjectType { JNIInvalidRefType = 0, JNILocalRefType = 1, JNIGlobalRefType = 2, JNIWeakGlobalRefType = 3 }
 

Functions

_JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_CreateJavaVM (JavaVM **pvm, void **penv, void *args)
 
_JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_GetCreatedJavaVMs (JavaVM **, jsize, jsize *)
 
_JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_GetDefaultJavaVMInitArgs (void *args)
 
JNIEXPORT jint JNICALL JNI_OnLoad (JavaVM *vm, void *reserved)
 
JNIEXPORT void JNICALL JNI_OnUnload (JavaVM *vm, void *reserved)
 

Macro Definition Documentation

◆ _JNI_IMPORT_OR_EXPORT_

#define _JNI_IMPORT_OR_EXPORT_   JNIIMPORT

Definition at line 1932 of file jni.h.

◆ JDK1_2

#define JDK1_2

Definition at line 1885 of file jni.h.

◆ JDK1_4

#define JDK1_4

Definition at line 1886 of file jni.h.

◆ JNI_ABORT

#define JNI_ABORT   2

Definition at line 173 of file jni.h.

◆ JNI_COMMIT

#define JNI_COMMIT   1

Definition at line 172 of file jni.h.

◆ JNI_EDETACHED

#define JNI_EDETACHED   (-2) /* thread detached from the VM */

Definition at line 162 of file jni.h.

◆ JNI_EEXIST

#define JNI_EEXIST   (-5) /* VM already created */

Definition at line 165 of file jni.h.

◆ JNI_EINVAL

#define JNI_EINVAL   (-6) /* invalid arguments */

Definition at line 166 of file jni.h.

◆ JNI_ENOMEM

#define JNI_ENOMEM   (-4) /* not enough memory */

Definition at line 164 of file jni.h.

◆ JNI_ERR

#define JNI_ERR   (-1) /* unknown error */

Definition at line 161 of file jni.h.

◆ JNI_EVERSION

#define JNI_EVERSION   (-3) /* JNI version error */

Definition at line 163 of file jni.h.

◆ JNI_FALSE

#define JNI_FALSE   0

Definition at line 153 of file jni.h.

◆ JNI_OK

#define JNI_OK   0 /* success */

Definition at line 160 of file jni.h.

◆ JNI_TRUE

#define JNI_TRUE   1

Definition at line 154 of file jni.h.

◆ JNI_VERSION_1_1

#define JNI_VERSION_1_1   0x00010001

Definition at line 1950 of file jni.h.

◆ JNI_VERSION_1_2

#define JNI_VERSION_1_2   0x00010002

Definition at line 1951 of file jni.h.

◆ JNI_VERSION_1_4

#define JNI_VERSION_1_4   0x00010004

Definition at line 1952 of file jni.h.

◆ JNI_VERSION_1_6

#define JNI_VERSION_1_6   0x00010006

Definition at line 1953 of file jni.h.

◆ JNI_VERSION_1_8

#define JNI_VERSION_1_8   0x00010008

Definition at line 1954 of file jni.h.

Typedef Documentation

◆ jarray

typedef jobject jarray

Definition at line 105 of file jni.h.

◆ JavaVM

typedef const struct JNIInvokeInterface_* JavaVM

Definition at line 211 of file jni.h.

◆ JavaVMAttachArgs

◆ JavaVMInitArgs

◆ JavaVMOption

typedef struct JavaVMOption JavaVMOption

◆ jboolean

typedef unsigned char jboolean

Definition at line 57 of file jni.h.

◆ jbooleanArray

Definition at line 106 of file jni.h.

◆ jbyteArray

typedef jarray jbyteArray

Definition at line 107 of file jni.h.

◆ jchar

typedef unsigned short jchar

Definition at line 58 of file jni.h.

◆ jcharArray

typedef jarray jcharArray

Definition at line 108 of file jni.h.

◆ jclass

typedef jobject jclass

Definition at line 102 of file jni.h.

◆ jdouble

typedef double jdouble

Definition at line 61 of file jni.h.

◆ jdoubleArray

Definition at line 113 of file jni.h.

◆ jfieldID

typedef struct _jfieldID* jfieldID

Definition at line 133 of file jni.h.

◆ jfloat

typedef float jfloat

Definition at line 60 of file jni.h.

◆ jfloatArray

Definition at line 112 of file jni.h.

◆ jintArray

typedef jarray jintArray

Definition at line 110 of file jni.h.

◆ jlongArray

typedef jarray jlongArray

Definition at line 111 of file jni.h.

◆ jmethodID

typedef struct _jmethodID* jmethodID

Definition at line 136 of file jni.h.

◆ JNIEnv

typedef const struct JNINativeInterface_* JNIEnv

Definition at line 197 of file jni.h.

◆ jobject

typedef struct _jobject* jobject

Definition at line 101 of file jni.h.

◆ jobjectArray

Definition at line 114 of file jni.h.

◆ jobjectRefType

◆ jshort

typedef short jshort

Definition at line 59 of file jni.h.

◆ jshortArray

Definition at line 109 of file jni.h.

◆ jsize

typedef jint jsize

Definition at line 63 of file jni.h.

◆ jstring

typedef jobject jstring

Definition at line 104 of file jni.h.

◆ jthrowable

Definition at line 103 of file jni.h.

◆ jvalue

typedef union jvalue jvalue

◆ jweak

typedef jobject jweak

Definition at line 118 of file jni.h.

Enumeration Type Documentation

◆ _jobjectType

Enumerator
JNIInvalidRefType 
JNILocalRefType 
JNIGlobalRefType 
JNIWeakGlobalRefType 

Definition at line 139 of file jni.h.

Function Documentation

◆ JNI_CreateJavaVM()

_JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_CreateJavaVM ( JavaVM **  pvm,
void **  penv,
void *  args 
)

◆ JNI_GetCreatedJavaVMs()

_JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_GetCreatedJavaVMs ( JavaVM **  ,
jsize  ,
jsize  
)

◆ JNI_GetDefaultJavaVMInitArgs()

_JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_GetDefaultJavaVMInitArgs ( void *  args)

◆ JNI_OnLoad()

JNIEXPORT jint JNICALL JNI_OnLoad ( JavaVM vm,
void *  reserved 
)

◆ JNI_OnUnload()

JNIEXPORT void JNICALL JNI_OnUnload ( JavaVM vm,
void *  reserved 
)