r25221: Experiment with Jelmer's new generic loadparm code.
authorTim Potter <tpot@samba.org>
Wed, 19 Sep 2007 01:59:06 +0000 (01:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:06:57 +0000 (15:06 -0500)
(This used to be commit 9fbbd1b5c9c19a0f5d49bafc6d25967e133e38b4)

source4/libcli/swig/libcli_nbt.i

index b887e7df97426123e0195a54a58e64fd6fbedba3..6bcbd7a65be37fd090fcb0e9f0c7f883442ea5d4 100644 (file)
 #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);
+%}