From 237f720e6c116b0e07bd20fb90ce19680ad36d3c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 8 Sep 2009 21:39:33 +1000 Subject: s4/ldb: expose the ldb flags with ldb_get_flags() --- source4/lib/ldb/common/ldb.c | 6 ++++++ source4/lib/ldb/include/ldb.h | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index dc3032643c..6939cefb59 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -1467,3 +1467,9 @@ int ldb_global_init(void) /* Provided for compatibility with some older versions of ldb */ return 0; } + +/* return the ldb flags */ +unsigned int ldb_get_flags(struct ldb_context *ldb) +{ + return ldb->flags; +} diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index b75d63b848..04b0a22fc1 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -1898,4 +1898,9 @@ void ldb_qsort (void *const pbase, size_t total_elems, size_t size, void *opaque */ struct ldb_control **ldb_parse_control_strings(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, const char **control_strings); +/** + return the ldb flags +*/ +unsigned int ldb_get_flags(struct ldb_context *ldb); + #endif -- cgit