summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorsaghul <saghul@gmail.com>2012-02-23 22:15:07 (GMT)
committersaghul <saghul@gmail.com>2012-02-23 22:15:07 (GMT)
commit6bab0393c42857232ce1194e5283a797ec4c6231 (patch)
tree8c74d41879fcbc65f10965d8692ee68ed9f96bad /ares.h
parent4ab65461b6aefd0654a5b586bc6ee57976f3fba3 (diff)
downloadc-ares-6bab0393c42857232ce1194e5283a797ec4c6231.zip
c-ares-6bab0393c42857232ce1194e5283a797ec4c6231.tar.gz
c-ares-6bab0393c42857232ce1194e5283a797ec4c6231.tar.bz2
Added support for parsing NAPTR records
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ares.h b/ares.h
index 2b38303..a3abec8 100644
--- a/ares.h
+++ b/ares.h
@@ -465,6 +465,16 @@ struct ares_txt_reply {
size_t length; /* length excludes null termination */
};
+struct ares_naptr_reply {
+ struct ares_naptr_reply *next;
+ unsigned char *flags;
+ unsigned char *service;
+ unsigned char *regexp;
+ char *replacement;
+ unsigned short order;
+ unsigned short preference;
+};
+
/*
** 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.
@@ -508,6 +518,10 @@ CARES_EXTERN int ares_parse_txt_reply(const unsigned char* abuf,
int alen,
struct ares_txt_reply** txt_out);
+CARES_EXTERN int ares_parse_naptr_reply(const unsigned char* abuf,
+ int alen,
+ struct ares_naptr_reply** naptr_out);
+
CARES_EXTERN void ares_free_string(void *str);
CARES_EXTERN void ares_free_hostent(struct hostent *host);