summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-04-20 20:26:47 +0400
committerStefan Metzmacher <metze@samba.org>2011-04-21 14:41:56 +0200
commit93d5e7a018cc4d999c2f322902fa337c6af724d1 (patch)
tree830357343db4efa6f81c9f6274d49fe85a5d33b4 /source4/lib/ldb/include
parentf04689ae63a9dfdca6d5eb8679186561d3e450b4 (diff)
downloadsamba-93d5e7a018cc4d999c2f322902fa337c6af724d1.tar.gz
samba-93d5e7a018cc4d999c2f322902fa337c6af724d1.tar.bz2
samba-93d5e7a018cc4d999c2f322902fa337c6af724d1.zip
ldb: add custom flags and functions for the application that wants to manipulate them
Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb_module.h14
-rw-r--r--source4/lib/ldb/include/ldb_private.h2
2 files changed, 16 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h
index db8726b7a3..6d6fff251c 100644
--- a/source4/lib/ldb/include/ldb_module.h
+++ b/source4/lib/ldb/include/ldb_module.h
@@ -240,6 +240,20 @@ void ldb_req_mark_trusted(struct ldb_request *req);
*/
bool ldb_req_is_untrusted(struct ldb_request *req);
+/**
+ set custom flags. Those flags are set by applications using ldb,
+ they are application dependent and the same bit can have different
+ meaning in different application.
+ */
+void ldb_req_set_custom_flags(struct ldb_request *req, uint32_t flags);
+
+/**
+ get custom flags. Those flags are set by applications using ldb,
+ they are application dependent and the same bit can have different
+ meaning in different application.
+ */
+uint32_t ldb_req_get_custom_flags(struct ldb_request *req);
+
/* load all modules from the given directory */
int ldb_modules_load(const char *modules_path, const char *version);
diff --git a/source4/lib/ldb/include/ldb_private.h b/source4/lib/ldb/include/ldb_private.h
index 5397b79ec5..cafc020e29 100644
--- a/source4/lib/ldb/include/ldb_private.h
+++ b/source4/lib/ldb/include/ldb_private.h
@@ -58,6 +58,8 @@ struct ldb_handle {
enum ldb_state state;
struct ldb_context *ldb;
unsigned flags;
+ /* flags dedicated to be set by application using ldb */
+ uint32_t custom_flags;
unsigned nesting;
/* used for debugging */