From 736e438bf44d84d30d8d5091a3f915ef307a6b45 Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Tue, 9 Jan 2018 07:41:32 +1300 Subject: [PATCH] pyldb: Expose extra flags Expose the SHOW_BINARY, ENABLE_TRACING and DONT_CREATE_DB flag constants in the python api. Signed-off-by: Gary Lockyer Reviewed-by: Andrew Bartlett --- lib/ldb/pyldb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c index 04b3f1b7d5f..4b02edbd9d2 100644 --- a/lib/ldb/pyldb.c +++ b/lib/ldb/pyldb.c @@ -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); -- 2.47.3