summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include/ldb_module.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-15 10:45:44 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-10-21 22:43:53 +1100
commit17237f18f09798c90b2234150d502ccd21eb5880 (patch)
tree0f4f8bfac49a45b8bfd1df8bec62e71c586a0501 /source4/lib/ldb/include/ldb_module.h
parentbe5f0818ea89f08c5045e44604c9ba7d63ad1e29 (diff)
downloadsamba-17237f18f09798c90b2234150d502ccd21eb5880.tar.gz
samba-17237f18f09798c90b2234150d502ccd21eb5880.tar.bz2
samba-17237f18f09798c90b2234150d502ccd21eb5880.zip
s4:ldb Add function to add controls to an LDB reply
Diffstat (limited to 'source4/lib/ldb/include/ldb_module.h')
-rw-r--r--source4/lib/ldb/include/ldb_module.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h
index ae8c4d50df..7a125ba211 100644
--- a/source4/lib/ldb/include/ldb_module.h
+++ b/source4/lib/ldb/include/ldb_module.h
@@ -170,5 +170,16 @@ int ldb_module_done(struct ldb_request *req,
int ldb_mod_register_control(struct ldb_module *module, const char *oid);
void ldb_set_default_dns(struct ldb_context *ldb);
+/**
+ Add a ldb_control to a ldb_reply
+
+ \param ares the reply struct where to add the control
+ \param oid the object identifier of the control as string
+ \param critical whether the control should be critical or not
+ \param data a talloc pointer to the control specific data
+
+ \return result code (LDB_SUCCESS on success, or a failure code)
+*/
+int ldb_reply_add_control(struct ldb_reply *ares, const char *oid, bool critical, void *data);
#endif