diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-12 02:34:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:20:07 -0500 |
commit | b1e93b296ea8f62ce0f15ccef5f6ae5339f4929f (patch) | |
tree | 2ba5c18f14d374a29a79061ee17b7dff28186355 /source4/scripting/ejs/smbcalls.c | |
parent | 36bb0ffd4c59b17c7f942d874e18865707d3c696 (diff) | |
download | samba-b1e93b296ea8f62ce0f15ccef5f6ae5339f4929f.tar.gz samba-b1e93b296ea8f62ce0f15ccef5f6ae5339f4929f.tar.bz2 samba-b1e93b296ea8f62ce0f15ccef5f6ae5339f4929f.zip |
r8337: - use 64 bit access functions in ejs calls
- added access to smbd random functions
- fixed ordering in join()
- added sys_interfaces(), sys_hostname(), sys_nttime() and sys_ldaptime()
(This used to be commit 28c1a1f3c0cd2f8228fd8c3c695ab6f45226fa3f)
Diffstat (limited to 'source4/scripting/ejs/smbcalls.c')
-rw-r--r-- | source4/scripting/ejs/smbcalls.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/source4/scripting/ejs/smbcalls.c b/source4/scripting/ejs/smbcalls.c index 2da1e8c669..e58151620f 100644 --- a/source4/scripting/ejs/smbcalls.c +++ b/source4/scripting/ejs/smbcalls.c @@ -65,21 +65,6 @@ static int ejs_typeof(MprVarHandle eid, int argc, struct MprVar **argv) } /* - return the list of configured network interfaces -*/ -static int ejs_IfaceList(MprVarHandle eid, int argc, struct MprVar **argv) -{ - int i, count = iface_count(); - struct MprVar ret = mprObject("interfaces"); - for (i=0;i<count;i++) { - mprAddArray(&ret, i, mprString(iface_n_ip(i))); - } - mpr_Return(eid, ret); - return 0; -} - - -/* libinclude() allows you to include js files using a search path specified in "js include =" in smb.conf. */ @@ -139,9 +124,10 @@ void smb_setup_ejs_functions(void) smb_setup_ejs_options(); smb_setup_ejs_nss(); smb_setup_ejs_string(); + smb_setup_ejs_random(); + smb_setup_ejs_system(); ejsDefineCFunction(-1, "typeof", ejs_typeof, NULL, MPR_VAR_SCRIPT_HANDLE); - ejsDefineCFunction(-1, "IfaceList", ejs_IfaceList, NULL, MPR_VAR_SCRIPT_HANDLE); ejsDefineStringCFunction(-1, "libinclude", ejs_libinclude, NULL, MPR_VAR_SCRIPT_HANDLE); } |