svn commit: samba r6606 - in branches/SAMBA_4_0/source/rpc_server/common: .

metze at samba.org metze at samba.org
Tue May 3 15:38:19 GMT 2005


Author: metze
Date: 2005-05-03 15:38:19 +0000 (Tue, 03 May 2005)
New Revision: 6606

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

Log:
add a DCESRV_FAULT_VOID() marco to use in void functions

metze
Modified:
   branches/SAMBA_4_0/source/rpc_server/common/common.h


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/common/common.h
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/common/common.h	2005-05-03 15:17:50 UTC (rev 6605)
+++ branches/SAMBA_4_0/source/rpc_server/common/common.h	2005-05-03 15:38:19 UTC (rev 6606)
@@ -35,6 +35,12 @@
 	return r->out.result; \
 } while(0)
 
+/* a useful macro for generating a RPC fault in the backend code */
+#define DCESRV_FAULT_VOID(code) do { \
+	dce_call->fault_code = code; \
+	return; \
+} while(0)
+
 /* a useful macro for checking the validity of a dcerpc policy handle
    and giving the right fault code if invalid */
 #define DCESRV_CHECK_HANDLE(h) do {if (!(h)) DCESRV_FAULT(DCERPC_FAULT_CONTEXT_MISMATCH); } while (0)



More information about the samba-cvs mailing list