diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-03-16 14:15:07 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-03-17 19:58:57 +0100 |
commit | 940e61846e97ba62153d5b977b0823f196607743 (patch) | |
tree | 22e0442255cd2d6eca42b6f260a7436c8181a716 /lib/tevent/tevent_internal.h | |
parent | 0139befb915006d6ec9fec2734057c5c50b3c383 (diff) | |
download | samba-940e61846e97ba62153d5b977b0823f196607743.tar.gz samba-940e61846e97ba62153d5b977b0823f196607743.tar.bz2 samba-940e61846e97ba62153d5b977b0823f196607743.zip |
tevent: add tevent_common_loop_wait() helper function and use it
tevent_loop_wait should do the same for all backends.
It should loop as long as we have pending events.
metze
Diffstat (limited to 'lib/tevent/tevent_internal.h')
-rw-r--r-- | lib/tevent/tevent_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tevent/tevent_internal.h b/lib/tevent/tevent_internal.h index f10485398f..f63a58aadd 100644 --- a/lib/tevent/tevent_internal.h +++ b/lib/tevent/tevent_internal.h @@ -247,6 +247,8 @@ struct tevent_context { bool tevent_register_backend(const char *name, const struct tevent_ops *ops); int tevent_common_context_destructor(struct tevent_context *ev); +int tevent_common_loop_wait(struct tevent_context *ev, + const char *location); int tevent_common_fd_destructor(struct tevent_fd *fde); struct tevent_fd *tevent_common_add_fd(struct tevent_context *ev, |