project_files/Android-build/jni.pas
author jose1711
Thu, 08 Mar 2018 21:46:43 +0100
changeset 13130 13b6f1621ef2
parent 10017 de822cd3df3a
permissions -rw-r--r--
Update Slovak translation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5456
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
     1
unit jni;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
     2
{$ifdef fpc}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
     3
 {$packrecords c}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
     4
{$endif}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
     5
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
     6
interface
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
     7
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
     8
(*
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
     9
 * Manifest constants.
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    10
 *)
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    11
const JNI_FALSE=0;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    12
      JNI_TRUE=1;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    13
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    14
      JNI_VERSION_1_1=$00010001;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    15
      JNI_VERSION_1_2=$00010002;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    16
      JNI_VERSION_1_4=$00010004;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    17
      JNI_VERSION_1_6=$00010006;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    18
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    19
      JNI_OK=0;         // no error
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    20
      JNI_ERR=-1;       // generic error
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    21
      JNI_EDETACHED=-2; // thread detached from the VM
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    22
      JNI_EVERSION=-3;  // JNI version error
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    23
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    24
      JNI_COMMIT=1;     // copy content, do not free buffer
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    25
      JNI_ABORT=2;      // free buffer w/o copying back
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    26
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    27
(*
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    28
 * Type definitions.
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    29
 *)
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    30
type va_list=pointer;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    31
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    32
     jboolean=byte;        // unsigned 8 bits
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    33
     jbyte=shortint;       // signed 8 bits
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    34
     jchar=word;           // unsigned 16 bits
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    35
     jshort=smallint;      // signed 16 bits
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    36
     jint=longint;         // signed 32 bits
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    37
     jlong=int64;          // signed 64 bits
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    38
     jfloat=single;        // 32-bit IEEE 754
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    39
     jdouble=double;       // 64-bit IEEE 754
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    40
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    41
     jsize=jint;            // "cardinal indices and sizes"
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    42
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    43
     Pjboolean=^jboolean;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    44
     Pjbyte=^jbyte;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    45
     Pjchar=^jchar;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    46
     Pjshort=^jshort;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    47
     Pjint=^jint;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    48
     Pjlong=^jlong;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    49
     Pjfloat=^jfloat;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    50
     Pjdouble=^jdouble;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    51
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    52
     Pjsize=^jsize;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    53
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    54
     // Reference type
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    55
     jobject=pointer;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    56
     jclass=jobject;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    57
     jstring=jobject;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    58
     jarray=jobject;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    59
     jobjectArray=jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    60
     jbooleanArray=jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    61
     jbyteArray=jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    62
     jcharArray=jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    63
     jshortArray=jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    64
     jintArray=jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    65
     jlongArray=jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    66
     jfloatArray=jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    67
     jdoubleArray=jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    68
     jthrowable=jobject;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    69
     jweak=jobject;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    70
     jref=jobject;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    71
6031
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
    72
     //PPointer=^pointer;
