svn commit: samba r8193 - in branches/SAMBA_4_0/testprogs/ejs: .

tridge at samba.org tridge at samba.org
Thu Jul 7 06:26:22 GMT 2005


Author: tridge
Date: 2005-07-07 06:26:22 +0000 (Thu, 07 Jul 2005)
New Revision: 8193

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8193

Log:
fixed the echo.js example code to work with the new syntax for rpc
calls from js. I chose the new syntax to match the C calling syntax,
so if you are familiar with using the Samba4 rpc libraries from C,
then using them from js should be easy

Modified:
   branches/SAMBA_4_0/testprogs/ejs/echo.js


Changeset:
Modified: branches/SAMBA_4_0/testprogs/ejs/echo.js
===================================================================
--- branches/SAMBA_4_0/testprogs/ejs/echo.js	2005-07-07 06:25:04 UTC (rev 8192)
+++ branches/SAMBA_4_0/testprogs/ejs/echo.js	2005-07-07 06:26:22 UTC (rev 8193)
@@ -23,7 +23,7 @@
 
 	for (i=0;i<10;i++) {
 		io.in.in_data = i;
-		status = rpc_call(conn, "echo_AddOne", io);
+		status = dcerpc_echo_AddOne(conn, io);
 		print("AddOne(" + i + ")=" + io.out.out_data + "\n");
 	}
 }



More information about the samba-cvs mailing list