r23125: add host manager subcontext function.
authorRafal Szczesniak <mimir@samba.org>
Thu, 24 May 2007 21:45:29 +0000 (21:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:52 +0000 (14:52 -0500)
rafal
(This used to be commit 2f16ff04d22e13cfb2dc5d8b69004d969a4c25fb)

source4/scripting/ejs/ejsnet/net_ctx.c

index 1c70dc107f468c0e2b0395f3438c3cfa4dfe0527..e98ba59aeecd7aa7d3335838a5f8a3fd4824fd57 100644 (file)
@@ -29,6 +29,7 @@
 
 
 int ejs_net_userman(MprVarHandle eid, int argc, struct MprVar** argv);
+int ejs_net_hostman(MprVarHandle eid, int argc, struct MprVar** argv);
 
 static int ejs_net_join_domain(MprVarHandle eid, int argc, struct MprVar **argv);
 static int ejs_net_samsync_ldb(MprVarHandle eid, int argc, struct MprVar **argv);
@@ -105,6 +106,7 @@ static int ejs_net_context(MprVarHandle eid, int argc, struct MprVar **argv)
        
        /* add methods to the object */
        mprSetCFunction(&obj, "UserMgr", ejs_net_userman);
+       mprSetCFunction(&obj, "HostMgr", ejs_net_hostman);
        mprSetCFunction(&obj, "JoinDomain", ejs_net_join_domain);
        mprSetCFunction(&obj, "SamSyncLdb", ejs_net_samsync_ldb);