LSPlant  LSPosed Developers
jni.h File Reference
#include <stdio.h>
#include <stdarg.h>
#include "jni_md.h"

Go to the source code of this file.

Data Structures

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

Macros

#define JNI_FALSE   0
 
#define JNI_TRUE   1
 
#define JNI_OK   0 /* success */
 
#define JNI_ERR   (-1) /* unknown error */
 
#define JNI_EDETACHED   (-2) /* thread detached from the VM */
 
#define JNI_EVERSION   (-3) /* JNI version error */
 
#define JNI_ENOMEM   (-4) /* not enough memory */
 
#define JNI_EEXIST   (-5) /* VM already created */
 
#define JNI_EINVAL   (-6) /* invalid arguments */
 
#define JNI_COMMIT   1
 
#define JNI_ABORT   2
 
#define JDK1_2
 
#define JDK1_4
 
#define _JNI_IMPORT_OR_EXPORT_   JNIIMPORT
 
#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
 
#define JNI_VERSION_9   0x00090000
 
#define JNI_VERSION_10   0x000a0000
 

Typedefs

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

Enumerations

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

Functions

_JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_GetDefaultJavaVMInitArgs (void *args)
 
_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 *)
 
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 1957 of file jni.h.

◆ JDK1_2

#define JDK1_2

Definition at line 1910 of file jni.h.

◆ JDK1_4

#define JDK1_4

Definition at line 1911 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_10

#define JNI_VERSION_10   0x000a0000

Definition at line 1981 of file jni.h.

◆ JNI_VERSION_1_1

#define JNI_VERSION_1_1   0x00010001

Definition at line 1975 of file jni.h.

◆ JNI_VERSION_1_2

#define JNI_VERSION_1_2   0x00010002

Definition at line 1976 of file jni.h.

◆ JNI_VERSION_1_4

#define JNI_VERSION_1_4   0x00010004

Definition at line 1977 of file jni.h.

◆ JNI_VERSION_1_6

#define JNI_VERSION_1_6   0x00010006

Definition at line 1978 of file jni.h.

◆ JNI_VERSION_1_8

#define JNI_VERSION_1_8   0x00010008

Definition at line 1979 of file jni.h.

◆ JNI_VERSION_9

#define JNI_VERSION_9   0x00090000

Definition at line 1980 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.

139  {
140  JNIInvalidRefType = 0,
141  JNILocalRefType = 1,
142  JNIGlobalRefType = 2,
enum _jobjectType jobjectRefType
@ JNIWeakGlobalRefType
Definition: jni.h:143
@ JNIInvalidRefType
Definition: jni.h:140
@ JNIGlobalRefType
Definition: jni.h:142
@ JNILocalRefType
Definition: jni.h:141

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 
)