summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-26 18:00:14 (GMT)
committerYang Tse <yangsita@gmail.com>2009-05-26 18:00:14 (GMT)
commitcf3301f024dea088612d72a0946273adf4aae902 (patch)
treed6436e96d02e6d3377d516c898e24b8e9fee1d11 /ares.h
parent84aa2f8a5dee92d546165b197928b3c124d082c5 (diff)
downloadc-ares-cf3301f024dea088612d72a0946273adf4aae902.zip
c-ares-cf3301f024dea088612d72a0946273adf4aae902.tar.gz
c-ares-cf3301f024dea088612d72a0946273adf4aae902.tar.bz2
Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED
if library initialization has not been performed calling ares_library_init().
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ares.h b/ares.h
index de52a0b..386c0ca 100644
--- a/ares.h
+++ b/ares.h
@@ -94,9 +94,12 @@ extern "C" {
#define ARES_ENONAME 19
#define ARES_EBADHINTS 20
+/* Uninitialized library error code */
+#define ARES_ENOTINITIALIZED 21
+
/* ares_library_init error codes */
-#define ARES_ELOADIPHLPAPI 21
-#define ARES_EADDRGETNETWORKPARAMS 22
+#define ARES_ELOADIPHLPAPI 22
+#define ARES_EADDRGETNETWORKPARAMS 23
/* Flag values */
#define ARES_FLAG_USEVC (1 << 0)