diff options
Diffstat (limited to 'source4/scripting/ejs/smbcalls_rpc.c')
-rw-r--r-- | source4/scripting/ejs/smbcalls_rpc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/scripting/ejs/smbcalls_rpc.c b/source4/scripting/ejs/smbcalls_rpc.c index f8ea37b754..17f1716b2e 100644 --- a/source4/scripting/ejs/smbcalls_rpc.c +++ b/source4/scripting/ejs/smbcalls_rpc.c @@ -170,8 +170,12 @@ done: void smb_setup_ejs_rpc(void) { void setup_ejs_rpcecho(void); + void setup_ejs_samr(void); + void setup_ejs_misc(void); ejsDefineCFunction(-1, "rpc_connect", ejs_rpc_connect, NULL, MPR_VAR_SCRIPT_HANDLE); setup_ejs_rpcecho(); + setup_ejs_samr(); + setup_ejs_misc(); } /* @@ -179,6 +183,15 @@ void smb_setup_ejs_rpc(void) */ void smb_setup_ejs_rpc_constants(int eid) { + struct MprVar v; + void setup_ejs_constants_rpcecho(int); + void setup_ejs_constants_samr(int); + void setup_ejs_constants_misc(int); setup_ejs_constants_rpcecho(eid); + setup_ejs_constants_samr(eid); + setup_ejs_constants_misc(eid); + + v = mprCreatePtrVar(NULL, "NULL"); + mprSetProperty(ejsGetGlobalObject(eid), "NULL", &v); } |