summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/ejsnet
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-15 07:34:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:55 -0500
commit0ec7ff5b6b8c7d498037bb68fc9cfead9e44dfc0 (patch)
tree09488981770153891b08af69a787e0c48dbb216d /source4/scripting/ejs/ejsnet
parent274df78541eec948e546bb98901b5bb00aaadc00 (diff)
downloadsamba-0ec7ff5b6b8c7d498037bb68fc9cfead9e44dfc0.tar.gz
samba-0ec7ff5b6b8c7d498037bb68fc9cfead9e44dfc0.tar.bz2
samba-0ec7ff5b6b8c7d498037bb68fc9cfead9e44dfc0.zip
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 5828632931376c3982bf0b6d110d217a8e05d60e)
Diffstat (limited to 'source4/scripting/ejs/ejsnet')
-rw-r--r--source4/scripting/ejs/ejsnet/config.mk11
-rw-r--r--source4/scripting/ejs/ejsnet/net_ctx.c2
2 files changed, 4 insertions, 9 deletions
diff --git a/source4/scripting/ejs/ejsnet/config.mk b/source4/scripting/ejs/ejsnet/config.mk
index 4a3a428e44..6e624886d6 100644
--- a/source4/scripting/ejs/ejsnet/config.mk
+++ b/source4/scripting/ejs/ejsnet/config.mk
@@ -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
diff --git a/source4/scripting/ejs/ejsnet/net_ctx.c b/source4/scripting/ejs/ejsnet/net_ctx.c
index 42c64540fb..f58a59461a 100644
--- a/source4/scripting/ejs/ejsnet/net_ctx.c
+++ b/source4/scripting/ejs/ejsnet/net_ctx.c
@@ -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);
}