From be8f8e66a450308547c356271ce439d9877ac7b5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 30 Mar 2004 09:06:42 +0000 Subject: Dominick Meglio's new ares_expand_string() function --- ares/ares.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ares/ares.h') diff --git a/ares/ares.h b/ares/ares.h index 09efa133f..0dea2ff99 100644 --- a/ares/ares.h +++ b/ares/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, -- cgit v1.2.3