summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-04 18:52:47 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-04 18:53:59 +1000
commitc599d075cb9d8b843dcc40a34c37ad5392bca767 (patch)
tree17287ba030a47581f067b5f6452fef5d84cce1ed /source3/include
parentb8b504a484043e7f61f32b9621549579701817b7 (diff)
downloadsamba-c599d075cb9d8b843dcc40a34c37ad5392bca767.tar.gz
samba-c599d075cb9d8b843dcc40a34c37ad5392bca767.tar.bz2
samba-c599d075cb9d8b843dcc40a34c37ad5392bca767.zip
s3-lib Move event_add_idle() to source3/lib/events.c
This allows libauth not to depend on smbd_base. Andrew Bartlett
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/event.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/include/event.h b/source3/include/event.h
index 1e5dfaba5e..fad5de7848 100644
--- a/source3/include/event.h
+++ b/source3/include/event.h
@@ -2,7 +2,7 @@
Unix SMB/CIFS implementation.
event handling
Copyright (C) Andrew Tridgell 1992-1998
- Copyright (C) Volker Lendecke 2005
+ Copyright (C) Volker Lendecke 2005-2007
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -36,3 +36,11 @@ bool event_add_to_poll_args(struct tevent_context *ev, TALLOC_CTX *mem_ctx,
int *ptimeout);
bool run_events_poll(struct tevent_context *ev, int pollrtn,
struct pollfd *pfds, int num_pfds);
+
+struct idle_event *event_add_idle(struct event_context *event_ctx,
+ TALLOC_CTX *mem_ctx,
+ struct timeval interval,
+ const char *name,
+ bool (*handler)(const struct timeval *now,
+ void *private_data),
+ void *private_data);