summaryrefslogtreecommitdiffstats
path: root/src/resolv/async_resolv.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-04-30 16:40:00 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-03 20:25:46 +0200
commita398adc5b40381fc567a2aee1841b26af78aea17 (patch)
tree4de66827028e07dd9faf66f605c83050ad23afd6 /src/resolv/async_resolv.h
parent5a4239490c7fb7d732180a9d40f27f0247c56631 (diff)
downloadsssd-a398adc5b40381fc567a2aee1841b26af78aea17.tar.gz
sssd-a398adc5b40381fc567a2aee1841b26af78aea17.tar.xz
sssd-a398adc5b40381fc567a2aee1841b26af78aea17.zip
resolver: Return PTR record as string
This is a requirement to update the PTR records. Includes a unit test.
Diffstat (limited to 'src/resolv/async_resolv.h')
-rw-r--r--src/resolv/async_resolv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolv/async_resolv.h b/src/resolv/async_resolv.h
index 3a0255886..d759a82f3 100644
--- a/src/resolv/async_resolv.h
+++ b/src/resolv/async_resolv.h
@@ -121,6 +121,10 @@ resolv_get_string_address_index(TALLOC_CTX *mem_ctx,
struct resolv_hostent *hostent,
unsigned int addrindex);
+char *
+resolv_get_string_ptr_address(TALLOC_CTX *mem_ctx,
+ int family, uint8_t *address);
+
#define resolv_get_string_address(mem_ctx, hostent) \
resolv_get_string_address_index(mem_ctx, hostent, 0)