1/* DO NOT EDIT THIS FILE - it is machine generated */
2#include <jni.h>
3/* Header for class sun_security_smartcardio_PCSC */
4
5#ifndef _Included_sun_security_smartcardio_PCSC
6#define _Included_sun_security_smartcardio_PCSC
7#ifdef __cplusplus
8extern "C" {
9#endif
10#undef sun_security_smartcardio_PCSC_SCARD_PROTOCOL_T0
11#define sun_security_smartcardio_PCSC_SCARD_PROTOCOL_T0 1L
12#undef sun_security_smartcardio_PCSC_SCARD_PROTOCOL_T1
13#define sun_security_smartcardio_PCSC_SCARD_PROTOCOL_T1 2L
14#undef sun_security_smartcardio_PCSC_SCARD_PROTOCOL_RAW
15#define sun_security_smartcardio_PCSC_SCARD_PROTOCOL_RAW 4L
16#undef sun_security_smartcardio_PCSC_SCARD_UNKNOWN
17#define sun_security_smartcardio_PCSC_SCARD_UNKNOWN 1L
18#undef sun_security_smartcardio_PCSC_SCARD_ABSENT
19#define sun_security_smartcardio_PCSC_SCARD_ABSENT 2L
20#undef sun_security_smartcardio_PCSC_SCARD_PRESENT
21#define sun_security_smartcardio_PCSC_SCARD_PRESENT 4L
22#undef sun_security_smartcardio_PCSC_SCARD_SWALLOWED
23#define sun_security_smartcardio_PCSC_SCARD_SWALLOWED 8L
24#undef sun_security_smartcardio_PCSC_SCARD_POWERED
25#define sun_security_smartcardio_PCSC_SCARD_POWERED 16L
26#undef sun_security_smartcardio_PCSC_SCARD_NEGOTIABLE
27#define sun_security_smartcardio_PCSC_SCARD_NEGOTIABLE 32L
28#undef sun_security_smartcardio_PCSC_SCARD_SPECIFIC
29#define sun_security_smartcardio_PCSC_SCARD_SPECIFIC 64L
30#undef sun_security_smartcardio_PCSC_SCARD_S_SUCCESS
31#define sun_security_smartcardio_PCSC_SCARD_S_SUCCESS 0L
32#undef sun_security_smartcardio_PCSC_SCARD_E_CANCELLED
33#define sun_security_smartcardio_PCSC_SCARD_E_CANCELLED -2146435070L
34#undef sun_security_smartcardio_PCSC_SCARD_E_CANT_DISPOSE
35#define sun_security_smartcardio_PCSC_SCARD_E_CANT_DISPOSE -2146435058L
36#undef sun_security_smartcardio_PCSC_SCARD_E_INSUFFICIENT_BUFFER
37#define sun_security_smartcardio_PCSC_SCARD_E_INSUFFICIENT_BUFFER -2146435064L
38#undef sun_security_smartcardio_PCSC_SCARD_E_INVALID_ATR
39#define sun_security_smartcardio_PCSC_SCARD_E_INVALID_ATR -2146435051L
40#undef sun_security_smartcardio_PCSC_SCARD_E_INVALID_HANDLE
41#define sun_security_smartcardio_PCSC_SCARD_E_INVALID_HANDLE -2146435069L
42#undef sun_security_smartcardio_PCSC_SCARD_E_INVALID_PARAMETER
43#define sun_security_smartcardio_PCSC_SCARD_E_INVALID_PARAMETER -2146435068L
44#undef sun_security_smartcardio_PCSC_SCARD_E_INVALID_TARGET
45#define sun_security_smartcardio_PCSC_SCARD_E_INVALID_TARGET -2146435067L
46#undef sun_security_smartcardio_PCSC_SCARD_E_INVALID_VALUE
47#define sun_security_smartcardio_PCSC_SCARD_E_INVALID_VALUE -2146435055L
48#undef sun_security_smartcardio_PCSC_SCARD_E_NO_MEMORY
49#define sun_security_smartcardio_PCSC_SCARD_E_NO_MEMORY -2146435066L
50#undef sun_security_smartcardio_PCSC_SCARD_F_COMM_ERROR
51#define sun_security_smartcardio_PCSC_SCARD_F_COMM_ERROR -2146435053L
52#undef sun_security_smartcardio_PCSC_SCARD_F_INTERNAL_ERROR
53#define sun_security_smartcardio_PCSC_SCARD_F_INTERNAL_ERROR -2146435071L
54#undef sun_security_smartcardio_PCSC_SCARD_F_UNKNOWN_ERROR
55#define sun_security_smartcardio_PCSC_SCARD_F_UNKNOWN_ERROR -2146435052L
56#undef sun_security_smartcardio_PCSC_SCARD_F_WAITED_TOO_LONG
57#define sun_security_smartcardio_PCSC_SCARD_F_WAITED_TOO_LONG -2146435065L
58#undef sun_security_smartcardio_PCSC_SCARD_E_UNKNOWN_READER
59#define sun_security_smartcardio_PCSC_SCARD_E_UNKNOWN_READER -2146435063L
60#undef sun_security_smartcardio_PCSC_SCARD_E_TIMEOUT
61#define sun_security_smartcardio_PCSC_SCARD_E_TIMEOUT -2146435062L
62#undef sun_security_smartcardio_PCSC_SCARD_E_SHARING_VIOLATION
63#define sun_security_smartcardio_PCSC_SCARD_E_SHARING_VIOLATION -2146435061L
64#undef sun_security_smartcardio_PCSC_SCARD_E_NO_SMARTCARD
65#define sun_security_smartcardio_PCSC_SCARD_E_NO_SMARTCARD -2146435060L
66#undef sun_security_smartcardio_PCSC_SCARD_E_UNKNOWN_CARD
67#define sun_security_smartcardio_PCSC_SCARD_E_UNKNOWN_CARD -2146435059L
68#undef sun_security_smartcardio_PCSC_SCARD_E_PROTO_MISMATCH
69#define sun_security_smartcardio_PCSC_SCARD_E_PROTO_MISMATCH -2146435057L
70#undef sun_security_smartcardio_PCSC_SCARD_E_NOT_READY
71#define sun_security_smartcardio_PCSC_SCARD_E_NOT_READY -2146435056L
72#undef sun_security_smartcardio_PCSC_SCARD_E_SYSTEM_CANCELLED
73#define sun_security_smartcardio_PCSC_SCARD_E_SYSTEM_CANCELLED -2146435054L
74#undef sun_security_smartcardio_PCSC_SCARD_E_NOT_TRANSACTED
75#define sun_security_smartcardio_PCSC_SCARD_E_NOT_TRANSACTED -2146435050L
76#undef sun_security_smartcardio_PCSC_SCARD_E_READER_UNAVAILABLE
77#define sun_security_smartcardio_PCSC_SCARD_E_READER_UNAVAILABLE -2146435049L
78#undef sun_security_smartcardio_PCSC_SCARD_W_UNSUPPORTED_CARD
79#define sun_security_smartcardio_PCSC_SCARD_W_UNSUPPORTED_CARD -2146434971L
80#undef sun_security_smartcardio_PCSC_SCARD_W_UNRESPONSIVE_CARD
81#define sun_security_smartcardio_PCSC_SCARD_W_UNRESPONSIVE_CARD -2146434970L
82#undef sun_security_smartcardio_PCSC_SCARD_W_UNPOWERED_CARD
83#define sun_security_smartcardio_PCSC_SCARD_W_UNPOWERED_CARD -2146434969L
84#undef sun_security_smartcardio_PCSC_SCARD_W_RESET_CARD
85#define sun_security_smartcardio_PCSC_SCARD_W_RESET_CARD -2146434968L
86#undef sun_security_smartcardio_PCSC_SCARD_W_REMOVED_CARD
87#define sun_security_smartcardio_PCSC_SCARD_W_REMOVED_CARD -2146434967L
88#undef sun_security_smartcardio_PCSC_SCARD_W_INSERTED_CARD
89#define sun_security_smartcardio_PCSC_SCARD_W_INSERTED_CARD -2146434966L
90#undef sun_security_smartcardio_PCSC_SCARD_E_UNSUPPORTED_FEATURE
91#define sun_security_smartcardio_PCSC_SCARD_E_UNSUPPORTED_FEATURE -2146435041L
92#undef sun_security_smartcardio_PCSC_SCARD_E_PCI_TOO_SMALL
93#define sun_security_smartcardio_PCSC_SCARD_E_PCI_TOO_SMALL -2146435047L
94#undef sun_security_smartcardio_PCSC_SCARD_E_READER_UNSUPPORTED
95#define sun_security_smartcardio_PCSC_SCARD_E_READER_UNSUPPORTED -2146435046L
96#undef sun_security_smartcardio_PCSC_SCARD_E_DUPLICATE_READER
97#define sun_security_smartcardio_PCSC_SCARD_E_DUPLICATE_READER -2146435045L
98#undef sun_security_smartcardio_PCSC_SCARD_E_CARD_UNSUPPORTED
99#define sun_security_smartcardio_PCSC_SCARD_E_CARD_UNSUPPORTED -2146435044L
100#undef sun_security_smartcardio_PCSC_SCARD_E_NO_SERVICE
101#define sun_security_smartcardio_PCSC_SCARD_E_NO_SERVICE -2146435043L
102#undef sun_security_smartcardio_PCSC_SCARD_E_SERVICE_STOPPED
103#define sun_security_smartcardio_PCSC_SCARD_E_SERVICE_STOPPED -2146435042L
104#undef sun_security_smartcardio_PCSC_SCARD_E_NO_READERS_AVAILABLE
105#define sun_security_smartcardio_PCSC_SCARD_E_NO_READERS_AVAILABLE -2146435026L
106#undef sun_security_smartcardio_PCSC_WINDOWS_ERROR_INVALID_HANDLE
107#define sun_security_smartcardio_PCSC_WINDOWS_ERROR_INVALID_HANDLE 6L
108#undef sun_security_smartcardio_PCSC_WINDOWS_ERROR_INVALID_PARAMETER
109#define sun_security_smartcardio_PCSC_WINDOWS_ERROR_INVALID_PARAMETER 87L
110#undef sun_security_smartcardio_PCSC_SCARD_SCOPE_USER
111#define sun_security_smartcardio_PCSC_SCARD_SCOPE_USER 0L
112#undef sun_security_smartcardio_PCSC_SCARD_SCOPE_TERMINAL
113#define sun_security_smartcardio_PCSC_SCARD_SCOPE_TERMINAL 1L
114#undef sun_security_smartcardio_PCSC_SCARD_SCOPE_SYSTEM
115#define sun_security_smartcardio_PCSC_SCARD_SCOPE_SYSTEM 2L
116#undef sun_security_smartcardio_PCSC_SCARD_SCOPE_GLOBAL
117#define sun_security_smartcardio_PCSC_SCARD_SCOPE_GLOBAL 3L
118#undef sun_security_smartcardio_PCSC_SCARD_SHARE_EXCLUSIVE
119#define sun_security_smartcardio_PCSC_SCARD_SHARE_EXCLUSIVE 1L
120#undef sun_security_smartcardio_PCSC_SCARD_SHARE_SHARED
121#define sun_security_smartcardio_PCSC_SCARD_SHARE_SHARED 2L
122#undef sun_security_smartcardio_PCSC_SCARD_SHARE_DIRECT
123#define sun_security_smartcardio_PCSC_SCARD_SHARE_DIRECT 3L
124#undef sun_security_smartcardio_PCSC_SCARD_LEAVE_CARD
125#define sun_security_smartcardio_PCSC_SCARD_LEAVE_CARD 0L
126#undef sun_security_smartcardio_PCSC_SCARD_RESET_CARD
127#define sun_security_smartcardio_PCSC_SCARD_RESET_CARD 1L
128#undef sun_security_smartcardio_PCSC_SCARD_UNPOWER_CARD
129#define sun_security_smartcardio_PCSC_SCARD_UNPOWER_CARD 2L
130#undef sun_security_smartcardio_PCSC_SCARD_EJECT_CARD
131#define sun_security_smartcardio_PCSC_SCARD_EJECT_CARD 3L
132#undef sun_security_smartcardio_PCSC_SCARD_STATE_UNAWARE
133#define sun_security_smartcardio_PCSC_SCARD_STATE_UNAWARE 0L
134#undef sun_security_smartcardio_PCSC_SCARD_STATE_IGNORE
135#define sun_security_smartcardio_PCSC_SCARD_STATE_IGNORE 1L
136#undef sun_security_smartcardio_PCSC_SCARD_STATE_CHANGED
137#define sun_security_smartcardio_PCSC_SCARD_STATE_CHANGED 2L
138#undef sun_security_smartcardio_PCSC_SCARD_STATE_UNKNOWN
139#define sun_security_smartcardio_PCSC_SCARD_STATE_UNKNOWN 4L
140#undef sun_security_smartcardio_PCSC_SCARD_STATE_UNAVAILABLE
141#define sun_security_smartcardio_PCSC_SCARD_STATE_UNAVAILABLE 8L
142#undef sun_security_smartcardio_PCSC_SCARD_STATE_EMPTY
143#define sun_security_smartcardio_PCSC_SCARD_STATE_EMPTY 16L
144#undef sun_security_smartcardio_PCSC_SCARD_STATE_PRESENT
145#define sun_security_smartcardio_PCSC_SCARD_STATE_PRESENT 32L
146#undef sun_security_smartcardio_PCSC_SCARD_STATE_ATRMATCH
147#define sun_security_smartcardio_PCSC_SCARD_STATE_ATRMATCH 64L
148#undef sun_security_smartcardio_PCSC_SCARD_STATE_EXCLUSIVE
149#define sun_security_smartcardio_PCSC_SCARD_STATE_EXCLUSIVE 128L
150#undef sun_security_smartcardio_PCSC_SCARD_STATE_INUSE
151#define sun_security_smartcardio_PCSC_SCARD_STATE_INUSE 256L
152#undef sun_security_smartcardio_PCSC_SCARD_STATE_MUTE
153#define sun_security_smartcardio_PCSC_SCARD_STATE_MUTE 512L
154#undef sun_security_smartcardio_PCSC_SCARD_STATE_UNPOWERED
155#define sun_security_smartcardio_PCSC_SCARD_STATE_UNPOWERED 1024L
156#undef sun_security_smartcardio_PCSC_TIMEOUT_INFINITE
157#define sun_security_smartcardio_PCSC_TIMEOUT_INFINITE -1L
158/*
159 * Class: sun_security_smartcardio_PCSC
160 * Method: SCardEstablishContext
161 * Signature: (I)J
162 */
163JNIEXPORT jlong JNICALL Java_sun_security_smartcardio_PCSC_SCardEstablishContext
164 (JNIEnv *, jclass, jint);
165
166/*
167 * Class: sun_security_smartcardio_PCSC
168 * Method: SCardListReaders
169 * Signature: (J)[Ljava/lang/String;
170 */
171JNIEXPORT jobjectArray JNICALL Java_sun_security_smartcardio_PCSC_SCardListReaders
172 (JNIEnv *, jclass, jlong);
173
174/*
175 * Class: sun_security_smartcardio_PCSC
176 * Method: SCardConnect
177 * Signature: (JLjava/lang/String;II)J
178 */
179JNIEXPORT jlong JNICALL Java_sun_security_smartcardio_PCSC_SCardConnect
180 (JNIEnv *, jclass, jlong, jstring, jint, jint);
181
182/*
183 * Class: sun_security_smartcardio_PCSC
184 * Method: SCardTransmit
185 * Signature: (JI[BII)[B
186 */
187JNIEXPORT jbyteArray JNICALL Java_sun_security_smartcardio_PCSC_SCardTransmit
188 (JNIEnv *, jclass, jlong, jint, jbyteArray, jint, jint);
189
190/*
191 * Class: sun_security_smartcardio_PCSC
192 * Method: SCardStatus
193 * Signature: (J[B)[B
194 */
195JNIEXPORT jbyteArray JNICALL Java_sun_security_smartcardio_PCSC_SCardStatus
196 (JNIEnv *, jclass, jlong, jbyteArray);
197
198/*
199 * Class: sun_security_smartcardio_PCSC
200 * Method: SCardDisconnect
201 * Signature: (JI)V
202 */
203JNIEXPORT void JNICALL Java_sun_security_smartcardio_PCSC_SCardDisconnect
204 (JNIEnv *, jclass, jlong, jint);
205
206/*
207 * Class: sun_security_smartcardio_PCSC
208 * Method: SCardGetStatusChange
209 * Signature: (JJ[I[Ljava/lang/String;)[I
210 */
211JNIEXPORT jintArray JNICALL Java_sun_security_smartcardio_PCSC_SCardGetStatusChange
212 (JNIEnv *, jclass, jlong, jlong, jintArray, jobjectArray);
213
214/*
215 * Class: sun_security_smartcardio_PCSC
216 * Method: SCardBeginTransaction
217 * Signature: (J)V
218 */
219JNIEXPORT void JNICALL Java_sun_security_smartcardio_PCSC_SCardBeginTransaction
220 (JNIEnv *, jclass, jlong);
221
222/*
223 * Class: sun_security_smartcardio_PCSC
224 * Method: SCardEndTransaction
225 * Signature: (JI)V
226 */
227JNIEXPORT void JNICALL Java_sun_security_smartcardio_PCSC_SCardEndTransaction
228 (JNIEnv *, jclass, jlong, jint);
229
230/*
231 * Class: sun_security_smartcardio_PCSC
232 * Method: SCardControl
233 * Signature: (JI[B)[B
234 */
235JNIEXPORT jbyteArray JNICALL Java_sun_security_smartcardio_PCSC_SCardControl
236 (JNIEnv *, jclass, jlong, jint, jbyteArray);
237
238#ifdef __cplusplus
239}
240#endif
241#endif
242