svn commit: samba r25221 - in branches/SAMBA_4_0/source/libcli/swig: .

tpot at samba.org tpot at samba.org
Wed Sep 19 01:59:07 GMT 2007


Author: tpot
Date: 2007-09-19 01:59:06 +0000 (Wed, 19 Sep 2007)
New Revision: 25221

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25221

Log:
Experiment with Jelmer's new generic loadparm code.

Modified:
   branches/SAMBA_4_0/source/libcli/swig/libcli_nbt.i


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/swig/libcli_nbt.i
===================================================================
--- branches/SAMBA_4_0/source/libcli/swig/libcli_nbt.i	2007-09-19 01:57:26 UTC (rev 25220)
+++ branches/SAMBA_4_0/source/libcli/swig/libcli_nbt.i	2007-09-19 01:59:06 UTC (rev 25221)
@@ -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 @@
 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);
+%}



More information about the samba-cvs mailing list