From f6d2892faab30e6f205a81a008168b07e521ab85 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 28 Jul 2005 06:46:03 +0000 Subject: 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) --- swat/esptest/samr.esp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'swat') 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 @@

Samba4 samr rpc test

<% -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); -- cgit