/* Out parameters */
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(bar, &state->orig);
- }
-
/* make a temporary copy, that we pass to the dispatch function */
state->tmp = state->orig;
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(bar, &state->orig);
- }
-
tevent_req_done(req);
}
NTSTATUS rpccli_bar(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx)
{
-\tstruct bar r;
-\tNTSTATUS status;
-
-\t/* In parameters */
+ struct bar r;
+ NTSTATUS status;
-\tif (DEBUGLEVEL >= 10) {
-\t\tNDR_PRINT_IN_DEBUG(bar, &r);
-\t}
+ /* In parameters */
status = cli->dispatch(cli,
mem_ctx,
NDR_BAR,
&r);
-\tif (!NT_STATUS_IS_OK(status)) {
-\t\treturn status;
-\t}
-
-\tif (DEBUGLEVEL >= 10) {
-\t\tNDR_PRINT_OUT_DEBUG(bar, &r);
-\t}
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
-\tif (NT_STATUS_IS_ERR(status)) {
-\t\treturn status;
-\t}
+ if (NT_STATUS_IS_ERR(status)) {
+ return status;
+ }
-\t/* Return variables */
+ /* Return variables */
-\t/* Return result */
-\treturn NT_STATUS_OK;
+ /* Return result */
+ return NT_STATUS_OK;
}
");
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(bar, &state->orig);
- }
-
/* make a temporary copy, that we pass to the dispatch function */
state->tmp = state->orig;
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(bar, &state->orig);
- }
-
tevent_req_done(req);
}
TALLOC_CTX *mem_ctx,
WERROR *werror)
{
-\tstruct bar r;
-\tNTSTATUS status;
-
-\t/* In parameters */
+ struct bar r;
+ NTSTATUS status;
-\tif (DEBUGLEVEL >= 10) {
-\t\tNDR_PRINT_IN_DEBUG(bar, &r);
-\t}
+ /* In parameters */
status = cli->dispatch(cli,
mem_ctx,
NDR_BAR,
&r);
-\tif (!NT_STATUS_IS_OK(status)) {
-\t\treturn status;
-\t}
-
-\tif (DEBUGLEVEL >= 10) {
-\t\tNDR_PRINT_OUT_DEBUG(bar, &r);
-\t}
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
-\tif (NT_STATUS_IS_ERR(status)) {
-\t\treturn status;
-\t}
+ if (NT_STATUS_IS_ERR(status)) {
+ return status;
+ }
-\t/* Return variables */
+ /* Return variables */
-\t/* Return result */
-\tif (werror) {
-\t\t*werror = r.out.result;
-\t}
+ /* Return result */
+ if (werror) {
+ *werror = r.out.result;
+ }
-\treturn werror_to_ntstatus(r.out.result);
+ return werror_to_ntstatus(r.out.result);
}
");