From 3eb2b3085db47cfa25f9d46b64d60fdc6b0186e3 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 19 Sep 2007 01:59:06 +0000 Subject: r25221: Experiment with Jelmer's new generic loadparm code. (This used to be commit 9fbbd1b5c9c19a0f5d49bafc6d25967e133e38b4) --- source4/libcli/swig/libcli_nbt.i | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); +%} -- cgit