summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include/ldb.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-09-21 06:14:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:19:11 -0500
commit8d1b32083eb9f35b5e3de3354480aa5e0e8a76d1 (patch)
treea524b17147c3ec9a1cb710ca19cd00983cfc8a65 /source4/lib/ldb/include/ldb.h
parent3a3da493f0206618d61b02df8f7eb42f6f3c6b4d (diff)
downloadsamba-8d1b32083eb9f35b5e3de3354480aa5e0e8a76d1.tar.gz
samba-8d1b32083eb9f35b5e3de3354480aa5e0e8a76d1.tar.bz2
samba-8d1b32083eb9f35b5e3de3354480aa5e0e8a76d1.zip
r18777: add helper functions to create an ldb_request structure
(This used to be commit bcbe82873f2f0a4e2552ed27eb171028de4560a7)
Diffstat (limited to 'source4/lib/ldb/include/ldb.h')
-rw-r--r--source4/lib/ldb/include/ldb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 124cba9b66..78d701689d 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -743,6 +743,7 @@ struct ldb_sequence_number {
uint64_t seq_num;
};
+typedef int (*ldb_request_callback_t)(struct ldb_context *, void *, struct ldb_reply *);
struct ldb_request {
enum ldb_request_type operation;
@@ -761,7 +762,7 @@ struct ldb_request {
struct ldb_control **controls;
void *context;
- int (*callback)(struct ldb_context *, void *, struct ldb_reply *);
+ ldb_request_callback_t callback;
int timeout;
time_t starttime;