svn commit: samba r11535 - in
branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba: .
jelmer at samba.org
jelmer at samba.org
Sun Nov 6 13:53:37 GMT 2005
Author: jelmer
Date: 2005-11-06 13:53:37 +0000 (Sun, 06 Nov 2005)
New Revision: 11535
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11535
Log:
Support void functions when generating templates.
Modified:
branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba/Template.pm
Changeset:
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba/Template.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba/Template.pm 2005-11-06 13:21:22 UTC (rev 11534)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba/Template.pm 2005-11-06 13:53:37 UTC (rev 11535)
@@ -46,6 +46,7 @@
#include \"includes.h\"
#include \"rpc_server/dcerpc_server.h\"
#include \"librpc/gen_ndr/ndr_$name.h\"
+#include \"rpc_server/common/common.h\"
";
@@ -59,8 +60,15 @@
*/
static $d->{RETURN_TYPE} $fname(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct $fname *r)
-{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+{";
+
+ if ($d->{RETURN_TYPE} eq "void") {
+ $res .= "DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);\n";
+ } else {
+ $res .= "DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);\n";
+ }
+
+ $res .= "
}
";
More information about the samba-cvs
mailing list