diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-03-12 09:51:33 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-03-12 12:14:18 +0100 |
commit | 06f88fe7a2f9ce93f8cdbec0910cc8471c12b1c3 (patch) | |
tree | 7633f8ab8db558ee6f1b449e6e5f58db27397e54 /lib/tevent/tevent.h | |
parent | bd0f14c1d782b6afe9455e61819caeb2d480af1e (diff) | |
download | samba-06f88fe7a2f9ce93f8cdbec0910cc8471c12b1c3.tar.gz samba-06f88fe7a2f9ce93f8cdbec0910cc8471c12b1c3.tar.bz2 samba-06f88fe7a2f9ce93f8cdbec0910cc8471c12b1c3.zip |
tevent: don't allow nested tevent_loop_once() anymore
Incompatible caller should use tevent_loop_allow_nesting()
function.
metze
Diffstat (limited to 'lib/tevent/tevent.h')
-rw-r--r-- | lib/tevent/tevent.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 1870f695b5..6794627947 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -301,6 +301,17 @@ void tevent_queue_stop(struct tevent_queue *queue); size_t tevent_queue_length(struct tevent_queue *queue); +#ifdef TEVENT_DEPRECATED +#ifndef _DEPRECATED_ +#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) +#define _DEPRECATED_ __attribute__ ((deprecated)) +#else +#define _DEPRECATED_ +#endif +#endif +void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_; +#endif + #ifdef TEVENT_COMPAT_DEFINES #define event_context tevent_context |