jni.h 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680
  1. /* jni.h
  2. Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
  3. This file is part of GNU Classpath.
  4. GNU Classpath is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. GNU Classpath is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNU Classpath; see the file COPYING. If not, write to the
  14. Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  15. 02110-1301 USA.
  16. Linking this library statically or dynamically with other modules is
  17. making a combined work based on this library. Thus, the terms and
  18. conditions of the GNU General Public License cover the whole
  19. combination.
  20. As a special exception, the copyright holders of this library give you
  21. permission to link this library with independent modules to produce an
  22. executable, regardless of the license terms of these independent
  23. modules, and to copy and distribute the resulting executable under
  24. terms of your choice, provided that you also meet, for each linked
  25. independent module, the terms and conditions of the license of that
  26. module. An independent module is a module which is not derived from
  27. or based on this library. If you modify this library, you may extend
  28. this exception to your version of the library, but you are not
  29. obligated to do so. If you do not wish to do so, delete this
  30. exception statement from your version. */
  31. /* Note: this file must be compilable by the C compiler (for now,
  32. assuming GNU C is ok). This means you must never use `//'
  33. comments, and all C++-specific code must be conditional on
  34. __cplusplus. */
  35. #ifndef _CLASSPATH_JNI_H
  36. #define _CLASSPATH_JNI_H
  37. /* We include <stdio.h> for compatibility with Sun's <jni.h>. */
  38. #include <stdio.h>
  39. #include <stdarg.h>
  40. #include "jni_md.h"
  41. /* The VM might define jobject and friends. */
  42. #ifndef _CLASSPATH_VM_JNI_TYPES_DEFINED
  43. # ifdef __cplusplus
  44. /* Define dummy classes and then define the JNI types as pointers. */
  45. struct __jobject {};
  46. struct __jclass : __jobject {};
  47. struct __jstring : __jobject {};
  48. struct __jthrowable : __jobject {};
  49. struct __jweak : __jobject {};
  50. struct __jarray : __jobject {};
  51. struct __jobjectArray : __jarray {};
  52. struct __jbyteArray : __jarray {};
  53. struct __jshortArray : __jarray {};
  54. struct __jintArray : __jarray {};
  55. struct __jlongArray : __jarray {};
  56. struct __jbooleanArray : __jarray {};
  57. struct __jcharArray : __jarray {};
  58. struct __jfloatArray : __jarray {};
  59. struct __jdoubleArray : __jarray {};
  60. typedef __jobject *jobject;
  61. typedef __jclass *jclass;
  62. typedef __jstring *jstring;
  63. typedef __jthrowable *jthrowable;
  64. typedef __jweak *jweak;
  65. typedef __jarray *jarray;
  66. typedef __jobjectArray *jobjectArray;
  67. typedef __jbyteArray *jbyteArray;
  68. typedef __jshortArray *jshortArray;
  69. typedef __jintArray *jintArray;
  70. typedef __jlongArray *jlongArray;
  71. typedef __jbooleanArray *jbooleanArray;
  72. typedef __jcharArray *jcharArray;
  73. typedef __jfloatArray *jfloatArray;
  74. typedef __jdoubleArray *jdoubleArray;
  75. #define JNI_TRUE true
  76. #define JNI_FALSE false
  77. typedef struct _Jv_JNIEnv JNIEnv;
  78. typedef struct _Jv_JavaVM JavaVM;
  79. # else /* __cplusplus */
  80. /* For C, simply define the class types as generic pointers. */
  81. typedef void *jobject;
  82. typedef jobject jclass;
  83. typedef jobject jstring;
  84. typedef jobject jthrowable;
  85. typedef jobject jweak;
  86. typedef jobject jarray;
  87. typedef jobject jobjectArray;
  88. typedef jobject jbyteArray;
  89. typedef jobject jshortArray;
  90. typedef jobject jintArray;
  91. typedef jobject jlongArray;
  92. typedef jobject jbooleanArray;
  93. typedef jobject jcharArray;
  94. typedef jobject jfloatArray;
  95. typedef jobject jdoubleArray;
  96. #define JNI_TRUE 1
  97. #define JNI_FALSE 0
  98. typedef const struct JNINativeInterface_ *JNIEnv;
  99. typedef const struct JNIInvokeInterface_ *JavaVM;
  100. # endif /* __cplusplus */
  101. #endif /* _CLASSPATH_VM_JNI_TYPES_DEFINED */
  102. /*
  103. * Before jni.h is #included within a typical JVM, the source code should
  104. * #define _JNI_VM_INTERNAL_TYPES_DEFINED and provide the real declarations
  105. * for 'jobject', 'jfieldID', 'jmethodID' and other implementation types.
  106. * If _JNI_VM_INTERNAL_TYPES_DEFINED is not defined, the following
  107. * declares the old versions of the types.
  108. */
  109. #ifndef _CLASSPATH_VM_INTERNAL_TYPES_DEFINED
  110. struct _jfieldID;
  111. struct _jmethodID;
  112. typedef struct _jfieldID *jfieldID;
  113. typedef struct _jmethodID *jmethodID;
  114. #endif
  115. /* Version numbers. */
  116. #define JNI_VERSION_1_1 0x00010001
  117. #define JNI_VERSION_1_2 0x00010002
  118. #define JNI_VERSION_1_4 0x00010004
  119. #define JNI_VERSION_1_6 0x00010006
  120. /* Used when releasing array elements. */
  121. #define JNI_COMMIT 1
  122. #define JNI_ABORT 2
  123. /* Error codes */
  124. #define JNI_OK 0
  125. #define JNI_ERR (-1)
  126. #define JNI_EDETACHED (-2)
  127. #define JNI_EVERSION (-3)
  128. enum _jobjectRefType
  129. {
  130. JNIInvalidRefType = 0,
  131. JNILocalRefType = 1,
  132. JNIGlobalRefType = 2,
  133. JNIWeakGlobalRefType = 3
  134. };
  135. typedef enum _jobjectRefType jobjectRefType;
  136. #ifdef __cplusplus
  137. extern "C"
  138. {
  139. #endif /* __cplusplus */
  140. /* These functions might be defined in libraries which we load; the
  141. JNI implementation calls them at the appropriate times. */
  142. extern JNIEXPORT jint JNICALL JNI_OnLoad (JavaVM *, void *);
  143. extern JNIEXPORT void JNICALL JNI_OnUnload (JavaVM *, void *);
  144. /* This can be defined as JNIIMPORT or JNIEXPORT by the md file,
  145. depending on whether this is the implementation or a user. */
  146. #ifndef _CLASSPATH_JNIIMPEXP
  147. #define _CLASSPATH_JNIIMPEXP JNIIMPORT
  148. #endif
  149. /* These functions are called by user code to start using the
  150. invocation API. */
  151. extern _CLASSPATH_JNIIMPEXP jint JNICALL
  152. JNI_GetDefaultJavaVMInitArgs (void *);
  153. extern _CLASSPATH_JNIIMPEXP jint JNICALL
  154. JNI_CreateJavaVM (JavaVM **, void **, void *);
  155. extern _CLASSPATH_JNIIMPEXP jint JNICALL
  156. JNI_GetCreatedJavaVMs (JavaVM **, jsize, jsize *);
  157. #ifdef __cplusplus
  158. }
  159. #endif /* __cplusplus */
  160. typedef union jvalue
  161. {
  162. jboolean z;
  163. jbyte b;
  164. jchar c;
  165. jshort s;
  166. jint i;
  167. jlong j;
  168. jfloat f;
  169. jdouble d;
  170. jobject l;
  171. } jvalue;
  172. /* This structure is used when registering native methods. */
  173. typedef struct
  174. {
  175. char *name;
  176. char *signature;
  177. void *fnPtr; /* Sigh. */
  178. } JNINativeMethod;
  179. struct JNINativeInterface_
  180. {
  181. void *reserved0;
  182. void *reserved1;
  183. void *reserved2;
  184. void *reserved3;
  185. jint (JNICALL *GetVersion) (JNIEnv *);
  186. jclass (JNICALL *DefineClass) (JNIEnv *, const char *,
  187. jobject, const jbyte *,
  188. jsize);
  189. jclass (JNICALL *FindClass) (JNIEnv *, const char *);
  190. jmethodID (JNICALL *FromReflectedMethod) (JNIEnv *, jobject);
  191. jfieldID (JNICALL *FromReflectedField) (JNIEnv *, jobject);
  192. jobject (JNICALL *ToReflectedMethod) (JNIEnv *, jclass,
  193. jmethodID, jboolean);
  194. jclass (JNICALL *GetSuperclass) (JNIEnv *, jclass);
  195. jboolean (JNICALL *IsAssignableFrom) (JNIEnv *, jclass, jclass);
  196. jobject (JNICALL *ToReflectedField) (JNIEnv *, jclass, jfieldID,
  197. jboolean);
  198. jint (JNICALL *Throw) (JNIEnv *, jthrowable);
  199. jint (JNICALL *ThrowNew) (JNIEnv *, jclass,
  200. const char *);
  201. jthrowable (JNICALL *ExceptionOccurred) (JNIEnv *);
  202. void (JNICALL *ExceptionDescribe) (JNIEnv *);
  203. void (JNICALL *ExceptionClear) (JNIEnv *);
  204. void (JNICALL *FatalError) (JNIEnv *, const char *);
  205. jint (JNICALL *PushLocalFrame) (JNIEnv *, jint);
  206. jobject (JNICALL *PopLocalFrame) (JNIEnv *, jobject);
  207. jobject (JNICALL *NewGlobalRef) (JNIEnv *, jobject);
  208. void (JNICALL *DeleteGlobalRef) (JNIEnv *, jobject);
  209. void (JNICALL *DeleteLocalRef) (JNIEnv *, jobject);
  210. jboolean (JNICALL *IsSameObject) (JNIEnv *, jobject,
  211. jobject);
  212. jobject (JNICALL *NewLocalRef) (JNIEnv *, jobject);
  213. jint (JNICALL *EnsureLocalCapacity) (JNIEnv *, jint);
  214. jobject (JNICALL *AllocObject) (JNIEnv *, jclass);
  215. jobject (JNICALL *NewObject) (JNIEnv *, jclass,
  216. jmethodID, ...);
  217. jobject (JNICALL *NewObjectV) (JNIEnv *, jclass,
  218. jmethodID, va_list);
  219. jobject (JNICALL *NewObjectA) (JNIEnv *, jclass,
  220. jmethodID, const jvalue *);
  221. jclass (JNICALL *GetObjectClass) (JNIEnv *, jobject);
  222. jboolean (JNICALL *IsInstanceOf) (JNIEnv *, jobject, jclass);
  223. jmethodID (JNICALL *GetMethodID) (JNIEnv *, jclass,
  224. const char *, const char *);
  225. jobject (JNICALL *CallObjectMethod) (JNIEnv *, jobject, jmethodID, ...);
  226. jobject (JNICALL *CallObjectMethodV) (JNIEnv *, jobject, jmethodID,
  227. va_list);
  228. jobject (JNICALL *CallObjectMethodA) (JNIEnv *, jobject, jmethodID,
  229. const jvalue *);
  230. jboolean (JNICALL *CallBooleanMethod) (JNIEnv *, jobject, jmethodID,
  231. ...);
  232. jboolean (JNICALL *CallBooleanMethodV) (JNIEnv *, jobject, jmethodID,
  233. va_list);
  234. jboolean (JNICALL *CallBooleanMethodA) (JNIEnv *, jobject, jmethodID,
  235. const jvalue *);
  236. jbyte (JNICALL *CallByteMethod) (JNIEnv *, jobject, jmethodID, ...);
  237. jbyte (JNICALL *CallByteMethodV) (JNIEnv *, jobject, jmethodID,
  238. va_list);
  239. jbyte (JNICALL *CallByteMethodA) (JNIEnv *, jobject, jmethodID,
  240. const jvalue *);
  241. jchar (JNICALL *CallCharMethod) (JNIEnv *, jobject, jmethodID, ...);
  242. jchar (JNICALL *CallCharMethodV) (JNIEnv *, jobject, jmethodID,
  243. va_list);
  244. jchar (JNICALL *CallCharMethodA) (JNIEnv *, jobject, jmethodID,
  245. const jvalue *);
  246. jshort (JNICALL *CallShortMethod) (JNIEnv *, jobject, jmethodID, ...);
  247. jshort (JNICALL *CallShortMethodV) (JNIEnv *, jobject, jmethodID,
  248. va_list);
  249. jshort (JNICALL *CallShortMethodA) (JNIEnv *, jobject, jmethodID,
  250. const jvalue *);
  251. jint (JNICALL *CallIntMethod) (JNIEnv *, jobject, jmethodID, ...);
  252. jint (JNICALL *CallIntMethodV) (JNIEnv *, jobject, jmethodID,
  253. va_list);
  254. jint (JNICALL *CallIntMethodA) (JNIEnv *, jobject, jmethodID,
  255. const jvalue *);
  256. jlong (JNICALL *CallLongMethod) (JNIEnv *, jobject, jmethodID, ...);
  257. jlong (JNICALL *CallLongMethodV) (JNIEnv *, jobject, jmethodID,
  258. va_list);
  259. jlong (JNICALL *CallLongMethodA) (JNIEnv *, jobject, jmethodID,
  260. const jvalue *);
  261. jfloat (JNICALL *CallFloatMethod) (JNIEnv *, jobject, jmethodID, ...);
  262. jfloat (JNICALL *CallFloatMethodV) (JNIEnv *, jobject, jmethodID,
  263. va_list);
  264. jfloat (JNICALL *CallFloatMethodA) (JNIEnv *, jobject, jmethodID,
  265. const jvalue *);
  266. jdouble (JNICALL *CallDoubleMethod) (JNIEnv *, jobject, jmethodID, ...);
  267. jdouble (JNICALL *CallDoubleMethodV) (JNIEnv *, jobject, jmethodID,
  268. va_list);
  269. jdouble (JNICALL *CallDoubleMethodA) (JNIEnv *, jobject, jmethodID,
  270. const jvalue *);
  271. void (JNICALL *CallVoidMethod) (JNIEnv *, jobject, jmethodID, ...);
  272. void (JNICALL *CallVoidMethodV) (JNIEnv *, jobject, jmethodID,
  273. va_list);
  274. void (JNICALL *CallVoidMethodA) (JNIEnv *, jobject, jmethodID,
  275. const jvalue *);
  276. jobject (JNICALL *CallNonvirtualObjectMethod) (JNIEnv *, jobject, jclass,
  277. jmethodID, ...);
  278. jobject (JNICALL *CallNonvirtualObjectMethodV) (JNIEnv *, jobject, jclass,
  279. jmethodID, va_list);
  280. jobject (JNICALL *CallNonvirtualObjectMethodA) (JNIEnv *, jobject, jclass,
  281. jmethodID, const jvalue *);
  282. jboolean (JNICALL *CallNonvirtualBooleanMethod) (JNIEnv *, jobject, jclass,
  283. jmethodID, ...);
  284. jboolean (JNICALL *CallNonvirtualBooleanMethodV) (JNIEnv *, jobject, jclass,
  285. jmethodID, va_list);
  286. jboolean (JNICALL *CallNonvirtualBooleanMethodA) (JNIEnv *, jobject, jclass,
  287. jmethodID, const jvalue *);
  288. jbyte (JNICALL *CallNonvirtualByteMethod) (JNIEnv *, jobject, jclass,
  289. jmethodID, ...);
  290. jbyte (JNICALL *CallNonvirtualByteMethodV) (JNIEnv *, jobject, jclass,
  291. jmethodID, va_list);
  292. jbyte (JNICALL *CallNonvirtualByteMethodA) (JNIEnv *, jobject, jclass,
  293. jmethodID, const jvalue *);
  294. jchar (JNICALL *CallNonvirtualCharMethod) (JNIEnv *, jobject, jclass,
  295. jmethodID, ...);
  296. jchar (JNICALL *CallNonvirtualCharMethodV) (JNIEnv *, jobject, jclass,
  297. jmethodID, va_list);
  298. jchar (JNICALL *CallNonvirtualCharMethodA) (JNIEnv *, jobject, jclass,
  299. jmethodID, const jvalue *);
  300. jshort (JNICALL *CallNonvirtualShortMethod) (JNIEnv *, jobject, jclass,
  301. jmethodID, ...);
  302. jshort (JNICALL *CallNonvirtualShortMethodV) (JNIEnv *, jobject, jclass,
  303. jmethodID, va_list);
  304. jshort (JNICALL *CallNonvirtualShortMethodA) (JNIEnv *, jobject, jclass,
  305. jmethodID, const jvalue *);
  306. jint (JNICALL *CallNonvirtualIntMethod) (JNIEnv *, jobject, jclass,
  307. jmethodID, ...);
  308. jint (JNICALL *CallNonvirtualIntMethodV) (JNIEnv *, jobject, jclass,
  309. jmethodID, va_list);
  310. jint (JNICALL *CallNonvirtualIntMethodA) (JNIEnv *, jobject, jclass,
  311. jmethodID, const jvalue *);
  312. jlong (JNICALL *CallNonvirtualLongMethod) (JNIEnv *, jobject, jclass,
  313. jmethodID, ...);
  314. jlong (JNICALL *CallNonvirtualLongMethodV) (JNIEnv *, jobject, jclass,
  315. jmethodID, va_list);
  316. jlong (JNICALL *CallNonvirtualLongMethodA) (JNIEnv *, jobject, jclass,
  317. jmethodID, const jvalue *);
  318. jfloat (JNICALL *CallNonvirtualFloatMethod) (JNIEnv *, jobject, jclass,
  319. jmethodID, ...);
  320. jfloat (JNICALL *CallNonvirtualFloatMethodV) (JNIEnv *, jobject, jclass,
  321. jmethodID, va_list);
  322. jfloat (JNICALL *CallNonvirtualFloatMethodA) (JNIEnv *, jobject, jclass,
  323. jmethodID, const jvalue *);
  324. jdouble (JNICALL *CallNonvirtualDoubleMethod) (JNIEnv *, jobject, jclass,
  325. jmethodID, ...);
  326. jdouble (JNICALL *CallNonvirtualDoubleMethodV) (JNIEnv *, jobject, jclass,
  327. jmethodID, va_list);
  328. jdouble (JNICALL *CallNonvirtualDoubleMethodA) (JNIEnv *, jobject, jclass,
  329. jmethodID, const jvalue *);
  330. void (JNICALL *CallNonvirtualVoidMethod) (JNIEnv *, jobject, jclass,
  331. jmethodID, ...);
  332. void (JNICALL *CallNonvirtualVoidMethodV) (JNIEnv *, jobject, jclass,
  333. jmethodID, va_list);
  334. void (JNICALL *CallNonvirtualVoidMethodA) (JNIEnv *, jobject, jclass,
  335. jmethodID, const jvalue *);
  336. jfieldID (JNICALL *GetFieldID) (JNIEnv *, jclass, const char *,
  337. const char *);
  338. jobject (JNICALL *GetObjectField) (JNIEnv *, jobject, jfieldID);
  339. jboolean (JNICALL *GetBooleanField) (JNIEnv *, jobject, jfieldID);
  340. jbyte (JNICALL *GetByteField) (JNIEnv *, jobject, jfieldID);
  341. jchar (JNICALL *GetCharField) (JNIEnv *, jobject, jfieldID);
  342. jshort (JNICALL *GetShortField) (JNIEnv *, jobject, jfieldID);
  343. jint (JNICALL *GetIntField) (JNIEnv *, jobject, jfieldID);
  344. jlong (JNICALL *GetLongField) (JNIEnv *, jobject, jfieldID);
  345. jfloat (JNICALL *GetFloatField) (JNIEnv *, jobject, jfieldID);
  346. jdouble (JNICALL *GetDoubleField) (JNIEnv *, jobject, jfieldID);
  347. void (JNICALL *SetObjectField) (JNIEnv *, jobject,
  348. jfieldID, jobject);
  349. void (JNICALL *SetBooleanField) (JNIEnv *, jobject,
  350. jfieldID, jboolean);
  351. void (JNICALL *SetByteField) (JNIEnv *, jobject,
  352. jfieldID, jbyte);
  353. void (JNICALL *SetCharField) (JNIEnv *, jobject,
  354. jfieldID, jchar);
  355. void (JNICALL *SetShortField) (JNIEnv *, jobject,
  356. jfieldID, jshort);
  357. void (JNICALL *SetIntField) (JNIEnv *, jobject,
  358. jfieldID, jint);
  359. void (JNICALL *SetLongField) (JNIEnv *, jobject,
  360. jfieldID, jlong);
  361. void (JNICALL *SetFloatField) (JNIEnv *, jobject,
  362. jfieldID, jfloat);
  363. void (JNICALL *SetDoubleField) (JNIEnv *, jobject,
  364. jfieldID, jdouble);
  365. jmethodID (JNICALL *GetStaticMethodID) (JNIEnv *, jclass, const char *,
  366. const char *);
  367. jobject (JNICALL *CallStaticObjectMethod) (JNIEnv *, jclass, jmethodID,
  368. ...);
  369. jobject (JNICALL *CallStaticObjectMethodV) (JNIEnv *, jclass, jmethodID,
  370. va_list);
  371. jobject (JNICALL *CallStaticObjectMethodA) (JNIEnv *, jclass, jmethodID,
  372. const jvalue *);
  373. jboolean (JNICALL *CallStaticBooleanMethod) (JNIEnv *, jclass, jmethodID,
  374. ...);
  375. jboolean (JNICALL *CallStaticBooleanMethodV) (JNIEnv *, jclass, jmethodID,
  376. va_list);
  377. jboolean (JNICALL *CallStaticBooleanMethodA) (JNIEnv *, jclass, jmethodID,
  378. const jvalue *);
  379. jbyte (JNICALL *CallStaticByteMethod) (JNIEnv *, jclass, jmethodID,
  380. ...);
  381. jbyte (JNICALL *CallStaticByteMethodV) (JNIEnv *, jclass, jmethodID,
  382. va_list);
  383. jbyte (JNICALL *CallStaticByteMethodA) (JNIEnv *, jclass, jmethodID,
  384. const jvalue *);
  385. jchar (JNICALL *CallStaticCharMethod) (JNIEnv *, jclass, jmethodID,
  386. ...);
  387. jchar (JNICALL *CallStaticCharMethodV) (JNIEnv *, jclass, jmethodID,
  388. va_list);
  389. jchar (JNICALL *CallStaticCharMethodA) (JNIEnv *, jclass, jmethodID,
  390. const jvalue *);
  391. jshort (JNICALL *CallStaticShortMethod) (JNIEnv *, jclass, jmethodID,
  392. ...);
  393. jshort (JNICALL *CallStaticShortMethodV) (JNIEnv *, jclass, jmethodID,
  394. va_list);
  395. jshort (JNICALL *CallStaticShortMethodA) (JNIEnv *, jclass, jmethodID,
  396. const jvalue *);
  397. jint (JNICALL *CallStaticIntMethod) (JNIEnv *, jclass, jmethodID,
  398. ...);
  399. jint (JNICALL *CallStaticIntMethodV) (JNIEnv *, jclass, jmethodID,
  400. va_list);
  401. jint (JNICALL *CallStaticIntMethodA) (JNIEnv *, jclass, jmethodID,
  402. const jvalue *);
  403. jlong (JNICALL *CallStaticLongMethod) (JNIEnv *, jclass, jmethodID,
  404. ...);
  405. jlong (JNICALL *CallStaticLongMethodV) (JNIEnv *, jclass, jmethodID,
  406. va_list);
  407. jlong (JNICALL *CallStaticLongMethodA) (JNIEnv *, jclass, jmethodID,
  408. const jvalue *);
  409. jfloat (JNICALL *CallStaticFloatMethod) (JNIEnv *, jclass, jmethodID,
  410. ...);
  411. jfloat (JNICALL *CallStaticFloatMethodV) (JNIEnv *, jclass, jmethodID,
  412. va_list);
  413. jfloat (JNICALL *CallStaticFloatMethodA) (JNIEnv *, jclass, jmethodID,
  414. const jvalue *);
  415. jdouble (JNICALL *CallStaticDoubleMethod) (JNIEnv *, jclass, jmethodID,
  416. ...);
  417. jdouble (JNICALL *CallStaticDoubleMethodV) (JNIEnv *, jclass, jmethodID,
  418. va_list);
  419. jdouble (JNICALL *CallStaticDoubleMethodA) (JNIEnv *, jclass, jmethodID,
  420. const jvalue *);
  421. void (JNICALL *CallStaticVoidMethod) (JNIEnv *, jclass, jmethodID,
  422. ...);
  423. void (JNICALL *CallStaticVoidMethodV) (JNIEnv *, jclass, jmethodID,
  424. va_list);
  425. void (JNICALL *CallStaticVoidMethodA) (JNIEnv *, jclass, jmethodID,
  426. const jvalue *);
  427. jfieldID (JNICALL *GetStaticFieldID) (JNIEnv *, jclass, const char *,
  428. const char *);
  429. jobject (JNICALL *GetStaticObjectField) (JNIEnv *, jclass, jfieldID);
  430. jboolean (JNICALL *GetStaticBooleanField) (JNIEnv *, jclass, jfieldID);
  431. jbyte (JNICALL *GetStaticByteField) (JNIEnv *, jclass, jfieldID);
  432. jchar (JNICALL *GetStaticCharField) (JNIEnv *, jclass, jfieldID);
  433. jshort (JNICALL *GetStaticShortField) (JNIEnv *, jclass, jfieldID);
  434. jint (JNICALL *GetStaticIntField) (JNIEnv *, jclass, jfieldID);
  435. jlong (JNICALL *GetStaticLongField) (JNIEnv *, jclass, jfieldID);
  436. jfloat (JNICALL *GetStaticFloatField) (JNIEnv *, jclass, jfieldID);
  437. jdouble (JNICALL *GetStaticDoubleField) (JNIEnv *, jclass, jfieldID);
  438. void (JNICALL *SetStaticObjectField) (JNIEnv *, jclass,
  439. jfieldID, jobject);
  440. void (JNICALL *SetStaticBooleanField) (JNIEnv *, jclass,
  441. jfieldID, jboolean);
  442. void (JNICALL *SetStaticByteField) (JNIEnv *, jclass,
  443. jfieldID, jbyte);
  444. void (JNICALL *SetStaticCharField) (JNIEnv *, jclass,
  445. jfieldID, jchar);
  446. void (JNICALL *SetStaticShortField) (JNIEnv *, jclass,
  447. jfieldID, jshort);
  448. void (JNICALL *SetStaticIntField) (JNIEnv *, jclass,
  449. jfieldID, jint);
  450. void (JNICALL *SetStaticLongField) (JNIEnv *, jclass,
  451. jfieldID, jlong);
  452. void (JNICALL *SetStaticFloatField) (JNIEnv *, jclass,
  453. jfieldID, jfloat);
  454. void (JNICALL *SetStaticDoubleField) (JNIEnv *, jclass,
  455. jfieldID, jdouble);
  456. jstring (JNICALL *NewString) (JNIEnv *, const jchar *, jsize);
  457. jsize (JNICALL *GetStringLength) (JNIEnv *, jstring);
  458. const jchar * (JNICALL *GetStringChars) (JNIEnv *, jstring, jboolean *);
  459. void (JNICALL *ReleaseStringChars) (JNIEnv *, jstring, const jchar *);
  460. jstring (JNICALL *NewStringUTF) (JNIEnv *, const char *);
  461. jsize (JNICALL *GetStringUTFLength) (JNIEnv *, jstring);
  462. const char * (JNICALL *GetStringUTFChars) (JNIEnv *, jstring, jboolean *);
  463. void (JNICALL *ReleaseStringUTFChars) (JNIEnv *, jstring, const char *);
  464. jsize (JNICALL *GetArrayLength) (JNIEnv *, jarray);
  465. jobjectArray (JNICALL *NewObjectArray) (JNIEnv *, jsize, jclass, jobject);
  466. jobject (JNICALL *GetObjectArrayElement) (JNIEnv *, jobjectArray, jsize);
  467. void (JNICALL *SetObjectArrayElement) (JNIEnv *, jobjectArray, jsize,
  468. jobject);
  469. jbooleanArray (JNICALL *NewBooleanArray) (JNIEnv *, jsize);
  470. jbyteArray (JNICALL *NewByteArray) (JNIEnv *, jsize);
  471. jcharArray (JNICALL *NewCharArray) (JNIEnv *, jsize);
  472. jshortArray (JNICALL *NewShortArray) (JNIEnv *, jsize);
  473. jintArray (JNICALL *NewIntArray) (JNIEnv *, jsize);
  474. jlongArray (JNICALL *NewLongArray) (JNIEnv *, jsize);
  475. jfloatArray (JNICALL *NewFloatArray) (JNIEnv *, jsize);
  476. jdoubleArray (JNICALL *NewDoubleArray) (JNIEnv *, jsize);
  477. jboolean * (JNICALL *GetBooleanArrayElements) (JNIEnv *, jbooleanArray,
  478. jboolean *);
  479. jbyte * (JNICALL *GetByteArrayElements) (JNIEnv *, jbyteArray,
  480. jboolean *);
  481. jchar * (JNICALL *GetCharArrayElements) (JNIEnv *, jcharArray,
  482. jboolean *);
  483. jshort * (JNICALL *GetShortArrayElements) (JNIEnv *, jshortArray,
  484. jboolean *);
  485. jint * (JNICALL *GetIntArrayElements) (JNIEnv *, jintArray,
  486. jboolean *);
  487. jlong * (JNICALL *GetLongArrayElements) (JNIEnv *, jlongArray,
  488. jboolean *);
  489. jfloat * (JNICALL *GetFloatArrayElements) (JNIEnv *, jfloatArray,
  490. jboolean *);
  491. jdouble * (JNICALL *GetDoubleArrayElements) (JNIEnv *, jdoubleArray,
  492. jboolean *);
  493. void (JNICALL *ReleaseBooleanArrayElements) (JNIEnv *, jbooleanArray,
  494. jboolean *, jint);
  495. void (JNICALL *ReleaseByteArrayElements) (JNIEnv *, jbyteArray,
  496. jbyte *, jint);
  497. void (JNICALL *ReleaseCharArrayElements) (JNIEnv *, jcharArray,
  498. jchar *, jint);
  499. void (JNICALL *ReleaseShortArrayElements) (JNIEnv *, jshortArray,
  500. jshort *, jint);
  501. void (JNICALL *ReleaseIntArrayElements) (JNIEnv *, jintArray,
  502. jint *, jint);
  503. void (JNICALL *ReleaseLongArrayElements) (JNIEnv *, jlongArray,
  504. jlong *, jint);
  505. void (JNICALL *ReleaseFloatArrayElements) (JNIEnv *, jfloatArray,
  506. jfloat *, jint);
  507. void (JNICALL *ReleaseDoubleArrayElements) (JNIEnv *, jdoubleArray,
  508. jdouble *, jint);
  509. void (JNICALL *GetBooleanArrayRegion) (JNIEnv *, jbooleanArray,
  510. jsize, jsize, jboolean *);
  511. void (JNICALL *GetByteArrayRegion) (JNIEnv *, jbyteArray,
  512. jsize, jsize, jbyte *);
  513. void (JNICALL *GetCharArrayRegion) (JNIEnv *, jcharArray,
  514. jsize, jsize, jchar *);
  515. void (JNICALL *GetShortArrayRegion) (JNIEnv *, jshortArray,
  516. jsize, jsize, jshort *);
  517. void (JNICALL *GetIntArrayRegion) (JNIEnv *, jintArray,
  518. jsize, jsize, jint *);
  519. void (JNICALL *GetLongArrayRegion) (JNIEnv *, jlongArray,
  520. jsize, jsize, jlong *);
  521. void (JNICALL *GetFloatArrayRegion) (JNIEnv *, jfloatArray,
  522. jsize, jsize, jfloat *);
  523. void (JNICALL *GetDoubleArrayRegion) (JNIEnv *, jdoubleArray,
  524. jsize, jsize, jdouble *);
  525. void (JNICALL *SetBooleanArrayRegion) (JNIEnv *, jbooleanArray,
  526. jsize, jsize,
  527. const jboolean *);
  528. void (JNICALL *SetByteArrayRegion) (JNIEnv *, jbyteArray,
  529. jsize, jsize,
  530. const jbyte *);
  531. void (JNICALL *SetCharArrayRegion) (JNIEnv *, jcharArray,
  532. jsize, jsize,
  533. const jchar *);
  534. void (JNICALL *SetShortArrayRegion) (JNIEnv *, jshortArray,
  535. jsize, jsize,
  536. const jshort *);
  537. void (JNICALL *SetIntArrayRegion) (JNIEnv *, jintArray,
  538. jsize, jsize,
  539. const jint *);
  540. void (JNICALL *SetLongArrayRegion) (JNIEnv *, jlongArray,
  541. jsize, jsize,
  542. const jlong *);
  543. void (JNICALL *SetFloatArrayRegion) (JNIEnv *, jfloatArray,
  544. jsize, jsize,
  545. const jfloat *);
  546. void (JNICALL *SetDoubleArrayRegion) (JNIEnv *, jdoubleArray,
  547. jsize, jsize,
  548. const jdouble *);
  549. jint (JNICALL *RegisterNatives) (JNIEnv *, jclass,
  550. const JNINativeMethod *,
  551. jint);
  552. jint (JNICALL *UnregisterNatives) (JNIEnv *, jclass);
  553. jint (JNICALL *MonitorEnter) (JNIEnv *, jobject);
  554. jint (JNICALL *MonitorExit) (JNIEnv *, jobject);
  555. jint (JNICALL *GetJavaVM) (JNIEnv *, JavaVM **);
  556. /* ---- JNI 1.2 functions ---- */
  557. void (JNICALL *GetStringRegion) (JNIEnv *, jstring, jsize,
  558. jsize, jchar *);
  559. void (JNICALL *GetStringUTFRegion) (JNIEnv *, jstring, jsize,
  560. jsize, char *);
  561. void * (JNICALL *GetPrimitiveArrayCritical) (JNIEnv *, jarray,
  562. jboolean *);
  563. void (JNICALL *ReleasePrimitiveArrayCritical) (JNIEnv *, jarray, void *,
  564. jint);
  565. const jchar * (JNICALL *GetStringCritical) (JNIEnv *, jstring,
  566. jboolean *);
  567. void (JNICALL *ReleaseStringCritical) (JNIEnv *, jstring,
  568. const jchar *);
  569. jweak (JNICALL *NewWeakGlobalRef) (JNIEnv *, jobject);
  570. void (JNICALL *DeleteWeakGlobalRef) (JNIEnv *, jweak);
  571. jboolean (JNICALL *ExceptionCheck) (JNIEnv *);
  572. /* ---- JNI 1.4 functions ---- */
  573. jobject (JNICALL *NewDirectByteBuffer) (JNIEnv *, void *, jlong);
  574. void * (JNICALL *GetDirectBufferAddress) (JNIEnv *, jobject);
  575. jlong (JNICALL *GetDirectBufferCapacity) (JNIEnv *, jobject);
  576. /* ---- JNI 1.6 functions ---- */
  577. jobjectRefType (JNICALL *GetObjectRefType) (JNIEnv *, jobject);
  578. };
  579. #ifdef __cplusplus
  580. class _Jv_JNIEnv
  581. {
  582. public:
  583. /* The method table. */
  584. struct JNINativeInterface_ *functions;
  585. #ifdef _CLASSPATH_JNIENV_CONTENTS
  586. _CLASSPATH_JNIENV_CONTENTS
  587. #endif
  588. jint GetVersion ()
  589. { return functions->GetVersion (this); }
  590. jclass DefineClass (const char *name, jobject obj0, const jbyte * val1,
  591. jsize val2)
  592. { return functions->DefineClass (this, name, obj0, val1, val2); }
  593. jclass FindClass (const char * val0)
  594. { return functions->FindClass (this, val0); }
  595. jmethodID FromReflectedMethod (jobject obj0)
  596. { return functions->FromReflectedMethod (this, obj0); }
  597. jfieldID FromReflectedField (jobject obj0)
  598. { return functions->FromReflectedField (this, obj0); }
  599. jobject ToReflectedMethod (jclass cl0, jmethodID meth1, jboolean val2)
  600. { return functions->ToReflectedMethod (this, cl0, meth1, val2); }
  601. jclass GetSuperclass (jclass cl0)
  602. { return functions->GetSuperclass (this, cl0); }
  603. jboolean IsAssignableFrom (jclass cl0, jclass cl1)
  604. { return functions->IsAssignableFrom (this, cl0, cl1); }
  605. jobject ToReflectedField (jclass cl0, jfieldID fld1, jboolean val2)
  606. { return functions->ToReflectedField (this, cl0, fld1, val2); }
  607. jint Throw (jthrowable val0)
  608. { return functions->Throw (this, val0); }
  609. jint ThrowNew (jclass cl0, const char * val1)
  610. { return functions->ThrowNew (this, cl0, val1); }
  611. jthrowable ExceptionOccurred ()
  612. { return functions->ExceptionOccurred (this); }
  613. void ExceptionDescribe ()
  614. { functions->ExceptionDescribe (this); }
  615. void ExceptionClear ()
  616. { functions->ExceptionClear (this); }
  617. void FatalError (const char * val0)
  618. { functions->FatalError (this, val0); }
  619. jint PushLocalFrame (jint val0)
  620. { return functions->PushLocalFrame (this, val0); }
  621. jobject PopLocalFrame (jobject obj0)
  622. { return functions->PopLocalFrame (this, obj0); }
  623. jobject NewGlobalRef (jobject obj0)
  624. { return functions->NewGlobalRef (this, obj0); }
  625. void DeleteGlobalRef (jobject obj0)
  626. { functions->DeleteGlobalRef (this, obj0); }
  627. void DeleteLocalRef (jobject obj0)
  628. { functions->DeleteLocalRef (this, obj0); }
  629. jboolean IsSameObject (jobject obj0, jobject obj1)
  630. { return functions->IsSameObject (this, obj0, obj1); }
  631. jobject NewLocalRef (jobject obj0)
  632. { return functions->NewLocalRef (this, obj0); }
  633. jint EnsureLocalCapacity (jint val0)
  634. { return functions->EnsureLocalCapacity (this, val0); }
  635. jobject AllocObject (jclass cl0)
  636. { return functions->AllocObject (this, cl0); }
  637. jobject NewObject (jclass cl0, jmethodID meth1, ...)
  638. {
  639. va_list args;
  640. va_start (args, meth1);
  641. jobject result = functions->NewObjectV (this, cl0, meth1, args);
  642. va_end (args);
  643. return result;
  644. }
  645. jobject NewObjectV (jclass cl0, jmethodID meth1, va_list val2)
  646. { return functions->NewObjectV (this, cl0, meth1, val2); }
  647. jobject NewObjectA (jclass cl0, jmethodID meth1, jvalue * val2)
  648. { return functions->NewObjectA (this, cl0, meth1, val2); }
  649. jclass GetObjectClass (jobject obj0)
  650. { return functions->GetObjectClass (this, obj0); }
  651. jboolean IsInstanceOf (jobject obj0, jclass cl1)
  652. { return functions->IsInstanceOf (this, obj0, cl1); }
  653. jmethodID GetMethodID (jclass cl0, const char * val1, const char * val2)
  654. { return functions->GetMethodID (this, cl0, val1, val2); }
  655. jobject CallObjectMethod (jobject obj0, jmethodID meth1, ...)
  656. {
  657. va_list args;
  658. va_start (args, meth1);
  659. jobject result = functions->CallObjectMethodV (this, obj0, meth1, args);
  660. va_end (args);
  661. return result;
  662. }
  663. jobject CallObjectMethodV (jobject obj0, jmethodID meth1, va_list val2)
  664. { return functions->CallObjectMethodV (this, obj0, meth1, val2); }
  665. jobject CallObjectMethodA (jobject obj0, jmethodID meth1, jvalue * val2)
  666. { return functions->CallObjectMethodA (this, obj0, meth1, val2); }
  667. jboolean CallBooleanMethod (jobject obj0, jmethodID meth1, ...)
  668. {
  669. va_list args;
  670. va_start (args, meth1);
  671. jboolean result = functions->CallBooleanMethodV (this, obj0, meth1, args);
  672. va_end (args);
  673. return result;
  674. }
  675. jboolean CallBooleanMethodV (jobject obj0, jmethodID meth1, va_list val2)
  676. { return functions->CallBooleanMethodV (this, obj0, meth1, val2); }
  677. jboolean CallBooleanMethodA (jobject obj0, jmethodID meth1,
  678. const jvalue * val2)
  679. { return functions->CallBooleanMethodA (this, obj0, meth1, val2); }
  680. jbyte CallByteMethod (jobject obj0, jmethodID meth1, ...)
  681. {
  682. va_list args;
  683. va_start (args, meth1);
  684. jbyte result = functions->CallByteMethodV (this, obj0, meth1, args);
  685. va_end (args);
  686. return result;
  687. }
  688. jbyte CallByteMethodV (jobject obj0, jmethodID meth1, va_list val2)
  689. { return functions->CallByteMethodV (this, obj0, meth1, val2); }
  690. jbyte CallByteMethodA (jobject obj0, jmethodID meth1, const jvalue * val2)
  691. { return functions->CallByteMethodA (this, obj0, meth1, val2); }
  692. jchar CallCharMethod (jobject obj0, jmethodID meth1, ...)
  693. {
  694. va_list args;
  695. va_start (args, meth1);
  696. jchar result = functions->CallCharMethodV (this, obj0, meth1, args);
  697. va_end (args);
  698. return result;
  699. }
  700. jchar CallCharMethodV (jobject obj0, jmethodID meth1, va_list val2)
  701. { return functions->CallCharMethodV (this, obj0, meth1, val2); }
  702. jchar CallCharMethodA (jobject obj0, jmethodID meth1, const jvalue * val2)
  703. { return functions->CallCharMethodA (this, obj0, meth1, val2); }
  704. jshort CallShortMethod (jobject obj0, jmethodID meth1, ...)
  705. {
  706. va_list args;
  707. va_start (args, meth1);
  708. jshort result = functions->CallShortMethodV (this, obj0, meth1, args);
  709. va_end (args);
  710. return result;
  711. }
  712. jshort CallShortMethodV (jobject obj0, jmethodID meth1, va_list val2)
  713. { return functions->CallShortMethodV (this, obj0, meth1, val2); }
  714. jshort CallShortMethodA (jobject obj0, jmethodID meth1, const jvalue * val2)
  715. { return functions->CallShortMethodA (this, obj0, meth1, val2); }
  716. jint CallIntMethod (jobject obj0, jmethodID meth1, ...)
  717. {
  718. va_list args;
  719. va_start (args, meth1);
  720. jint result = functions->CallIntMethodV (this, obj0, meth1, args);
  721. va_end (args);
  722. return result;
  723. }
  724. jint CallIntMethodV (jobject obj0, jmethodID meth1, va_list val2)
  725. { return functions->CallIntMethodV (this, obj0, meth1, val2); }
  726. jint CallIntMethodA (jobject obj0, jmethodID meth1, jvalue * val2)
  727. { return functions->CallIntMethodA (this, obj0, meth1, val2); }
  728. jlong CallLongMethod (jobject obj0, jmethodID meth1, ...)
  729. {
  730. va_list args;
  731. va_start (args, meth1);
  732. jlong result = functions->CallLongMethodV (this, obj0, meth1, args);
  733. va_end (args);
  734. return result;
  735. }
  736. jlong CallLongMethodV (jobject obj0, jmethodID meth1, va_list val2)
  737. { return functions->CallLongMethodV (this, obj0, meth1, val2); }
  738. jlong CallLongMethodA (jobject obj0, jmethodID meth1, const jvalue * val2)
  739. { return functions->CallLongMethodA (this, obj0, meth1, val2); }
  740. jfloat CallFloatMethod (jobject obj0, jmethodID meth1, ...)
  741. {
  742. va_list args;
  743. va_start (args, meth1);
  744. jfloat result = functions->CallFloatMethodV (this, obj0, meth1, args);
  745. va_end (args);
  746. return result;
  747. }
  748. jfloat CallFloatMethodV (jobject obj0, jmethodID meth1, va_list val2)
  749. { return functions->CallFloatMethodV (this, obj0, meth1, val2); }
  750. jfloat CallFloatMethodA (jobject obj0, jmethodID meth1, const jvalue * val2)
  751. { return functions->CallFloatMethodA (this, obj0, meth1, val2); }
  752. jdouble CallDoubleMethod (jobject obj0, jmethodID meth1, ...)
  753. {
  754. va_list args;
  755. va_start (args, meth1);
  756. jdouble result = functions->CallDoubleMethodV (this, obj0, meth1, args);
  757. va_end (args);
  758. return result;
  759. }
  760. jdouble CallDoubleMethodV (jobject obj0, jmethodID meth1, va_list val2)
  761. { return functions->CallDoubleMethodV (this, obj0, meth1, val2); }
  762. jdouble CallDoubleMethodA (jobject obj0, jmethodID meth1, const jvalue * val2)
  763. { return functions->CallDoubleMethodA (this, obj0, meth1, val2); }
  764. void CallVoidMethod (jobject obj0, jmethodID meth1, ...)
  765. {
  766. va_list args;
  767. va_start (args, meth1);
  768. functions->CallVoidMethodV (this, obj0, meth1, args);
  769. va_end (args);
  770. }
  771. void CallVoidMethodV (jobject obj0, jmethodID meth1, va_list val2)
  772. { functions->CallVoidMethodV (this, obj0, meth1, val2); }
  773. void CallVoidMethodA (jobject obj0, jmethodID meth1, const jvalue * val2)
  774. { functions->CallVoidMethodA (this, obj0, meth1, val2); }
  775. jobject CallNonvirtualObjectMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  776. {
  777. va_list args;
  778. va_start (args, meth2);
  779. jobject result = functions->CallNonvirtualObjectMethodV (this, obj0, cl1, meth2, args);
  780. va_end (args);
  781. return result;
  782. }
  783. jobject CallNonvirtualObjectMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  784. { return functions->CallNonvirtualObjectMethodV (this, obj0, cl1, meth2, val3); }
  785. jobject CallNonvirtualObjectMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  786. { return functions->CallNonvirtualObjectMethodA (this, obj0, cl1, meth2, val3); }
  787. jboolean CallNonvirtualBooleanMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  788. {
  789. va_list args;
  790. va_start (args, meth2);
  791. jboolean result = functions->CallNonvirtualBooleanMethodV (this, obj0, cl1, meth2, args);
  792. va_end (args);
  793. return result;
  794. }
  795. jboolean CallNonvirtualBooleanMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  796. { return functions->CallNonvirtualBooleanMethodV (this, obj0, cl1, meth2, val3); }
  797. jboolean CallNonvirtualBooleanMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  798. { return functions->CallNonvirtualBooleanMethodA (this, obj0, cl1, meth2, val3); }
  799. jbyte CallNonvirtualByteMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  800. {
  801. va_list args;
  802. va_start (args, meth2);
  803. jbyte result = functions->CallNonvirtualByteMethodV (this, obj0, cl1, meth2, args);
  804. va_end (args);
  805. return result;
  806. }
  807. jbyte CallNonvirtualByteMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  808. { return functions->CallNonvirtualByteMethodV (this, obj0, cl1, meth2, val3); }
  809. jbyte CallNonvirtualByteMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  810. { return functions->CallNonvirtualByteMethodA (this, obj0, cl1, meth2, val3); }
  811. jchar CallNonvirtualCharMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  812. {
  813. va_list args;
  814. va_start (args, meth2);
  815. jchar result = functions->CallNonvirtualCharMethodV (this, obj0, cl1, meth2, args);
  816. va_end (args);
  817. return result;
  818. }
  819. jchar CallNonvirtualCharMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  820. { return functions->CallNonvirtualCharMethodV (this, obj0, cl1, meth2, val3); }
  821. jchar CallNonvirtualCharMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  822. { return functions->CallNonvirtualCharMethodA (this, obj0, cl1, meth2, val3); }
  823. jshort CallNonvirtualShortMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  824. {
  825. va_list args;
  826. va_start (args, meth2);
  827. jshort result = functions->CallNonvirtualShortMethodV (this, obj0, cl1, meth2, args);
  828. va_end (args);
  829. return result;
  830. }
  831. jshort CallNonvirtualShortMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  832. { return functions->CallNonvirtualShortMethodV (this, obj0, cl1, meth2, val3); }
  833. jshort CallNonvirtualShortMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  834. { return functions->CallNonvirtualShortMethodA (this, obj0, cl1, meth2, val3); }
  835. jint CallNonvirtualIntMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  836. {
  837. va_list args;
  838. va_start (args, meth2);
  839. jint result = functions->CallNonvirtualIntMethodV (this, obj0, cl1, meth2, args);
  840. va_end (args);
  841. return result;
  842. }
  843. jint CallNonvirtualIntMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  844. { return functions->CallNonvirtualIntMethodV (this, obj0, cl1, meth2, val3); }
  845. jint CallNonvirtualIntMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  846. { return functions->CallNonvirtualIntMethodA (this, obj0, cl1, meth2, val3); }
  847. jlong CallNonvirtualLongMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  848. {
  849. va_list args;
  850. va_start (args, meth2);
  851. jlong result = functions->CallNonvirtualLongMethodV (this, obj0, cl1, meth2, args);
  852. va_end (args);
  853. return result;
  854. }
  855. jlong CallNonvirtualLongMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  856. { return functions->CallNonvirtualLongMethodV (this, obj0, cl1, meth2, val3); }
  857. jlong CallNonvirtualLongMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  858. { return functions->CallNonvirtualLongMethodA (this, obj0, cl1, meth2, val3); }
  859. jfloat CallNonvirtualFloatMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  860. {
  861. va_list args;
  862. va_start (args, meth2);
  863. jfloat result = functions->CallNonvirtualFloatMethodV (this, obj0, cl1, meth2, args);
  864. va_end (args);
  865. return result;
  866. }
  867. jfloat CallNonvirtualFloatMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  868. { return functions->CallNonvirtualFloatMethodV (this, obj0, cl1, meth2, val3); }
  869. jfloat CallNonvirtualFloatMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  870. { return functions->CallNonvirtualFloatMethodA (this, obj0, cl1, meth2, val3); }
  871. jdouble CallNonvirtualDoubleMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  872. {
  873. va_list args;
  874. va_start (args, meth2);
  875. jdouble result = functions->CallNonvirtualDoubleMethodV (this, obj0, cl1, meth2, args);
  876. va_end (args);
  877. return result;
  878. }
  879. jdouble CallNonvirtualDoubleMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  880. { return functions->CallNonvirtualDoubleMethodV (this, obj0, cl1, meth2, val3); }
  881. jdouble CallNonvirtualDoubleMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  882. { return functions->CallNonvirtualDoubleMethodA (this, obj0, cl1, meth2, val3); }
  883. void CallNonvirtualVoidMethod (jobject obj0, jclass cl1, jmethodID meth2, ...)
  884. {
  885. va_list args;
  886. va_start (args, meth2);
  887. functions->CallNonvirtualVoidMethodV (this, obj0, cl1, meth2, args);
  888. va_end (args);
  889. }
  890. void CallNonvirtualVoidMethodV (jobject obj0, jclass cl1, jmethodID meth2, va_list val3)
  891. { functions->CallNonvirtualVoidMethodV (this, obj0, cl1, meth2, val3); }
  892. void CallNonvirtualVoidMethodA (jobject obj0, jclass cl1, jmethodID meth2, const jvalue * val3)
  893. { functions->CallNonvirtualVoidMethodA (this, obj0, cl1, meth2, val3); }
  894. jfieldID GetFieldID (jclass cl0, const char * val1, const char * val2)
  895. { return functions->GetFieldID (this, cl0, val1, val2); }
  896. jobject GetObjectField (jobject obj0, jfieldID fld1)
  897. { return functions->GetObjectField (this, obj0, fld1); }
  898. jboolean GetBooleanField (jobject obj0, jfieldID fld1)
  899. { return functions->GetBooleanField (this, obj0, fld1); }
  900. jbyte GetByteField (jobject obj0, jfieldID fld1)
  901. { return functions->GetByteField (this, obj0, fld1); }
  902. jchar GetCharField (jobject obj0, jfieldID fld1)
  903. { return functions->GetCharField (this, obj0, fld1); }
  904. jshort GetShortField (jobject obj0, jfieldID fld1)
  905. { return functions->GetShortField (this, obj0, fld1); }
  906. jint GetIntField (jobject obj0, jfieldID fld1)
  907. { return functions->GetIntField (this, obj0, fld1); }
  908. jlong GetLongField (jobject obj0, jfieldID fld1)
  909. { return functions->GetLongField (this, obj0, fld1); }
  910. jfloat GetFloatField (jobject obj0, jfieldID fld1)
  911. { return functions->GetFloatField (this, obj0, fld1); }
  912. jdouble GetDoubleField (jobject obj0, jfieldID fld1)
  913. { return functions->GetDoubleField (this, obj0, fld1); }
  914. void SetObjectField (jobject obj0, jfieldID fld1, jobject obj2)
  915. { functions->SetObjectField (this, obj0, fld1, obj2); }
  916. void SetBooleanField (jobject obj0, jfieldID fld1, jboolean val2)
  917. { functions->SetBooleanField (this, obj0, fld1, val2); }
  918. void SetByteField (jobject obj0, jfieldID fld1, jbyte val2)
  919. { functions->SetByteField (this, obj0, fld1, val2); }
  920. void SetCharField (jobject obj0, jfieldID fld1, jchar val2)
  921. { functions->SetCharField (this, obj0, fld1, val2); }
  922. void SetShortField (jobject obj0, jfieldID fld1, jshort val2)
  923. { functions->SetShortField (this, obj0, fld1, val2); }
  924. void SetIntField (jobject obj0, jfieldID fld1, jint val2)
  925. { functions->SetIntField (this, obj0, fld1, val2); }
  926. void SetLongField (jobject obj0, jfieldID fld1, jlong val2)
  927. { functions->SetLongField (this, obj0, fld1, val2); }
  928. void SetFloatField (jobject obj0, jfieldID fld1, jfloat val2)
  929. { functions->SetFloatField (this, obj0, fld1, val2); }
  930. void SetDoubleField (jobject obj0, jfieldID fld1, jdouble val2)
  931. { functions->SetDoubleField (this, obj0, fld1, val2); }
  932. jmethodID GetStaticMethodID (jclass cl0, const char * val1, const char * val2)
  933. { return functions->GetStaticMethodID (this, cl0, val1, val2); }
  934. jobject CallStaticObjectMethod (jclass cl0, jmethodID meth1, ...)
  935. {
  936. va_list args;
  937. va_start (args, meth1);
  938. jobject result = functions->CallStaticObjectMethodV (this, cl0, meth1, args);
  939. va_end (args);
  940. return result;
  941. }
  942. jobject CallStaticObjectMethodV (jclass cl0, jmethodID meth1, va_list val2)
  943. { return functions->CallStaticObjectMethodV (this, cl0, meth1, val2); }
  944. jobject CallStaticObjectMethodA (jclass cl0, jmethodID meth1,
  945. const jvalue * val2)
  946. { return functions->CallStaticObjectMethodA (this, cl0, meth1, val2); }
  947. jboolean CallStaticBooleanMethod (jclass cl0, jmethodID meth1, ...)
  948. {
  949. va_list args;
  950. va_start (args, meth1);
  951. jboolean result = functions->CallStaticBooleanMethodV (this, cl0, meth1, args);
  952. va_end (args);
  953. return result;
  954. }
  955. jboolean CallStaticBooleanMethodV (jclass cl0, jmethodID meth1, va_list val2)
  956. { return functions->CallStaticBooleanMethodV (this, cl0, meth1, val2); }
  957. jboolean CallStaticBooleanMethodA (jclass cl0, jmethodID meth1,
  958. const jvalue * val2)
  959. { return functions->CallStaticBooleanMethodA (this, cl0, meth1, val2); }
  960. jbyte CallStaticByteMethod (jclass cl0, jmethodID meth1, ...)
  961. {
  962. va_list args;
  963. va_start (args, meth1);
  964. jbyte result = functions->CallStaticByteMethodV (this, cl0, meth1, args);
  965. va_end (args);
  966. return result;
  967. }
  968. jbyte CallStaticByteMethodV (jclass cl0, jmethodID meth1, va_list val2)
  969. { return functions->CallStaticByteMethodV (this, cl0, meth1, val2); }
  970. jbyte CallStaticByteMethodA (jclass cl0, jmethodID meth1, const jvalue * val2)
  971. { return functions->CallStaticByteMethodA (this, cl0, meth1, val2); }
  972. jchar CallStaticCharMethod (jclass cl0, jmethodID meth1, ...)
  973. {
  974. va_list args;
  975. va_start (args, meth1);
  976. jchar result = functions->CallStaticCharMethodV (this, cl0, meth1, args);
  977. va_end (args);
  978. return result;
  979. }
  980. jchar CallStaticCharMethodV (jclass cl0, jmethodID meth1, va_list val2)
  981. { return functions->CallStaticCharMethodV (this, cl0, meth1, val2); }
  982. jchar CallStaticCharMethodA (jclass cl0, jmethodID meth1, const jvalue * val2)
  983. { return functions->CallStaticCharMethodA (this, cl0, meth1, val2); }
  984. jshort CallStaticShortMethod (jclass cl0, jmethodID meth1, ...)
  985. {
  986. va_list args;
  987. va_start (args, meth1);
  988. jshort result = functions->CallStaticShortMethodV (this, cl0, meth1, args);
  989. va_end (args);
  990. return result;
  991. }
  992. jshort CallStaticShortMethodV (jclass cl0, jmethodID meth1, va_list val2)
  993. { return functions->CallStaticShortMethodV (this, cl0, meth1, val2); }
  994. jshort CallStaticShortMethodA (jclass cl0, jmethodID meth1,
  995. const jvalue * val2)
  996. { return functions->CallStaticShortMethodA (this, cl0, meth1, val2); }
  997. jint CallStaticIntMethod (jclass cl0, jmethodID meth1, ...)
  998. {
  999. va_list args;
  1000. va_start (args, meth1);
  1001. jint result = functions->CallStaticIntMethodV (this, cl0, meth1, args);
  1002. va_end (args);
  1003. return result;
  1004. }
  1005. jint CallStaticIntMethodV (jclass cl0, jmethodID meth1, va_list val2)
  1006. { return functions->CallStaticIntMethodV (this, cl0, meth1, val2); }
  1007. jint CallStaticIntMethodA (jclass cl0, jmethodID meth1, const jvalue * val2)
  1008. { return functions->CallStaticIntMethodA (this, cl0, meth1, val2); }
  1009. jlong CallStaticLongMethod (jclass cl0, jmethodID meth1, ...)
  1010. {
  1011. va_list args;
  1012. va_start (args, meth1);
  1013. jlong result = functions->CallStaticLongMethodV (this, cl0, meth1, args);
  1014. va_end (args);
  1015. return result;
  1016. }
  1017. jlong CallStaticLongMethodV (jclass cl0, jmethodID meth1, va_list val2)
  1018. { return functions->CallStaticLongMethodV (this, cl0, meth1, val2); }
  1019. jlong CallStaticLongMethodA (jclass cl0, jmethodID meth1, const jvalue * val2)
  1020. { return functions->CallStaticLongMethodA (this, cl0, meth1, val2); }
  1021. jfloat CallStaticFloatMethod (jclass cl0, jmethodID meth1, ...)
  1022. {
  1023. va_list args;
  1024. va_start (args, meth1);
  1025. jfloat result = functions->CallStaticFloatMethodV (this, cl0, meth1, args);
  1026. va_end (args);
  1027. return result;
  1028. }
  1029. jfloat CallStaticFloatMethodV (jclass cl0, jmethodID meth1, va_list val2)
  1030. { return functions->CallStaticFloatMethodV (this, cl0, meth1, val2); }
  1031. jfloat CallStaticFloatMethodA (jclass cl0, jmethodID meth1,
  1032. const jvalue * val2)
  1033. { return functions->CallStaticFloatMethodA (this, cl0, meth1, val2); }
  1034. jdouble CallStaticDoubleMethod (jclass cl0, jmethodID meth1, ...)
  1035. {
  1036. va_list args;
  1037. va_start (args, meth1);
  1038. jdouble result = functions->CallStaticDoubleMethodV (this, cl0, meth1, args);
  1039. va_end (args);
  1040. return result;
  1041. }
  1042. jdouble CallStaticDoubleMethodV (jclass cl0, jmethodID meth1, va_list val2)
  1043. { return functions->CallStaticDoubleMethodV (this, cl0, meth1, val2); }
  1044. jdouble CallStaticDoubleMethodA (jclass cl0, jmethodID meth1,
  1045. const jvalue * val2)
  1046. { return functions->CallStaticDoubleMethodA (this, cl0, meth1, val2); }
  1047. void CallStaticVoidMethod (jclass cl0, jmethodID meth1, ...)
  1048. {
  1049. va_list args;
  1050. va_start (args, meth1);
  1051. functions->CallStaticVoidMethodV (this, cl0, meth1, args);
  1052. va_end (args);
  1053. }
  1054. void CallStaticVoidMethodV (jclass cl0, jmethodID meth1, va_list val2)
  1055. { functions->CallStaticVoidMethodV (this, cl0, meth1, val2); }
  1056. void CallStaticVoidMethodA (jclass cl0, jmethodID meth1, const jvalue * val2)
  1057. { functions->CallStaticVoidMethodA (this, cl0, meth1, val2); }
  1058. jfieldID GetStaticFieldID (jclass cl0, const char * val1, const char * val2)
  1059. { return functions->GetStaticFieldID (this, cl0, val1, val2); }
  1060. jobject GetStaticObjectField (jclass cl0, jfieldID fld1)
  1061. { return functions->GetStaticObjectField (this, cl0, fld1); }
  1062. jboolean GetStaticBooleanField (jclass cl0, jfieldID fld1)
  1063. { return functions->GetStaticBooleanField (this, cl0, fld1); }
  1064. jbyte GetStaticByteField (jclass cl0, jfieldID fld1)
  1065. { return functions->GetStaticByteField (this, cl0, fld1); }
  1066. jchar GetStaticCharField (jclass cl0, jfieldID fld1)
  1067. { return functions->GetStaticCharField (this, cl0, fld1); }
  1068. jshort GetStaticShortField (jclass cl0, jfieldID fld1)
  1069. { return functions->GetStaticShortField (this, cl0, fld1); }
  1070. jint GetStaticIntField (jclass cl0, jfieldID fld1)
  1071. { return functions->GetStaticIntField (this, cl0, fld1); }
  1072. jlong GetStaticLongField (jclass cl0, jfieldID fld1)
  1073. { return functions->GetStaticLongField (this, cl0, fld1); }
  1074. jfloat GetStaticFloatField (jclass cl0, jfieldID fld1)
  1075. { return functions->GetStaticFloatField (this, cl0, fld1); }
  1076. jdouble GetStaticDoubleField (jclass cl0, jfieldID fld1)
  1077. { return functions->GetStaticDoubleField (this, cl0, fld1); }
  1078. void SetStaticObjectField (jclass cl0, jfieldID fld1, jobject obj2)
  1079. { functions->SetStaticObjectField (this, cl0, fld1, obj2); }
  1080. void SetStaticBooleanField (jclass cl0, jfieldID fld1, jboolean val2)
  1081. { functions->SetStaticBooleanField (this, cl0, fld1, val2); }
  1082. void SetStaticByteField (jclass cl0, jfieldID fld1, jbyte val2)
  1083. { functions->SetStaticByteField (this, cl0, fld1, val2); }
  1084. void SetStaticCharField (jclass cl0, jfieldID fld1, jchar val2)
  1085. { functions->SetStaticCharField (this, cl0, fld1, val2); }
  1086. void SetStaticShortField (jclass cl0, jfieldID fld1, jshort val2)
  1087. { functions->SetStaticShortField (this, cl0, fld1, val2); }
  1088. void SetStaticIntField (jclass cl0, jfieldID fld1, jint val2)
  1089. { functions->SetStaticIntField (this, cl0, fld1, val2); }
  1090. void SetStaticLongField (jclass cl0, jfieldID fld1, jlong val2)
  1091. { functions->SetStaticLongField (this, cl0, fld1, val2); }
  1092. void SetStaticFloatField (jclass cl0, jfieldID fld1, jfloat val2)
  1093. { functions->SetStaticFloatField (this, cl0, fld1, val2); }
  1094. void SetStaticDoubleField (jclass cl0, jfieldID fld1, jdouble val2)
  1095. { functions->SetStaticDoubleField (this, cl0, fld1, val2); }
  1096. jstring NewString (const jchar * val0, jsize val1)
  1097. { return functions->NewString (this, val0, val1); }
  1098. jint GetStringLength (jstring val0)
  1099. { return functions->GetStringLength (this, val0); }
  1100. const jchar * GetStringChars (jstring val0, jboolean * val1)
  1101. { return functions->GetStringChars (this, val0, val1); }
  1102. void ReleaseStringChars (jstring val0, const jchar * val1)
  1103. { functions->ReleaseStringChars (this, val0, val1); }
  1104. jstring NewStringUTF (const char * val0)
  1105. { return functions->NewStringUTF (this, val0); }
  1106. jsize GetStringUTFLength (jstring val0)
  1107. { return functions->GetStringUTFLength (this, val0); }
  1108. const char * GetStringUTFChars (jstring val0, jboolean * val1)
  1109. { return functions->GetStringUTFChars (this, val0, val1); }
  1110. void ReleaseStringUTFChars (jstring val0, const char * val1)
  1111. { functions->ReleaseStringUTFChars (this, val0, val1); }
  1112. jsize GetArrayLength (jarray val0)
  1113. { return functions->GetArrayLength (this, val0); }
  1114. jobjectArray NewObjectArray (jsize val0, jclass cl1, jobject obj2)
  1115. { return functions->NewObjectArray (this, val0, cl1, obj2); }
  1116. jobject GetObjectArrayElement (jobjectArray val0, jsize val1)
  1117. { return functions->GetObjectArrayElement (this, val0, val1); }
  1118. void SetObjectArrayElement (jobjectArray val0, jsize val1, jobject obj2)
  1119. { functions->SetObjectArrayElement (this, val0, val1, obj2); }
  1120. jbooleanArray NewBooleanArray (jsize val0)
  1121. { return functions->NewBooleanArray (this, val0); }
  1122. jbyteArray NewByteArray (jsize val0)
  1123. { return functions->NewByteArray (this, val0); }
  1124. jcharArray NewCharArray (jsize val0)
  1125. { return functions->NewCharArray (this, val0); }
  1126. jshortArray NewShortArray (jsize val0)
  1127. { return functions->NewShortArray (this, val0); }
  1128. jintArray NewIntArray (jsize val0)
  1129. { return functions->NewIntArray (this, val0); }
  1130. jlongArray NewLongArray (jsize val0)
  1131. { return functions->NewLongArray (this, val0); }
  1132. jfloatArray NewFloatArray (jsize val0)
  1133. { return functions->NewFloatArray (this, val0); }
  1134. jdoubleArray NewDoubleArray (jsize val0)
  1135. { return functions->NewDoubleArray (this, val0); }
  1136. jboolean * GetBooleanArrayElements (jbooleanArray val0, jboolean * val1)
  1137. { return functions->GetBooleanArrayElements (this, val0, val1); }
  1138. jbyte * GetByteArrayElements (jbyteArray val0, jboolean * val1)
  1139. { return functions->GetByteArrayElements (this, val0, val1); }
  1140. jchar * GetCharArrayElements (jcharArray val0, jboolean * val1)
  1141. { return functions->GetCharArrayElements (this, val0, val1); }
  1142. jshort * GetShortArrayElements (jshortArray val0, jboolean * val1)
  1143. { return functions->GetShortArrayElements (this, val0, val1); }
  1144. jint * GetIntArrayElements (jintArray val0, jboolean * val1)
  1145. { return functions->GetIntArrayElements (this, val0, val1); }
  1146. jlong * GetLongArrayElements (jlongArray val0, jboolean * val1)
  1147. { return functions->GetLongArrayElements (this, val0, val1); }
  1148. jfloat * GetFloatArrayElements (jfloatArray val0, jboolean * val1)
  1149. { return functions->GetFloatArrayElements (this, val0, val1); }
  1150. jdouble * GetDoubleArrayElements (jdoubleArray val0, jboolean * val1)
  1151. { return functions->GetDoubleArrayElements (this, val0, val1); }
  1152. void ReleaseBooleanArrayElements (jbooleanArray val0, jboolean * val1, jint val2)
  1153. { functions->ReleaseBooleanArrayElements (this, val0, val1, val2); }
  1154. void ReleaseByteArrayElements (jbyteArray val0, jbyte * val1, jint val2)
  1155. { functions->ReleaseByteArrayElements (this, val0, val1, val2); }
  1156. void ReleaseCharArrayElements (jcharArray val0, jchar * val1, jint val2)
  1157. { functions->ReleaseCharArrayElements (this, val0, val1, val2); }
  1158. void ReleaseShortArrayElements (jshortArray val0, jshort * val1, jint val2)
  1159. { functions->ReleaseShortArrayElements (this, val0, val1, val2); }
  1160. void ReleaseIntArrayElements (jintArray val0, jint * val1, jint val2)
  1161. { functions->ReleaseIntArrayElements (this, val0, val1, val2); }
  1162. void ReleaseLongArrayElements (jlongArray val0, jlong * val1, jint val2)
  1163. { functions->ReleaseLongArrayElements (this, val0, val1, val2); }
  1164. void ReleaseFloatArrayElements (jfloatArray val0, jfloat * val1, jint val2)
  1165. { functions->ReleaseFloatArrayElements (this, val0, val1, val2); }
  1166. void ReleaseDoubleArrayElements (jdoubleArray val0, jdouble * val1, jint val2)
  1167. { functions->ReleaseDoubleArrayElements (this, val0, val1, val2); }
  1168. void GetBooleanArrayRegion (jbooleanArray val0, jsize val1, jsize val2, jboolean * val3)
  1169. { functions->GetBooleanArrayRegion (this, val0, val1, val2, val3); }
  1170. void GetByteArrayRegion (jbyteArray val0, jsize val1, jsize val2, jbyte * val3)
  1171. { functions->GetByteArrayRegion (this, val0, val1, val2, val3); }
  1172. void GetCharArrayRegion (jcharArray val0, jsize val1, jsize val2, jchar * val3)
  1173. { functions->GetCharArrayRegion (this, val0, val1, val2, val3); }
  1174. void GetShortArrayRegion (jshortArray val0, jsize val1, jsize val2, jshort * val3)
  1175. { functions->GetShortArrayRegion (this, val0, val1, val2, val3); }
  1176. void GetIntArrayRegion (jintArray val0, jsize val1, jsize val2, jint * val3)
  1177. { functions->GetIntArrayRegion (this, val0, val1, val2, val3); }
  1178. void GetLongArrayRegion (jlongArray val0, jsize val1, jsize val2, jlong * val3)
  1179. { functions->GetLongArrayRegion (this, val0, val1, val2, val3); }
  1180. void GetFloatArrayRegion (jfloatArray val0, jsize val1, jsize val2, jfloat * val3)
  1181. { functions->GetFloatArrayRegion (this, val0, val1, val2, val3); }
  1182. void GetDoubleArrayRegion (jdoubleArray val0, jsize val1, jsize val2, jdouble * val3)
  1183. { functions->GetDoubleArrayRegion (this, val0, val1, val2, val3); }
  1184. void SetBooleanArrayRegion (jbooleanArray val0, jsize val1, jsize val2, jboolean * val3)
  1185. { functions->SetBooleanArrayRegion (this, val0, val1, val2, val3); }
  1186. void SetByteArrayRegion (jbyteArray val0, jsize val1, jsize val2, jbyte * val3)
  1187. { functions->SetByteArrayRegion (this, val0, val1, val2, val3); }
  1188. void SetCharArrayRegion (jcharArray val0, jsize val1, jsize val2, jchar * val3)
  1189. { functions->SetCharArrayRegion (this, val0, val1, val2, val3); }
  1190. void SetShortArrayRegion (jshortArray val0, jsize val1, jsize val2, jshort * val3)
  1191. { functions->SetShortArrayRegion (this, val0, val1, val2, val3); }
  1192. void SetIntArrayRegion (jintArray val0, jsize val1, jsize val2, jint * val3)
  1193. { functions->SetIntArrayRegion (this, val0, val1, val2, val3); }
  1194. void SetLongArrayRegion (jlongArray val0, jsize val1, jsize val2, jlong * val3)
  1195. { functions->SetLongArrayRegion (this, val0, val1, val2, val3); }
  1196. void SetFloatArrayRegion (jfloatArray val0, jsize val1, jsize val2, jfloat * val3)
  1197. { functions->SetFloatArrayRegion (this, val0, val1, val2, val3); }
  1198. void SetDoubleArrayRegion (jdoubleArray val0, jsize val1, jsize val2, jdouble * val3)
  1199. { functions->SetDoubleArrayRegion (this, val0, val1, val2, val3); }
  1200. jint RegisterNatives (jclass cl0, const JNINativeMethod * val1, jint val2)
  1201. { return functions->RegisterNatives (this, cl0, val1, val2); }
  1202. jint UnregisterNatives (jclass cl0)
  1203. { return functions->UnregisterNatives (this, cl0); }
  1204. jint MonitorEnter (jobject obj0)
  1205. { return functions->MonitorEnter (this, obj0); }
  1206. jint MonitorExit (jobject obj0)
  1207. { return functions->MonitorExit (this, obj0); }
  1208. jint GetJavaVM (JavaVM ** val0)
  1209. { return functions->GetJavaVM (this, val0); }
  1210. /* ---- JNI 1.2 functions ---- */
  1211. void GetStringRegion (jstring val0, jsize val1, jsize val2, jchar * val3)
  1212. { functions->GetStringRegion (this, val0, val1, val2, val3); }
  1213. void GetStringUTFRegion (jstring val0, jsize val1, jsize val2, char * val3)
  1214. { functions->GetStringUTFRegion (this, val0, val1, val2, val3); }
  1215. void * GetPrimitiveArrayCritical (jarray val0, jboolean * val1)
  1216. { return functions->GetPrimitiveArrayCritical (this, val0, val1); }
  1217. void ReleasePrimitiveArrayCritical (jarray val0, void * val1, jint val2)
  1218. { functions->ReleasePrimitiveArrayCritical (this, val0, val1, val2); }
  1219. const jchar * GetStringCritical (jstring val0, jboolean * val1)
  1220. { return functions->GetStringCritical (this, val0, val1); }
  1221. void ReleaseStringCritical (jstring val0, const jchar * val1)
  1222. { functions->ReleaseStringCritical (this, val0, val1); }
  1223. jweak NewWeakGlobalRef (jobject obj0)
  1224. { return functions->NewWeakGlobalRef (this, obj0); }
  1225. void DeleteWeakGlobalRef (jweak val0)
  1226. { functions->DeleteWeakGlobalRef (this, val0); }
  1227. jboolean ExceptionCheck ()
  1228. { return functions->ExceptionCheck (this); }
  1229. /* ---- JNI 1.4 functions ---- */
  1230. jobject NewDirectByteBuffer (void *addr, jlong capacity)
  1231. { return functions->NewDirectByteBuffer (this, addr, capacity); }
  1232. void *GetDirectBufferAddress (jobject buf)
  1233. { return functions->GetDirectBufferAddress (this, buf); }
  1234. jlong GetDirectBufferCapacity (jobject buf)
  1235. { return functions->GetDirectBufferCapacity (this, buf); }
  1236. /* ---- JNI 1.6 functions ---- */
  1237. jobjectRefType GetObjectRefType (jobject obj)
  1238. { return functions->GetObjectRefType (this, obj); }
  1239. };
  1240. #endif /* __cplusplus */
  1241. /*
  1242. * Invocation API.
  1243. */
  1244. struct JNIInvokeInterface_
  1245. {
  1246. void *reserved0;
  1247. void *reserved1;
  1248. void *reserved2;
  1249. jint (JNICALL *DestroyJavaVM) (JavaVM *);
  1250. jint (JNICALL *AttachCurrentThread) (JavaVM *, void **, void *);
  1251. jint (JNICALL *DetachCurrentThread) (JavaVM *);
  1252. jint (JNICALL *GetEnv) (JavaVM *, void **, jint);
  1253. jint (JNICALL *AttachCurrentThreadAsDaemon) (JavaVM *, void **, void *);
  1254. };
  1255. #ifdef __cplusplus
  1256. class _Jv_JavaVM
  1257. {
  1258. public:
  1259. const struct JNIInvokeInterface_ *functions;
  1260. jint DestroyJavaVM ()
  1261. { return functions->DestroyJavaVM (this); }
  1262. jint AttachCurrentThread (void **penv, void *args)
  1263. { return functions->AttachCurrentThread (this, penv, args); }
  1264. jint DetachCurrentThread ()
  1265. { return functions->DetachCurrentThread (this); }
  1266. jint GetEnv (void **penv, jint version)
  1267. { return functions->GetEnv (this, penv, version); }
  1268. jint AttachCurrentThreadAsDaemon (void **penv, void *args)
  1269. { return functions->AttachCurrentThreadAsDaemon (this, penv, args); }
  1270. };
  1271. #endif /* __cplusplus */
  1272. typedef struct JavaVMAttachArgs
  1273. {
  1274. jint version; /* Must be JNI_VERSION_1_2. */
  1275. char *name; /* The name of the thread (or NULL). */
  1276. jobject group; /* Global ref of a ThreadGroup object
  1277. (or NULL). */
  1278. } JavaVMAttachArgs;
  1279. typedef struct JavaVMOption
  1280. {
  1281. char *optionString;
  1282. void *extraInfo;
  1283. } JavaVMOption;
  1284. typedef struct JavaVMInitArgs
  1285. {
  1286. /* Must be JNI_VERSION_1_2. */
  1287. jint version;
  1288. /* Number of options. */
  1289. jint nOptions;
  1290. /* Options to the VM. */
  1291. JavaVMOption *options;
  1292. /* Whether we should ignore unrecognized options. */
  1293. jboolean ignoreUnrecognized;
  1294. } JavaVMInitArgs;
  1295. typedef struct JDK1_1InitArgs
  1296. {
  1297. /* VM version. Should be JNI_VERSION_1_1. Note that before JDK
  1298. 1.1.2, this field was named 'reserved0'. (I don't know what the
  1299. current 'reserved0' field was named then.) */
  1300. jint version;
  1301. /* A null-terminated array of environment strings, each of the form
  1302. "KEY=VALUE". This is used to set system properties. Note that
  1303. before JDK 1.1.2, this field was named 'reserved1'. */
  1304. char **properties;
  1305. jint checkSource;
  1306. jint nativeStackSize;
  1307. jint javaStackSize;
  1308. jint minHeapSize;
  1309. jint maxHeapSize;
  1310. jint verifyMode;
  1311. const char *classpath;
  1312. jint (JNICALL *vfprintf) (FILE *file, const char *fmt, va_list args);
  1313. void (JNICALL *exit) (jint value);
  1314. void (JNICALL *abort) (void);
  1315. jint enableClassGC;
  1316. jint enableVerboseGC;
  1317. jint disableAsyncGC;
  1318. jint reserved0;
  1319. jint reserved1;
  1320. jint reserved2;
  1321. } JDK1_1InitArgs;
  1322. typedef struct JDK1_1AttachArgs
  1323. {
  1324. /* Dummy field since C cannot have empty structs. The name and type
  1325. are chosen to comply with the spec. */
  1326. void *__padding;
  1327. } JDK1_1AttachArgs;
  1328. /* Keep c-font-lock-extra-types in alphabetical order. */
  1329. /*
  1330. Local Variables:
  1331. c-font-lock-extra-types: ("\\sw+_t" \
  1332. "JNIEnv" "JNINativeMethod" "JavaVM" "JavaVMOption" "jarray" \
  1333. "jboolean" "jbooleanArray" "jbyte" "jbyteArray" "jchar" "jcharArray" \
  1334. "jclass" "jdouble" "jdoubleArray" "jfieldID" "jfloat" "jfloatArray" \
  1335. "jint" "jintArray" "jlong" "jlongArray" "jmethodID" "jobject" \
  1336. "jstring" "jthrowable" "jvalue" "jweak")
  1337. End:
  1338. */
  1339. #endif /* _CLASSPATH_JNI_H */