Partly revert "gio: Add filename type annotations"
[glib.git] / gio / gwin32networking.h
blob086114edf863cb1909ab9170947fdee0ab9d49b4
1 /* GIO - GLib Input, Output and Streaming Library
3 * Copyright (C) 2015 Chun-wei Fan
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.
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
16 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 #ifndef __G_WIN32_NETWORKING_H__
20 #define __G_WIN32_NETWORKING_H__
22 G_BEGIN_DECLS
24 /* Check if more ANSI-compliant Winsock2 functions are provided */
25 /* For run-time compatibility with Windows XP, remove when XP support dropped */
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);
31 typedef struct _GWin32WinsockFuncs
33 PFN_InetPton pInetPton;
34 PFN_InetNtop pInetNtop;
35 PFN_IfNameToIndex pIfNameToIndex;
36 } GWin32WinsockFuncs;
38 extern GWin32WinsockFuncs ws2funcs;
40 G_END_DECLS /* __G_WIN32_NETWORKING_H__ */
42 #endif