summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_internal.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-03-17 20:13:34 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-17 20:17:01 +0100
commit9eaf53d98eced9ea70f411b9936b475c42e4d490 (patch)
treeb30790640cf66c0474c8e3a40f5ba40eb367c75d /lib/tevent/tevent_internal.h
parent3a831e46204979550dc6ee7652cea6b8296f10c1 (diff)
downloadsamba-9eaf53d98eced9ea70f411b9936b475c42e4d490.tar.gz
samba-9eaf53d98eced9ea70f411b9936b475c42e4d490.tar.bz2
samba-9eaf53d98eced9ea70f411b9936b475c42e4d490.zip
tevent: store the location where a request was finished
This is very useful to find bugs. You can use 'p *req' in gdb to show where tevent_req_done(), tevent_req_error() or tevent_req_nomem() was called. metze
Diffstat (limited to 'lib/tevent/tevent_internal.h')
-rw-r--r--lib/tevent/tevent_internal.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/tevent/tevent_internal.h b/lib/tevent/tevent_internal.h
index 88bda244ac..eebf767067 100644
--- a/lib/tevent/tevent_internal.h
+++ b/lib/tevent/tevent_internal.h
@@ -85,7 +85,17 @@ struct tevent_req {
*
* This for debugging only.
*/
- const char *location;
+ const char *create_location;
+
+ /**
+ * @brief The location where the request was finished
+ *
+ * This uses the __location__ macro via the tevent_req_done(),
+ * tevent_req_error() or tevent_req_nomem() macro.
+ *
+ * This for debugging only.
+ */
+ const char *finish_location;
/**
* @brief The external state - will be queried by the caller