summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-10-29 08:59:40 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2009-10-29 08:59:40 (GMT)
commit9cbd5ed0346c027db16fdc8a0c091d69aa79607b (patch)
treee9c29466ca24b8fc389314afcf4c4ced3b67964a /ares.h
parent9ff3cb7411dc659bddd0c8a37ea07c3737a74664 (diff)
downloadc-ares-9cbd5ed0346c027db16fdc8a0c091d69aa79607b.zip
c-ares-9cbd5ed0346c027db16fdc8a0c091d69aa79607b.tar.gz
c-ares-9cbd5ed0346c027db16fdc8a0c091d69aa79607b.tar.bz2
Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ares.h b/ares.h
index 4a53cec..35038d2 100644
--- a/ares.h
+++ b/ares.h
@@ -436,6 +436,11 @@ struct ares_srv_reply {
char *host;
};
+struct ares_txt_reply {
+ unsigned int length;
+ unsigned char *txt;
+};
+
/*
** Parse the buffer, starting at *abuf and of length alen bytes, previously
** obtained from an ares_search call. Put the results in *host, if nonnull.
@@ -472,6 +477,11 @@ CARES_EXTERN int ares_parse_srv_reply(const unsigned char* abuf,
struct ares_srv_reply** srv_out,
int *nsrvreply);
+CARES_EXTERN int ares_parse_txt_reply(const unsigned char* abuf,
+ int alen,
+ struct ares_txt_reply** txt_out,
+ int *nsrvreply);
+
CARES_EXTERN void ares_free_string(void *str);
CARES_EXTERN void ares_free_hostent(struct hostent *host);