From f38edcd61a556815db2ecfaa265a46e859e980f6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 14 Nov 2009 10:01:44 +0100 Subject: Introduce tevent_req_poll_ntstatus --- lib/util/tevent_ntstatus.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/util/tevent_ntstatus.h') diff --git a/lib/util/tevent_ntstatus.h b/lib/util/tevent_ntstatus.h index 4cf593a454..7f312b707b 100644 --- a/lib/util/tevent_ntstatus.h +++ b/lib/util/tevent_ntstatus.h @@ -36,4 +36,12 @@ NTSTATUS tevent_req_simple_recv_ntstatus(struct tevent_req *req); void tevent_req_simple_finish_ntstatus(struct tevent_req *subreq, NTSTATUS subreq_status); +/* + * Wrapper for tevent_req_poll that grabs NTSTATUS directly in case of a + * failure + */ +bool tevent_req_poll_ntstatus(struct tevent_req *req, + struct tevent_context *ev, + NTSTATUS *status); + #endif -- cgit