s4-dns: Remove sync dns_server_process_query
authorVolker Lendecke <vl@samba.org>
Mon, 28 May 2012 16:23:50 +0000 (18:23 +0200)
committerKai Blin <kai@samba.org>
Tue, 29 May 2012 22:37:58 +0000 (00:37 +0200)
Signed-off-by: Kai Blin <kai@samba.org>
source4/dns_server/dns_query.c
source4/dns_server/dns_server.h

index 69fe2710409c5060f94b43f625d05f4143024cb9..419f67e9054dd5d80ab21fa366f4e44532f112e9 100644 (file)
@@ -389,34 +389,3 @@ WERROR dns_server_process_query_recv(
        *arcount = state->arcount;
        return WERR_OK;
 }
-
-WERROR dns_server_process_query(struct dns_server *dns,
-                               struct dns_request_state *state,
-                               TALLOC_CTX *mem_ctx,
-                               struct dns_name_packet *in,
-                               struct dns_res_rec **answers,    uint16_t *ancount,
-                               struct dns_res_rec **nsrecs,     uint16_t *nscount,
-                               struct dns_res_rec **additional, uint16_t *arcount)
-{
-       struct tevent_context *ev;
-       struct tevent_req *req;
-       WERROR err = WERR_NOMEM;
-
-       ev = tevent_context_init(talloc_tos());
-       if (ev == NULL) {
-               goto fail;
-       }
-       req = dns_server_process_query_send(ev, ev, dns, state, in);
-       if (req == NULL) {
-               goto fail;
-       }
-       if (!tevent_req_poll_werror(req, ev, &err)) {
-               goto fail;
-       }
-       err = dns_server_process_query_recv(req, mem_ctx, answers, ancount,
-                                           nsrecs, nscount,
-                                           additional, arcount);
-fail:
-       TALLOC_FREE(ev);
-       return err;
-}
index 853ff072a9da7b5fd6f0bacdd4a46bc422086a74..f871544ddd690d1c8c63aae2de217a8794e0dbac 100644 (file)
@@ -53,14 +53,6 @@ WERROR dns_server_process_query_recv(
        struct dns_res_rec **nsrecs,     uint16_t *nscount,
        struct dns_res_rec **additional, uint16_t *arcount);
 
-WERROR dns_server_process_query(struct dns_server *dns,
-                               struct dns_request_state *state,
-                               TALLOC_CTX *mem_ctx,
-                               struct dns_name_packet *in,
-                               struct dns_res_rec **answers,    uint16_t *ancount,
-                               struct dns_res_rec **nsrecs,     uint16_t *nscount,
-                               struct dns_res_rec **additional, uint16_t *arcount);
-
 WERROR dns_server_process_update(struct dns_server *dns,
                                 struct dns_request_state *state,
                                 TALLOC_CTX *mem_ctx,