summaryrefslogtreecommitdiff
path: root/source4/wrepl_server/wrepl_server.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-14 10:56:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:22 -0500
commit39f914d4e70356bdad9fcdbca379565c9a608988 (patch)
treedbe9494f29cef51e88692645e716c91e5d0dd64f /source4/wrepl_server/wrepl_server.h
parent2e51b42c2c4b543437fd7b9f7bc93380f7e2cf4e (diff)
downloadsamba-39f914d4e70356bdad9fcdbca379565c9a608988.tar.gz
r12230: prepare for a generic periodic processing scheduling of
pull,push,scavenging and reread-config events metze (This used to be commit 977117278c4b9fc1b7845b6aa6d5862e5a776651)
Diffstat (limited to 'source4/wrepl_server/wrepl_server.h')
-rw-r--r--source4/wrepl_server/wrepl_server.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source4/wrepl_server/wrepl_server.h b/source4/wrepl_server/wrepl_server.h
index 118686622ec..0e0ed35e946 100644
--- a/source4/wrepl_server/wrepl_server.h
+++ b/source4/wrepl_server/wrepl_server.h
@@ -232,6 +232,12 @@ struct wreplsrv_service {
* with the owning wins server
*/
uint32_t verify_interval;
+
+ /*
+ * the interval (in secs) to the next periodic processing
+ * (this is the maximun interval)
+ */
+ uint32_t periodic_interval;
} config;
/* all incoming connections */
@@ -242,4 +248,16 @@ struct wreplsrv_service {
/* this is a list of each wins_owner we know about in our database */
struct wreplsrv_owner *table;
+
+ /* some stuff for periodic processing */
+ struct {
+ /*
+ * the timestamp for the current or next event,
+ * this is the timstamp passed to event_add_timed()
+ */
+ struct timeval next_event;
+
+ /* here we have a reference to the timed event the schedules the periodic stuff */
+ struct timed_event *te;
+ } periodic;
};