summaryrefslogtreecommitdiffstats
path: root/lib/tevent/tevent.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-02-26 15:54:57 +0100
committerJeremy Allison <jra@samba.org>2013-03-01 11:59:17 -0800
commit883d20a9bf7444e6338e13d6efbcbc257e1d78b7 (patch)
treee0a18ff457ab3b4356c2ed129163715ede00ac0b /lib/tevent/tevent.h
parent5f284bec47971ea25df5461dfb3fbed731c243a8 (diff)
downloadsamba-883d20a9bf7444e6338e13d6efbcbc257e1d78b7.tar.gz
samba-883d20a9bf7444e6338e13d6efbcbc257e1d78b7.tar.xz
samba-883d20a9bf7444e6338e13d6efbcbc257e1d78b7.zip
tevent: add trace points BEFORE_LOOP_ONCE and AFTER_LOOP_ONCE
The define TEVENT_HAS_LOOP_ONCE_TRACE_POINTS can be used to detect the new feature, without writing configure tests. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/tevent/tevent.h')
-rw-r--r--lib/tevent/tevent.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h
index dc61912be74..6b4d371e4c5 100644
--- a/lib/tevent/tevent.h
+++ b/lib/tevent/tevent.h
@@ -524,6 +524,17 @@ enum tevent_trace_point {
* Corresponds to a trace point just after waiting
*/
TEVENT_TRACE_AFTER_WAIT,
+#define TEVENT_HAS_LOOP_ONCE_TRACE_POINTS 1
+ /**
+ * Corresponds to a trace point just before calling
+ * the loop_once() backend function.
+ */
+ TEVENT_TRACE_BEFORE_LOOP_ONCE,
+ /**
+ * Corresponds to a trace point right after the
+ * loop_once() backend function has returned.
+ */
+ TEVENT_TRACE_AFTER_LOOP_ONCE,
};
typedef void (*tevent_trace_callback_t)(enum tevent_trace_point,