diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-20 18:42:18 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-20 18:54:07 +0200 |
commit | a3eb0a32a9f36cc9799e11e43f4b95fa0df272a9 (patch) | |
tree | 5c012209735df158441de2632999d6975e89eb23 /source3/include | |
parent | 22cb9bdfd3c3a6a036db08c9c10d7c2530167fc3 (diff) | |
download | samba-a3eb0a32a9f36cc9799e11e43f4b95fa0df272a9.tar.gz samba-a3eb0a32a9f36cc9799e11e43f4b95fa0df272a9.tar.bz2 samba-a3eb0a32a9f36cc9799e11e43f4b95fa0df272a9.zip |
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.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/tldap.h | 14 |
1 files changed, 5 insertions, 9 deletions
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 */ |