summaryrefslogtreecommitdiff
path: root/source3/lib/events.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-05-19 21:53:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:15 -0500
commit4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7 (patch)
treeee3f89f5d27a23d8c9e18383f7fc6d38f8b20554 /source3/lib/events.c
parent01a7017d7b0e0cbc3b0923c43b7fe3f0b01aac0b (diff)
downloadsamba-4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7.tar.gz
samba-4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7.tar.bz2
samba-4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7.zip
r23015: Make message_(de)register static to messages.c
(This used to be commit a8082a3c7c3d1e68c27fc3bf42f3d44402cc6f9f)
Diffstat (limited to 'source3/lib/events.c')
-rw-r--r--source3/lib/events.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 77d18ec13d..9b0a2b6712 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -224,6 +224,21 @@ BOOL event_add_to_select_args(struct event_context *event_ctx,
return True;
}
+BOOL events_pending(struct event_context *event_ctx)
+{
+ struct fd_event *fde;
+
+ if (event_ctx->timed_events != NULL) {
+ return True;
+ }
+ for (fde = event_ctx->fd_events; fde; fde = fde->next) {
+ if (fde->flags & (EVENT_FD_READ|EVENT_FD_WRITE)) {
+ return True;
+ }
+ }
+ return False;
+}
+
BOOL run_events(struct event_context *event_ctx,
int selrtn, fd_set *read_fds, fd_set *write_fds)
{