summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/async_req.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/async_req.h b/source3/include/async_req.h
index 6df53602b2..fb463d5b9a 100644
--- a/source3/include/async_req.h
+++ b/source3/include/async_req.h
@@ -75,6 +75,13 @@ void async_req_done(struct async_req *req);
void async_req_error(struct async_req *req, NTSTATUS status);
/*
+ * If a request is finished or ends in error even before it has the chance to
+ * trigger the event loop, post a status. This creates an immediate timed
+ * event to call the async function if there is any.
+ */
+bool async_post_status(struct async_req *req, NTSTATUS status);
+
+/*
* Convenience helper to easily check alloc failure within a callback.
*
* Call pattern would be