pyldb: Expose extra flags
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 8 Jan 2018 18:41:32 +0000 (07:41 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Feb 2018 22:45:23 +0000 (23:45 +0100)
Expose the SHOW_BINARY, ENABLE_TRACING and DONT_CREATE_DB flag constants
in the python api.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/pyldb.c

index 04b3f1b7d5f1b52c2a641b66771bcd7976f392cd..4b02edbd9d25b7eb3315d4c9a9bfefeac221ae78 100644 (file)
@@ -4226,6 +4226,10 @@ static PyObject* module_init(void)
        ADD_LDB_INT(FLG_NOSYNC);
        ADD_LDB_INT(FLG_RECONNECT);
        ADD_LDB_INT(FLG_NOMMAP);
+       ADD_LDB_INT(FLG_SHOW_BINARY);
+       ADD_LDB_INT(FLG_ENABLE_TRACING);
+       ADD_LDB_INT(FLG_DONT_CREATE_DB);
+
 
        /* Historical misspelling */
        PyModule_AddIntConstant(m, "ERR_ALIAS_DEREFERINCING_PROBLEM", LDB_ERR_ALIAS_DEREFERENCING_PROBLEM);