OLD | NEW |
| (Empty) |
1 Index: chrome/test/chromedriver/third_party/jni/jni.h | |
2 diff --git a/chrome/test/chromedriver/third_party/jni/jni.h b/chrome/test/chrome
driver/third_party/jni/jni.h | |
3 index 495902c..2c44f07 100644 | |
4 --- a/chrome/test/chromedriver/third_party/jni/jni.h | |
5 +++ b/chrome/test/chromedriver/third_party/jni/jni.h | |
6 @@ -26,6 +26,16 @@ | |
7 | |
8 #include <stdarg.h> | |
9 | |
10 +#ifdef _WIN32 | |
11 +#define JNIIMPORT __declspec(dllimport) | |
12 +#define JNIEXPORT __declspec(dllexport) | |
13 +#define JNICALL __stdcall | |
14 +#else | |
15 +#define JNIIMPORT | |
16 +#define JNIEXPORT __attribute__ ((visibility ("default"))) | |
17 +#define JNICALL | |
18 +#endif | |
19 + | |
20 /* | |
21 * Primitive types that match up with Java equivalents. | |
22 */ | |
23 @@ -166,333 +176,333 @@ struct JNINativeInterface { | |
24 void* reserved2; | |
25 void* reserved3; | |
26 | |
27 - jint (*GetVersion)(JNIEnv *); | |
28 + jint (JNICALL *GetVersion)(JNIEnv *); | |
29 | |
30 - jclass (*DefineClass)(JNIEnv*, const char*, jobject, const jbyte*, | |
31 + jclass (JNICALL *DefineClass)(JNIEnv*, const char*, jobject, const jby
te*, | |
32 jsize); | |
33 - jclass (*FindClass)(JNIEnv*, const char*); | |
34 + jclass (JNICALL *FindClass)(JNIEnv*, const char*); | |
35 | |
36 - jmethodID (*FromReflectedMethod)(JNIEnv*, jobject); | |
37 - jfieldID (*FromReflectedField)(JNIEnv*, jobject); | |
38 + jmethodID (JNICALL *FromReflectedMethod)(JNIEnv*, jobject); | |
39 + jfieldID (JNICALL *FromReflectedField)(JNIEnv*, jobject); | |
40 /* spec doesn't show jboolean parameter */ | |
41 - jobject (*ToReflectedMethod)(JNIEnv*, jclass, jmethodID, jboolean); | |
42 + jobject (JNICALL *ToReflectedMethod)(JNIEnv*, jclass, jmethodID, jboole
an); | |
43 | |
44 - jclass (*GetSuperclass)(JNIEnv*, jclass); | |
45 - jboolean (*IsAssignableFrom)(JNIEnv*, jclass, jclass); | |
46 + jclass (JNICALL *GetSuperclass)(JNIEnv*, jclass); | |
47 + jboolean (JNICALL *IsAssignableFrom)(JNIEnv*, jclass, jclass); | |
48 | |
49 /* spec doesn't show jboolean parameter */ | |
50 - jobject (*ToReflectedField)(JNIEnv*, jclass, jfieldID, jboolean); | |
51 - | |
52 - jint (*Throw)(JNIEnv*, jthrowable); | |
53 - jint (*ThrowNew)(JNIEnv *, jclass, const char *); | |
54 - jthrowable (*ExceptionOccurred)(JNIEnv*); | |
55 - void (*ExceptionDescribe)(JNIEnv*); | |
56 - void (*ExceptionClear)(JNIEnv*); | |
57 - void (*FatalError)(JNIEnv*, const char*); | |
58 - | |
59 - jint (*PushLocalFrame)(JNIEnv*, jint); | |
60 - jobject (*PopLocalFrame)(JNIEnv*, jobject); | |
61 - | |
62 - jobject (*NewGlobalRef)(JNIEnv*, jobject); | |
63 - void (*DeleteGlobalRef)(JNIEnv*, jobject); | |
64 - void (*DeleteLocalRef)(JNIEnv*, jobject); | |
65 - jboolean (*IsSameObject)(JNIEnv*, jobject, jobject); | |
66 - | |
67 - jobject (*NewLocalRef)(JNIEnv*, jobject); | |
68 - jint (*EnsureLocalCapacity)(JNIEnv*, jint); | |
69 - | |
70 - jobject (*AllocObject)(JNIEnv*, jclass); | |
71 - jobject (*NewObject)(JNIEnv*, jclass, jmethodID, ...); | |
72 - jobject (*NewObjectV)(JNIEnv*, jclass, jmethodID, va_list); | |
73 - jobject (*NewObjectA)(JNIEnv*, jclass, jmethodID, jvalue*); | |
74 - | |
75 - jclass (*GetObjectClass)(JNIEnv*, jobject); | |
76 - jboolean (*IsInstanceOf)(JNIEnv*, jobject, jclass); | |
77 - jmethodID (*GetMethodID)(JNIEnv*, jclass, const char*, const char*); | |
78 - | |
79 - jobject (*CallObjectMethod)(JNIEnv*, jobject, jmethodID, ...); | |
80 - jobject (*CallObjectMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
81 - jobject (*CallObjectMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
82 - jboolean (*CallBooleanMethod)(JNIEnv*, jobject, jmethodID, ...); | |
83 - jboolean (*CallBooleanMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
84 - jboolean (*CallBooleanMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
85 - jbyte (*CallByteMethod)(JNIEnv*, jobject, jmethodID, ...); | |
86 - jbyte (*CallByteMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
87 - jbyte (*CallByteMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
88 - jchar (*CallCharMethod)(JNIEnv*, jobject, jmethodID, ...); | |
89 - jchar (*CallCharMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
90 - jchar (*CallCharMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
91 - jshort (*CallShortMethod)(JNIEnv*, jobject, jmethodID, ...); | |
92 - jshort (*CallShortMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
93 - jshort (*CallShortMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
94 - jint (*CallIntMethod)(JNIEnv*, jobject, jmethodID, ...); | |
95 - jint (*CallIntMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
96 - jint (*CallIntMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
97 - jlong (*CallLongMethod)(JNIEnv*, jobject, jmethodID, ...); | |
98 - jlong (*CallLongMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
99 - jlong (*CallLongMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
100 - jfloat (*CallFloatMethod)(JNIEnv*, jobject, jmethodID, ...); | |
101 - jfloat (*CallFloatMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
102 - jfloat (*CallFloatMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
103 - jdouble (*CallDoubleMethod)(JNIEnv*, jobject, jmethodID, ...); | |
104 - jdouble (*CallDoubleMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
105 - jdouble (*CallDoubleMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
106 - void (*CallVoidMethod)(JNIEnv*, jobject, jmethodID, ...); | |
107 - void (*CallVoidMethodV)(JNIEnv*, jobject, jmethodID, va_list); | |
108 - void (*CallVoidMethodA)(JNIEnv*, jobject, jmethodID, jvalue*); | |
109 - | |
110 - jobject (*CallNonvirtualObjectMethod)(JNIEnv*, jobject, jclass, | |
111 + jobject (JNICALL *ToReflectedField)(JNIEnv*, jclass, jfieldID, jboolean
); | |
112 + | |
113 + jint (JNICALL *Throw)(JNIEnv*, jthrowable); | |
114 + jint (JNICALL *ThrowNew)(JNIEnv *, jclass, const char *); | |
115 + jthrowable (JNICALL *ExceptionOccurred)(JNIEnv*); | |
116 + void (JNICALL *ExceptionDescribe)(JNIEnv*); | |
117 + void (JNICALL *ExceptionClear)(JNIEnv*); | |
118 + void (JNICALL *FatalError)(JNIEnv*, const char*); | |
119 + | |
120 + jint (JNICALL *PushLocalFrame)(JNIEnv*, jint); | |
121 + jobject (JNICALL *PopLocalFrame)(JNIEnv*, jobject); | |
122 + | |
123 + jobject (JNICALL *NewGlobalRef)(JNIEnv*, jobject); | |
124 + void (JNICALL *DeleteGlobalRef)(JNIEnv*, jobject); | |
125 + void (JNICALL *DeleteLocalRef)(JNIEnv*, jobject); | |
126 + jboolean (JNICALL *IsSameObject)(JNIEnv*, jobject, jobject); | |
127 + | |
128 + jobject (JNICALL *NewLocalRef)(JNIEnv*, jobject); | |
129 + jint (JNICALL *EnsureLocalCapacity)(JNIEnv*, jint); | |
130 + | |
131 + jobject (JNICALL *AllocObject)(JNIEnv*, jclass); | |
132 + jobject (JNICALL *NewObject)(JNIEnv*, jclass, jmethodID, ...); | |
133 + jobject (JNICALL *NewObjectV)(JNIEnv*, jclass, jmethodID, va_list); | |
134 + jobject (JNICALL *NewObjectA)(JNIEnv*, jclass, jmethodID, jvalue*); | |
135 + | |
136 + jclass (JNICALL *GetObjectClass)(JNIEnv*, jobject); | |
137 + jboolean (JNICALL *IsInstanceOf)(JNIEnv*, jobject, jclass); | |
138 + jmethodID (JNICALL *GetMethodID)(JNIEnv*, jclass, const char*, const char
*); | |
139 + | |
140 + jobject (JNICALL *CallObjectMethod)(JNIEnv*, jobject, jmethodID, ...); | |
141 + jobject (JNICALL *CallObjectMethodV)(JNIEnv*, jobject, jmethodID, va_li
st); | |
142 + jobject (JNICALL *CallObjectMethodA)(JNIEnv*, jobject, jmethodID, jvalu
e*); | |
143 + jboolean (JNICALL *CallBooleanMethod)(JNIEnv*, jobject, jmethodID, ...); | |
144 + jboolean (JNICALL *CallBooleanMethodV)(JNIEnv*, jobject, jmethodID, va_l
ist); | |
145 + jboolean (JNICALL *CallBooleanMethodA)(JNIEnv*, jobject, jmethodID, jval
ue*); | |
146 + jbyte (JNICALL *CallByteMethod)(JNIEnv*, jobject, jmethodID, ...); | |
147 + jbyte (JNICALL *CallByteMethodV)(JNIEnv*, jobject, jmethodID, va_list
); | |
148 + jbyte (JNICALL *CallByteMethodA)(JNIEnv*, jobject, jmethodID, jvalue*
); | |
149 + jchar (JNICALL *CallCharMethod)(JNIEnv*, jobject, jmethodID, ...); | |
150 + jchar (JNICALL *CallCharMethodV)(JNIEnv*, jobject, jmethodID, va_list
); | |
151 + jchar (JNICALL *CallCharMethodA)(JNIEnv*, jobject, jmethodID, jvalue*
); | |
152 + jshort (JNICALL *CallShortMethod)(JNIEnv*, jobject, jmethodID, ...); | |
153 + jshort (JNICALL *CallShortMethodV)(JNIEnv*, jobject, jmethodID, va_lis
t); | |
154 + jshort (JNICALL *CallShortMethodA)(JNIEnv*, jobject, jmethodID, jvalue
*); | |
155 + jint (JNICALL *CallIntMethod)(JNIEnv*, jobject, jmethodID, ...); | |
156 + jint (JNICALL *CallIntMethodV)(JNIEnv*, jobject, jmethodID, va_list)
; | |
157 + jint (JNICALL *CallIntMethodA)(JNIEnv*, jobject, jmethodID, jvalue*)
; | |
158 + jlong (JNICALL *CallLongMethod)(JNIEnv*, jobject, jmethodID, ...); | |
159 + jlong (JNICALL *CallLongMethodV)(JNIEnv*, jobject, jmethodID, va_list
); | |
160 + jlong (JNICALL *CallLongMethodA)(JNIEnv*, jobject, jmethodID, jvalue*
); | |
161 + jfloat (JNICALL *CallFloatMethod)(JNIEnv*, jobject, jmethodID, ...); | |
162 + jfloat (JNICALL *CallFloatMethodV)(JNIEnv*, jobject, jmethodID, va_lis
t); | |
163 + jfloat (JNICALL *CallFloatMethodA)(JNIEnv*, jobject, jmethodID, jvalue
*); | |
164 + jdouble (JNICALL *CallDoubleMethod)(JNIEnv*, jobject, jmethodID, ...); | |
165 + jdouble (JNICALL *CallDoubleMethodV)(JNIEnv*, jobject, jmethodID, va_li
st); | |
166 + jdouble (JNICALL *CallDoubleMethodA)(JNIEnv*, jobject, jmethodID, jvalu
e*); | |
167 + void (JNICALL *CallVoidMethod)(JNIEnv*, jobject, jmethodID, ...); | |
168 + void (JNICALL *CallVoidMethodV)(JNIEnv*, jobject, jmethodID, va_list
); | |
169 + void (JNICALL *CallVoidMethodA)(JNIEnv*, jobject, jmethodID, jvalue*
); | |
170 + | |
171 + jobject (JNICALL *CallNonvirtualObjectMethod)(JNIEnv*, jobject, jclass, | |
172 jmethodID, ...); | |
173 - jobject (*CallNonvirtualObjectMethodV)(JNIEnv*, jobject, jclass, | |
174 + jobject (JNICALL *CallNonvirtualObjectMethodV)(JNIEnv*, jobject, jclass
, | |
175 jmethodID, va_list); | |
176 - jobject (*CallNonvirtualObjectMethodA)(JNIEnv*, jobject, jclass, | |
177 + jobject (JNICALL *CallNonvirtualObjectMethodA)(JNIEnv*, jobject, jclass
, | |
178 jmethodID, jvalue*); | |
179 - jboolean (*CallNonvirtualBooleanMethod)(JNIEnv*, jobject, jclass, | |
180 + jboolean (JNICALL *CallNonvirtualBooleanMethod)(JNIEnv*, jobject, jclass
, | |
181 jmethodID, ...); | |
182 - jboolean (*CallNonvirtualBooleanMethodV)(JNIEnv*, jobject, jclass, | |
183 + jboolean (JNICALL *CallNonvirtualBooleanMethodV)(JNIEnv*, jobject, jclas
s, | |
184 jmethodID, va_list); | |
185 - jboolean (*CallNonvirtualBooleanMethodA)(JNIEnv*, jobject, jclass, | |
186 + jboolean (JNICALL *CallNonvirtualBooleanMethodA)(JNIEnv*, jobject, jclas
s, | |
187 jmethodID, jvalue*); | |
188 - jbyte (*CallNonvirtualByteMethod)(JNIEnv*, jobject, jclass, | |
189 + jbyte (JNICALL *CallNonvirtualByteMethod)(JNIEnv*, jobject, jclass, | |
190 jmethodID, ...); | |
191 - jbyte (*CallNonvirtualByteMethodV)(JNIEnv*, jobject, jclass, | |
192 + jbyte (JNICALL *CallNonvirtualByteMethodV)(JNIEnv*, jobject, jclass, | |
193 jmethodID, va_list); | |
194 - jbyte (*CallNonvirtualByteMethodA)(JNIEnv*, jobject, jclass, | |
195 + jbyte (JNICALL *CallNonvirtualByteMethodA)(JNIEnv*, jobject, jclass, | |
196 jmethodID, jvalue*); | |
197 - jchar (*CallNonvirtualCharMethod)(JNIEnv*, jobject, jclass, | |
198 + jchar (JNICALL *CallNonvirtualCharMethod)(JNIEnv*, jobject, jclass, | |
199 jmethodID, ...); | |
200 - jchar (*CallNonvirtualCharMethodV)(JNIEnv*, jobject, jclass, | |
201 + jchar (JNICALL *CallNonvirtualCharMethodV)(JNIEnv*, jobject, jclass, | |
202 jmethodID, va_list); | |
203 - jchar (*CallNonvirtualCharMethodA)(JNIEnv*, jobject, jclass, | |
204 + jchar (JNICALL *CallNonvirtualCharMethodA)(JNIEnv*, jobject, jclass, | |
205 jmethodID, jvalue*); | |
206 - jshort (*CallNonvirtualShortMethod)(JNIEnv*, jobject, jclass, | |
207 + jshort (JNICALL *CallNonvirtualShortMethod)(JNIEnv*, jobject, jclass, | |
208 jmethodID, ...); | |
209 - jshort (*CallNonvirtualShortMethodV)(JNIEnv*, jobject, jclass, | |
210 + jshort (JNICALL *CallNonvirtualShortMethodV)(JNIEnv*, jobject, jclass, | |
211 jmethodID, va_list); | |
212 - jshort (*CallNonvirtualShortMethodA)(JNIEnv*, jobject, jclass, | |
213 + jshort (JNICALL *CallNonvirtualShortMethodA)(JNIEnv*, jobject, jclass, | |
214 jmethodID, jvalue*); | |
215 - jint (*CallNonvirtualIntMethod)(JNIEnv*, jobject, jclass, | |
216 + jint (JNICALL *CallNonvirtualIntMethod)(JNIEnv*, jobject, jclass, | |
217 jmethodID, ...); | |
218 - jint (*CallNonvirtualIntMethodV)(JNIEnv*, jobject, jclass, | |
219 + jint (JNICALL *CallNonvirtualIntMethodV)(JNIEnv*, jobject, jclass, | |
220 jmethodID, va_list); | |
221 - jint (*CallNonvirtualIntMethodA)(JNIEnv*, jobject, jclass, | |
222 + jint (JNICALL *CallNonvirtualIntMethodA)(JNIEnv*, jobject, jclass, | |
223 jmethodID, jvalue*); | |
224 - jlong (*CallNonvirtualLongMethod)(JNIEnv*, jobject, jclass, | |
225 + jlong (JNICALL *CallNonvirtualLongMethod)(JNIEnv*, jobject, jclass, | |
226 jmethodID, ...); | |
227 - jlong (*CallNonvirtualLongMethodV)(JNIEnv*, jobject, jclass, | |
228 + jlong (JNICALL *CallNonvirtualLongMethodV)(JNIEnv*, jobject, jclass, | |
229 jmethodID, va_list); | |
230 - jlong (*CallNonvirtualLongMethodA)(JNIEnv*, jobject, jclass, | |
231 + jlong (JNICALL *CallNonvirtualLongMethodA)(JNIEnv*, jobject, jclass, | |
232 jmethodID, jvalue*); | |
233 - jfloat (*CallNonvirtualFloatMethod)(JNIEnv*, jobject, jclass, | |
234 + jfloat (JNICALL *CallNonvirtualFloatMethod)(JNIEnv*, jobject, jclass, | |
235 jmethodID, ...); | |
236 - jfloat (*CallNonvirtualFloatMethodV)(JNIEnv*, jobject, jclass, | |
237 + jfloat (JNICALL *CallNonvirtualFloatMethodV)(JNIEnv*, jobject, jclass, | |
238 jmethodID, va_list); | |
239 - jfloat (*CallNonvirtualFloatMethodA)(JNIEnv*, jobject, jclass, | |
240 + jfloat (JNICALL *CallNonvirtualFloatMethodA)(JNIEnv*, jobject, jclass, | |
241 jmethodID, jvalue*); | |
242 - jdouble (*CallNonvirtualDoubleMethod)(JNIEnv*, jobject, jclass, | |
243 + jdouble (JNICALL *CallNonvirtualDoubleMethod)(JNIEnv*, jobject, jclass, | |
244 jmethodID, ...); | |
245 - jdouble (*CallNonvirtualDoubleMethodV)(JNIEnv*, jobject, jclass, | |
246 + jdouble (JNICALL *CallNonvirtualDoubleMethodV)(JNIEnv*, jobject, jclass
, | |
247 jmethodID, va_list); | |
248 - jdouble (*CallNonvirtualDoubleMethodA)(JNIEnv*, jobject, jclass, | |
249 + jdouble (JNICALL *CallNonvirtualDoubleMethodA)(JNIEnv*, jobject, jclass
, | |
250 jmethodID, jvalue*); | |
251 - void (*CallNonvirtualVoidMethod)(JNIEnv*, jobject, jclass, | |
252 + void (JNICALL *CallNonvirtualVoidMethod)(JNIEnv*, jobject, jclass, | |
253 jmethodID, ...); | |
254 - void (*CallNonvirtualVoidMethodV)(JNIEnv*, jobject, jclass, | |
255 + void (JNICALL *CallNonvirtualVoidMethodV)(JNIEnv*, jobject, jclass, | |
256 jmethodID, va_list); | |
257 - void (*CallNonvirtualVoidMethodA)(JNIEnv*, jobject, jclass, | |
258 + void (JNICALL *CallNonvirtualVoidMethodA)(JNIEnv*, jobject, jclass, | |
259 jmethodID, jvalue*); | |
260 | |
261 - jfieldID (*GetFieldID)(JNIEnv*, jclass, const char*, const char*); | |
262 - | |
263 - jobject (*GetObjectField)(JNIEnv*, jobject, jfieldID); | |
264 - jboolean (*GetBooleanField)(JNIEnv*, jobject, jfieldID); | |
265 - jbyte (*GetByteField)(JNIEnv*, jobject, jfieldID); | |
266 - jchar (*GetCharField)(JNIEnv*, jobject, jfieldID); | |
267 - jshort (*GetShortField)(JNIEnv*, jobject, jfieldID); | |
268 - jint (*GetIntField)(JNIEnv*, jobject, jfieldID); | |
269 - jlong (*GetLongField)(JNIEnv*, jobject, jfieldID); | |
270 - jfloat (*GetFloatField)(JNIEnv*, jobject, jfieldID); | |
271 - jdouble (*GetDoubleField)(JNIEnv*, jobject, jfieldID); | |
272 - | |
273 - void (*SetObjectField)(JNIEnv*, jobject, jfieldID, jobject); | |
274 - void (*SetBooleanField)(JNIEnv*, jobject, jfieldID, jboolean); | |
275 - void (*SetByteField)(JNIEnv*, jobject, jfieldID, jbyte); | |
276 - void (*SetCharField)(JNIEnv*, jobject, jfieldID, jchar); | |
277 - void (*SetShortField)(JNIEnv*, jobject, jfieldID, jshort); | |
278 - void (*SetIntField)(JNIEnv*, jobject, jfieldID, jint); | |
279 - void (*SetLongField)(JNIEnv*, jobject, jfieldID, jlong); | |
280 - void (*SetFloatField)(JNIEnv*, jobject, jfieldID, jfloat); | |
281 - void (*SetDoubleField)(JNIEnv*, jobject, jfieldID, jdouble); | |
282 - | |
283 - jmethodID (*GetStaticMethodID)(JNIEnv*, jclass, const char*, const char*)
; | |
284 - | |
285 - jobject (*CallStaticObjectMethod)(JNIEnv*, jclass, jmethodID, ...); | |
286 - jobject (*CallStaticObjectMethodV)(JNIEnv*, jclass, jmethodID, va_list)
; | |
287 - jobject (*CallStaticObjectMethodA)(JNIEnv*, jclass, jmethodID, jvalue*)
; | |
288 - jboolean (*CallStaticBooleanMethod)(JNIEnv*, jclass, jmethodID, ...); | |
289 - jboolean (*CallStaticBooleanMethodV)(JNIEnv*, jclass, jmethodID, | |
290 + jfieldID (JNICALL *GetFieldID)(JNIEnv*, jclass, const char*, const char*
); | |
291 + | |
292 + jobject (JNICALL *GetObjectField)(JNIEnv*, jobject, jfieldID); | |
293 + jboolean (JNICALL *GetBooleanField)(JNIEnv*, jobject, jfieldID); | |
294 + jbyte (JNICALL *GetByteField)(JNIEnv*, jobject, jfieldID); | |
295 + jchar (JNICALL *GetCharField)(JNIEnv*, jobject, jfieldID); | |
296 + jshort (JNICALL *GetShortField)(JNIEnv*, jobject, jfieldID); | |
297 + jint (JNICALL *GetIntField)(JNIEnv*, jobject, jfieldID); | |
298 + jlong (JNICALL *GetLongField)(JNIEnv*, jobject, jfieldID); | |
299 + jfloat (JNICALL *GetFloatField)(JNIEnv*, jobject, jfieldID); | |
300 + jdouble (JNICALL *GetDoubleField)(JNIEnv*, jobject, jfieldID); | |
301 + | |
302 + void (JNICALL *SetObjectField)(JNIEnv*, jobject, jfieldID, jobject); | |
303 + void (JNICALL *SetBooleanField)(JNIEnv*, jobject, jfieldID, jboolean
); | |
304 + void (JNICALL *SetByteField)(JNIEnv*, jobject, jfieldID, jbyte); | |
305 + void (JNICALL *SetCharField)(JNIEnv*, jobject, jfieldID, jchar); | |
306 + void (JNICALL *SetShortField)(JNIEnv*, jobject, jfieldID, jshort); | |
307 + void (JNICALL *SetIntField)(JNIEnv*, jobject, jfieldID, jint); | |
308 + void (JNICALL *SetLongField)(JNIEnv*, jobject, jfieldID, jlong); | |
309 + void (JNICALL *SetFloatField)(JNIEnv*, jobject, jfieldID, jfloat); | |
310 + void (JNICALL *SetDoubleField)(JNIEnv*, jobject, jfieldID, jdouble); | |
311 + | |
312 + jmethodID (JNICALL *GetStaticMethodID)(JNIEnv*, jclass, const char*, cons
t char*); | |
313 + | |
314 + jobject (JNICALL *CallStaticObjectMethod)(JNIEnv*, jclass, jmethodID, .
..); | |
315 + jobject (JNICALL *CallStaticObjectMethodV)(JNIEnv*, jclass, jmethodID,
va_list); | |
316 + jobject (JNICALL *CallStaticObjectMethodA)(JNIEnv*, jclass, jmethodID,
jvalue*); | |
317 + jboolean (JNICALL *CallStaticBooleanMethod)(JNIEnv*, jclass, jmethodID,
...); | |
318 + jboolean (JNICALL *CallStaticBooleanMethodV)(JNIEnv*, jclass, jmethodID, | |
319 va_list); | |
320 - jboolean (*CallStaticBooleanMethodA)(JNIEnv*, jclass, jmethodID, | |
321 + jboolean (JNICALL *CallStaticBooleanMethodA)(JNIEnv*, jclass, jmethodID, | |
322 jvalue*); | |
323 - jbyte (*CallStaticByteMethod)(JNIEnv*, jclass, jmethodID, ...); | |
324 - jbyte (*CallStaticByteMethodV)(JNIEnv*, jclass, jmethodID, va_list); | |
325 - jbyte (*CallStaticByteMethodA)(JNIEnv*, jclass, jmethodID, jvalue*); | |
326 - jchar (*CallStaticCharMethod)(JNIEnv*, jclass, jmethodID, ...); | |
327 - jchar (*CallStaticCharMethodV)(JNIEnv*, jclass, jmethodID, va_list); | |
328 - jchar (*CallStaticCharMethodA)(JNIEnv*, jclass, jmethodID, jvalue*); | |
329 - jshort (*CallStaticShortMethod)(JNIEnv*, jclass, jmethodID, ...); | |
330 - jshort (*CallStaticShortMethodV)(JNIEnv*, jclass, jmethodID, va_list); | |
331 - jshort (*CallStaticShortMethodA)(JNIEnv*, jclass, jmethodID, jvalue*); | |
332 - jint (*CallStaticIntMethod)(JNIEnv*, jclass, jmethodID, ...); | |
333 - jint (*CallStaticIntMethodV)(JNIEnv*, jclass, jmethodID, va_list); | |
334 - jint (*CallStaticIntMethodA)(JNIEnv*, jclass, jmethodID, jvalue*); | |
335 - jlong (*CallStaticLongMethod)(JNIEnv*, jclass, jmethodID, ...); | |
336 - jlong (*CallStaticLongMethodV)(JNIEnv*, jclass, jmethodID, va_list); | |
337 - jlong (*CallStaticLongMethodA)(JNIEnv*, jclass, jmethodID, jvalue*); | |
338 - jfloat (*CallStaticFloatMethod)(JNIEnv*, jclass, jmethodID, ...); | |
339 - jfloat (*CallStaticFloatMethodV)(JNIEnv*, jclass, jmethodID, va_list); | |
340 - jfloat (*CallStaticFloatMethodA)(JNIEnv*, jclass, jmethodID, jvalue*); | |
341 - jdouble (*CallStaticDoubleMethod)(JNIEnv*, jclass, jmethodID, ...); | |
342 - jdouble (*CallStaticDoubleMethodV)(JNIEnv*, jclass, jmethodID, va_list)
; | |
343 - jdouble (*CallStaticDoubleMethodA)(JNIEnv*, jclass, jmethodID, jvalue*)
; | |
344 - void (*CallStaticVoidMethod)(JNIEnv*, jclass, jmethodID, ...); | |
345 - void (*CallStaticVoidMethodV)(JNIEnv*, jclass, jmethodID, va_list); | |
346 - void (*CallStaticVoidMethodA)(JNIEnv*, jclass, jmethodID, jvalue*); | |
347 - | |
348 - jfieldID (*GetStaticFieldID)(JNIEnv*, jclass, const char*, | |
349 + jbyte (JNICALL *CallStaticByteMethod)(JNIEnv*, jclass, jmethodID, ...
); | |
350 + jbyte (JNICALL *CallStaticByteMethodV)(JNIEnv*, jclass, jmethodID, va
_list); | |
351 + jbyte (JNICALL *CallStaticByteMethodA)(JNIEnv*, jclass, jmethodID, jv
alue*); | |
352 + jchar (JNICALL *CallStaticCharMethod)(JNIEnv*, jclass, jmethodID, ...
); | |
353 + jchar (JNICALL *CallStaticCharMethodV)(JNIEnv*, jclass, jmethodID, va
_list); | |
354 + jchar (JNICALL *CallStaticCharMethodA)(JNIEnv*, jclass, jmethodID, jv
alue*); | |
355 + jshort (JNICALL *CallStaticShortMethod)(JNIEnv*, jclass, jmethodID, ..
.); | |
356 + jshort (JNICALL *CallStaticShortMethodV)(JNIEnv*, jclass, jmethodID, v
a_list); | |
357 + jshort (JNICALL *CallStaticShortMethodA)(JNIEnv*, jclass, jmethodID, j
value*); | |
358 + jint (JNICALL *CallStaticIntMethod)(JNIEnv*, jclass, jmethodID, ...)
; | |
359 + jint (JNICALL *CallStaticIntMethodV)(JNIEnv*, jclass, jmethodID, va_
list); | |
360 + jint (JNICALL *CallStaticIntMethodA)(JNIEnv*, jclass, jmethodID, jva
lue*); | |
361 + jlong (JNICALL *CallStaticLongMethod)(JNIEnv*, jclass, jmethodID, ...
); | |
362 + jlong (JNICALL *CallStaticLongMethodV)(JNIEnv*, jclass, jmethodID, va
_list); | |
363 + jlong (JNICALL *CallStaticLongMethodA)(JNIEnv*, jclass, jmethodID, jv
alue*); | |
364 + jfloat (JNICALL *CallStaticFloatMethod)(JNIEnv*, jclass, jmethodID, ..
.); | |
365 + jfloat (JNICALL *CallStaticFloatMethodV)(JNIEnv*, jclass, jmethodID, v
a_list); | |
366 + jfloat (JNICALL *CallStaticFloatMethodA)(JNIEnv*, jclass, jmethodID, j
value*); | |
367 + jdouble (JNICALL *CallStaticDoubleMethod)(JNIEnv*, jclass, jmethodID, .
..); | |
368 + jdouble (JNICALL *CallStaticDoubleMethodV)(JNIEnv*, jclass, jmethodID,
va_list); | |
369 + jdouble (JNICALL *CallStaticDoubleMethodA)(JNIEnv*, jclass, jmethodID,
jvalue*); | |
370 + void (JNICALL *CallStaticVoidMethod)(JNIEnv*, jclass, jmethodID, ...
); | |
371 + void (JNICALL *CallStaticVoidMethodV)(JNIEnv*, jclass, jmethodID, va
_list); | |
372 + void (JNICALL *CallStaticVoidMethodA)(JNIEnv*, jclass, jmethodID, jv
alue*); | |
373 + | |
374 + jfieldID (JNICALL *GetStaticFieldID)(JNIEnv*, jclass, const char*, | |
375 const char*); | |
376 | |
377 - jobject (*GetStaticObjectField)(JNIEnv*, jclass, jfieldID); | |
378 - jboolean (*GetStaticBooleanField)(JNIEnv*, jclass, jfieldID); | |
379 - jbyte (*GetStaticByteField)(JNIEnv*, jclass, jfieldID); | |
380 - jchar (*GetStaticCharField)(JNIEnv*, jclass, jfieldID); | |
381 - jshort (*GetStaticShortField)(JNIEnv*, jclass, jfieldID); | |
382 - jint (*GetStaticIntField)(JNIEnv*, jclass, jfieldID); | |
383 - jlong (*GetStaticLongField)(JNIEnv*, jclass, jfieldID); | |
384 - jfloat (*GetStaticFloatField)(JNIEnv*, jclass, jfieldID); | |
385 - jdouble (*GetStaticDoubleField)(JNIEnv*, jclass, jfieldID); | |
386 - | |
387 - void (*SetStaticObjectField)(JNIEnv*, jclass, jfieldID, jobject); | |
388 - void (*SetStaticBooleanField)(JNIEnv*, jclass, jfieldID, jboolean); | |
389 - void (*SetStaticByteField)(JNIEnv*, jclass, jfieldID, jbyte); | |
390 - void (*SetStaticCharField)(JNIEnv*, jclass, jfieldID, jchar); | |
391 - void (*SetStaticShortField)(JNIEnv*, jclass, jfieldID, jshort); | |
392 - void (*SetStaticIntField)(JNIEnv*, jclass, jfieldID, jint); | |
393 - void (*SetStaticLongField)(JNIEnv*, jclass, jfieldID, jlong); | |
394 - void (*SetStaticFloatField)(JNIEnv*, jclass, jfieldID, jfloat); | |
395 - void (*SetStaticDoubleField)(JNIEnv*, jclass, jfieldID, jdouble); | |
396 - | |
397 - jstring (*NewString)(JNIEnv*, const jchar*, jsize); | |
398 - jsize (*GetStringLength)(JNIEnv*, jstring); | |
399 - const jchar* (*GetStringChars)(JNIEnv*, jstring, jboolean*); | |
400 - void (*ReleaseStringChars)(JNIEnv*, jstring, const jchar*); | |
401 - jstring (*NewStringUTF)(JNIEnv*, const char*); | |
402 - jsize (*GetStringUTFLength)(JNIEnv*, jstring); | |
403 + jobject (JNICALL *GetStaticObjectField)(JNIEnv*, jclass, jfieldID); | |
404 + jboolean (JNICALL *GetStaticBooleanField)(JNIEnv*, jclass, jfieldID); | |
405 + jbyte (JNICALL *GetStaticByteField)(JNIEnv*, jclass, jfieldID); | |
406 + jchar (JNICALL *GetStaticCharField)(JNIEnv*, jclass, jfieldID); | |
407 + jshort (JNICALL *GetStaticShortField)(JNIEnv*, jclass, jfieldID); | |
408 + jint (JNICALL *GetStaticIntField)(JNIEnv*, jclass, jfieldID); | |
409 + jlong (JNICALL *GetStaticLongField)(JNIEnv*, jclass, jfieldID); | |
410 + jfloat (JNICALL *GetStaticFloatField)(JNIEnv*, jclass, jfieldID); | |
411 + jdouble (JNICALL *GetStaticDoubleField)(JNIEnv*, jclass, jfieldID); | |
412 + | |
413 + void (JNICALL *SetStaticObjectField)(JNIEnv*, jclass, jfieldID, jobj
ect); | |
414 + void (JNICALL *SetStaticBooleanField)(JNIEnv*, jclass, jfieldID, jbo
olean); | |
415 + void (JNICALL *SetStaticByteField)(JNIEnv*, jclass, jfieldID, jbyte)
; | |
416 + void (JNICALL *SetStaticCharField)(JNIEnv*, jclass, jfieldID, jchar)
; | |
417 + void (JNICALL *SetStaticShortField)(JNIEnv*, jclass, jfieldID, jshor
t); | |
418 + void (JNICALL *SetStaticIntField)(JNIEnv*, jclass, jfieldID, jint); | |
419 + void (JNICALL *SetStaticLongField)(JNIEnv*, jclass, jfieldID, jlong)
; | |
420 + void (JNICALL *SetStaticFloatField)(JNIEnv*, jclass, jfieldID, jfloa
t); | |
421 + void (JNICALL *SetStaticDoubleField)(JNIEnv*, jclass, jfieldID, jdou
ble); | |
422 + | |
423 + jstring (JNICALL *NewString)(JNIEnv*, const jchar*, jsize); | |
424 + jsize (JNICALL *GetStringLength)(JNIEnv*, jstring); | |
425 + const jchar* (JNICALL *GetStringChars)(JNIEnv*, jstring, jboolean*); | |
426 + void (JNICALL *ReleaseStringChars)(JNIEnv*, jstring, const jchar*); | |
427 + jstring (JNICALL *NewStringUTF)(JNIEnv*, const char*); | |
428 + jsize (JNICALL *GetStringUTFLength)(JNIEnv*, jstring); | |
429 /* JNI spec says this returns const jbyte*, but that's inconsistent */ | |
430 - const char* (*GetStringUTFChars)(JNIEnv*, jstring, jboolean*); | |
431 - void (*ReleaseStringUTFChars)(JNIEnv*, jstring, const char*); | |
432 - jsize (*GetArrayLength)(JNIEnv*, jarray); | |
433 - jobjectArray (*NewObjectArray)(JNIEnv*, jsize, jclass, jobject); | |
434 - jobject (*GetObjectArrayElement)(JNIEnv*, jobjectArray, jsize); | |
435 - void (*SetObjectArrayElement)(JNIEnv*, jobjectArray, jsize, jobject)
; | |
436 - | |
437 - jbooleanArray (*NewBooleanArray)(JNIEnv*, jsize); | |
438 - jbyteArray (*NewByteArray)(JNIEnv*, jsize); | |
439 - jcharArray (*NewCharArray)(JNIEnv*, jsize); | |
440 - jshortArray (*NewShortArray)(JNIEnv*, jsize); | |
441 - jintArray (*NewIntArray)(JNIEnv*, jsize); | |
442 - jlongArray (*NewLongArray)(JNIEnv*, jsize); | |
443 - jfloatArray (*NewFloatArray)(JNIEnv*, jsize); | |
444 - jdoubleArray (*NewDoubleArray)(JNIEnv*, jsize); | |
445 - | |
446 - jboolean* (*GetBooleanArrayElements)(JNIEnv*, jbooleanArray, jboolean*); | |
447 - jbyte* (*GetByteArrayElements)(JNIEnv*, jbyteArray, jboolean*); | |
448 - jchar* (*GetCharArrayElements)(JNIEnv*, jcharArray, jboolean*); | |
449 - jshort* (*GetShortArrayElements)(JNIEnv*, jshortArray, jboolean*); | |
450 - jint* (*GetIntArrayElements)(JNIEnv*, jintArray, jboolean*); | |
451 - jlong* (*GetLongArrayElements)(JNIEnv*, jlongArray, jboolean*); | |
452 - jfloat* (*GetFloatArrayElements)(JNIEnv*, jfloatArray, jboolean*); | |
453 - jdouble* (*GetDoubleArrayElements)(JNIEnv*, jdoubleArray, jboolean*); | |
454 - | |
455 - void (*ReleaseBooleanArrayElements)(JNIEnv*, jbooleanArray, | |
456 + const char* (JNICALL *GetStringUTFChars)(JNIEnv*, jstring, jboolean*); | |
457 + void (JNICALL *ReleaseStringUTFChars)(JNIEnv*, jstring, const char*)
; | |
458 + jsize (JNICALL *GetArrayLength)(JNIEnv*, jarray); | |
459 + jobjectArray (JNICALL *NewObjectArray)(JNIEnv*, jsize, jclass, jobject); | |
460 + jobject (JNICALL *GetObjectArrayElement)(JNIEnv*, jobjectArray, jsize); | |
461 + void (JNICALL *SetObjectArrayElement)(JNIEnv*, jobjectArray, jsize,
jobject); | |
462 + | |
463 + jbooleanArray (JNICALL *NewBooleanArray)(JNIEnv*, jsize); | |
464 + jbyteArray (JNICALL *NewByteArray)(JNIEnv*, jsize); | |
465 + jcharArray (JNICALL *NewCharArray)(JNIEnv*, jsize); | |
466 + jshortArray (JNICALL *NewShortArray)(JNIEnv*, jsize); | |
467 + jintArray (JNICALL *NewIntArray)(JNIEnv*, jsize); | |
468 + jlongArray (JNICALL *NewLongArray)(JNIEnv*, jsize); | |
469 + jfloatArray (JNICALL *NewFloatArray)(JNIEnv*, jsize); | |
470 + jdoubleArray (JNICALL *NewDoubleArray)(JNIEnv*, jsize); | |
471 + | |
472 + jboolean* (JNICALL *GetBooleanArrayElements)(JNIEnv*, jbooleanArray, jboo
lean*); | |
473 + jbyte* (JNICALL *GetByteArrayElements)(JNIEnv*, jbyteArray, jboolean*)
; | |
474 + jchar* (JNICALL *GetCharArrayElements)(JNIEnv*, jcharArray, jboolean*)
; | |
475 + jshort* (JNICALL *GetShortArrayElements)(JNIEnv*, jshortArray, jboolean
*); | |
476 + jint* (JNICALL *GetIntArrayElements)(JNIEnv*, jintArray, jboolean*); | |
477 + jlong* (JNICALL *GetLongArrayElements)(JNIEnv*, jlongArray, jboolean*)
; | |
478 + jfloat* (JNICALL *GetFloatArrayElements)(JNIEnv*, jfloatArray, jboolean
*); | |
479 + jdouble* (JNICALL *GetDoubleArrayElements)(JNIEnv*, jdoubleArray, jboole
an*); | |
480 + | |
481 + void (JNICALL *ReleaseBooleanArrayElements)(JNIEnv*, jbooleanArray, | |
482 jboolean*, jint); | |
483 - void (*ReleaseByteArrayElements)(JNIEnv*, jbyteArray, | |
484 + void (JNICALL *ReleaseByteArrayElements)(JNIEnv*, jbyteArray, | |
485 jbyte*, jint); | |
486 - void (*ReleaseCharArrayElements)(JNIEnv*, jcharArray, | |
487 + void (JNICALL *ReleaseCharArrayElements)(JNIEnv*, jcharArray, | |
488 jchar*, jint); | |
489 - void (*ReleaseShortArrayElements)(JNIEnv*, jshortArray, | |
490 + void (JNICALL *ReleaseShortArrayElements)(JNIEnv*, jshortArray, | |
491 jshort*, jint); | |
492 - void (*ReleaseIntArrayElements)(JNIEnv*, jintArray, | |
493 + void (JNICALL *ReleaseIntArrayElements)(JNIEnv*, jintArray, | |
494 jint*, jint); | |
495 - void (*ReleaseLongArrayElements)(JNIEnv*, jlongArray, | |
496 + void (JNICALL *ReleaseLongArrayElements)(JNIEnv*, jlongArray, | |
497 jlong*, jint); | |
498 - void (*ReleaseFloatArrayElements)(JNIEnv*, jfloatArray, | |
499 + void (JNICALL *ReleaseFloatArrayElements)(JNIEnv*, jfloatArray, | |
500 jfloat*, jint); | |
501 - void (*ReleaseDoubleArrayElements)(JNIEnv*, jdoubleArray, | |
502 + void (JNICALL *ReleaseDoubleArrayElements)(JNIEnv*, jdoubleArray, | |
503 jdouble*, jint); | |
504 | |
505 - void (*GetBooleanArrayRegion)(JNIEnv*, jbooleanArray, | |
506 + void (JNICALL *GetBooleanArrayRegion)(JNIEnv*, jbooleanArray, | |
507 jsize, jsize, jboolean*); | |
508 - void (*GetByteArrayRegion)(JNIEnv*, jbyteArray, | |
509 + void (JNICALL *GetByteArrayRegion)(JNIEnv*, jbyteArray, | |
510 jsize, jsize, jbyte*); | |
511 - void (*GetCharArrayRegion)(JNIEnv*, jcharArray, | |
512 + void (JNICALL *GetCharArrayRegion)(JNIEnv*, jcharArray, | |
513 jsize, jsize, jchar*); | |
514 - void (*GetShortArrayRegion)(JNIEnv*, jshortArray, | |
515 + void (JNICALL *GetShortArrayRegion)(JNIEnv*, jshortArray, | |
516 jsize, jsize, jshort*); | |
517 - void (*GetIntArrayRegion)(JNIEnv*, jintArray, | |
518 + void (JNICALL *GetIntArrayRegion)(JNIEnv*, jintArray, | |
519 jsize, jsize, jint*); | |
520 - void (*GetLongArrayRegion)(JNIEnv*, jlongArray, | |
521 + void (JNICALL *GetLongArrayRegion)(JNIEnv*, jlongArray, | |
522 jsize, jsize, jlong*); | |
523 - void (*GetFloatArrayRegion)(JNIEnv*, jfloatArray, | |
524 + void (JNICALL *GetFloatArrayRegion)(JNIEnv*, jfloatArray, | |
525 jsize, jsize, jfloat*); | |
526 - void (*GetDoubleArrayRegion)(JNIEnv*, jdoubleArray, | |
527 + void (JNICALL *GetDoubleArrayRegion)(JNIEnv*, jdoubleArray, | |
528 jsize, jsize, jdouble*); | |
529 | |
530 /* spec shows these without const; some jni.h do, some don't */ | |
531 - void (*SetBooleanArrayRegion)(JNIEnv*, jbooleanArray, | |
532 + void (JNICALL *SetBooleanArrayRegion)(JNIEnv*, jbooleanArray, | |
533 jsize, jsize, const jboolean*); | |
534 - void (*SetByteArrayRegion)(JNIEnv*, jbyteArray, | |
535 + void (JNICALL *SetByteArrayRegion)(JNIEnv*, jbyteArray, | |
536 jsize, jsize, const jbyte*); | |
537 - void (*SetCharArrayRegion)(JNIEnv*, jcharArray, | |
538 + void (JNICALL *SetCharArrayRegion)(JNIEnv*, jcharArray, | |
539 jsize, jsize, const jchar*); | |
540 - void (*SetShortArrayRegion)(JNIEnv*, jshortArray, | |
541 + void (JNICALL *SetShortArrayRegion)(JNIEnv*, jshortArray, | |
542 jsize, jsize, const jshort*); | |
543 - void (*SetIntArrayRegion)(JNIEnv*, jintArray, | |
544 + void (JNICALL *SetIntArrayRegion)(JNIEnv*, jintArray, | |
545 jsize, jsize, const jint*); | |
546 - void (*SetLongArrayRegion)(JNIEnv*, jlongArray, | |
547 + void (JNICALL *SetLongArrayRegion)(JNIEnv*, jlongArray, | |
548 jsize, jsize, const jlong*); | |
549 - void (*SetFloatArrayRegion)(JNIEnv*, jfloatArray, | |
550 + void (JNICALL *SetFloatArrayRegion)(JNIEnv*, jfloatArray, | |
551 jsize, jsize, const jfloat*); | |
552 - void (*SetDoubleArrayRegion)(JNIEnv*, jdoubleArray, | |
553 + void (JNICALL *SetDoubleArrayRegion)(JNIEnv*, jdoubleArray, | |
554 jsize, jsize, const jdouble*); | |
555 | |
556 - jint (*RegisterNatives)(JNIEnv*, jclass, const JNINativeMethod*, | |
557 + jint (JNICALL *RegisterNatives)(JNIEnv*, jclass, const JNINativeMeth
od*, | |
558 jint); | |
559 - jint (*UnregisterNatives)(JNIEnv*, jclass); | |
560 - jint (*MonitorEnter)(JNIEnv*, jobject); | |
561 - jint (*MonitorExit)(JNIEnv*, jobject); | |
562 - jint (*GetJavaVM)(JNIEnv*, JavaVM**); | |
563 + jint (JNICALL *UnregisterNatives)(JNIEnv*, jclass); | |
564 + jint (JNICALL *MonitorEnter)(JNIEnv*, jobject); | |
565 + jint (JNICALL *MonitorExit)(JNIEnv*, jobject); | |
566 + jint (JNICALL *GetJavaVM)(JNIEnv*, JavaVM**); | |
567 | |
568 - void (*GetStringRegion)(JNIEnv*, jstring, jsize, jsize, jchar*); | |
569 - void (*GetStringUTFRegion)(JNIEnv*, jstring, jsize, jsize, char*); | |
570 + void (JNICALL *GetStringRegion)(JNIEnv*, jstring, jsize, jsize, jcha
r*); | |
571 + void (JNICALL *GetStringUTFRegion)(JNIEnv*, jstring, jsize, jsize, c
har*); | |
572 | |
573 - void* (*GetPrimitiveArrayCritical)(JNIEnv*, jarray, jboolean*); | |
574 - void (*ReleasePrimitiveArrayCritical)(JNIEnv*, jarray, void*, jint); | |
575 + void* (JNICALL *GetPrimitiveArrayCritical)(JNIEnv*, jarray, jboolean*
); | |
576 + void (JNICALL *ReleasePrimitiveArrayCritical)(JNIEnv*, jarray, void*
, jint); | |
577 | |
578 - const jchar* (*GetStringCritical)(JNIEnv*, jstring, jboolean*); | |
579 - void (*ReleaseStringCritical)(JNIEnv*, jstring, const jchar*); | |
580 + const jchar* (JNICALL *GetStringCritical)(JNIEnv*, jstring, jboolean*); | |
581 + void (JNICALL *ReleaseStringCritical)(JNIEnv*, jstring, const jchar*
); | |
582 | |
583 - jweak (*NewWeakGlobalRef)(JNIEnv*, jobject); | |
584 - void (*DeleteWeakGlobalRef)(JNIEnv*, jweak); | |
585 + jweak (JNICALL *NewWeakGlobalRef)(JNIEnv*, jobject); | |
586 + void (JNICALL *DeleteWeakGlobalRef)(JNIEnv*, jweak); | |
587 | |
588 - jboolean (*ExceptionCheck)(JNIEnv*); | |
589 + jboolean (JNICALL *ExceptionCheck)(JNIEnv*); | |
590 | |
591 - jobject (*NewDirectByteBuffer)(JNIEnv*, void*, jlong); | |
592 - void* (*GetDirectBufferAddress)(JNIEnv*, jobject); | |
593 - jlong (*GetDirectBufferCapacity)(JNIEnv*, jobject); | |
594 + jobject (JNICALL *NewDirectByteBuffer)(JNIEnv*, void*, jlong); | |
595 + void* (JNICALL *GetDirectBufferAddress)(JNIEnv*, jobject); | |
596 + jlong (JNICALL *GetDirectBufferCapacity)(JNIEnv*, jobject); | |
597 | |
598 /* added in JNI 1.6 */ | |
599 - jobjectRefType (*GetObjectRefType)(JNIEnv*, jobject); | |
600 + jobjectRefType (JNICALL *GetObjectRefType)(JNIEnv*, jobject); | |
601 }; | |
602 | |
603 /* | |
604 @@ -1053,11 +1063,11 @@ struct JNIInvokeInterface { | |
605 void* reserved1; | |
606 void* reserved2; | |
607 | |
608 - jint (*DestroyJavaVM)(JavaVM*); | |
609 - jint (*AttachCurrentThread)(JavaVM*, JNIEnv**, void*); | |
610 - jint (*DetachCurrentThread)(JavaVM*); | |
611 - jint (*GetEnv)(JavaVM*, void**, jint); | |
612 - jint (*AttachCurrentThreadAsDaemon)(JavaVM*, JNIEnv**, void*); | |
613 + jint (JNICALL *DestroyJavaVM)(JavaVM*); | |
614 + jint (JNICALL *AttachCurrentThread)(JavaVM*, JNIEnv**, void*); | |
615 + jint (JNICALL *DetachCurrentThread)(JavaVM*); | |
616 + jint (JNICALL *GetEnv)(JavaVM*, void**, jint); | |
617 + jint (JNICALL *AttachCurrentThreadAsDaemon)(JavaVM*, JNIEnv**, void*
); | |
618 }; | |
619 | |
620 /* | |
621 @@ -1118,10 +1128,6 @@ jint JNI_CreateJavaVM(JavaVM**, JNIEnv**, void*); | |
622 jint JNI_GetCreatedJavaVMs(JavaVM**, jsize, jsize*); | |
623 #endif | |
624 | |
625 -#define JNIIMPORT | |
626 -#define JNIEXPORT __attribute__ ((visibility ("default"))) | |
627 -#define JNICALL | |
628 - | |
629 /* | |
630 * Prototypes for functions exported by loadable shared libs. These are | |
631 * called by JNI, not provided by JNI. | |
OLD | NEW |