s4-pyregistry: use s4_event_context_init()
authorAndrew Tridgell <tridge@samba.org>
Mon, 23 Aug 2010 02:07:19 +0000 (12:07 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 23 Aug 2010 05:55:39 +0000 (15:55 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/lib/registry/pyregistry.c

index a3ba6c535116761daf0dd3145ced286218a3974d..7f4f8333c68de925c4cdd69a553cf7dcb07d0834 100644 (file)
 
 #include <Python.h>
 #include "includes.h"
-#include <tevent.h>
 #include "libcli/util/pyerrors.h"
 #include "lib/registry/registry.h"
 #include "lib/talloc/pytalloc.h"
+#include "lib/events/events.h"
 #include "auth/credentials/pycredentials.h"
 #include "param/pyparam.h"
 
@@ -361,7 +361,7 @@ static PyObject *py_open_ldb_file(PyObject *self, PyObject *args, PyObject *kwar
        session_info = NULL; /* FIXME */
 
        result = reg_open_ldb_file(NULL, location, session_info, credentials,
-                                  tevent_context_init(NULL), lp_ctx, &key);
+                                  s4_event_context_init(NULL), lp_ctx, &key);
        PyErr_WERROR_IS_ERR_RAISE(result);
 
        return py_talloc_steal(&PyHiveKey, key);