summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-09 22:06:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:56:51 -0500
commitc6519ad9c0a45981a4ae101ee961acc397d4140d (patch)
treea9b4ed684e099643c3a4df1f2080770604666156 /source4/scripting
parent3ccea395aa3e00e4f9cb0eb2fdee2cb763cc47ac (diff)
downloadsamba-c6519ad9c0a45981a4ae101ee961acc397d4140d.tar.gz
samba-c6519ad9c0a45981a4ae101ee961acc397d4140d.tar.bz2
samba-c6519ad9c0a45981a4ae101ee961acc397d4140d.zip
r14109: Modulify the smbcalls subsystem.
(This used to be commit d538eac9dbfdd786b533cb5fbbd35ab2fd7358ba)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/ejs/config.mk75
-rw-r--r--source4/scripting/ejs/smbcalls.c12
2 files changed, 60 insertions, 27 deletions
diff --git a/source4/scripting/ejs/config.mk b/source4/scripting/ejs/config.mk
index 3e71e48196..e330e022a4 100644
--- a/source4/scripting/ejs/config.mk
+++ b/source4/scripting/ejs/config.mk
@@ -7,32 +7,75 @@ NOPROTO = YES
# End SUBSYSTEM EJSRPC
#######################
+[MODULE::smbcalls_config]
+OBJ_FILES = smbcalls_config.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_config
+
+[MODULE::smbcalls_ldb]
+OBJ_FILES = smbcalls_ldb.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_ldb
+
+[MODULE::smbcalls_nbt]
+OBJ_FILES = smbcalls_nbt.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_nbt
+
+[MODULE::smbcalls_samba3]
+OBJ_FILES = smbcalls_samba3.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_samba3
+REQUIRED_SUBSYSTEMS = LIBSAMBA3
+
+
+[MODULE::smbcalls_rand]
+OBJ_FILES = smbcalls_rand.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_random
+
+[MODULE::smbcalls_nss]
+OBJ_FILES = smbcalls_nss.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_nss
+
+[MODULE::smbcalls_data]
+OBJ_FILES = smbcalls_data.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_datablob
+
+[MODULE::smbcalls_auth]
+OBJ_FILES = smbcalls_auth.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_auth
+REQUIRED_SUBSYSTEMS = auth
+
+[MODULE::smbcalls_string]
+OBJ_FILES = smbcalls_string.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_string
+
+[MODULE::smbcalls_sys]
+OBJ_FILES = smbcalls_sys.o
+SUBSYSTEM = smbcalls
+INIT_FUNCTION = smb_setup_ejs_system
+
#######################
-# Start LIBRARY SMBCALLS
-[SUBSYSTEM::SMBCALLS]
+# Start LIBRARY smbcalls
+[SUBSYSTEM::smbcalls]
PRIVATE_PROTO_HEADER = proto.h
OBJ_FILES = \
smbcalls.o \
- smbcalls_config.o \
- smbcalls_ldb.o \
- smbcalls_nbt.o \
smbcalls_cli.o \
smbcalls_rpc.o \
- smbcalls_auth.o \
smbcalls_options.o \
- smbcalls_nss.o \
- smbcalls_string.o \
- smbcalls_data.o \
- smbcalls_rand.o \
- smbcalls_sys.o \
smbcalls_creds.o \
- smbcalls_samba3.o \
smbcalls_param.o \
ejsnet.o \
mprutil.o
REQUIRED_SUBSYSTEMS = \
- auth EJS LIBBASIC \
- EJSRPC MESSAGING LIBSAMBA3 \
+ EJS LIBBASIC \
+ EJSRPC MESSAGING \
LIBNET LIBSMB LIBPOPT \
POPT_CREDENTIALS POPT_SAMBA \
dcerpc \
@@ -52,7 +95,7 @@ REQUIRED_SUBSYSTEMS = \
RPC_EJS_NETLOGON \
RPC_EJS_DRSUAPI \
RPC_EJS_IRPC
-# End SUBSYSTEM SMBCALLS
+# End SUBSYSTEM smbcalls
#######################
#######################
@@ -61,6 +104,6 @@ REQUIRED_SUBSYSTEMS = \
INSTALLDIR = BINDIR
OBJ_FILES = \
smbscript.o
-REQUIRED_SUBSYSTEMS = EJS LIBBASIC SMBCALLS CONFIG
+REQUIRED_SUBSYSTEMS = EJS LIBBASIC smbcalls CONFIG
# End BINARY SMBSCRIPT
#######################
diff --git a/source4/scripting/ejs/smbcalls.c b/source4/scripting/ejs/smbcalls.c
index 13281f88e9..5aab8cf2c2 100644
--- a/source4/scripting/ejs/smbcalls.c
+++ b/source4/scripting/ejs/smbcalls.c
@@ -127,23 +127,13 @@ static int ejs_version(MprVarHandle eid, int argc, struct MprVar **argv)
*/
void smb_setup_ejs_functions(void)
{
- init_module_fn static_init[] = STATIC_SMBCALLS_MODULES;
+ init_module_fn static_init[] = STATIC_smbcalls_MODULES;
init_module_fn *shared_init;
- smb_setup_ejs_config();
- smb_setup_ejs_ldb();
- smb_setup_ejs_nbt();
smb_setup_ejs_cli();
- smb_setup_ejs_auth();
smb_setup_ejs_options();
- smb_setup_ejs_nss();
- smb_setup_ejs_string();
- smb_setup_ejs_random();
- smb_setup_ejs_system();
smb_setup_ejs_credentials();
- smb_setup_ejs_samba3();
smb_setup_ejs_param();
- smb_setup_ejs_datablob();
ejsnet_setup();