diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-28 06:46:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:08 -0500 |
commit | f6d2892faab30e6f205a81a008168b07e521ab85 (patch) | |
tree | a8564f854dc27aca17c3c6e81746a32c990ed3f1 /source4/build/pidl/Parse/Pidl/Samba | |
parent | a97f6670288097adc7a924a93bb1078062ceee32 (diff) | |
download | samba-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 'source4/build/pidl/Parse/Pidl/Samba')
-rw-r--r-- | source4/build/pidl/Parse/Pidl/Samba/EJS.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/build/pidl/Parse/Pidl/Samba/EJS.pm b/source4/build/pidl/Parse/Pidl/Samba/EJS.pm index 5cd7b462ae..c528e13a52 100644 --- a/source4/build/pidl/Parse/Pidl/Samba/EJS.pm +++ b/source4/build/pidl/Parse/Pidl/Samba/EJS.pm @@ -704,7 +704,7 @@ sub EjsInterface($$) pidl "mprSetVar(obj, \"$v\", mprCreateNumberVar($value));"; } } - pidl "return 0;"; + pidl "return ejs_rpc_init(obj, \"$name\");"; deindent; pidl "}\n"; |