git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81863cd
)
r6606: add a DCESRV_FAULT_VOID() marco to use in void functions
author
Stefan Metzmacher
<metze@samba.org>
Tue, 3 May 2005 15:38:19 +0000
(15:38 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:16:30 +0000
(13:16 -0500)
metze
source/rpc_server/common/common.h
patch
|
blob
|
history
diff --git
a/source/rpc_server/common/common.h
b/source/rpc_server/common/common.h
index 67c758a698982d45976958087fa67c518b9cf91d..a43ca74530c2a984d004254be5dd0f29b39b360e 100644
(file)
--- a/
source/rpc_server/common/common.h
+++ b/
source/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)