1 /* 2 Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License, version 2.0, 6 as published by the Free Software Foundation. 7 8 This program is also distributed with certain software (including 9 but not limited to OpenSSL) that is licensed under separate terms, 10 as designated in a particular file or component or in included license 11 documentation. The authors of MySQL hereby grant you an additional 12 permission to link the program and your derivative works with the 13 separately licensed software that they have included with MySQL. 14 15 This program is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU General Public License, version 2.0, for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with this program; if not, write to the Free Software 22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 */ 24 /* 25 * MyJapi.java 26 */ 27 28 package myjapi; 29 30 //import java.math.BigInteger; 31 //import java.math.BigDecimal; 32 import java.nio.ByteBuffer; 33 34 public class MyJapi { 35 36 // ---------------------------------------------------------------------- 37 // Mapping of void result/parameters 38 // ---------------------------------------------------------------------- 39 f0()40 static public native void f0(); 41 42 // ---------------------------------------------------------------------- 43 // String mappings of [const] char* result/parameters 44 // ---------------------------------------------------------------------- 45 s012s()46 static public native String s012s(); s112s(String p0)47 static public native void s112s(String p0); s152s(String p0)48 static public native void s152s(String p0); 49 50 // mapping as result is supported, for s112(s032()) is in C++ s032s()51 static public native String s032s(); 52 // mapping as parameters is not supported, for s132(s012()) is not in C++ 53 //static public native void s132s(String p0); 54 //static public native void s172s(String p0); 55 56 // ---------------------------------------------------------------------- 57 // ByteBuffer<size=0> mappings of void/char pointers 58 // ---------------------------------------------------------------------- 59 s010bb0()60 static public native ByteBuffer s010bb0(); s012bb0()61 static public native ByteBuffer s012bb0(); s030bb0()62 static public native ByteBuffer s030bb0(); s032bb0()63 static public native ByteBuffer s032bb0(); 64 s110bb0(ByteBuffer p0)65 static public native void s110bb0(ByteBuffer p0); s112bb0(ByteBuffer p0)66 static public native void s112bb0(ByteBuffer p0); s130bb0(ByteBuffer p0)67 static public native void s130bb0(ByteBuffer p0); s132bb0(ByteBuffer p0)68 static public native void s132bb0(ByteBuffer p0); s150bb0(ByteBuffer p0)69 static public native void s150bb0(ByteBuffer p0); s152bb0(ByteBuffer p0)70 static public native void s152bb0(ByteBuffer p0); s170bb0(ByteBuffer p0)71 static public native void s170bb0(ByteBuffer p0); s172bb0(ByteBuffer p0)72 static public native void s172bb0(ByteBuffer p0); 73 74 // ---------------------------------------------------------------------- 75 // ByteBuffer<size=1> mappings of void/char pointers 76 // ---------------------------------------------------------------------- 77 s010bb1()78 static public native ByteBuffer s010bb1(); s012bb1()79 static public native ByteBuffer s012bb1(); s030bb1()80 static public native ByteBuffer s030bb1(); s032bb1()81 static public native ByteBuffer s032bb1(); 82 s110bb1(ByteBuffer p0)83 static public native void s110bb1(ByteBuffer p0); s112bb1(ByteBuffer p0)84 static public native void s112bb1(ByteBuffer p0); s130bb1(ByteBuffer p0)85 static public native void s130bb1(ByteBuffer p0); s132bb1(ByteBuffer p0)86 static public native void s132bb1(ByteBuffer p0); s150bb1(ByteBuffer p0)87 static public native void s150bb1(ByteBuffer p0); s152bb1(ByteBuffer p0)88 static public native void s152bb1(ByteBuffer p0); s170bb1(ByteBuffer p0)89 static public native void s170bb1(ByteBuffer p0); s172bb1(ByteBuffer p0)90 static public native void s172bb1(ByteBuffer p0); 91 92 // ---------------------------------------------------------------------- 93 // ByteBuffer<size=0> mappings of NULL-allowed void/char pointers 94 // ---------------------------------------------------------------------- 95 s210bb()96 static public native ByteBuffer s210bb(); s212bb()97 static public native ByteBuffer s212bb(); s230bb()98 static public native ByteBuffer s230bb(); s232bb()99 static public native ByteBuffer s232bb(); 100 s310bb(ByteBuffer p0)101 static public native void s310bb(ByteBuffer p0); s312bb(ByteBuffer p0)102 static public native void s312bb(ByteBuffer p0); s330bb(ByteBuffer p0)103 static public native void s330bb(ByteBuffer p0); s332bb(ByteBuffer p0)104 static public native void s332bb(ByteBuffer p0); s350bb(ByteBuffer p0)105 static public native void s350bb(ByteBuffer p0); s352bb(ByteBuffer p0)106 static public native void s352bb(ByteBuffer p0); s370bb(ByteBuffer p0)107 static public native void s370bb(ByteBuffer p0); s372bb(ByteBuffer p0)108 static public native void s372bb(ByteBuffer p0); 109 110 // ---------------------------------------------------------------------- 111 // Default mappings of primitive result/parameter types 112 // ---------------------------------------------------------------------- 113 f019()114 static public native int f019(); f020()115 static public native int f020(); f025()116 static public native double f025(); 117 f111(boolean p0)118 static public native void f111(boolean p0); f112(byte p0)119 static public native void f112(byte p0); f113(byte p0)120 static public native void f113(byte p0); f114(byte p0)121 static public native void f114(byte p0); f115(short p0)122 static public native void f115(short p0); f116(short p0)123 static public native void f116(short p0); f117(int p0)124 static public native void f117(int p0); f118(int p0)125 static public native void f118(int p0); f119(int p0)126 static public native void f119(int p0); f120(int p0)127 static public native void f120(int p0); f121(long p0)128 static public native void f121(long p0); f122(long p0)129 static public native void f122(long p0); f123(float p0)130 static public native void f123(float p0); f124(double p0)131 static public native void f124(double p0); f125(double p0)132 static public native void f125(double p0); 133 f031()134 static public native boolean f031(); f032()135 static public native byte f032(); f033()136 static public native byte f033(); f034()137 static public native byte f034(); f035()138 static public native short f035(); f036()139 static public native short f036(); f037()140 static public native int f037(); f038()141 static public native int f038(); f039()142 static public native int f039(); f040()143 static public native int f040(); f041()144 static public native long f041(); f042()145 static public native long f042(); f043()146 static public native float f043(); f044()147 static public native double f044(); f045()148 static public native double f045(); 149 f131(boolean p0)150 static public native void f131(boolean p0); f132(byte p0)151 static public native void f132(byte p0); f133(byte p0)152 static public native void f133(byte p0); f134(byte p0)153 static public native void f134(byte p0); f135(short p0)154 static public native void f135(short p0); f136(short p0)155 static public native void f136(short p0); f137(int p0)156 static public native void f137(int p0); f138(int p0)157 static public native void f138(int p0); f139(int p0)158 static public native void f139(int p0); f140(int p0)159 static public native void f140(int p0); f141(long p0)160 static public native void f141(long p0); f142(long p0)161 static public native void f142(long p0); f143(float p0)162 static public native void f143(float p0); f144(double p0)163 static public native void f144(double p0); f145(double p0)164 static public native void f145(double p0); 165 166 // ---------------------------------------------------------------------- 167 // ByteBuffer mappings of references of primitive result/parameter types 168 // ---------------------------------------------------------------------- 169 f211bb()170 static public native ByteBuffer f211bb(); f212bb()171 static public native ByteBuffer f212bb(); f213bb()172 static public native ByteBuffer f213bb(); f214bb()173 static public native ByteBuffer f214bb(); f215bb()174 static public native ByteBuffer f215bb(); f216bb()175 static public native ByteBuffer f216bb(); f217bb()176 static public native ByteBuffer f217bb(); f218bb()177 static public native ByteBuffer f218bb(); f219bb()178 static public native ByteBuffer f219bb(); f220bb()179 static public native ByteBuffer f220bb(); f221bb()180 static public native ByteBuffer f221bb(); f222bb()181 static public native ByteBuffer f222bb(); f223bb()182 static public native ByteBuffer f223bb(); f224bb()183 static public native ByteBuffer f224bb(); f225bb()184 static public native ByteBuffer f225bb(); 185 f311bb(ByteBuffer p0)186 static public native void f311bb(ByteBuffer p0); f312bb(ByteBuffer p0)187 static public native void f312bb(ByteBuffer p0); f313bb(ByteBuffer p0)188 static public native void f313bb(ByteBuffer p0); f314bb(ByteBuffer p0)189 static public native void f314bb(ByteBuffer p0); f315bb(ByteBuffer p0)190 static public native void f315bb(ByteBuffer p0); f316bb(ByteBuffer p0)191 static public native void f316bb(ByteBuffer p0); f317bb(ByteBuffer p0)192 static public native void f317bb(ByteBuffer p0); f318bb(ByteBuffer p0)193 static public native void f318bb(ByteBuffer p0); f319bb(ByteBuffer p0)194 static public native void f319bb(ByteBuffer p0); f320bb(ByteBuffer p0)195 static public native void f320bb(ByteBuffer p0); f321bb(ByteBuffer p0)196 static public native void f321bb(ByteBuffer p0); f322bb(ByteBuffer p0)197 static public native void f322bb(ByteBuffer p0); f323bb(ByteBuffer p0)198 static public native void f323bb(ByteBuffer p0); f324bb(ByteBuffer p0)199 static public native void f324bb(ByteBuffer p0); f325bb(ByteBuffer p0)200 static public native void f325bb(ByteBuffer p0); 201 f231bb()202 static public native ByteBuffer f231bb(); f232bb()203 static public native ByteBuffer f232bb(); f233bb()204 static public native ByteBuffer f233bb(); f234bb()205 static public native ByteBuffer f234bb(); f235bb()206 static public native ByteBuffer f235bb(); f236bb()207 static public native ByteBuffer f236bb(); f237bb()208 static public native ByteBuffer f237bb(); f238bb()209 static public native ByteBuffer f238bb(); f239bb()210 static public native ByteBuffer f239bb(); f240bb()211 static public native ByteBuffer f240bb(); f241bb()212 static public native ByteBuffer f241bb(); f242bb()213 static public native ByteBuffer f242bb(); f243bb()214 static public native ByteBuffer f243bb(); f244bb()215 static public native ByteBuffer f244bb(); f245bb()216 static public native ByteBuffer f245bb(); 217 f331bb(ByteBuffer p0)218 static public native void f331bb(ByteBuffer p0); f332bb(ByteBuffer p0)219 static public native void f332bb(ByteBuffer p0); f333bb(ByteBuffer p0)220 static public native void f333bb(ByteBuffer p0); f334bb(ByteBuffer p0)221 static public native void f334bb(ByteBuffer p0); f335bb(ByteBuffer p0)222 static public native void f335bb(ByteBuffer p0); f336bb(ByteBuffer p0)223 static public native void f336bb(ByteBuffer p0); f337bb(ByteBuffer p0)224 static public native void f337bb(ByteBuffer p0); f338bb(ByteBuffer p0)225 static public native void f338bb(ByteBuffer p0); f339bb(ByteBuffer p0)226 static public native void f339bb(ByteBuffer p0); f340bb(ByteBuffer p0)227 static public native void f340bb(ByteBuffer p0); f341bb(ByteBuffer p0)228 static public native void f341bb(ByteBuffer p0); f342bb(ByteBuffer p0)229 static public native void f342bb(ByteBuffer p0); f343bb(ByteBuffer p0)230 static public native void f343bb(ByteBuffer p0); f344bb(ByteBuffer p0)231 static public native void f344bb(ByteBuffer p0); f345bb(ByteBuffer p0)232 static public native void f345bb(ByteBuffer p0); 233 234 // ---------------------------------------------------------------------- 235 // Value-Copy mappings of references of primitive result/parameter types 236 // ---------------------------------------------------------------------- 237 f211v()238 static public native boolean f211v(); f212v()239 static public native byte f212v(); f213v()240 static public native byte f213v(); f214v()241 static public native byte f214v(); f215v()242 static public native short f215v(); f216v()243 static public native short f216v(); f217v()244 static public native int f217v(); f218v()245 static public native int f218v(); f221v()246 static public native long f221v(); f222v()247 static public native long f222v(); f223v()248 static public native float f223v(); f224v()249 static public native double f224v(); 250 f311v(boolean p0)251 static public native void f311v(boolean p0); f312v(byte p0)252 static public native void f312v(byte p0); f313v(byte p0)253 static public native void f313v(byte p0); f314v(byte p0)254 static public native void f314v(byte p0); f315v(short p0)255 static public native void f315v(short p0); f316v(short p0)256 static public native void f316v(short p0); f317v(int p0)257 static public native void f317v(int p0); f318v(int p0)258 static public native void f318v(int p0); f321v(long p0)259 static public native void f321v(long p0); f322v(long p0)260 static public native void f322v(long p0); f323v(float p0)261 static public native void f323v(float p0); f324v(double p0)262 static public native void f324v(double p0); 263 f231v()264 static public native boolean f231v(); f232v()265 static public native byte f232v(); f233v()266 static public native byte f233v(); f234v()267 static public native byte f234v(); f235v()268 static public native short f235v(); f236v()269 static public native short f236v(); f237v()270 static public native int f237v(); f238v()271 static public native int f238v(); f241v()272 static public native long f241v(); f242v()273 static public native long f242v(); f243v()274 static public native float f243v(); f244v()275 static public native double f244v(); 276 f331v(boolean[] p0)277 static public native void f331v(boolean[] p0); f332v(byte[] p0)278 static public native void f332v(byte[] p0); f333v(byte[] p0)279 static public native void f333v(byte[] p0); f334v(byte[] p0)280 static public native void f334v(byte[] p0); f335v(short[] p0)281 static public native void f335v(short[] p0); f336v(short[] p0)282 static public native void f336v(short[] p0); f337v(int[] p0)283 static public native void f337v(int[] p0); f338v(int[] p0)284 static public native void f338v(int[] p0); f341v(long[] p0)285 static public native void f341v(long[] p0); f342v(long[] p0)286 static public native void f342v(long[] p0); f343v(float[] p0)287 static public native void f343v(float[] p0); f344v(double[] p0)288 static public native void f344v(double[] p0); 289 290 // ---------------------------------------------------------------------- 291 // ByteBuffer<size=0> mappings of pointers to primitive types 292 // ---------------------------------------------------------------------- 293 f411bb0()294 static public native ByteBuffer f411bb0(); f412bb0()295 static public native ByteBuffer f412bb0(); f413bb0()296 static public native ByteBuffer f413bb0(); f414bb0()297 static public native ByteBuffer f414bb0(); f415bb0()298 static public native ByteBuffer f415bb0(); f416bb0()299 static public native ByteBuffer f416bb0(); f417bb0()300 static public native ByteBuffer f417bb0(); f418bb0()301 static public native ByteBuffer f418bb0(); f421bb0()302 static public native ByteBuffer f421bb0(); f422bb0()303 static public native ByteBuffer f422bb0(); f423bb0()304 static public native ByteBuffer f423bb0(); f424bb0()305 static public native ByteBuffer f424bb0(); 306 f431bb0()307 static public native ByteBuffer f431bb0(); f432bb0()308 static public native ByteBuffer f432bb0(); f433bb0()309 static public native ByteBuffer f433bb0(); f434bb0()310 static public native ByteBuffer f434bb0(); f435bb0()311 static public native ByteBuffer f435bb0(); f436bb0()312 static public native ByteBuffer f436bb0(); f437bb0()313 static public native ByteBuffer f437bb0(); f438bb0()314 static public native ByteBuffer f438bb0(); f441bb0()315 static public native ByteBuffer f441bb0(); f442bb0()316 static public native ByteBuffer f442bb0(); f443bb0()317 static public native ByteBuffer f443bb0(); f444bb0()318 static public native ByteBuffer f444bb0(); 319 320 321 f511bb0(ByteBuffer p0)322 static public native void f511bb0(ByteBuffer p0); f512bb0(ByteBuffer p0)323 static public native void f512bb0(ByteBuffer p0); f513bb0(ByteBuffer p0)324 static public native void f513bb0(ByteBuffer p0); f514bb0(ByteBuffer p0)325 static public native void f514bb0(ByteBuffer p0); f515bb0(ByteBuffer p0)326 static public native void f515bb0(ByteBuffer p0); f516bb0(ByteBuffer p0)327 static public native void f516bb0(ByteBuffer p0); f517bb0(ByteBuffer p0)328 static public native void f517bb0(ByteBuffer p0); f518bb0(ByteBuffer p0)329 static public native void f518bb0(ByteBuffer p0); f521bb0(ByteBuffer p0)330 static public native void f521bb0(ByteBuffer p0); f522bb0(ByteBuffer p0)331 static public native void f522bb0(ByteBuffer p0); f523bb0(ByteBuffer p0)332 static public native void f523bb0(ByteBuffer p0); f524bb0(ByteBuffer p0)333 static public native void f524bb0(ByteBuffer p0); 334 f531bb0(ByteBuffer p0)335 static public native void f531bb0(ByteBuffer p0); f532bb0(ByteBuffer p0)336 static public native void f532bb0(ByteBuffer p0); f533bb0(ByteBuffer p0)337 static public native void f533bb0(ByteBuffer p0); f534bb0(ByteBuffer p0)338 static public native void f534bb0(ByteBuffer p0); f535bb0(ByteBuffer p0)339 static public native void f535bb0(ByteBuffer p0); f536bb0(ByteBuffer p0)340 static public native void f536bb0(ByteBuffer p0); f537bb0(ByteBuffer p0)341 static public native void f537bb0(ByteBuffer p0); f538bb0(ByteBuffer p0)342 static public native void f538bb0(ByteBuffer p0); f541bb0(ByteBuffer p0)343 static public native void f541bb0(ByteBuffer p0); f542bb0(ByteBuffer p0)344 static public native void f542bb0(ByteBuffer p0); f543bb0(ByteBuffer p0)345 static public native void f543bb0(ByteBuffer p0); f544bb0(ByteBuffer p0)346 static public native void f544bb0(ByteBuffer p0); 347 f551bb0(ByteBuffer p0)348 static public native void f551bb0(ByteBuffer p0); f552bb0(ByteBuffer p0)349 static public native void f552bb0(ByteBuffer p0); f553bb0(ByteBuffer p0)350 static public native void f553bb0(ByteBuffer p0); f554bb0(ByteBuffer p0)351 static public native void f554bb0(ByteBuffer p0); f555bb0(ByteBuffer p0)352 static public native void f555bb0(ByteBuffer p0); f556bb0(ByteBuffer p0)353 static public native void f556bb0(ByteBuffer p0); f557bb0(ByteBuffer p0)354 static public native void f557bb0(ByteBuffer p0); f558bb0(ByteBuffer p0)355 static public native void f558bb0(ByteBuffer p0); f561bb0(ByteBuffer p0)356 static public native void f561bb0(ByteBuffer p0); f562bb0(ByteBuffer p0)357 static public native void f562bb0(ByteBuffer p0); f563bb0(ByteBuffer p0)358 static public native void f563bb0(ByteBuffer p0); f564bb0(ByteBuffer p0)359 static public native void f564bb0(ByteBuffer p0); 360 f571bb0(ByteBuffer p0)361 static public native void f571bb0(ByteBuffer p0); f572bb0(ByteBuffer p0)362 static public native void f572bb0(ByteBuffer p0); f573bb0(ByteBuffer p0)363 static public native void f573bb0(ByteBuffer p0); f574bb0(ByteBuffer p0)364 static public native void f574bb0(ByteBuffer p0); f575bb0(ByteBuffer p0)365 static public native void f575bb0(ByteBuffer p0); f576bb0(ByteBuffer p0)366 static public native void f576bb0(ByteBuffer p0); f577bb0(ByteBuffer p0)367 static public native void f577bb0(ByteBuffer p0); f578bb0(ByteBuffer p0)368 static public native void f578bb0(ByteBuffer p0); f581bb0(ByteBuffer p0)369 static public native void f581bb0(ByteBuffer p0); f582bb0(ByteBuffer p0)370 static public native void f582bb0(ByteBuffer p0); f583bb0(ByteBuffer p0)371 static public native void f583bb0(ByteBuffer p0); f584bb0(ByteBuffer p0)372 static public native void f584bb0(ByteBuffer p0); 373 374 // ---------------------------------------------------------------------- 375 // ByteBuffer<sizeof(C)> mappings of pointers to primitive types 376 // ---------------------------------------------------------------------- 377 f411bb1()378 static public native ByteBuffer f411bb1(); f412bb1()379 static public native ByteBuffer f412bb1(); f413bb1()380 static public native ByteBuffer f413bb1(); f414bb1()381 static public native ByteBuffer f414bb1(); f415bb1()382 static public native ByteBuffer f415bb1(); f416bb1()383 static public native ByteBuffer f416bb1(); f417bb1()384 static public native ByteBuffer f417bb1(); f418bb1()385