-
Notifications
You must be signed in to change notification settings - Fork 6
/
jni.d
368 lines (351 loc) · 19.1 KB
/
jni.d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
/* dstep -I/path/to/ndk-r9d/platforms/android-9/arch-x86/usr/include -I/path/to/ndk-r9d/toolchains/llvm-3.4/prebuilt/linux-x86/lib/clang/3.4/include /path/to/ndk-r9d/platforms/android-9/arch-x86/usr/include/jni.h -o jni.d*/
module jni;
import core.stdc.stdarg;
version (Android):
extern (C):
@system:
nothrow:
@nogc:
alias ubyte jboolean;
alias byte jbyte;
alias ushort jchar;
alias short jshort;
alias int jint;
alias long jlong;
alias float jfloat;
alias double jdouble;
alias jint jsize;
alias void* jobject;
alias jobject jclass;
alias jobject jstring;
alias jobject jarray;
alias jarray jobjectArray;
alias jarray jbooleanArray;
alias jarray jbyteArray;
alias jarray jcharArray;
alias jarray jshortArray;
alias jarray jintArray;
alias jarray jlongArray;
alias jarray jfloatArray;
alias jarray jdoubleArray;
alias jobject jthrowable;
alias jobject jweak;
alias _jfieldID* jfieldID;
alias _jmethodID* jmethodID;
alias const(JNINativeInterface)* C_JNIEnv;
alias const(JNINativeInterface)* JNIEnv;
alias const(JNIInvokeInterface)* JavaVM;
enum jobjectRefType
{
JNIInvalidRefType = 0,
JNILocalRefType = 1,
JNIGlobalRefType = 2,
JNIWeakGlobalRefType = 3
}
enum JNI_FALSE = 0;
enum JNI_TRUE = 1;
enum JNI_VERSION_1_1 = 0x00010001;
enum JNI_VERSION_1_2 = 0x00010002;
enum JNI_VERSION_1_4 = 0x00010004;
enum JNI_VERSION_1_6 = 0x00010006;
enum JNI_OK = 0;
enum JNI_ERR = -1;
enum JNI_EDETACHED = -2;
enum JNI_EVERSION = -3;
enum JNI_COMMIT = 1;
enum JNI_ABORT = 2;
struct JNINativeMethod
{
const(char)* name;
const(char)* signature;
void* fnPtr;
}
struct JNINativeInterface
{
void* reserved0;
void* reserved1;
void* reserved2;
void* reserved3;
jint function(JNIEnv*) GetVersion;
jclass function(JNIEnv*, const(char)*, jobject, const(jbyte)*, jsize) DefineClass;
jclass function(JNIEnv*, const(char)*) FindClass;
jmethodID function(JNIEnv*, jobject) FromReflectedMethod;
jfieldID function(JNIEnv*, jobject) FromReflectedField;
jobject function(JNIEnv*, jclass, jmethodID, jboolean) ToReflectedMethod;
jclass function(JNIEnv*, jclass) GetSuperclass;
jboolean function(JNIEnv*, jclass, jclass) IsAssignableFrom;
jobject function(JNIEnv*, jclass, jfieldID, jboolean) ToReflectedField;
jint function(JNIEnv*, jthrowable) Throw;
jint function(JNIEnv*, jclass, const(char)*) ThrowNew;
jthrowable function(JNIEnv*) ExceptionOccurred;
void function(JNIEnv*) ExceptionDescribe;
void function(JNIEnv*) ExceptionClear;
void function(JNIEnv*, const(char)*) FatalError;
jint function(JNIEnv*, jint) PushLocalFrame;
jobject function(JNIEnv*, jobject) PopLocalFrame;
jobject function(JNIEnv*, jobject) NewGlobalRef;
void function(JNIEnv*, jobject) DeleteGlobalRef;
void function(JNIEnv*, jobject) DeleteLocalRef;
jboolean function(JNIEnv*, jobject, jobject) IsSameObject;
jobject function(JNIEnv*, jobject) NewLocalRef;
jint function(JNIEnv*, jint) EnsureLocalCapacity;
jobject function(JNIEnv*, jclass) AllocObject;
jobject function(JNIEnv*, jclass, jmethodID, ...) NewObject;
jobject function(JNIEnv*, jclass, jmethodID, va_list) NewObjectV;
jobject function(JNIEnv*, jclass, jmethodID, jvalue*) NewObjectA;
jclass function(JNIEnv*, jobject) GetObjectClass;
jboolean function(JNIEnv*, jobject, jclass) IsInstanceOf;
jmethodID function(JNIEnv*, jclass, const(char)*, const(char)*) GetMethodID;
jobject function(JNIEnv*, jobject, jmethodID, ...) CallObjectMethod;
jobject function(JNIEnv*, jobject, jmethodID, va_list) CallObjectMethodV;
jobject function(JNIEnv*, jobject, jmethodID, jvalue*) CallObjectMethodA;
jboolean function(JNIEnv*, jobject, jmethodID, ...) CallBooleanMethod;
jboolean function(JNIEnv*, jobject, jmethodID, va_list) CallBooleanMethodV;
jboolean function(JNIEnv*, jobject, jmethodID, jvalue*) CallBooleanMethodA;
jbyte function(JNIEnv*, jobject, jmethodID, ...) CallByteMethod;
jbyte function(JNIEnv*, jobject, jmethodID, va_list) CallByteMethodV;
jbyte function(JNIEnv*, jobject, jmethodID, jvalue*) CallByteMethodA;
jchar function(JNIEnv*, jobject, jmethodID, ...) CallCharMethod;
jchar function(JNIEnv*, jobject, jmethodID, va_list) CallCharMethodV;
jchar function(JNIEnv*, jobject, jmethodID, jvalue*) CallCharMethodA;
jshort function(JNIEnv*, jobject, jmethodID, ...) CallShortMethod;
jshort function(JNIEnv*, jobject, jmethodID, va_list) CallShortMethodV;
jshort function(JNIEnv*, jobject, jmethodID, jvalue*) CallShortMethodA;
jint function(JNIEnv*, jobject, jmethodID, ...) CallIntMethod;
jint function(JNIEnv*, jobject, jmethodID, va_list) CallIntMethodV;
jint function(JNIEnv*, jobject, jmethodID, jvalue*) CallIntMethodA;
jlong function(JNIEnv*, jobject, jmethodID, ...) CallLongMethod;
jlong function(JNIEnv*, jobject, jmethodID, va_list) CallLongMethodV;
jlong function(JNIEnv*, jobject, jmethodID, jvalue*) CallLongMethodA;
jfloat function(JNIEnv*, jobject, jmethodID, ...) CallFloatMethod;
jfloat function(JNIEnv*, jobject, jmethodID, va_list) CallFloatMethodV;
jfloat function(JNIEnv*, jobject, jmethodID, jvalue*) CallFloatMethodA;
jdouble function(JNIEnv*, jobject, jmethodID, ...) CallDoubleMethod;
jdouble function(JNIEnv*, jobject, jmethodID, va_list) CallDoubleMethodV;
jdouble function(JNIEnv*, jobject, jmethodID, jvalue*) CallDoubleMethodA;
void function(JNIEnv*, jobject, jmethodID, ...) CallVoidMethod;
void function(JNIEnv*, jobject, jmethodID, va_list) CallVoidMethodV;
void function(JNIEnv*, jobject, jmethodID, jvalue*) CallVoidMethodA;
jobject function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualObjectMethod;
jobject function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualObjectMethodV;
jobject function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualObjectMethodA;
jboolean function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualBooleanMethod;
jboolean function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualBooleanMethodV;
jboolean function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualBooleanMethodA;
jbyte function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualByteMethod;
jbyte function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualByteMethodV;
jbyte function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualByteMethodA;
jchar function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualCharMethod;
jchar function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualCharMethodV;
jchar function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualCharMethodA;
jshort function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualShortMethod;
jshort function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualShortMethodV;
jshort function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualShortMethodA;
jint function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualIntMethod;
jint function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualIntMethodV;
jint function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualIntMethodA;
jlong function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualLongMethod;
jlong function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualLongMethodV;
jlong function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualLongMethodA;
jfloat function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualFloatMethod;
jfloat function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualFloatMethodV;
jfloat function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualFloatMethodA;
jdouble function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualDoubleMethod;
jdouble function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualDoubleMethodV;
jdouble function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualDoubleMethodA;
void function(JNIEnv*, jobject, jclass, jmethodID, ...) CallNonvirtualVoidMethod;
void function(JNIEnv*, jobject, jclass, jmethodID, va_list) CallNonvirtualVoidMethodV;
void function(JNIEnv*, jobject, jclass, jmethodID, jvalue*) CallNonvirtualVoidMethodA;
jfieldID function(JNIEnv*, jclass, const(char)*, const(char)*) GetFieldID;
jobject function(JNIEnv*, jobject, jfieldID) GetObjectField;
jboolean function(JNIEnv*, jobject, jfieldID) GetBooleanField;
jbyte function(JNIEnv*, jobject, jfieldID) GetByteField;
jchar function(JNIEnv*, jobject, jfieldID) GetCharField;
jshort function(JNIEnv*, jobject, jfieldID) GetShortField;
jint function(JNIEnv*, jobject, jfieldID) GetIntField;
jlong function(JNIEnv*, jobject, jfieldID) GetLongField;
jfloat function(JNIEnv*, jobject, jfieldID) GetFloatField;
jdouble function(JNIEnv*, jobject, jfieldID) GetDoubleField;
void function(JNIEnv*, jobject, jfieldID, jobject) SetObjectField;
void function(JNIEnv*, jobject, jfieldID, jboolean) SetBooleanField;
void function(JNIEnv*, jobject, jfieldID, jbyte) SetByteField;
void function(JNIEnv*, jobject, jfieldID, jchar) SetCharField;
void function(JNIEnv*, jobject, jfieldID, jshort) SetShortField;
void function(JNIEnv*, jobject, jfieldID, jint) SetIntField;
void function(JNIEnv*, jobject, jfieldID, jlong) SetLongField;
void function(JNIEnv*, jobject, jfieldID, jfloat) SetFloatField;
void function(JNIEnv*, jobject, jfieldID, jdouble) SetDoubleField;
jmethodID function(JNIEnv*, jclass, const(char)*, const(char)*) GetStaticMethodID;
jobject function(JNIEnv*, jclass, jmethodID, ...) CallStaticObjectMethod;
jobject function(JNIEnv*, jclass, jmethodID, va_list) CallStaticObjectMethodV;
jobject function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticObjectMethodA;
jboolean function(JNIEnv*, jclass, jmethodID, ...) CallStaticBooleanMethod;
jboolean function(JNIEnv*, jclass, jmethodID, va_list) CallStaticBooleanMethodV;
jboolean function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticBooleanMethodA;
jbyte function(JNIEnv*, jclass, jmethodID, ...) CallStaticByteMethod;
jbyte function(JNIEnv*, jclass, jmethodID, va_list) CallStaticByteMethodV;
jbyte function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticByteMethodA;
jchar function(JNIEnv*, jclass, jmethodID, ...) CallStaticCharMethod;
jchar function(JNIEnv*, jclass, jmethodID, va_list) CallStaticCharMethodV;
jchar function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticCharMethodA;
jshort function(JNIEnv*, jclass, jmethodID, ...) CallStaticShortMethod;
jshort function(JNIEnv*, jclass, jmethodID, va_list) CallStaticShortMethodV;
jshort function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticShortMethodA;
jint function(JNIEnv*, jclass, jmethodID, ...) CallStaticIntMethod;
jint function(JNIEnv*, jclass, jmethodID, va_list) CallStaticIntMethodV;
jint function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticIntMethodA;
jlong function(JNIEnv*, jclass, jmethodID, ...) CallStaticLongMethod;
jlong function(JNIEnv*, jclass, jmethodID, va_list) CallStaticLongMethodV;
jlong function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticLongMethodA;
jfloat function(JNIEnv*, jclass, jmethodID, ...) CallStaticFloatMethod;
jfloat function(JNIEnv*, jclass, jmethodID, va_list) CallStaticFloatMethodV;
jfloat function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticFloatMethodA;
jdouble function(JNIEnv*, jclass, jmethodID, ...) CallStaticDoubleMethod;
jdouble function(JNIEnv*, jclass, jmethodID, va_list) CallStaticDoubleMethodV;
jdouble function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticDoubleMethodA;
void function(JNIEnv*, jclass, jmethodID, ...) CallStaticVoidMethod;
void function(JNIEnv*, jclass, jmethodID, va_list) CallStaticVoidMethodV;
void function(JNIEnv*, jclass, jmethodID, jvalue*) CallStaticVoidMethodA;
jfieldID function(JNIEnv*, jclass, const(char)*, const(char)*) GetStaticFieldID;
jobject function(JNIEnv*, jclass, jfieldID) GetStaticObjectField;
jboolean function(JNIEnv*, jclass, jfieldID) GetStaticBooleanField;
jbyte function(JNIEnv*, jclass, jfieldID) GetStaticByteField;
jchar function(JNIEnv*, jclass, jfieldID) GetStaticCharField;
jshort function(JNIEnv*, jclass, jfieldID) GetStaticShortField;
jint function(JNIEnv*, jclass, jfieldID) GetStaticIntField;
jlong function(JNIEnv*, jclass, jfieldID) GetStaticLongField;
jfloat function(JNIEnv*, jclass, jfieldID) GetStaticFloatField;
jdouble function(JNIEnv*, jclass, jfieldID) GetStaticDoubleField;
void function(JNIEnv*, jclass, jfieldID, jobject) SetStaticObjectField;
void function(JNIEnv*, jclass, jfieldID, jboolean) SetStaticBooleanField;
void function(JNIEnv*, jclass, jfieldID, jbyte) SetStaticByteField;
void function(JNIEnv*, jclass, jfieldID, jchar) SetStaticCharField;
void function(JNIEnv*, jclass, jfieldID, jshort) SetStaticShortField;
void function(JNIEnv*, jclass, jfieldID, jint) SetStaticIntField;
void function(JNIEnv*, jclass, jfieldID, jlong) SetStaticLongField;
void function(JNIEnv*, jclass, jfieldID, jfloat) SetStaticFloatField;
void function(JNIEnv*, jclass, jfieldID, jdouble) SetStaticDoubleField;
jstring function(JNIEnv*, const(jchar)*, jsize) NewString;
jsize function(JNIEnv*, jstring) GetStringLength;
const(jchar)* function(JNIEnv*, jstring, jboolean*) GetStringChars;
void function(JNIEnv*, jstring, const(jchar)*) ReleaseStringChars;
jstring function(JNIEnv*, const(char)*) NewStringUTF;
jsize function(JNIEnv*, jstring) GetStringUTFLength;
const(char)* function(JNIEnv*, jstring, jboolean*) GetStringUTFChars;
void function(JNIEnv*, jstring, const(char)*) ReleaseStringUTFChars;
jsize function(JNIEnv*, jarray) GetArrayLength;
jobjectArray function(JNIEnv*, jsize, jclass, jobject) NewObjectArray;
jobject function(JNIEnv*, jobjectArray, jsize) GetObjectArrayElement;
void function(JNIEnv*, jobjectArray, jsize, jobject) SetObjectArrayElement;
jbooleanArray function(JNIEnv*, jsize) NewBooleanArray;
jbyteArray function(JNIEnv*, jsize) NewByteArray;
jcharArray function(JNIEnv*, jsize) NewCharArray;
jshortArray function(JNIEnv*, jsize) NewShortArray;
jintArray function(JNIEnv*, jsize) NewIntArray;
jlongArray function(JNIEnv*, jsize) NewLongArray;
jfloatArray function(JNIEnv*, jsize) NewFloatArray;
jdoubleArray function(JNIEnv*, jsize) NewDoubleArray;
jboolean* function(JNIEnv*, jbooleanArray, jboolean*) GetBooleanArrayElements;
jbyte* function(JNIEnv*, jbyteArray, jboolean*) GetByteArrayElements;
jchar* function(JNIEnv*, jcharArray, jboolean*) GetCharArrayElements;
jshort* function(JNIEnv*, jshortArray, jboolean*) GetShortArrayElements;
jint* function(JNIEnv*, jintArray, jboolean*) GetIntArrayElements;
jlong* function(JNIEnv*, jlongArray, jboolean*) GetLongArrayElements;
jfloat* function(JNIEnv*, jfloatArray, jboolean*) GetFloatArrayElements;
jdouble* function(JNIEnv*, jdoubleArray, jboolean*) GetDoubleArrayElements;
void function(JNIEnv*, jbooleanArray, jboolean*, jint) ReleaseBooleanArrayElements;
void function(JNIEnv*, jbyteArray, jbyte*, jint) ReleaseByteArrayElements;
void function(JNIEnv*, jcharArray, jchar*, jint) ReleaseCharArrayElements;
void function(JNIEnv*, jshortArray, jshort*, jint) ReleaseShortArrayElements;
void function(JNIEnv*, jintArray, jint*, jint) ReleaseIntArrayElements;
void function(JNIEnv*, jlongArray, jlong*, jint) ReleaseLongArrayElements;
void function(JNIEnv*, jfloatArray, jfloat*, jint) ReleaseFloatArrayElements;
void function(JNIEnv*, jdoubleArray, jdouble*, jint) ReleaseDoubleArrayElements;
void function(JNIEnv*, jbooleanArray, jsize, jsize, jboolean*) GetBooleanArrayRegion;
void function(JNIEnv*, jbyteArray, jsize, jsize, jbyte*) GetByteArrayRegion;
void function(JNIEnv*, jcharArray, jsize, jsize, jchar*) GetCharArrayRegion;
void function(JNIEnv*, jshortArray, jsize, jsize, jshort*) GetShortArrayRegion;
void function(JNIEnv*, jintArray, jsize, jsize, jint*) GetIntArrayRegion;
void function(JNIEnv*, jlongArray, jsize, jsize, jlong*) GetLongArrayRegion;
void function(JNIEnv*, jfloatArray, jsize, jsize, jfloat*) GetFloatArrayRegion;
void function(JNIEnv*, jdoubleArray, jsize, jsize, jdouble*) GetDoubleArrayRegion;
void function(JNIEnv*, jbooleanArray, jsize, jsize, const(jboolean)*) SetBooleanArrayRegion;
void function(JNIEnv*, jbyteArray, jsize, jsize, const(jbyte)*) SetByteArrayRegion;
void function(JNIEnv*, jcharArray, jsize, jsize, const(jchar)*) SetCharArrayRegion;
void function(JNIEnv*, jshortArray, jsize, jsize, const(jshort)*) SetShortArrayRegion;
void function(JNIEnv*, jintArray, jsize, jsize, const(jint)*) SetIntArrayRegion;
void function(JNIEnv*, jlongArray, jsize, jsize, const(jlong)*) SetLongArrayRegion;
void function(JNIEnv*, jfloatArray, jsize, jsize, const(jfloat)*) SetFloatArrayRegion;
void function(JNIEnv*, jdoubleArray, jsize, jsize, const(jdouble)*) SetDoubleArrayRegion;
jint function(JNIEnv*, jclass, const(JNINativeMethod)*, jint) RegisterNatives;
jint function(JNIEnv*, jclass) UnregisterNatives;
jint function(JNIEnv*, jobject) MonitorEnter;
jint function(JNIEnv*, jobject) MonitorExit;
jint function(JNIEnv*, JavaVM**) GetJavaVM;
void function(JNIEnv*, jstring, jsize, jsize, jchar*) GetStringRegion;
void function(JNIEnv*, jstring, jsize, jsize, char*) GetStringUTFRegion;
void* function(JNIEnv*, jarray, jboolean*) GetPrimitiveArrayCritical;
void function(JNIEnv*, jarray, void*, jint) ReleasePrimitiveArrayCritical;
const(jchar)* function(JNIEnv*, jstring, jboolean*) GetStringCritical;
void function(JNIEnv*, jstring, const(jchar)*) ReleaseStringCritical;
jweak function(JNIEnv*, jobject) NewWeakGlobalRef;
void function(JNIEnv*, jweak) DeleteWeakGlobalRef;
jboolean function(JNIEnv*) ExceptionCheck;
jobject function(JNIEnv*, void*, jlong) NewDirectByteBuffer;
void* function(JNIEnv*, jobject) GetDirectBufferAddress;
jlong function(JNIEnv*, jobject) GetDirectBufferCapacity;
jobjectRefType function(JNIEnv*, jobject) GetObjectRefType;
}
struct _JNIEnv
{
const(JNINativeInterface)* functions;
}
struct JNIInvokeInterface
{
void* reserved0;
void* reserved1;
void* reserved2;
jint function(JavaVM*) DestroyJavaVM;
jint function(JavaVM*, JNIEnv**, void*) AttachCurrentThread;
jint function(JavaVM*) DetachCurrentThread;
jint function(JavaVM*, void**, jint) GetEnv;
jint function(JavaVM*, JNIEnv**, void*) AttachCurrentThreadAsDaemon;
}
struct _JavaVM
{
const(JNIInvokeInterface)* functions;
}
struct JavaVMAttachArgs
{
jint version_;
const(char)* name;
jobject group;
}
struct JavaVMOption
{
const(char)* optionString;
void* extraInfo;
}
struct JavaVMInitArgs
{
jint version_;
jint nOptions;
JavaVMOption* options;
jboolean ignoreUnrecognized;
}
struct _jfieldID;
struct _jmethodID;
union jvalue
{
jboolean z;
jbyte b;
jchar c;
jshort s;
jint i;
jlong j;
jfloat f;
jdouble d;
jobject l;
}
jint JNI_OnLoad(JavaVM* vm, void* reserved);
void JNI_OnUnload(JavaVM* vm, void* reserved);