summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/swig/libcli_nbt.i9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/libcli/swig/libcli_nbt.i b/source4/libcli/swig/libcli_nbt.i
index b887e7df97..6bcbd7a65b 100644
--- a/source4/libcli/swig/libcli_nbt.i
+++ b/source4/libcli/swig/libcli_nbt.i
@@ -31,11 +31,16 @@
#include "lib/talloc/talloc.h"
#include "lib/events/events.h"
#include "libcli/nbt/libnbt.h"
+#include "param/param.h"
/* Undo strcpy safety macro as it's used by swig )-: */
#undef strcpy
+/* Loadparm parameters */
+
+static struct loadparm_context lp_ctx;
+
%}
%apply bool { BOOL };
@@ -132,4 +137,6 @@ struct nbt_name_query {
NTSTATUS nbt_name_query(struct nbt_name_socket *nbtsock,
TALLOC_CTX *mem_ctx, struct nbt_name_query *io);
-void lp_load(void);
+%init %{
+ loadparm_init(&lp_ctx);
+%}