#include "includes.h"
#include <Python.h>
#include "libnet.h"
-#include "param/param.h"
#include "libcli/security/security.h"
#include "lib/events/events.h"
-struct libnet_context *py_net_ctx(PyObject *obj, struct event_context *ev)
+static struct libnet_context *py_net_ctx(PyObject *obj, struct event_context *ev)
{
/* FIXME: Use obj */
return libnet_context_init(ev, global_loadparm);
/* FIXME: we really need to get a context from the caller or we may end
* up with 2 event contexts */
- ev = event_context_init(NULL);
+ ev = s4_event_context_init(NULL);
mem_ctx = talloc_new(ev);
libnet_ctx = py_net_ctx(cls, ev);