summaryrefslogtreecommitdiff
path: root/source4/libcli/swig
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2007-09-19 01:59:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:06:57 -0500
commit3eb2b3085db47cfa25f9d46b64d60fdc6b0186e3 (patch)
tree55981d63491ded066e5bb66d5b699657d9ac9711 /source4/libcli/swig
parentb9989b4640b41515ba5e9145e75b1a6dc0c9a744 (diff)
downloadsamba-3eb2b3085db47cfa25f9d46b64d60fdc6b0186e3.tar.gz
samba-3eb2b3085db47cfa25f9d46b64d60fdc6b0186e3.tar.bz2
samba-3eb2b3085db47cfa25f9d46b64d60fdc6b0186e3.zip
r25221: Experiment with Jelmer's new generic loadparm code.
(This used to be commit 9fbbd1b5c9c19a0f5d49bafc6d25967e133e38b4)
Diffstat (limited to 'source4/libcli/swig')
-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);
+%}