summaryrefslogtreecommitdiffstats
path: root/lib/tevent/tevent.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-03-12 10:35:23 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-12 14:21:26 +0100
commitcb388882cf20a8bc8f20f1230bc22d1caff283dd (patch)
tree33f1cf7c898f4c6b23a4d7b5f2b17e7b8d2b827f /lib/tevent/tevent.h
parent7142ef49bdc5fe731c9140641e8e938ee999327d (diff)
downloadsamba-cb388882cf20a8bc8f20f1230bc22d1caff283dd.tar.gz
samba-cb388882cf20a8bc8f20f1230bc22d1caff283dd.tar.xz
samba-cb388882cf20a8bc8f20f1230bc22d1caff283dd.zip
tevent: add tevent_loop_until()
This is only a hack for samba4 and should not be used in new code. metze
Diffstat (limited to 'lib/tevent/tevent.h')
-rw-r--r--lib/tevent/tevent.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h
index bb36f397395..4a3f51ae5ee 100644
--- a/lib/tevent/tevent.h
+++ b/lib/tevent/tevent.h
@@ -319,6 +319,12 @@ void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
void tevent_loop_set_nesting_hook(struct tevent_context *ev,
tevent_nesting_hook hook,
void *private_data) _DEPRECATED_;
+int _tevent_loop_until(struct tevent_context *ev,
+ bool (*finished)(void *private_data),
+ void *private_data,
+ const char *location) _DEPRECATED_;
+#define tevent_loop_until(ev, finished, private_data) \
+ _tevent_loop_until(ev, finished, private_data, __location__)
#endif
#ifdef TEVENT_COMPAT_DEFINES