From 09c44f6cae89621871d2e5475b0c0f99c25804b4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 26 Dec 2005 21:58:31 +0000 Subject: r12500: Use init functions explicitly in a few more places. 'gensec' and 'librpc' are the only two subsystems left to convert. (This used to be commit f6bbc72996aeee8607fc583140fd60be0e06e969) --- source4/scripting/ejs/smbcalls.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source4/scripting/ejs/smbcalls.c') diff --git a/source4/scripting/ejs/smbcalls.c b/source4/scripting/ejs/smbcalls.c index 3e5035b272..ee999402a5 100644 --- a/source4/scripting/ejs/smbcalls.c +++ b/source4/scripting/ejs/smbcalls.c @@ -24,6 +24,7 @@ #include "includes.h" #include "lib/appweb/ejs/ejs.h" #include "scripting/ejs/smbcalls.h" +#include "smb_build.h" /* return the type of a variable @@ -116,6 +117,9 @@ static int ejs_libinclude(int eid, int argc, char **argv) */ void smb_setup_ejs_functions(void) { + 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(); @@ -131,8 +135,16 @@ void smb_setup_ejs_functions(void) smb_setup_ejs_samba3(); smb_setup_ejs_param(); smb_setup_ejs_datablob(); + ejsnet_setup(); + shared_init = load_samba_modules(NULL, "ejs"); + + run_init_functions(static_init); + run_init_functions(shared_init); + + talloc_free(shared_init); + ejsDefineCFunction(-1, "typeof", ejs_typeof, NULL, MPR_VAR_SCRIPT_HANDLE); ejsDefineStringCFunction(-1, "libinclude", ejs_libinclude, NULL, MPR_VAR_SCRIPT_HANDLE); } -- cgit