diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-19 21:53:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:15 -0500 |
commit | 4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7 (patch) | |
tree | ee3f89f5d27a23d8c9e18383f7fc6d38f8b20554 /source3/lib/events.c | |
parent | 01a7017d7b0e0cbc3b0923c43b7fe3f0b01aac0b (diff) | |
download | samba-4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7.tar.gz samba-4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7.tar.xz 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.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c index 77d18ec13d0..9b0a2b67126 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) { |