nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright (C) 2015 Chun-wei Fan
4 *
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 of the License, or (at your option) any later version.
9 *
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.
14 *
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
17 */
18  
19 #ifndef __G_WIN32_NETWORKING_H__
20 #define __G_WIN32_NETWORKING_H__
21  
22 G_BEGIN_DECLS
23  
24 /* Check if more ANSI-compliant Winsock2 functions are provided */
25 /* For run-time compatibility with Windows XP, remove when XP support dropped */
26  
27 typedef INT (WSAAPI *PFN_InetPton) (INT, PCTSTR, PVOID);
28 typedef PCTSTR (WSAAPI *PFN_InetNtop) (INT, PVOID, PTSTR, size_t);
29 typedef NET_IFINDEX (WINAPI *PFN_IfNameToIndex) (PCSTR);
30  
31 typedef struct _GWin32WinsockFuncs
32 {
33 PFN_InetPton pInetPton;
34 PFN_InetNtop pInetNtop;
35 PFN_IfNameToIndex pIfNameToIndex;
36 } GWin32WinsockFuncs;
37  
38 extern GWin32WinsockFuncs ws2funcs;
39  
40 G_END_DECLS /* __G_WIN32_NETWORKING_H__ */
41  
42 #endif