diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-28 18:23:50 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2012-05-30 00:37:58 +0200 |
commit | 4dbbd304e65cc9687fa4eaf1a1f3422588720ac4 (patch) | |
tree | e663d877f622cb107ff6e9a895a74f9b3c4e36e9 /source4/dns_server | |
parent | 2b6b7c64e137145dc5c3786eb8acb85645c51ba2 (diff) | |
download | samba-4dbbd304e65cc9687fa4eaf1a1f3422588720ac4.tar.gz samba-4dbbd304e65cc9687fa4eaf1a1f3422588720ac4.tar.bz2 samba-4dbbd304e65cc9687fa4eaf1a1f3422588720ac4.zip |
s4-dns: Remove sync dns_server_process_query
Signed-off-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'source4/dns_server')
-rw-r--r-- | source4/dns_server/dns_query.c | 31 | ||||
-rw-r--r-- | source4/dns_server/dns_server.h | 8 |
2 files changed, 0 insertions, 39 deletions
diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c index 69fe271040..419f67e905 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 853ff072a9..f871544ddd 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, |