diff options
Diffstat (limited to 'source4/librpc/rpc/rpc_dfs.c')
-rw-r--r-- | source4/librpc/rpc/rpc_dfs.c | 97 |
1 files changed, 72 insertions, 25 deletions
diff --git a/source4/librpc/rpc/rpc_dfs.c b/source4/librpc/rpc/rpc_dfs.c index e4501676dd..4de98ad5f6 100644 --- a/source4/librpc/rpc/rpc_dfs.c +++ b/source4/librpc/rpc/rpc_dfs.c @@ -1,82 +1,129 @@ -/* dcerpc client calls auto-generated by pidl */ +/* dcerpc client calls generated by pidl */ #include "includes.h" NTSTATUS dcerpc_dfs_Exist(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Exist *r) { - return dcerpc_ndr_request(p, DCERPC_DFS_EXIST, mem_ctx, - (ndr_push_fn_t) ndr_push_dfs_Exist, - (ndr_pull_fn_t) ndr_pull_dfs_Exist, - r); + NTSTATUS status; + + if (p->flags & DCERPC_DEBUG_PRINT_IN) { + NDR_PRINT_IN_DEBUG(dfs_Exist, r); + } + + status = dcerpc_ndr_request(p, DCERPC_DFS_EXIST, mem_ctx, + (ndr_push_fn_t) ndr_push_dfs_Exist, + (ndr_pull_fn_t) ndr_pull_dfs_Exist, + r); + + if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) { + NDR_PRINT_OUT_DEBUG(dfs_Exist, r); + } + + return status; } NTSTATUS dcerpc_dfs_Add(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Add *r) { NTSTATUS status; + + if (p->flags & DCERPC_DEBUG_PRINT_IN) { + NDR_PRINT_IN_DEBUG(dfs_Add, r); + } + status = dcerpc_ndr_request(p, DCERPC_DFS_ADD, mem_ctx, (ndr_push_fn_t) ndr_push_dfs_Add, (ndr_pull_fn_t) ndr_pull_dfs_Add, r); - if (!NT_STATUS_IS_OK(status)) { - return status; + + if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) { + NDR_PRINT_OUT_DEBUG(dfs_Add, r); } - - return r->out.result; + if (NT_STATUS_IS_OK(status)) status = r->out.result; + + return status; } NTSTATUS dcerpc_dfs_Remove(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Remove *r) { NTSTATUS status; + + if (p->flags & DCERPC_DEBUG_PRINT_IN) { + NDR_PRINT_IN_DEBUG(dfs_Remove, r); + } + status = dcerpc_ndr_request(p, DCERPC_DFS_REMOVE, mem_ctx, (ndr_push_fn_t) ndr_push_dfs_Remove, (ndr_pull_fn_t) ndr_pull_dfs_Remove, r); - if (!NT_STATUS_IS_OK(status)) { - return status; + + if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) { + NDR_PRINT_OUT_DEBUG(dfs_Remove, r); } - - return r->out.result; + if (NT_STATUS_IS_OK(status)) status = r->out.result; + + return status; } NTSTATUS dcerpc_dfs_SetInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_SetInfo *r) { NTSTATUS status; + + if (p->flags & DCERPC_DEBUG_PRINT_IN) { + NDR_PRINT_IN_DEBUG(dfs_SetInfo, r); + } + status = dcerpc_ndr_request(p, DCERPC_DFS_SETINFO, mem_ctx, (ndr_push_fn_t) ndr_push_dfs_SetInfo, (ndr_pull_fn_t) ndr_pull_dfs_SetInfo, r); - if (!NT_STATUS_IS_OK(status)) { - return status; + + if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) { + NDR_PRINT_OUT_DEBUG(dfs_SetInfo, r); } - - return r->out.result; + if (NT_STATUS_IS_OK(status)) status = r->out.result; + + return status; } NTSTATUS dcerpc_dfs_GetInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_GetInfo *r) { NTSTATUS status; + + if (p->flags & DCERPC_DEBUG_PRINT_IN) { + NDR_PRINT_IN_DEBUG(dfs_GetInfo, r); + } + status = dcerpc_ndr_request(p, DCERPC_DFS_GETINFO, mem_ctx, (ndr_push_fn_t) ndr_push_dfs_GetInfo, (ndr_pull_fn_t) ndr_pull_dfs_GetInfo, r); - if (!NT_STATUS_IS_OK(status)) { - return status; + + if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) { + NDR_PRINT_OUT_DEBUG(dfs_GetInfo, r); } - - return r->out.result; + if (NT_STATUS_IS_OK(status)) status = r->out.result; + + return status; } NTSTATUS dcerpc_dfs_Enum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Enum *r) { NTSTATUS status; + + if (p->flags & DCERPC_DEBUG_PRINT_IN) { + NDR_PRINT_IN_DEBUG(dfs_Enum, r); + } + status = dcerpc_ndr_request(p, DCERPC_DFS_ENUM, mem_ctx, (ndr_push_fn_t) ndr_push_dfs_Enum, (ndr_pull_fn_t) ndr_pull_dfs_Enum, r); - if (!NT_STATUS_IS_OK(status)) { - return status; + + if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) { + NDR_PRINT_OUT_DEBUG(dfs_Enum, r); } - - return r->out.result; + if (NT_STATUS_IS_OK(status)) status = r->out.result; + + return status; } |