diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-03-12 09:33:26 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-03-12 12:12:34 +0100 |
commit | 9932fd2d9af3c71262c5cca61c3b38809b952d95 (patch) | |
tree | 61c193958dffac8ec26d09c3f9450c41e44c033b /lib/tevent/tevent.h | |
parent | 880d9d6d8c209c770185b9b1c9a3019cb56be763 (diff) | |
download | samba-9932fd2d9af3c71262c5cca61c3b38809b952d95.tar.gz samba-9932fd2d9af3c71262c5cca61c3b38809b952d95.tar.xz samba-9932fd2d9af3c71262c5cca61c3b38809b952d95.zip |
tevent: pass __location__ to tevent_loop_once/wait()
metze
Diffstat (limited to 'lib/tevent/tevent.h')
-rw-r--r-- | lib/tevent/tevent.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 90d0767f87b..1870f695b57 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -99,8 +99,13 @@ struct tevent_signal *_tevent_add_signal(struct tevent_context *ev, _tevent_add_signal(ev, mem_ctx, signum, sa_flags, handler, private_data, \ #handler, __location__) -int tevent_loop_once(struct tevent_context *ev); -int tevent_loop_wait(struct tevent_context *ev); +int _tevent_loop_once(struct tevent_context *ev, const char *location); +#define tevent_loop_once(ev) \ + _tevent_loop_once(ev, __location__) \ + +int _tevent_loop_wait(struct tevent_context *ev, const char *location); +#define tevent_loop_wait(ev) \ + _tevent_loop_wait(ev, __location__) \ void tevent_fd_set_close_fn(struct tevent_fd *fde, tevent_fd_close_fn_t close_fn); |