summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-18 00:21:02 (GMT)
committerYang Tse <yangsita@gmail.com>2009-05-18 00:21:02 (GMT)
commit5b17412c1f522cc40b01e7108afb0deaaee781f6 (patch)
tree8c51d230aee179fd84a132056bc706ae37879ed2 /ares.h
parentb7c7bab713e3bfba6626050806c4f4584207be6d (diff)
downloadc-ares-5b17412c1f522cc40b01e7108afb0deaaee781f6.zip
c-ares-5b17412c1f522cc40b01e7108afb0deaaee781f6.tar.gz
c-ares-5b17412c1f522cc40b01e7108afb0deaaee781f6.tar.bz2
- Provide in external interface preprocessor symbol definitions for
CARES_HAVE_ARES_LIBRARY_INIT and CARES_HAVE_ARES_LIBRARY_CLEANUP to ease the use of new capabilities. - Move ares_version() prototype to ares.h
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ares.h b/ares.h
index e942d2d..9d09a7a 100644
--- a/ares.h
+++ b/ares.h
@@ -19,8 +19,9 @@
#ifndef ARES__H
#define ARES__H
-#include "ares_build.h" /* c-ares build definitions */
-#include "ares_rules.h" /* c-ares rules enforcement */
+#include "ares_version.h" /* c-ares version defines */
+#include "ares_build.h" /* c-ares build definitions */
+#include "ares_rules.h" /* c-ares rules enforcement */
/*
* Define WIN32 when build target is Win32 API
@@ -248,6 +249,7 @@ typedef int (*ares_sock_create_callback)(ares_socket_t socket_fd,
int ares_library_init(int flags);
void ares_library_cleanup(void);
+const char *ares_version(int *version);
int ares_init(ares_channel *channelptr);
int ares_init_options(ares_channel *channelptr, struct ares_options *options,