summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-02-17 17:13:39 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-02-17 17:44:02 +0100
commitcf7ad9758dd7927595cb9751ba8173e06fc33cad (patch)
treed62a9428b21c5d629c66a879ea2849cb2b4f6ee4 /ares.h
parentee9a1c2457c3238ee5cdae90fe18440d44377adc (diff)
downloadc-ares-cf7ad9758dd7927595cb9751ba8173e06fc33cad.tar.gz
c-ares-cf7ad9758dd7927595cb9751ba8173e06fc33cad.tar.bz2
c-ares-cf7ad9758dd7927595cb9751ba8173e06fc33cad.zip
ares_inet_pton/ntop: cleanup
Make sure that the symbols are always exported and present in c-ares. Make the headers prefixed with 'ares'. Removed the inet_ntop.h version as it no longer features any content.
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ares.h b/ares.h
index f0cc824..aaf0635 100644
--- a/ares.h
+++ b/ares.h
@@ -1,6 +1,6 @@
/* Copyright 1998, 2009 by the Massachusetts Institute of Technology.
- * Copyright (C) 2007-2011 by Daniel Stenberg
+ * Copyright (C) 2007-2013 by Daniel Stenberg
*
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
@@ -579,6 +579,12 @@ CARES_EXTERN int ares_set_servers_csv(ares_channel channel,
CARES_EXTERN int ares_get_servers(ares_channel channel,
struct ares_addr_node **servers);
+CARES_EXTERN const char *ares_inet_ntop(int af, const void *src, char *dst,
+ socklen_t size);
+
+CARES_EXTERN int ares_inet_pton(int af, const char *src, void *dst);
+
+
#ifdef __cplusplus
}
#endif