diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-03-12 10:23:30 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-03-12 14:21:26 +0100 |
commit | 7142ef49bdc5fe731c9140641e8e938ee999327d (patch) | |
tree | ae46a42c2bbafd310f7dd0d2c74455175b1d69c8 /lib/tevent/tevent.h | |
parent | a3d5d8378c8edb6baa9ab42b02cee4711a58840b (diff) | |
download | samba-7142ef49bdc5fe731c9140641e8e938ee999327d.tar.gz samba-7142ef49bdc5fe731c9140641e8e938ee999327d.tar.bz2 samba-7142ef49bdc5fe731c9140641e8e938ee999327d.zip |
tevent: add tevent_loop_set_nesting_hook()
This is an ugly hack to let the s4 server work arround
some bugs related to nested events and uid changing.
metze
Diffstat (limited to 'lib/tevent/tevent.h')
-rw-r--r-- | lib/tevent/tevent.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 6794627947..bb36f39739 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -301,6 +301,12 @@ void tevent_queue_stop(struct tevent_queue *queue); size_t tevent_queue_length(struct tevent_queue *queue); +typedef int (*tevent_nesting_hook)(struct tevent_context *ev, + void *private_data, + uint32_t level, + bool begin, + void *stack_ptr, + const char *location); #ifdef TEVENT_DEPRECATED #ifndef _DEPRECATED_ #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) @@ -310,6 +316,9 @@ size_t tevent_queue_length(struct tevent_queue *queue); #endif #endif 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_; #endif #ifdef TEVENT_COMPAT_DEFINES |