5456
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    73
     Pjobject=^jobject;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    74
     Pjclass=^jclass;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    75
     Pjstring=^jstring;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    76
     Pjarray=^jarray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    77
     PjobjectArray=^jobjectArray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    78
     PjbooleanArray=^jbooleanArray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    79
     PjbyteArray=^jbyteArray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    80
     PjcharArray=^jcharArray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    81
     PjshortArray=^jshortArray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    82
     PjintArray=^jintArray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    83
     PjlongArray=^jlongArray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    84
     PjfloatArray=^jfloatArray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    85
     PjdoubleArray=^jdoubleArray;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    86
     Pjthrowable=^jthrowable;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    87
     Pjweak=^jweak;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    88
     Pjref=^jref;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    89
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    90
     _jfieldID=record // opaque structure
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    91
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    92
     jfieldID=^_jfieldID;// field IDs
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    93
     PjfieldID=^jfieldID;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    94
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    95
     _jmethodID=record // opaque structure
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    96
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    97
     jmethodID=^_jmethodID;// method IDs
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    98
     PjmethodID=^jmethodID;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
    99
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   100
     PJNIInvokeInterface=^JNIInvokeInterface;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   101
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   102
     Pjvalue=^jvalue;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   103
     jvalue={$ifdef packedrecords}packed{$endif} record
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   104
      case integer of
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   105
       0:(z:jboolean);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   106
       1:(b:jbyte);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   107
       2:(c:jchar);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   108
       3:(s:jshort);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   109
       4:(i:jint);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   110
       5:(j:jlong);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   111
       6:(f:jfloat);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   112
       7:(d:jdouble);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   113
       8:(l:jobject);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   114
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   115
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   116
     jobjectRefType=(
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   117
      JNIInvalidRefType=0,
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   118
      JNILocalRefType=1,
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   119
      JNIGlobalRefType=2,
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   120
      JNIWeakGlobalRefType=3);
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   121
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   122
     PJNINativeMethod=^JNINativeMethod;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   123
     JNINativeMethod={$ifdef packedrecords}packed{$endif} record
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   124
      name:pchar;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   125
      signature:pchar;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   126
      fnPtr:pointer;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   127
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   128
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   129
     PJNINativeInterface=^JNINativeInterface;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   130
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   131
     _JNIEnv={$ifdef packedrecords}packed{$endif} record
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   132
      functions:PJNINativeInterface;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   133
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   134
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   135
     _JavaVM={$ifdef packedrecords}packed{$endif} record
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   136
      functions:PJNIInvokeInterface;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   137
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   138
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   139
     C_JNIEnv=^JNINativeInterface;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   140
     JNIEnv=^JNINativeInterface;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   141
     JavaVM=^JNIInvokeInterface;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   142
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   143
     PPJNIEnv=^PJNIEnv;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   144
     PJNIEnv=^JNIEnv;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   145
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   146
     PPJavaVM=^PJavaVM;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   147
     PJavaVM=^JavaVM;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   148
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   149
     JNINativeInterface={$ifdef packedrecords}packed{$endif} record
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   150
      reserved0:pointer;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   151
      reserved1:pointer;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   152
      reserved2:pointer;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   153
      reserved3:pointer;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   154
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   155
      GetVersion:function(Env:PJNIEnv):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
