d3d10core/tests: Avoid POINT sampling exactly halfway between two mip levels.
[wine.git] / dlls / winscard / unixlib.h
blobecb1b40ef6838353a1920af01c73b05ec1f2ae7b
1 /*
2 * Copyright 2022 Hans Leidekker for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 /* pcsclite defines DWORD as unsigned long on 64-bit (except on macOS),
20 * so use UINT64 instead. */
22 struct scard_establish_context_params
24 UINT64 scope;
25 UINT64 *handle;
28 struct scard_release_context_params
30 UINT64 handle;
33 struct scard_is_valid_context_params
35 UINT64 handle;
38 #define MAX_ATR_SIZE 33
39 struct reader_state
41 UINT64 reader;
42 UINT64 userdata;
43 UINT64 current_state;
44 UINT64 event_state;
45 UINT64 atr_size;
46 unsigned char atr[MAX_ATR_SIZE];
49 struct scard_get_status_change_params
51 UINT64 handle;
52 UINT64 timeout;
53 struct reader_state *states;
54 UINT64 count;
57 struct scard_cancel_params
59 UINT64 handle;
62 struct scard_list_readers_params
64 UINT64 handle;
65 const char *groups;
66 char *readers;
67 UINT64 *readers_len;
70 struct scard_list_reader_groups_params
72 UINT64 handle;
73 char *groups;
74 UINT64 *groups_len;
77 struct scard_connect_params
79 UINT64 context_handle;
80 const char *reader;
81 UINT64 share_mode;
82 UINT64 preferred_protocols;
83 UINT64 *connect_handle;
84 UINT64 *protocol;
87 struct scard_status_params
89 UINT64 handle;
90 char *names;
91 UINT64 *names_len;
92 UINT64 *state;
93 UINT64 *protocol;
94 BYTE *atr;
95 UINT64 *atr_len;
98 struct scard_reconnect_params
100 UINT64 handle;
101 UINT64 share_mode;
102 UINT64 preferred_protocols;
103 UINT64 initialization;
104 UINT64 *protocol;
107 struct scard_disconnect_params
109 UINT64 handle;
110 UINT64 disposition;
113 struct scard_begin_transaction_params
115 UINT64 handle;
118 struct scard_end_transaction_params
120 UINT64 handle;
121 UINT64 disposition;
124 struct io_request
126 UINT64 protocol;
127 UINT64 pci_len;
130 struct scard_transmit_params
132 UINT64 handle;
133 const struct io_request *send;
134 const BYTE *send_buf;
135 UINT64 send_buflen;
136 struct io_request *recv;
137 BYTE *recv_buf;
138 UINT64 *recv_buflen;
141 struct scard_control_params
143 UINT64 handle;
144 UINT64 code;
145 const void *in_buf;
146 UINT64 in_buflen;
147 void *out_buf;
148 UINT64 out_buflen;
149 UINT64 *ret_len;
152 struct scard_get_attrib_params
154 UINT64 handle;
155 UINT64 id;
156 void *attr;
157 UINT64 *attr_len;
160 struct scard_set_attrib_params
162 UINT64 handle;
163 UINT64 id;
164 const void *attr;
165 UINT64 attr_len;
168 enum winscard_funcs
170 unix_scard_establish_context,
171 unix_scard_release_context,
172 unix_scard_is_valid_context,
173 unix_scard_get_status_change,
174 unix_scard_cancel,
175 unix_scard_list_readers,
176 unix_scard_list_reader_groups,
177 unix_scard_connect,
178 unix_scard_status,
179 unix_scard_reconnect,
180 unix_scard_disconnect,
181 unix_scard_begin_transaction,
182 unix_scard_end_transaction,
183 unix_scard_transmit,
184 unix_scard_control,
185 unix_scard_get_attrib,
186 unix_scard_set_attrib,