From b6bf81803977318aad8b876a56a42e4a3ffbae6a Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 15 Jul 2009 18:21:15 +0200 Subject: Add ares helpers into sssd This patch adds ares parsing functions that are not yet upstreamed together with a private ares header file (ares_dns.h) that contains some necessary macros for parsing common structures in the replies. Users of these two parsing functions must also include the header files ares_parse_{srv,txt}_reply.h that contain the function and structures declarations that should eventually end up in upstream ares.h --- server/resolv/async_resolv.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/resolv/async_resolv.h') diff --git a/server/resolv/async_resolv.h b/server/resolv/async_resolv.h index 6acb6b2a..aabf871b 100644 --- a/server/resolv/async_resolv.h +++ b/server/resolv/async_resolv.h @@ -29,6 +29,14 @@ #include #include +#ifndef HAVE_ARES_PARSE_TXT +#include "resolv/ares/ares_parse_txt_reply.h" +#endif /* HAVE_ARES_PARSE_TXT */ + +#ifndef HAVE_ARES_PARSE_SRV +#include "resolv/ares/ares_parse_srv_reply.h" +#endif /* HAVE_ARES_PARSE_SRV */ + /* * An opaque structure which holds context for a module using the async * resolver. Is should be used as a "local-global" variable - in sssd, -- cgit