6031
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   156
      DefineClass:function(Env:PJNIEnv;const Name:pchar;Loader:JObject;const Buf:PJByte;Len:JSize):JClass;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   157
      FindClass:function(Env:PJNIEnv;const Name:pchar):JClass;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   158
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   159
      // Reflection Support
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   160
      FromReflectedMethod:function(Env:PJNIEnv;Method:JObject):JMethodID;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   161
      FromReflectedField:function(Env:PJNIEnv;Field:JObject):JFieldID;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   162
      ToReflectedMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;IsStatic:JBoolean):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   163
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   164
      GetSuperclass:function(Env:PJNIEnv;Sub:JClass):JClass;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   165
      IsAssignableFrom:function(Env:PJNIEnv;Sub:JClass;Sup:JClass):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   166
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   167
      // Reflection Support
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   168
      ToReflectedField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;IsStatic:JBoolean):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   169
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   170
      Throw:function(Env:PJNIEnv;Obj:JThrowable):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   171
      ThrowNew:function(Env:PJNIEnv;AClass:JClass;const Msg:pchar):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   172
      ExceptionOccurred:function(Env:PJNIEnv):JThrowable;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   173
      ExceptionDescribe:procedure(Env:PJNIEnv);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   174
      ExceptionClear:procedure(Env:PJNIEnv);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   175
      FatalError:procedure(Env:PJNIEnv;const Msg:pchar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   176
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   177
      // Local Reference Management
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   178
      PushLocalFrame:function(Env:PJNIEnv;Capacity:JInt):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   179
      PopLocalFrame:function(Env:PJNIEnv;Result:JObject):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   180
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   181
      NewGlobalRef:function(Env:PJNIEnv;LObj:JObject):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   182
      DeleteGlobalRef:procedure(Env:PJNIEnv;GRef:JObject);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   183
      DeleteLocalRef:procedure(Env:PJNIEnv;Obj:JObject);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   184
      IsSameObject:function(Env:PJNIEnv;Obj1:JObject;Obj2:JObject):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   185
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   186
      // Local Reference Management
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   187
      NewLocalRef:function(Env:PJNIEnv;Ref:JObject):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   188
      EnsureLocalCapacity:function(Env:PJNIEnv;Capacity:JInt):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   189
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   190
      AllocObject:function(Env:PJNIEnv;AClass:JClass):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   191
      NewObject:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   192
      NewObjectV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   193
      NewObjectA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   194
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   195
      GetObjectClass:function(Env:PJNIEnv;Obj:JObject):JClass;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   196
      IsInstanceOf:function(Env:PJNIEnv;Obj:JObject;AClass:JClass):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   197
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   198
      GetMethodID:function(Env:PJNIEnv;AClass:JClass;const Name:pchar;const Sig:pchar):JMethodID;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   199
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   200
      CallObjectMethod:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   201
      CallObjectMethodV:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   202
      CallObjectMethodA:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   203
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   204
      CallBooleanMethod:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   205
      CallBooleanMethodV:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   206
      CallBooleanMethodA:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   207
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   208
      CallByteMethod:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   209
      CallByteMethodV:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   210
      CallByteMethodA:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   211
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   212
      CallCharMethod:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   213
      CallCharMethodV:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   214
      CallCharMethodA:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   215
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   216
      CallShortMethod:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   217
      CallShortMethodV:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   218
      CallShortMethodA:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   219
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   220
      CallIntMethod:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   221
      CallIntMethodV:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   222
      CallIntMethodA:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   223
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   224
      CallLongMethod:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   225
      CallLongMethodV:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   226
      CallLongMethodA:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   227
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   228
      CallFloatMethod:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   229
      CallFloatMethodV:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   230
      CallFloatMethodA:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   231
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   232
      CallDoubleMethod:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   233
      CallDoubleMethodV:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   234
      CallDoubleMethodA:function(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   235
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   236
      CallVoidMethod:procedure(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   237
      CallVoidMethodV:procedure(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:va_list);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   238
      CallVoidMethodA:procedure(Env:PJNIEnv;Obj:JObject;MethodID:JMethodID;Args:PJValue);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   239
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   240
      CallNonvirtualObjectMethod:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   241
      CallNonvirtualObjectMethodV:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   242
      CallNonvirtualObjectMethodA:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   243
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   244
      CallNonvirtualBooleanMethod:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   245
      CallNonvirtualBooleanMethodV:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   246
      CallNonvirtualBooleanMethodA:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   247
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   248
      CallNonvirtualByteMethod:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   249
      CallNonvirtualByteMethodV:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   250
      CallNonvirtualByteMethodA:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   251
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   252
      CallNonvirtualCharMethod:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   253
      CallNonvirtualCharMethodV:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   254
      CallNonvirtualCharMethodA:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   255
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   256
      CallNonvirtualShortMethod:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   257
      CallNonvirtualShortMethodV:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   258
      CallNonvirtualShortMethodA:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   259
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   260
      CallNonvirtualIntMethod:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   261
      CallNonvirtualIntMethodV:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   262
      CallNonvirtualIntMethodA:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   263
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   264
      CallNonvirtualLongMethod:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   265
      CallNonvirtualLongMethodV:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   266
      CallNonvirtualLongMethodA:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   267
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   268
      CallNonvirtualFloatMethod:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   269
      CallNonvirtualFloatMethodV:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   270
      CallNonvirtualFloatMethodA:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   271
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   272
      CallNonvirtualDoubleMethod:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   273
      CallNonvirtualDoubleMethodV:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   274
      CallNonvirtualDoubleMethodA:function(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   275
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   276
      CallNonvirtualVoidMethod:procedure(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   277
      CallNonvirtualVoidMethodV:procedure(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:va_list);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   278
      CallNonvirtualVoidMethodA:procedure(Env:PJNIEnv;Obj:JObject;AClass:JClass;MethodID:JMethodID;Args:PJValue);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   279
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   280
      GetFieldID:function(Env:PJNIEnv;AClass:JClass;const Name:pchar;const Sig:pchar):JFieldID;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   281
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   282
      GetObjectField:function(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   283
      GetBooleanField:function(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   284
      GetByteField:function(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   285
      GetCharField:function(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   286
      GetShortField:function(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   287
      GetIntField:function(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   288
      GetLongField:function(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   289
      GetFloatField:function(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   290
      GetDoubleField:function(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   291
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   292
      SetObjectField:procedure(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID;Val:JObject);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   293
      SetBooleanField:procedure(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID;Val:JBoolean);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   294
      SetByteField:procedure(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID;Val:JByte);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   295
      SetCharField:procedure(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID;Val:JChar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   296
      SetShortField:procedure(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID;Val:JShort);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   297
      SetIntField:procedure(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID;Val:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   298
      SetLongField:procedure(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID;Val:JLong);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   299
      SetFloatField:procedure(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID;Val:JFloat);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   300
      SetDoubleField:procedure(Env:PJNIEnv;Obj:JObject;FieldID:JFieldID;Val:JDouble);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   301
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   302
      GetStaticMethodID:function(Env:PJNIEnv;AClass:JClass;const Name:pchar;const Sig:pchar):JMethodID;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   303
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   304
      CallStaticObjectMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   305
      CallStaticObjectMethodV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   306
      CallStaticObjectMethodA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   307
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   308
      CallStaticBooleanMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   309
      CallStaticBooleanMethodV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   310
      CallStaticBooleanMethodA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   311
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   312
      CallStaticByteMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   313
      CallStaticByteMethodV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   314
      CallStaticByteMethodA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   315
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   316
      CallStaticCharMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   317
      CallStaticCharMethodV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   318
      CallStaticCharMethodA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   319
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   320
      CallStaticShortMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   321
      CallStaticShortMethodV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   322
      CallStaticShortMethodA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   323
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   324
      CallStaticIntMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   325
      CallStaticIntMethodV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   326
      CallStaticIntMethodA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   327
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   328
      CallStaticLongMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   329
      CallStaticLongMethodV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   330
      CallStaticLongMethodA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   331
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   332
      CallStaticFloatMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   333
      CallStaticFloatMethodV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   334
      CallStaticFloatMethodA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   335
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   336
      CallStaticDoubleMethod:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   337
      CallStaticDoubleMethodV:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   338
      CallStaticDoubleMethodA:function(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   339
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   340
      CallStaticVoidMethod:procedure(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   341
      CallStaticVoidMethodV:procedure(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:va_list);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   342
      CallStaticVoidMethodA:procedure(Env:PJNIEnv;AClass:JClass;MethodID:JMethodID;Args:PJValue);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   343
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   344
      GetStaticFieldID:function(Env:PJNIEnv;AClass:JClass;const Name:pchar;const Sig:pchar):JFieldID;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   345
      GetStaticObjectField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   346
      GetStaticBooleanField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   347
      GetStaticByteField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID):JByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   348
      GetStaticCharField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID):JChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   349
      GetStaticShortField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID):JShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   350
      GetStaticIntField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   351
      GetStaticLongField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   352
      GetStaticFloatField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID):JFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   353
      GetStaticDoubleField:function(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID):JDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   354
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   355
      SetStaticObjectField:procedure(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;Val:JObject);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   356
      SetStaticBooleanField:procedure(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;Val:JBoolean);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   357
      SetStaticByteField:procedure(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;Val:JByte);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   358
      SetStaticCharField:procedure(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;Val:JChar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   359
      SetStaticShortField:procedure(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;Val:JShort);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   360
      SetStaticIntField:procedure(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;Val:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   361
      SetStaticLongField:procedure(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;Val:JLong);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   362
      SetStaticFloatField:procedure(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;Val:JFloat);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   363
      SetStaticDoubleField:procedure(Env:PJNIEnv;AClass:JClass;FieldID:JFieldID;Val:JDouble);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   364
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   365
      NewString:function(Env:PJNIEnv;const Unicode:PJChar;Len:JSize):JString;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   366
      GetStringLength:function(Env:PJNIEnv;Str:JString):JSize;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   367
      GetStringChars:function(Env:PJNIEnv;Str:JString;IsCopy:PJBoolean):PJChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   368
      ReleaseStringChars:procedure(Env:PJNIEnv;Str:JString;const Chars:PJChar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   369
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   370
      NewStringUTF:function(Env:PJNIEnv;const UTF:pchar):JString;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   371
      GetStringUTFLength:function(Env:PJNIEnv;Str:JString):JSize;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   372
      GetStringUTFChars:function(Env:PJNIEnv;Str:JString;IsCopy:PJBoolean):pchar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   373
      ReleaseStringUTFChars:procedure(Env:PJNIEnv;Str:JString;const Chars:pchar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   374
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   375
      GetArrayLength:function(Env:PJNIEnv;AArray:JArray):JSize;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   376
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   377
      NewObjectArray:function(Env:PJNIEnv;Len:JSize;AClass:JClass;Init:JObject):JObjectArray;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   378
      GetObjectArrayElement:function(Env:PJNIEnv;AArray:JObjectArray;Index:JSize):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   379
      SetObjectArrayElement:procedure(Env:PJNIEnv;AArray:JObjectArray;Index:JSize;Val:JObject);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   380
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   381
      NewBooleanArray:function(Env:PJNIEnv;Len:JSize):JBooleanArray;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   382
      NewByteArray:function(Env:PJNIEnv;Len:JSize):JByteArray;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   383
      NewCharArray:function(Env:PJNIEnv;Len:JSize):JCharArray;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   384
      NewShortArray:function(Env:PJNIEnv;Len:JSize):JShortArray;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   385
      NewIntArray:function(Env:PJNIEnv;Len:JSize):JIntArray;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   386
      NewLongArray:function(Env:PJNIEnv;Len:JSize):JLongArray;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   387
      NewFloatArray:function(Env:PJNIEnv;Len:JSize):JFloatArray;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   388
      NewDoubleArray:function(Env:PJNIEnv;Len:JSize):JDoubleArray;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   389
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   390
      GetBooleanArrayElements:function(Env:PJNIEnv;AArray:JBooleanArray;IsCopy:PJBoolean):PJBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   391
      GetByteArrayElements:function(Env:PJNIEnv;AArray:JByteArray;IsCopy:PJBoolean):PJByte;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   392
      GetCharArrayElements:function(Env:PJNIEnv;AArray:JCharArray;IsCopy:PJBoolean):PJChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   393
      GetShortArrayElements:function(Env:PJNIEnv;AArray:JShortArray;IsCopy:PJBoolean):PJShort;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   394
      GetIntArrayElements:function(Env:PJNIEnv;AArray:JIntArray;IsCopy:PJBoolean):PJInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   395
      GetLongArrayElements:function(Env:PJNIEnv;AArray:JLongArray;IsCopy:PJBoolean):PJLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   396
      GetFloatArrayElements:function(Env:PJNIEnv;AArray:JFloatArray;IsCopy:PJBoolean):PJFloat;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   397
      GetDoubleArrayElements:function(Env:PJNIEnv;AArray:JDoubleArray;IsCopy:PJBoolean):PJDouble;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   398
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   399
      ReleaseBooleanArrayElements:procedure(Env:PJNIEnv;AArray:JBooleanArray;Elems:PJBoolean;Mode:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   400
      ReleaseByteArrayElements:procedure(Env:PJNIEnv;AArray:JByteArray;Elems:PJByte;Mode:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   401
      ReleaseCharArrayElements:procedure(Env:PJNIEnv;AArray:JCharArray;Elems:PJChar;Mode:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   402
      ReleaseShortArrayElements:procedure(Env:PJNIEnv;AArray:JShortArray;Elems:PJShort;Mode:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   403
      ReleaseIntArrayElements:procedure(Env:PJNIEnv;AArray:JIntArray;Elems:PJInt;Mode:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   404
      ReleaseLongArrayElements:procedure(Env:PJNIEnv;AArray:JLongArray;Elems:PJLong;Mode:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   405
      ReleaseFloatArrayElements:procedure(Env:PJNIEnv;AArray:JFloatArray;Elems:PJFloat;Mode:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   406
      ReleaseDoubleArrayElements:procedure(Env:PJNIEnv;AArray:JDoubleArray;Elems:PJDouble;Mode:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   407
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   408
      GetBooleanArrayRegion:procedure(Env:PJNIEnv;AArray:JBooleanArray;Start:JSize;Len:JSize;Buf:PJBoolean);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   409
      GetByteArrayRegion:procedure(Env:PJNIEnv;AArray:JByteArray;Start:JSize;Len:JSize;Buf:PJByte);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   410
      GetCharArrayRegion:procedure(Env:PJNIEnv;AArray:JCharArray;Start:JSize;Len:JSize;Buf:PJChar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   411
      GetShortArrayRegion:procedure(Env:PJNIEnv;AArray:JShortArray;Start:JSize;Len:JSize;Buf:PJShort);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   412
      GetIntArrayRegion:procedure(Env:PJNIEnv;AArray:JIntArray;Start:JSize;Len:JSize;Buf:PJInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   413
      GetLongArrayRegion:procedure(Env:PJNIEnv;AArray:JLongArray;Start:JSize;Len:JSize;Buf:PJLong);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   414
      GetFloatArrayRegion:procedure(Env:PJNIEnv;AArray:JFloatArray;Start:JSize;Len:JSize;Buf:PJFloat);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   415
      GetDoubleArrayRegion:procedure(Env:PJNIEnv;AArray:JDoubleArray;Start:JSize;Len:JSize;Buf:PJDouble);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   416
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   417
      SetBooleanArrayRegion:procedure(Env:PJNIEnv;AArray:JBooleanArray;Start:JSize;Len:JSize;Buf:PJBoolean);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   418
      SetByteArrayRegion:procedure(Env:PJNIEnv;AArray:JByteArray;Start:JSize;Len:JSize;Buf:PJByte);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   419
      SetCharArrayRegion:procedure(Env:PJNIEnv;AArray:JCharArray;Start:JSize;Len:JSize;Buf:PJChar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   420
      SetShortArrayRegion:procedure(Env:PJNIEnv;AArray:JShortArray;Start:JSize;Len:JSize;Buf:PJShort);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   421
      SetIntArrayRegion:procedure(Env:PJNIEnv;AArray:JIntArray;Start:JSize;Len:JSize;Buf:PJInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   422
      SetLongArrayRegion:procedure(Env:PJNIEnv;AArray:JLongArray;Start:JSize;Len:JSize;Buf:PJLong);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   423
      SetFloatArrayRegion:procedure(Env:PJNIEnv;AArray:JFloatArray;Start:JSize;Len:JSize;Buf:PJFloat);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   424
      SetDoubleArrayRegion:procedure(Env:PJNIEnv;AArray:JDoubleArray;Start:JSize;Len:JSize;Buf:PJDouble);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   425
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   426
      RegisterNatives:function(Env:PJNIEnv;AClass:JClass;const Methods:PJNINativeMethod;NMethods:JInt):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   427
      UnregisterNatives:function(Env:PJNIEnv;AClass:JClass):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   428
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   429
      MonitorEnter:function(Env:PJNIEnv;Obj:JObject):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   430
      MonitorExit:function(Env:PJNIEnv;Obj:JObject):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   431
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   432
      GetJavaVM:function(Env:PJNIEnv;VM:PJavaVM):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   433
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   434
      // String Operations
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   435
      GetStringRegion:procedure(Env:PJNIEnv;Str:JString;Start:JSize;Len:JSize;Buf:PJChar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   436
      GetStringUTFRegion:procedure(Env:PJNIEnv;Str:JString;Start:JSize;Len:JSize;Buf:pchar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   437
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   438
      // Array Operations
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   439
      GetPrimitiveArrayCritical:function(Env:PJNIEnv;AArray:JArray;IsCopy:PJBoolean):pointer;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   440
      ReleasePrimitiveArrayCritical:procedure(Env:PJNIEnv;AArray:JArray;CArray:pointer;Mode:JInt);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   441
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   442
      // String Operations
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   443
      GetStringCritical:function(Env:PJNIEnv;Str:JString;IsCopy:PJBoolean):PJChar;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   444
      ReleaseStringCritical:procedure(Env:PJNIEnv;Str:JString;CString:PJChar);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   445
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   446
      // Weak Global References
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   447
      NewWeakGlobalRef:function(Env:PJNIEnv;Obj:JObject):JWeak;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   448
      DeleteWeakGlobalRef:procedure(Env:PJNIEnv;Ref:JWeak);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   449
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   450
      // Exceptions
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   451
      ExceptionCheck:function(Env:PJNIEnv):JBoolean;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   452
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   453
      // J2SDK1_4
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   454
      NewDirectByteBuffer:function(Env:PJNIEnv;Address:pointer;Capacity:JLong):JObject;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   455
      GetDirectBufferAddress:function(Env:PJNIEnv;Buf:JObject):pointer;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
5456
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   456
      GetDirectBufferCapacity:function(Env:PJNIEnv;Buf:JObject):JLong;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   457
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   458
      // added in JNI 1.6
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   459
      GetObjectRefType:function(Env:PJNIEnv;AObject:JObject):jobjectRefType;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   460
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   461
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   462
     JNIInvokeInterface={$ifdef packedrecords}packed{$endif} record
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   463
      reserved0:pointer;
6031
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   464
      reserved1:pointer;
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   465
      reserved2:pointer;
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   466
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   467
      DestroyJavaVM:function(PVM:PJavaVM):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   468
      AttachCurrentThread:function(PVM:PJavaVM;PEnv:PPJNIEnv;Args:pointer):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   469
      DetachCurrentThread:function(PVM:PJavaVM):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   470
      GetEnv:function(PVM:PJavaVM;PEnv:Ppointer;Version:JInt):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   471
      AttachCurrentThreadAsDaemon:function(PVM:PJavaVM;PEnv:PPJNIEnv;Args:pointer):JInt;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   472
     end;
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   473
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   474
     JavaVMAttachArgs={$ifdef packedrecords}packed{$endif} record
5456
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   475
      version:jint;  // must be >= JNI_VERSION_1_2
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   476
      name:pchar;    // NULL or name of thread as modified UTF-8 str
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   477
      group:jobject; // global ref of a ThreadGroup object, or NULL
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   478
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   479
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   480
(**
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   481
 * JNI 1.2+ initialization.  (As of 1.6, the pre-1.2 structures are no
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   482
 * longer supported.)
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   483
 *)
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   484
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   485
     PJavaVMOption=^JavaVMOption;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   486
     JavaVMOption={$ifdef packedrecords}packed{$endif} record
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   487
      optionString:pchar;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   488
      extraInfo:pointer;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   489
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   490
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   491
     JavaVMInitArgs={$ifdef packedrecords}packed{$endif} record
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   492
      version:jint; // use JNI_VERSION_1_2 or later
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   493
      nOptions:jint;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   494
      options:PJavaVMOption;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   495
      ignoreUnrecognized:Pjboolean;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   496
     end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   497
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   498
(*
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   499
 * VM initialization functions.
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   500
 *
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   501
 * Note these are the only symbols exported for JNI by the VM.
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   502
 *)
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   503
{$ifdef jniexternals}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   504
function JNI_GetDefaultJavaVMInitArgs(p:pointer):jint;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}external 'jni' name 'JNI_GetDefaultJavaVMInitArgs';
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   505
function JNI_CreateJavaVM(vm:PPJavaVM;AEnv:PPJNIEnv;p:pointer):jint;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}external 'jni' name 'JNI_CreateJavaVM';
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   506
function JNI_GetCreatedJavaVMs(vm:PPJavaVM;ASize:jsize;p:Pjsize):jint;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}external 'jni' name 'JNI_GetCreatedJavaVMs';
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   507
{$endif}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   508
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   509
(*
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   510
 * Prototypes for functions exported by loadable shared libs.  These are
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   511
 * called by JNI, not provided by JNI.
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   512
 *)
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   513
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   514
const curVM:PJavaVM=nil;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   515
      curEnv:PJNIEnv=nil;
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 6031
diff changeset
   516
5456
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   517
(*
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   518
function JNI_OnLoad(vm:PJavaVM;reserved:pointer):jint;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   519
procedure JNI_OnUnload(vm:PJavaVM;reserved:pointer);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   520
*)
6031
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   521
implementation
5456
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   522
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   523
function JNI_OnLoad(vm:PJavaVM;reserved:pointer):jint;{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   524
begin
6031
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   525
 reserved:=reserved;
5456
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   526
 curVM:=vm;
6031
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   527
 exit(JNI_VERSION_1_6);
5456
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   528
end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   529
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   530
procedure JNI_OnUnload(vm:PJavaVM;reserved:pointer);{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   531
begin
6031
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   532
 vm:=vm;
95d565991edd strip eols and delphi mode
koda
parents: 5621
diff changeset
   533
 reserved:=reserved;
5456
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   534
end;
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   535
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   536
end.
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   537
e94004b66d3f jni constants used by hwLibrary
Xeli
parents:
diff changeset
   538