From: Volker Lendecke Date: Mon, 28 May 2012 16:23:50 +0000 (+0200) Subject: s4-dns: Remove sync dns_server_process_query X-Git-Tag: samba-4.0.0beta1~157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4dbbd304e65cc9687fa4eaf1a1f3422588720ac4;p=thirdparty%2Fsamba.git s4-dns: Remove sync dns_server_process_query Signed-off-by: Kai Blin --- diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c index 69fe2710409..419f67e9054 100644 --- a/source4/dns_server/dns_query.c +++ b/source4/dns_server/dns_query.c @@ -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; -} diff --git a/source4/dns_server/dns_server.h b/source4/dns_server/dns_server.h index 853ff072a9d..f871544ddd6 100644 --- a/source4/dns_server/dns_server.h +++ b/source4/dns_server/dns_server.h @@ -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,