diff options
Diffstat (limited to 'source4/build/pidl/Parse/Pidl')
-rw-r--r-- | source4/build/pidl/Parse/Pidl/Samba/EJS.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source4/build/pidl/Parse/Pidl/Samba/EJS.pm b/source4/build/pidl/Parse/Pidl/Samba/EJS.pm index 0aa8de7c93..370db6d0e4 100644 --- a/source4/build/pidl/Parse/Pidl/Samba/EJS.pm +++ b/source4/build/pidl/Parse/Pidl/Samba/EJS.pm @@ -692,19 +692,18 @@ sub EjsInterface($$) pidl "static int ejs_$name\_init(int eid, int argc, struct MprVar **argv)"; pidl "{"; indent; - pidl "struct MprVar obj = mprObject(\"$name\");"; + pidl "struct MprVar *obj = mprInitObject(eid, \"$name\", argc, argv);"; foreach (@fns) { - pidl "mprSetCFunction(&obj, \"$_\", ejs_$_);"; + pidl "mprSetCFunction(obj, \"$_\", ejs_$_);"; } foreach my $v (keys %constants) { my $value = $constants{$v}; if (substr($value, 0, 1) eq "\"") { - pidl "mprSetVar(&obj, \"$v\", mprString($value));"; + pidl "mprSetVar(obj, \"$v\", mprString($value));"; } else { - pidl "mprSetVar(&obj, \"$v\", mprCreateNumberVar($value));"; + pidl "mprSetVar(obj, \"$v\", mprCreateNumberVar($value));"; } } - pidl "mpr_Return(eid, obj);"; pidl "return 0;"; deindent; pidl "}\n"; |