From 6bf82c05c1a9ab37afca21978885712da093b633 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 3 May 2005 15:38:19 +0000 Subject: r6606: add a DCESRV_FAULT_VOID() marco to use in void functions metze (This used to be commit a379836de63951bcfbc281425af3db7094248f2f) --- source4/rpc_server/common/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/rpc_server/common/common.h') diff --git a/source4/rpc_server/common/common.h b/source4/rpc_server/common/common.h index 67c758a698..a43ca74530 100644 --- a/source4/rpc_server/common/common.h +++ b/source4/rpc_server/common/common.h @@ -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) -- cgit