svn commit: samba r25363 - in branches/SAMBA_4_0: . source/nbt_server

jelmer at samba.org jelmer at samba.org
Wed Sep 26 23:24:50 GMT 2007


Author: jelmer
Date: 2007-09-26 23:24:47 +0000 (Wed, 26 Sep 2007)
New Revision: 25363

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

Log:
Move service code to separate module.
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/nbt_server/config.mk
   branches/SAMBA_4_0/source/nbt_server/register.c


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/nbt_server/config.mk
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/config.mk	2007-09-26 21:46:43 UTC (rev 25362)
+++ branches/SAMBA_4_0/source/nbt_server/config.mk	2007-09-26 23:24:47 UTC (rev 25363)
@@ -54,11 +54,8 @@
 
 #######################
 # Start SUBSYSTEM NBTD
-[MODULE::NBTD]
-INIT_FUNCTION = server_service_nbtd_init
-SUBSYSTEM = service
+[SUBSYSTEM::NBT_SERVER]
 OBJ_FILES = \
-		nbt_server.o \
 		interfaces.o \
 		register.o \
 		query.o \
@@ -68,6 +65,13 @@
 		irpc.o
 PRIVATE_PROTO_HEADER = nbt_server_proto.h
 PRIVATE_DEPENDENCIES = \
-		LIBCLI_NBT NBTD_WINS NBTD_DGRAM process_model
+		LIBCLI_NBT NBTD_WINS NBTD_DGRAM 
 # End SUBSYSTEM NBTD
 #######################
+
+[MODULE::service_nbtd]
+INIT_FUNCTION = server_service_nbtd_init
+SUBSYSTEM = service
+OBJ_FILES = \
+		nbt_server.o
+PRIVATE_DEPENDENCIES = NBT_SERVER process_model

Modified: branches/SAMBA_4_0/source/nbt_server/register.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/register.c	2007-09-26 21:46:43 UTC (rev 25362)
+++ branches/SAMBA_4_0/source/nbt_server/register.c	2007-09-26 23:24:47 UTC (rev 25363)
@@ -31,7 +31,6 @@
 #include "dsdb/samdb/samdb.h"
 #include "param/param.h"
 
-
 static void nbtd_start_refresh_timer(struct nbtd_iface_name *iname);
 
 /*
@@ -227,9 +226,9 @@
 /*
   register one name on all our interfaces
 */
-static void nbtd_register_name(struct nbtd_server *nbtsrv, 
-			       const char *name, enum nbt_name_type type,
-			       uint16_t nb_flags)
+void nbtd_register_name(struct nbtd_server *nbtsrv, 
+			const char *name, enum nbt_name_type type,
+			uint16_t nb_flags)
 {
 	struct nbtd_interface *iface;
 	



More information about the samba-cvs mailing list