summaryrefslogtreecommitdiff
path: root/swat
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-28 06:46:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:08 -0500
commitf6d2892faab30e6f205a81a008168b07e521ab85 (patch)
treea8564f854dc27aca17c3c6e81746a32c990ed3f1 /swat
parenta97f6670288097adc7a924a93bb1078062ceee32 (diff)
downloadsamba-f6d2892faab30e6f205a81a008168b07e521ab85.tar.gz
samba-f6d2892faab30e6f205a81a008168b07e521ab85.tar.bz2
samba-f6d2892faab30e6f205a81a008168b07e521ab85.zip
r8821: continue the trend to move to a more OO style of interface for our js
calls. This changes the generated RPC and IRPC calls to use the 'this' object pointer instead of requiring the passing of the object on each call. So typical usage is now: var echo = echo_init(); var io = irpcObj(); status = echo.connect("ncacn_np:server"); assert(status.is_ok); io.input.in_data = 7; status = echo.AddOne(io); assert(status.is_ok); (This used to be commit f7b49ecd0868c1f0fec75b371f132bbf357ad8c6)
Diffstat (limited to 'swat')
-rw-r--r--swat/esptest/samr.esp4
1 files changed, 2 insertions, 2 deletions
diff --git a/swat/esptest/samr.esp b/swat/esptest/samr.esp
index 65902e0ce4..a60a02e7c8 100644
--- a/swat/esptest/samr.esp
+++ b/swat/esptest/samr.esp
@@ -7,9 +7,9 @@
<h1>Samba4 samr rpc test</h1>
<%
-var conn = new Object();
+var conn = samr_init();
var binding = "ncalrpc:";
-status = rpc_connect(conn, binding, "samr");
+status = conn.connect(binding);
check_status_ok(status);
handle = samrConnect(conn);