• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef HEADER_CARES_LIBRARY_INIT_H
2 #define HEADER_CARES_LIBRARY_INIT_H
3 
4 
5 /* Copyright 1998 by the Massachusetts Institute of Technology.
6  * Copyright (C) 2004-2011 by Daniel Stenberg
7  *
8  * Permission to use, copy, modify, and distribute this
9  * software and its documentation for any purpose and without
10  * fee is hereby granted, provided that the above copyright
11  * notice appear in all copies and that both that copyright
12  * notice and this permission notice appear in supporting
13  * documentation, and that the name of M.I.T. not be used in
14  * advertising or publicity pertaining to distribution of the
15  * software without specific, written prior permission.
16  * M.I.T. makes no representations about the suitability of
17  * this software for any purpose.  It is provided "as is"
18  * without express or implied warranty.
19  */
20 
21 #include "ares_setup.h"
22 
23 #ifdef USE_WINSOCK
24 
25 #include <iphlpapi.h>
26 #include <ares_iphlpapi.h>
27 
28 typedef DWORD (WINAPI *fpGetNetworkParams_t) (FIXED_INFO*, DWORD*);
29 typedef BOOLEAN (APIENTRY *fpSystemFunction036_t) (void*, ULONG);
30 typedef ULONG (WINAPI *fpGetAdaptersAddresses_t) ( ULONG, ULONG, void*, IP_ADAPTER_ADDRESSES*, ULONG* );
31 typedef NETIO_STATUS (WINAPI *fpGetBestRoute2_t) ( NET_LUID *, NET_IFINDEX, const SOCKADDR_INET *, const SOCKADDR_INET *, ULONG, PMIB_IPFORWARD_ROW2, SOCKADDR_INET * );
32 /* Forward-declaration of variables defined in ares_library_init.c */
33 /* that are global and unique instances for whole c-ares library.  */
34 
35 extern fpGetNetworkParams_t ares_fpGetNetworkParams;
36 extern fpSystemFunction036_t ares_fpSystemFunction036;
37 extern fpGetAdaptersAddresses_t ares_fpGetAdaptersAddresses;
38 extern fpGetBestRoute2_t ares_fpGetBestRoute2;
39 
40 #endif /* USE_WINSOCK */
41 
42 #endif /* HEADER_CARES_LIBRARY_INIT_H */
43 
44