And another warning fix.
[metze/wireshark/wip.git] / capture_wpcap_packet.h
1 /* capture_wpcap_packet.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 2001 Gerald Combs
6  *
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22
23 #ifndef CAPTURE_WPCAP_PACKET_H
24 #define CAPTURE_WPCAP_PACKET_H
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* __cplusplus */
29
30 extern void wpcap_packet_load(void);
31
32 /* get the packet.dll version info */
33 extern char *wpcap_packet_get_version(void);
34
35 /* open the interface */
36 extern void * wpcap_packet_open(char *if_name);
37
38 /* close the interface */
39 extern void wpcap_packet_close(void * adapter);
40
41 extern int wpcap_packet_request(void *a, ULONG Oid, int set, char *value, unsigned int *length);
42
43 extern int wpcap_packet_request_uint(void *a, ULONG Oid, UINT *value);
44
45 extern int wpcap_packet_request_ulong(void *a, ULONG Oid, ULONG *value);
46
47 #ifdef __cplusplus
48 }
49 #endif /* __cplusplus */
50
51 #endif  /* CAPTURE_WPCAP_PACKET_H */