windowscodecs: Silence fixme for IID_CMetaBitmapRenderTarget.
[wine.git] / dlls / wpcap / unixlib.h
blobd13d62a97aac1df4df180e70c8fde921518eb11f
1 /*
2 * Copyright 2011, 2014 André Hentschel
3 * Copyright 2021 Hans Leidekker for CodeWeavers
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 struct pcap_address
22 struct pcap_address *next;
23 struct sockaddr *addr;
24 struct sockaddr *netmask;
25 struct sockaddr *broadaddr;
26 struct sockaddr *dstaddr;
29 struct pcap_interface
31 struct pcap_interface *next;
32 char *name;
33 char *description;
34 struct pcap_address *addresses;
35 unsigned int flags;
38 struct pcap_interface_offsets
40 unsigned int name_offset;
41 unsigned int name_len;
42 unsigned int description_offset;
43 unsigned int description_len;
44 unsigned int flags;
47 struct pcap_pkthdr_win32
49 struct
51 int tv_sec;
52 int tv_usec;
53 } ts;
54 unsigned int caplen;
55 unsigned int len;
58 struct pcap_stat_win32
60 unsigned int ps_recv;
61 unsigned int ps_drop;
62 unsigned int ps_ifdrop;
63 unsigned int ps_capt;
64 unsigned int ps_sent;
65 unsigned int ps_netdrop;
68 struct activate_params
70 UINT64 handle;
73 struct breakloop_params
75 UINT64 handle;
78 struct bufsize_params
80 UINT64 handle;
83 struct can_set_rfmon_params
85 UINT64 handle;
88 struct close_params
90 UINT64 handle;
93 struct compile_params
95 UINT64 handle;
96 unsigned int *program_len;
97 struct bpf_insn *program_insns;
98 const char *str;
99 int optimize;
100 unsigned int mask;
103 struct create_params
105 char *source;
106 char *errbuf;
107 UINT64 *handle;
110 struct datalink_params
112 UINT64 handle;
115 struct datalink_name_to_val_params
117 const char *name;
120 struct datalink_val_to_description_params
122 int link;
123 char *buf;
124 unsigned int *buflen;
127 struct datalink_val_to_name_params
129 int link;
130 char *buf;
131 unsigned int *buflen;
134 struct dump_params
136 unsigned char *user;
137 const struct pcap_pkthdr_win32 *hdr;
138 const unsigned char *packet;
141 struct dump_close_params
143 UINT64 handle;
146 struct dump_open_params
148 UINT64 handle;
149 char *name;
150 UINT64 *ret_handle;
153 struct findalldevs_params
155 char *buf;
156 unsigned int *buflen;
157 char *errbuf;
160 struct geterr_params
162 UINT64 handle;
163 char *errbuf;
166 struct getnonblock_params
168 UINT64 handle;
169 char *errbuf;
172 struct get_tstamp_precision_params
174 UINT64 handle;
177 struct init_params
179 int opt;
180 char *errbuf;
183 struct lib_version_params
185 char *version;
186 unsigned int size;
189 struct list_datalinks_params
191 UINT64 handle;
192 int *links;
193 int *count;
196 struct list_tstamp_types_params
198 UINT64 handle;
199 int *types;
200 int *count;
203 struct lookupnet_params
205 char *device;
206 unsigned int *net;
207 unsigned int *mask;
208 char *errbuf;
211 struct major_version_params
213 UINT64 handle;
216 struct minor_version_params
218 UINT64 handle;
221 struct next_ex_params
223 UINT64 handle;
224 struct pcap_pkthdr_win32 *hdr;
225 const unsigned char **data;
228 struct open_live_params
230 char *source;
231 int snaplen;
232 int promisc;
233 int timeout;
234 char *errbuf;
235 UINT64 *handle;
238 struct sendpacket_params
240 UINT64 handle;
241 const unsigned char *buf;
242 int size;
245 struct set_buffer_size_params
247 UINT64 handle;
248 int size;
251 struct set_datalink_params
253 UINT64 handle;
254 int link;
257 struct set_promisc_params
259 UINT64 handle;
260 int enable;
263 struct set_rfmon_params
265 UINT64 handle;
266 int enable;
269 struct set_snaplen_params
271 UINT64 handle;
272 int len;
275 struct set_timeout_params
277 UINT64 handle;
278 int timeout;
281 struct set_tstamp_precision_params
283 UINT64 handle;
284 int precision;
287 struct set_tstamp_type_params
289 UINT64 handle;
290 int type;
293 struct setfilter_params
295 UINT64 handle;
296 unsigned int program_len;
297 struct bpf_insn *program_insns;
300 struct setnonblock_params
302 UINT64 handle;
303 int nonblock;
304 char *errbuf;
307 struct snapshot_params
309 UINT64 handle;
312 struct stats_params
314 UINT64 handle;
315 struct pcap_stat_win32 stat;
318 struct tstamp_type_name_to_val_params
320 const char *name;
323 struct tstamp_type_val_to_description_params
325 int type;
326 char *buf;
327 unsigned int *buflen;
330 struct tstamp_type_val_to_name_params
332 int type;
333 char *buf;
334 unsigned int *buflen;
337 enum pcap_funcs
339 unix_activate,
340 unix_breakloop,
341 unix_bufsize,
342 unix_can_set_rfmon,
343 unix_close,
344 unix_compile,
345 unix_create,
346 unix_datalink,
347 unix_datalink_name_to_val,
348 unix_datalink_val_to_description,
349 unix_datalink_val_to_name,
350 unix_dump,
351 unix_dump_close,
352 unix_dump_open,
353 unix_findalldevs,
354 unix_get_tstamp_precision,
355 unix_geterr,
356 unix_getnonblock,
357 unix_init,
358 unix_lib_version,
359 unix_list_datalinks,
360 unix_list_tstamp_types,
361 unix_lookupnet,
362 unix_major_version,
363 unix_minor_version,
364 unix_next_ex,
365 unix_open_live,
366 unix_sendpacket,
367 unix_set_buffer_size,
368 unix_set_datalink,
369 unix_set_promisc,
370 unix_set_rfmon,
371 unix_set_snaplen,
372 unix_set_timeout,
373 unix_set_tstamp_precision,
374 unix_set_tstamp_type,
375 unix_setfilter,
376 unix_setnonblock,
377 unix_snapshot,
378 unix_stats,
379 unix_tstamp_type_name_to_val,
380 unix_tstamp_type_val_to_description,
381 unix_tstamp_type_val_to_name,
382 unix_funcs_count