From: Andrew Tridgell Date: Wed, 25 Jul 2007 01:43:27 +0000 (+1000) Subject: make timed_event structure private to events_timed.c X-Git-Tag: tevent-0.9.20~348^2~2446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b899f0edf86afa2b8329b0204cc84051ca1de15;p=thirdparty%2Fsamba.git make timed_event structure private to events_timed.c (This used to be ctdb commit 4a61132e2a4f6beca8e9148307c7ec16cb74bb08) --- diff --git a/ctdb/lib/events/events_internal.h b/ctdb/lib/events/events_internal.h index d8c14ead952..98d94fe9cfd 100644 --- a/ctdb/lib/events/events_internal.h +++ b/ctdb/lib/events/events_internal.h @@ -71,17 +71,6 @@ struct fd_event { void *additional_data; }; -struct timed_event { - struct timed_event *prev, *next; - struct event_context *event_ctx; - struct timeval next_event; - event_timed_handler_t handler; - /* this is private for the specific handler */ - void *private_data; - /* this is private for the events_ops implementation */ - void *additional_data; -}; - struct signal_event { struct signal_event *prev, *next; struct event_context *event_ctx; diff --git a/ctdb/lib/events/events_timed.c b/ctdb/lib/events/events_timed.c index 389c2cbbb7c..344a1a45626 100644 --- a/ctdb/lib/events/events_timed.c +++ b/ctdb/lib/events/events_timed.c @@ -27,6 +27,17 @@ #include "lib/events/events.h" #include "lib/events/events_internal.h" +struct timed_event { + struct timed_event *prev, *next; + struct event_context *event_ctx; + struct timeval next_event; + event_timed_handler_t handler; + /* this is private for the specific handler */ + void *private_data; + /* this is private for the events_ops implementation */ + void *additional_data; +}; + /* destroy a timed event */