From a3eb0a32a9f36cc9799e11e43f4b95fa0df272a9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 20 Jun 2009 18:42:18 +0200 Subject: Reorganize retrieving errors and server-sent controls This attaches the data to the tldap_message instead of the tevent_req. It adds tldap_ctx_lastmsg() to retrieve the last message for the users of the sync wrappers. --- source3/include/tldap.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'source3/include') diff --git a/source3/include/tldap.h b/source3/include/tldap.h index 820f5d7097..27027c1f25 100644 --- a/source3/include/tldap.h +++ b/source3/include/tldap.h @@ -156,16 +156,12 @@ int tldap_delete(struct tldap_context *ld, const char *dn, int tldap_msg_id(const struct tldap_message *msg); int tldap_msg_type(const struct tldap_message *msg); -const char *tldap_req_matcheddn(struct tevent_req *req); -const char *tldap_req_diagnosticmessage(struct tevent_req *req); -const char *tldap_req_referral(struct tevent_req *req); -void tldap_req_sctrls(struct tevent_req *req, int *num_sctrls, - struct tldap_control **sctrls); -const char *tldap_ctx_matcheddn(struct tldap_context *ctx); -const char *tldap_ctx_diagnosticmessage(struct tldap_context *ctx); -const char *tldap_ctx_referral(struct tldap_context *ctx); -void tldap_ctx_sctrls(struct tldap_context *ctx, int *num_sctrls, +const char *tldap_msg_matcheddn(struct tldap_message *msg); +const char *tldap_msg_diagnosticmessage(struct tldap_message *msg); +const char *tldap_msg_referral(struct tldap_message *msg); +void tldap_msg_sctrls(struct tldap_message *msg, int *num_sctrls, struct tldap_control **sctrls); +struct tldap_message *tldap_ctx_lastmsg(struct tldap_context *ld); const char *tldap_err2string(int rc); /* DEBUG */ -- cgit