From 975a881d54a4223fa616895778a69b08e9243aae Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 17 Feb 2009 10:22:33 +0100 Subject: tevent: add tevent_wakeup_send/recv() This can be used as tevent_req based timer event. metze --- lib/tevent/tevent.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/tevent/tevent.h') diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index cf5e8e4930..16fac7327f 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -299,6 +299,10 @@ bool tevent_req_is_error(struct tevent_req *req, enum tevent_req_state *state, uint64_t *error); +struct tevent_req *tevent_wakeup_send(TALLOC_CTX *mem_ctx, + struct tevent_context *ev, + struct timeval wakeup_time); +bool tevent_wakeup_recv(struct tevent_req *req); int tevent_timeval_compare(const struct timeval *tv1, const struct timeval *tv2); -- cgit