s4/ldb: expose the ldb flags with ldb_get_flags()
authorAndrew Tridgell <tridge@samba.org>
Tue, 8 Sep 2009 11:39:33 +0000 (21:39 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 8 Sep 2009 11:56:31 +0000 (21:56 +1000)
source4/lib/ldb/common/ldb.c
source4/lib/ldb/include/ldb.h

index dc3032643cc062224d1121f4f945589c72222da6..6939cefb59389d0797c2e05f4f21beb1757a71c5 100644 (file)
@@ -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;
+}
index b75d63b8482558821e04bec136e554124cf385d9..04b0a22fc1fbe73ed054cf27ffd08a8546f3e58b 100644 (file)
@@ -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