summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-06-15 19:16:06 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-06-15 19:16:06 +0200
commitadbfc2c65c45c8e7fdc6b0148e24ea3cef13ca86 (patch)
tree4a102d148bd7e8bcc2e19bc7c9c01496cf94fd16 /source4/lib/ldb
parent9a882558fe197562bb2c28cee68483bf0a440a2d (diff)
downloadsamba-adbfc2c65c45c8e7fdc6b0148e24ea3cef13ca86.tar.gz
samba-adbfc2c65c45c8e7fdc6b0148e24ea3cef13ca86.tar.bz2
samba-adbfc2c65c45c8e7fdc6b0148e24ea3cef13ca86.zip
Fix ldb python bindings after events changes.
(This used to be commit dd1f24d0c6dfb19ba08282b91998f6881782c4fb)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/ldb.i4
-rw-r--r--source4/lib/ldb/ldb_wrap.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb.i b/source4/lib/ldb/ldb.i
index 061d13a2dd..23b5e0db7a 100644
--- a/source4/lib/ldb/ldb.i
+++ b/source4/lib/ldb/ldb.i
@@ -685,7 +685,9 @@ PyObject *PyExc_LdbError;
/* Top-level ldb operations */
typedef struct ldb_context {
%extend {
- ldb(void) { return ldb_init(NULL); }
+ ldb(void) {
+ return ldb_init(NULL, event_context_init(NULL));
+ }
%feature("docstring") connect "S.connect(url,flags=0,options=None) -> None\n" \
"Connect to a LDB URL.";
diff --git a/source4/lib/ldb/ldb_wrap.c b/source4/lib/ldb/ldb_wrap.c
index ee374b85be..aed3f13abc 100644
--- a/source4/lib/ldb/ldb_wrap.c
+++ b/source4/lib/ldb/ldb_wrap.c
@@ -2546,7 +2546,6 @@ static swig_module_info swig_module = {swig_types, 24, 0, 0, 0, 0};
#include <stdint.h>
#include <stdbool.h>
#include "talloc.h"
-#include "events.h"
#include "ldb.h"
#include "ldb_errors.h"
#include "ldb_private.h"
@@ -3067,7 +3066,9 @@ static void py_ldb_debug(void *context, enum ldb_debug_level level, const char *
PyObject *PyExc_LdbError;
-SWIGINTERN ldb *new_ldb(){ return ldb_init(NULL, NULL); }
+SWIGINTERN ldb *new_ldb(){
+ return ldb_init(NULL, event_context_init(NULL));
+ }
SWIGINTERN int
SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)