aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_library_init.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-17 17:10:41 +0000
committerYang Tse <yangsita@gmail.com>2009-05-17 17:10:41 +0000
commit60a6af74983d45503067b7e53b14117076a05115 (patch)
tree34502e7906c9f19587397cd0afdd357da3591a4b /ares/ares_library_init.h
parent3cb06eb2b2e80795d8f97d1fcfdcb8f1d01f02ce (diff)
Introduction of ares_library_init() and ares_library_cleanup()
Diffstat (limited to 'ares/ares_library_init.h')
-rw-r--r--ares/ares_library_init.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/ares/ares_library_init.h b/ares/ares_library_init.h
new file mode 100644
index 000000000..1b4c760a4
--- /dev/null
+++ b/ares/ares_library_init.h
@@ -0,0 +1,24 @@
+#ifndef HEADER_CARES_LIBRARY_INIT_H
+#define HEADER_CARES_LIBRARY_INIT_H
+
+/* $Id$ */
+
+#include "setup.h"
+
+#ifdef WIN32
+
+#include <iphlpapi.h>
+
+typedef DWORD (WINAPI *fpGetNetworkParams_t) (FIXED_INFO*, DWORD*);
+typedef BOOLEAN (APIENTRY *fpSystemFunction036_t) (void*, ULONG);
+
+/* Forward-declaration of variables defined in ares_library_init.c */
+/* that are global and unique instances for whole c-ares library. */
+
+extern fpGetNetworkParams_t fpGetNetworkParams;
+extern fpSystemFunction036_t fpSystemFunction036;
+
+#endif /* WIN32 */
+
+#endif /* HEADER_CARES_LIBRARY_INIT_H */
+