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