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:
parent
274df78541
commit
0ec7ff5b6b
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user