From 5e4b8b617901840200e2da6d98aecceb8010f801 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Thu, 4 Apr 2013 09:42:40 +0200
Subject: [PATCH 8/9] DNS sites support - make fo_discover_srv request visible

https://fedorahosted.org/sssd/ticket/1032
---
 src/providers/fail_over_srv.c | 22 +++++++++++-----------
 src/providers/fail_over_srv.h | 13 +++++++++++++
 2 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/src/providers/fail_over_srv.c b/src/providers/fail_over_srv.c
index 63e269c7eba923056826ffeb1e7e6eab18759ce1..91d75d0b69e939262eabd0df993a411c5917974d 100644
--- a/src/providers/fail_over_srv.c
+++ b/src/providers/fail_over_srv.c
@@ -34,12 +34,12 @@ struct fo_discover_srv_state {
 
 static void fo_discover_srv_done(struct tevent_req *subreq);
 
-static struct tevent_req *fo_discover_srv_send(TALLOC_CTX *mem_ctx,
-                                               struct tevent_context *ev,
-                                               struct resolv_ctx *resolv_ctx,
-                                               const char *service,
-                                               const char *protocol,
-                                               const char **discovery_domains)
+struct tevent_req *fo_discover_srv_send(TALLOC_CTX *mem_ctx,
+                                        struct tevent_context *ev,
+                                        struct resolv_ctx *resolv_ctx,
+                                        const char *service,
+                                        const char *protocol,
+                                        const char **discovery_domains)
 {
     struct fo_discover_srv_state *state = NULL;
     struct tevent_req *req = NULL;
@@ -143,11 +143,11 @@ done:
     tevent_req_done(req);
 }
 
-static errno_t fo_discover_srv_recv(TALLOC_CTX *mem_ctx,
-                                    struct tevent_req *req,
-                                    char **_dns_domain,
-                                    struct fo_server_info **_servers,
-                                    size_t *_num_servers)
+errno_t fo_discover_srv_recv(TALLOC_CTX *mem_ctx,
+                             struct tevent_req *req,
+                             char **_dns_domain,
+                             struct fo_server_info **_servers,
+                             size_t *_num_servers)
 {
     struct fo_discover_srv_state *state = NULL;
     state = tevent_req_data(req, struct fo_discover_srv_state);
diff --git a/src/providers/fail_over_srv.h b/src/providers/fail_over_srv.h
index ed89594ecb40c19104d8301652488546cdd9117a..9787a6185567df3682e64bad5f48ca6e4a90a795 100644
--- a/src/providers/fail_over_srv.h
+++ b/src/providers/fail_over_srv.h
@@ -69,6 +69,19 @@ typedef errno_t
                                struct fo_server_info **_backup_servers,
                                size_t *_num_backup_servers);
 
+struct tevent_req *fo_discover_srv_send(TALLOC_CTX *mem_ctx,
+                                        struct tevent_context *ev,
+                                        struct resolv_ctx *resolv_ctx,
+                                        const char *service,
+                                        const char *protocol,
+                                        const char **discovery_domains);
+
+errno_t fo_discover_srv_recv(TALLOC_CTX *mem_ctx,
+                             struct tevent_req *req,
+                             char **_dns_domain,
+                             struct fo_server_info **_servers,
+                             size_t *_num_servers);
+
 /* Simple SRV lookup plugin */
 
 struct fo_resolve_srv_dns_ctx;
-- 
1.7.11.7

