1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r20791: the ejsnet stuff can be a normal smbcalls module...

mimir: when you want to register more functions
       please do that in the smb_setup_ejs_net() function

metze
(This used to be commit 5828632931)
This commit is contained in:
Stefan Metzmacher 2007-01-15 07:34:04 +00:00 committed by Gerald (Jerry) Carter
parent 274df78541
commit 0ec7ff5b6b
5 changed files with 6 additions and 12 deletions

View File

@ -30,7 +30,6 @@ include torture/config.mk
include librpc/config.mk
include client/config.mk
include libcli/config.mk
include scripting/ejs/ejsnet/config.mk
include scripting/ejs/config.mk
include scripting/swig/config.mk
include kdc/config.mk

View File

@ -58,6 +58,8 @@ OBJ_FILES = smbcalls_sys.o
SUBSYSTEM = smbcalls
INIT_FUNCTION = smb_setup_ejs_system
include ejsnet/config.mk
#######################
# Start LIBRARY smbcalls
[LIBRARY::smbcalls]

View File

@ -1,13 +1,8 @@
#######################
# Start LIBRARY EJSNET
[LIBRARY::EJSNET]
SO_VERSION = 0
VERSION = 0.0.1
[MODULE::smbcalls_net]
PRIVATE_PROTO_HEADER = proto.h
INIT_FUNCTION = smb_setup_ejs_net
OBJ_FILES = \
net_ctx.o \
net_user.o \
mpr_user.o
PUBLIC_DEPENDENCIES = LIBSAMBA-NET LIBCLI_SMB CREDENTIALS
# End SUBSYSTEM ejsnet
#######################
PRIVATE_DEPENDENCIES = LIBSAMBA-NET LIBCLI_SMB CREDENTIALS

View File

@ -203,7 +203,7 @@ static int ejs_net_samsync_ldb(MprVarHandle eid, int argc, struct MprVar **argv)
}
void ejsnet_setup(void)
void smb_set_ejs_net(void)
{
ejsDefineCFunction(-1, "NetContext", ejs_net_context, NULL, MPR_VAR_SCRIPT_HANDLE);
}

View File

@ -230,8 +230,6 @@ void smb_setup_ejs_functions(void (*exception_handler)(const char *))
smb_setup_ejs_param();
smb_setup_ejs_literal();
ejsnet_setup();
shared_init = load_samba_modules(NULL, "smbcalls");
run_init_functions(static_init);