diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-02-25 14:29:31 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-02-25 14:30:55 +0100 |
commit | e2f37ec106fb51ec894e0d6160949545e80dfe69 (patch) | |
tree | 3e3e2a408d7c9bf286640d3cbf3ee43253ea786e /lib/tevent/tevent.h | |
parent | 01d1aaf63e8170936139a01814211f6567c4b125 (diff) | |
download | samba-e2f37ec106fb51ec894e0d6160949545e80dfe69.tar.gz samba-e2f37ec106fb51ec894e0d6160949545e80dfe69.tar.bz2 samba-e2f37ec106fb51ec894e0d6160949545e80dfe69.zip |
tevent: add private_print function feature to tevent_req
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 b3611228aa..185a8fa193 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -212,6 +212,15 @@ struct tevent_req { void *private_state; /** + * @brief A function to overwrite the default print function + * + * The implementation doing the work may want to imeplement a + * custom function to print the text representation of the async + * request. + */ + char *(*private_print)(struct tevent_req *req, TALLOC_CTX *mem_ctx); + + /** * @brief Internal state of the request * * Callers should only access this via functions and never directly. @@ -267,6 +276,8 @@ struct tevent_req { } internal; }; +char *tevent_req_default_print(struct tevent_req *req, TALLOC_CTX *mem_ctx); + char *tevent_req_print(TALLOC_CTX *mem_ctx, struct tevent_req *req); struct tevent_req *_tevent_req_create(TALLOC_CTX *mem_ctx, |