From ea5e1c5ecb7ab897a684bda88a49bb26fb557eb0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 3 Feb 2011 16:34:07 +0100 Subject: s3: Use poll for the event loop --- source3/include/event.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/include') diff --git a/source3/include/event.h b/source3/include/event.h index dc45b76896..c6689d9e91 100644 --- a/source3/include/event.h +++ b/source3/include/event.h @@ -36,3 +36,8 @@ struct timeval *get_timed_events_timeout(struct event_context *event_ctx, void dump_event_list(struct event_context *event_ctx); struct tevent_context *s3_tevent_context_init(TALLOC_CTX *mem_ctx); +bool event_add_to_poll_args(struct tevent_context *ev, TALLOC_CTX *mem_ctx, + struct pollfd **pfds, int *num_pfds, + int *ptimeout); +bool run_events_poll(struct tevent_context *ev, int pollrtn, + struct pollfd *pfds, int num_pfds); -- cgit