summaryrefslogtreecommitdiffstats
path: root/src/resolv/async_resolv.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-06-13 17:32:23 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-07-11 16:52:52 -0400
commit3136a82b9d76283b10244a9768e1f325503995d5 (patch)
tree72d408daac5933c3a245448ee64e0fe6e26dd2eb /src/resolv/async_resolv.h
parent570c8a9351b28582301d2ce6b5de3b23f72ee583 (diff)
downloadsssd-3136a82b9d76283b10244a9768e1f325503995d5.tar.gz
sssd-3136a82b9d76283b10244a9768e1f325503995d5.tar.xz
sssd-3136a82b9d76283b10244a9768e1f325503995d5.zip
Split reading resolver family order into a separate function
Diffstat (limited to 'src/resolv/async_resolv.h')
-rw-r--r--src/resolv/async_resolv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resolv/async_resolv.h b/src/resolv/async_resolv.h
index 70694795e..0e2030324 100644
--- a/src/resolv/async_resolv.h
+++ b/src/resolv/async_resolv.h
@@ -30,6 +30,7 @@
#include <ares.h>
#include "config.h"
+#include "confdb/confdb.h"
#ifndef HAVE_ARES_DATA
#include "resolv/ares/ares_parse_srv_reply.h"
@@ -43,6 +44,8 @@
#define RESOLV_DEFAULT_TIMEOUT 5
+#include "util/util.h"
+
/*
* An opaque structure which holds context for a module using the async
* resolver. Is should be used as a "local-global" variable - in sssd,
@@ -82,6 +85,11 @@ enum restrict_family {
IPV6_FIRST
};
+/* Read and validate the family order from conf_path in confdb */
+errno_t
+resolv_get_family_order(struct confdb_ctx *cdb, const char *conf_path,
+ enum restrict_family *family_order);
+
/* If resolv_hostent->family is AF_INET, then ipaddr points to
* struct in_addr, else if family is AF_INET6, ipaddr points to
* struct in6_addr