summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-30 09:06:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-30 09:06:42 +0000
commitaf26fa53f3d73fb70d4e9be973626aab6597b40a (patch)
treed14125c5d42ff8845a8ccae8c8056750e0d86202 /ares.h
parent155aadf0b3c9d4db338bf4aeca96af9b446ffbcf (diff)
downloadc-ares-af26fa53f3d73fb70d4e9be973626aab6597b40a.tar.gz
c-ares-af26fa53f3d73fb70d4e9be973626aab6597b40a.tar.bz2
c-ares-af26fa53f3d73fb70d4e9be973626aab6597b40a.zip
Dominick Meglio's new ares_expand_string() function
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ares.h b/ares.h
index 09efa13..0dea2ff 100644
--- a/ares.h
+++ b/ares.h
@@ -55,6 +55,7 @@
#define ARES_EFILE 14
#define ARES_ENOMEM 15
#define ARES_EDESTRUCTION 16
+#define ARES_EBADSTR 17
/* Flag values */
#define ARES_FLAG_USEVC (1 << 0)
@@ -125,6 +126,8 @@ int ares_mkquery(const char *name, int dnsclass, int type, unsigned short id,
int rd, unsigned char **buf, int *buflen);
int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf,
int alen, char **s, long *enclen);
+int ares_expand_string(const unsigned char *encoded, const unsigned char *abuf,
+ int alen, unsigned char **s, long *enclen);
int ares_parse_a_reply(const unsigned char *abuf, int alen,
struct hostent **host);
int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr,