git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09d1b23
)
tevent: add tevent_req_callback_data_void() macro
author
Stefan Metzmacher
<metze@samba.org>
Tue, 10 Mar 2009 13:02:30 +0000
(14:02 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 10 Mar 2009 15:44:44 +0000
(16:44 +0100)
Callers can use it instead of tevent_req_callback_data()
if they use a non talloc private pointer.
metze
lib/tevent/tevent.h
patch
|
blob
|
history
diff --git
a/lib/tevent/tevent.h
b/lib/tevent/tevent.h
index 8ae9eaf54579252cbc6c5387d5b6b724621e6f1c..2dadfc1abed31e082083619aa8f9eea34e86fd1c 100644
(file)
--- a/
lib/tevent/tevent.h
+++ b/
lib/tevent/tevent.h
@@
-197,6
+197,8
@@
void *_tevent_req_data(struct tevent_req *req);
#define tevent_req_callback_data(_req, _type) \
talloc_get_type_abort(_tevent_req_callback_data(_req), _type)
+#define tevent_req_callback_data_void(_req) \
+ _tevent_req_callback_data(_req)
#define tevent_req_data(_req, _type) \
talloc_get_type_abort(_tevent_req_data(_req), _type)