#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"
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);