From 415aa96f09fd708d134eb15a9e8f729ca3eb05c4 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 8 Sep 2006 17:21:15 +0000 Subject: r18275: add auto generated dfs code (This used to be commit edb7a3607e3fa2090310b5c405f2b0a08f51db78) --- source3/librpc/gen_ndr/cli_dfs.c | 420 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 420 insertions(+) create mode 100644 source3/librpc/gen_ndr/cli_dfs.c (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c new file mode 100644 index 0000000000..5ade9f74a1 --- /dev/null +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -0,0 +1,420 @@ +/* + * Unix SMB/CIFS implementation. + * client auto-generated by pidl. DO NOT MODIFY! + */ + +#include "includes.h" +#include "librpc/gen_ndr/cli_dfs.h" + +NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t *exist_flag) +{ + struct dfs_GetManagerVersion r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + *exist_flag = *r.out.exist_flag; + + /* Return result */ + return NT_STATUS_OK; +} + +NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32_t flags) +{ + struct dfs_Add r; + NTSTATUS status; + + /* In parameters */ + r.in.path = path; + r.in.server = server; + r.in.share = share; + r.in.comment = comment; + r.in.flags = flags; + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share) +{ + struct dfs_Remove r; + NTSTATUS status; + + /* In parameters */ + r.in.path = path; + r.in.server = server; + r.in.share = share; + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_SetInfo r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, uint32_t level, union dfs_Info *info) +{ + struct dfs_GetInfo r; + NTSTATUS status; + + /* In parameters */ + r.in.path = path; + r.in.server = server; + r.in.share = share; + r.in.level = level; + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + *info = *r.out.info; + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *unknown, uint32_t *total) +{ + struct dfs_Enum r; + NTSTATUS status; + + /* In parameters */ + r.in.level = level; + r.in.bufsize = bufsize; + r.in.info = info; + r.in.unknown = unknown; + r.in.total = total; + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + *info = *r.out.info; + *total = *r.out.total; + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_Rename r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_Move r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_ManagerGetConfigInfo r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_ManagerSendSiteInfo r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_AddFtRoot r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_RemoveFtRoot r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_AddStdRoot r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_RemoveStdRoot r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_ManagerInitialize r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_AddStdRootForced r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_GetDcAddress r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_SetDcAddress r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_FlushFtTable r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_Add2 r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_Remove2 r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_EnumEx r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + +NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +{ + struct dfs_SetInfo2 r; + NTSTATUS status; + + /* In parameters */ + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return werror_to_ntstatus(r.out.result); +} + -- cgit From 8be112a81bf7d7fb48ee82fd38c1f8d0f85bbc75 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 13 Sep 2006 13:42:23 +0000 Subject: r18469: Use new pidl-generated DFS client code. (This used to be commit e277fb067b1a12d816c8a066839751c1824d27bb) --- source3/librpc/gen_ndr/cli_dfs.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index 5ade9f74a1..5de9117eaa 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -384,18 +384,25 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total) { struct dfs_EnumEx r; NTSTATUS status; /* In parameters */ + r.in.name = name; + r.in.level = level; + r.in.bufsize = bufsize; + r.in.info = info; + r.in.total = total; status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ + *info = *r.out.info; + *total = *r.out.total; /* Return result */ return werror_to_ntstatus(r.out.result); -- cgit From e3068ef054b6c500e9d9be16ffebda5cb2402f3a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 19 Sep 2006 22:39:15 +0000 Subject: r18692: Dump debug data when DEBUGLEVEL >= 10 (This used to be commit 503d1a27d5838718355fdd37968c3670f53b1cd7) --- source3/librpc/gen_ndr/cli_dfs.c | 184 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index 5de9117eaa..fda91f2f5f 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -12,7 +12,15 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -35,7 +43,15 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const r.in.share = share; r.in.comment = comment; r.in.flags = flags; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Add, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Add, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -55,7 +71,15 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con r.in.path = path; r.in.server = server; r.in.share = share; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Remove, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Remove, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -72,7 +96,15 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -93,7 +125,15 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co r.in.server = server; r.in.share = share; r.in.level = level; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -116,7 +156,15 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 r.in.info = info; r.in.unknown = unknown; r.in.total = total; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Enum, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Enum, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -135,7 +183,15 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Rename, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Rename, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -152,7 +208,15 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Move, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Move, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -169,7 +233,15 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -186,7 +258,15 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -203,7 +283,15 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -220,7 +308,15 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -237,7 +333,15 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -254,7 +358,15 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -271,7 +383,15 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -288,7 +408,15 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -305,7 +433,15 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -322,7 +458,15 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -339,7 +483,15 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -356,7 +508,15 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Add2, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Add2, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -373,7 +533,15 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_Remove2, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -395,7 +563,15 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con r.in.bufsize = bufsize; r.in.info = info; r.in.total = total; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -414,7 +590,15 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) NTSTATUS status; /* In parameters */ + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } -- cgit From 18d417663395febe60b23f376b2e92c9869e1126 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 28 Sep 2006 21:19:08 +0000 Subject: r18981: * cleanup some vestiges of old cli_reg.c code and mark some TODO items in cac_winreg.c * Get 'net rpc registry enumerate' to list values again * Fix winreg.idl QueryInfoKey(). The max_subkeysize is the max_classlen (we previously had this correct in Samba3") * fix valgrind error about uninitialized memory and use-before-set on size value inmemset() call * Fix key enumeration in 'net rpc registry enumerate' * regenerate gen_dir files based on local pidl patches Please note that the generated ndr files are from my local copy of pidl. If you need to regenerate, please apply the patch that I posted to the samba-technical list earlier today. (This used to be commit 5d843612a1b9d92022f76626f1c7473faebec4ba) --- source3/librpc/gen_ndr/cli_dfs.c | 108 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 104 insertions(+), 4 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index fda91f2f5f..a5f4e681e0 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -18,6 +18,10 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r); @@ -49,6 +53,10 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Add, &r); @@ -77,6 +85,10 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Remove, &r); @@ -102,6 +114,10 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r); @@ -131,6 +147,10 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r); @@ -162,6 +182,10 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Enum, &r); @@ -170,8 +194,12 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 } /* Return variables */ - *info = *r.out.info; - *total = *r.out.total; + if ( info ) { + *info = *r.out.info; + } + if ( total ) { + *total = *r.out.total; + } /* Return result */ return werror_to_ntstatus(r.out.result); @@ -189,6 +217,10 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Rename, &r); @@ -214,6 +246,10 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Move, &r); @@ -239,6 +275,10 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r); @@ -264,6 +304,10 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r); @@ -289,6 +333,10 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r); @@ -314,6 +362,10 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r); @@ -339,6 +391,10 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r); @@ -364,6 +420,10 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r); @@ -389,6 +449,10 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r); @@ -414,6 +478,10 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r); @@ -439,6 +507,10 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r); @@ -464,6 +536,10 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r); @@ -489,6 +565,10 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r); @@ -514,6 +594,10 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Add2, &r); @@ -539,6 +623,10 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r); @@ -569,6 +657,10 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r); @@ -577,8 +669,12 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con } /* Return variables */ - *info = *r.out.info; - *total = *r.out.total; + if ( info ) { + *info = *r.out.info; + } + if ( total ) { + *total = *r.out.total; + } /* Return result */ return werror_to_ntstatus(r.out.result); @@ -596,6 +692,10 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2); + if ( !NT_STATUS_IS_OK(status) ) { + return status; + } + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r); -- cgit From 3372adce58070febd728ee0f941e48d69acc40b4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 19 Nov 2006 18:22:20 +0000 Subject: r19794: Convert DFS (This used to be commit 2efd3b35097a780ce99abad8a10eca536f37fc26) --- source3/librpc/gen_ndr/cli_dfs.c | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index a5f4e681e0..fd722e1cce 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -165,7 +165,7 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *unknown, uint32_t *total) +NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct **info, uint32_t *unknown, uint32_t **total) { struct dfs_Enum r; NTSTATUS status; @@ -173,9 +173,9 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 /* In parameters */ r.in.level = level; r.in.bufsize = bufsize; - r.in.info = info; + r.in.info = *info; r.in.unknown = unknown; - r.in.total = total; + r.in.total = *total; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Enum, &r); @@ -194,12 +194,8 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 } /* Return variables */ - if ( info ) { - *info = *r.out.info; - } - if ( total ) { - *total = *r.out.total; - } + *info = r.out.info; + *total = r.out.total; /* Return result */ return werror_to_ntstatus(r.out.result); @@ -640,7 +636,7 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total) +NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct **info, uint32_t **total) { struct dfs_EnumEx r; NTSTATUS status; @@ -649,8 +645,8 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con r.in.name = name; r.in.level = level; r.in.bufsize = bufsize; - r.in.info = info; - r.in.total = total; + r.in.info = *info; + r.in.total = *total; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r); @@ -669,12 +665,8 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con } /* Return variables */ - if ( info ) { - *info = *r.out.info; - } - if ( total ) { - *total = *r.out.total; - } + *info = r.out.info; + *total = r.out.total; /* Return result */ return werror_to_ntstatus(r.out.result); -- cgit From 62e11c4f1748d98f479110c8c0e656a8f65dca4d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 16 Jan 2007 15:42:03 +0000 Subject: r20832: Remove extra pointers previously added to unique [out] pointers. Instead, add [ref] pointers where necessary (top-level [ref] pointers, by spec, don't appear on the wire). This brings us closer to the DCE/RPC standard again. (This used to be commit 580f2a7197b1bc9db14a643fdd112b40ef37aaef) --- source3/librpc/gen_ndr/cli_dfs.c | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index fd722e1cce..a5f4e681e0 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -165,7 +165,7 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct **info, uint32_t *unknown, uint32_t **total) +NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *unknown, uint32_t *total) { struct dfs_Enum r; NTSTATUS status; @@ -173,9 +173,9 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 /* In parameters */ r.in.level = level; r.in.bufsize = bufsize; - r.in.info = *info; + r.in.info = info; r.in.unknown = unknown; - r.in.total = *total; + r.in.total = total; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Enum, &r); @@ -194,8 +194,12 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 } /* Return variables */ - *info = r.out.info; - *total = r.out.total; + if ( info ) { + *info = *r.out.info; + } + if ( total ) { + *total = *r.out.total; + } /* Return result */ return werror_to_ntstatus(r.out.result); @@ -636,7 +640,7 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct **info, uint32_t **total) +NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total) { struct dfs_EnumEx r; NTSTATUS status; @@ -645,8 +649,8 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con r.in.name = name; r.in.level = level; r.in.bufsize = bufsize; - r.in.info = *info; - r.in.total = *total; + r.in.info = info; + r.in.total = total; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r); @@ -665,8 +669,12 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con } /* Return variables */ - *info = r.out.info; - *total = r.out.total; + if ( info ) { + *info = *r.out.info; + } + if ( total ) { + *total = *r.out.total; + } /* Return result */ return werror_to_ntstatus(r.out.result); -- cgit From 4003edf0df14b69fca0d1af923badbd682c0008c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 16 Feb 2007 14:50:57 +0000 Subject: r21385: Regenerate IDL after pidl changes, sync winreg.idl from samba4. (This used to be commit b84370513fbf790e599c33f177fb271a2a992b72) --- source3/librpc/gen_ndr/cli_dfs.c | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index a5f4e681e0..e85800b1dc 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -18,7 +18,7 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -53,7 +53,7 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -85,7 +85,7 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -114,7 +114,7 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -147,7 +147,7 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -182,7 +182,7 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -217,7 +217,7 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -246,7 +246,7 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -275,7 +275,7 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -304,7 +304,7 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -333,7 +333,7 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -362,7 +362,7 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -391,7 +391,7 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -420,7 +420,7 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -449,7 +449,7 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -478,7 +478,7 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -507,7 +507,7 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -536,7 +536,7 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -565,7 +565,7 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -594,7 +594,7 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -623,7 +623,7 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -657,7 +657,7 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } @@ -692,7 +692,7 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2); - if ( !NT_STATUS_IS_OK(status) ) { + if (!NT_STATUS_IS_OK(status)) { return status; } -- cgit From a458211702da5f573f09dde196ca302f2f7cb976 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Jun 2007 09:17:52 +0000 Subject: r23622: regenerate dfs rpc gen_ndr. Guenther (This used to be commit 71b3259962004c278ca2e859d5460ad47c2468d6) --- source3/librpc/gen_ndr/cli_dfs.c | 84 +++++++++++++++++++++++++++++----------- 1 file changed, 62 insertions(+), 22 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index e85800b1dc..6484e132e3 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -6,7 +6,7 @@ #include "includes.h" #include "librpc/gen_ndr/cli_dfs.h" -NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t *exist_flag) +NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum dfs_ManagerVersion *version) { struct dfs_GetManagerVersion r; NTSTATUS status; @@ -30,7 +30,7 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m } /* Return variables */ - *exist_flag = *r.out.exist_flag; + *version = *r.out.version; /* Return result */ return NT_STATUS_OK; @@ -70,15 +70,15 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share) +NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename) { struct dfs_Remove r; NTSTATUS status; /* In parameters */ - r.in.path = path; - r.in.server = server; - r.in.share = share; + r.in.dfs_entry_path = dfs_entry_path; + r.in.servername = servername; + r.in.sharename = sharename; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Remove, &r); @@ -102,12 +102,17 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info) { struct dfs_SetInfo r; NTSTATUS status; /* In parameters */ + r.in.dfs_entry_path = dfs_entry_path; + r.in.servername = servername; + r.in.sharename = sharename; + r.in.level = level; + r.in.info = info; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r); @@ -131,15 +136,15 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, uint32_t level, union dfs_Info *info) +NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info) { struct dfs_GetInfo r; NTSTATUS status; /* In parameters */ - r.in.path = path; - r.in.server = server; - r.in.share = share; + r.in.dfs_entry_path = dfs_entry_path; + r.in.servername = servername; + r.in.sharename = sharename; r.in.level = level; if (DEBUGLEVEL >= 10) @@ -165,7 +170,7 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *unknown, uint32_t *total) +NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total) { struct dfs_Enum r; NTSTATUS status; @@ -174,7 +179,6 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 r.in.level = level; r.in.bufsize = bufsize; r.in.info = info; - r.in.unknown = unknown; r.in.total = total; if (DEBUGLEVEL >= 10) @@ -321,12 +325,21 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, const char *comment, const char *dfs_config_dn, uint8_t unknown1, uint32_t flags, struct dfs_UnknownStruct **unknown2) { struct dfs_AddFtRoot r; NTSTATUS status; /* In parameters */ + r.in.servername = servername; + r.in.dns_servername = dns_servername; + r.in.dfsname = dfsname; + r.in.rootshare = rootshare; + r.in.comment = comment; + r.in.dfs_config_dn = dfs_config_dn; + r.in.unknown1 = unknown1; + r.in.flags = flags; + r.in.unknown2 = unknown2; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r); @@ -345,17 +358,26 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) } /* Return variables */ + if ( unknown2 ) { + *unknown2 = *r.out.unknown2; + } /* Return result */ return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, uint32_t flags, struct dfs_UnknownStruct **unknown) { struct dfs_RemoveFtRoot r; NTSTATUS status; /* In parameters */ + r.in.servername = servername; + r.in.dns_servername = dns_servername; + r.in.dfsname = dfsname; + r.in.rootshare = rootshare; + r.in.flags = flags; + r.in.unknown = unknown; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r); @@ -374,17 +396,24 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct } /* Return variables */ + if ( unknown ) { + *unknown = *r.out.unknown; + } /* Return result */ return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, uint32_t flags) { struct dfs_AddStdRoot r; NTSTATUS status; /* In parameters */ + r.in.servername = servername; + r.in.rootshare = rootshare; + r.in.comment = comment; + r.in.flags = flags; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r); @@ -408,12 +437,15 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, uint32_t flags) { struct dfs_RemoveStdRoot r; NTSTATUS status; /* In parameters */ + r.in.servername = servername; + r.in.rootshare = rootshare; + r.in.flags = flags; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r); @@ -437,12 +469,14 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, uint32_t flags) { struct dfs_ManagerInitialize r; NTSTATUS status; /* In parameters */ + r.in.servername = servername; + r.in.flags = flags; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r); @@ -466,12 +500,16 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, const char *store) { struct dfs_AddStdRootForced r; NTSTATUS status; /* In parameters */ + r.in.servername = servername; + r.in.rootshare = rootshare; + r.in.comment = comment; + r.in.store = store; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r); @@ -553,12 +591,14 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare) { struct dfs_FlushFtTable r; NTSTATUS status; /* In parameters */ + r.in.servername = servername; + r.in.rootshare = rootshare; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r); @@ -640,13 +680,13 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total) +NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total) { struct dfs_EnumEx r; NTSTATUS status; /* In parameters */ - r.in.name = name; + r.in.dfs_name = dfs_name; r.in.level = level; r.in.bufsize = bufsize; r.in.info = info; -- cgit From 8da26d3f96ac66e3f0be8aaec209867d3f285e49 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 19 Aug 2007 22:10:11 +0000 Subject: r24561: merge from SAMBA_4_0: rename some DCERPC_ prefixes into NDR_ metze (This used to be commit 8f07b8ab658ae3d63487ca5fb20065318cdd9d0e) --- source3/librpc/gen_ndr/cli_dfs.c | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index 6484e132e3..2d7d2017ae 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -16,7 +16,7 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion); if (!NT_STATUS_IS_OK(status)) { return status; @@ -51,7 +51,7 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Add, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add); if (!NT_STATUS_IS_OK(status)) { return status; @@ -83,7 +83,7 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Remove, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove); if (!NT_STATUS_IS_OK(status)) { return status; @@ -117,7 +117,7 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo); if (!NT_STATUS_IS_OK(status)) { return status; @@ -150,7 +150,7 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo); if (!NT_STATUS_IS_OK(status)) { return status; @@ -184,7 +184,7 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Enum, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum); if (!NT_STATUS_IS_OK(status)) { return status; @@ -219,7 +219,7 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Rename, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename); if (!NT_STATUS_IS_OK(status)) { return status; @@ -248,7 +248,7 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Move, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move); if (!NT_STATUS_IS_OK(status)) { return status; @@ -277,7 +277,7 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo); if (!NT_STATUS_IS_OK(status)) { return status; @@ -306,7 +306,7 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo); if (!NT_STATUS_IS_OK(status)) { return status; @@ -344,7 +344,7 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot); if (!NT_STATUS_IS_OK(status)) { return status; @@ -382,7 +382,7 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot); if (!NT_STATUS_IS_OK(status)) { return status; @@ -418,7 +418,7 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot); if (!NT_STATUS_IS_OK(status)) { return status; @@ -450,7 +450,7 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot); if (!NT_STATUS_IS_OK(status)) { return status; @@ -481,7 +481,7 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize); if (!NT_STATUS_IS_OK(status)) { return status; @@ -514,7 +514,7 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced); if (!NT_STATUS_IS_OK(status)) { return status; @@ -543,7 +543,7 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress); if (!NT_STATUS_IS_OK(status)) { return status; @@ -572,7 +572,7 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress); if (!NT_STATUS_IS_OK(status)) { return status; @@ -603,7 +603,7 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable); if (!NT_STATUS_IS_OK(status)) { return status; @@ -632,7 +632,7 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Add2, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2); if (!NT_STATUS_IS_OK(status)) { return status; @@ -661,7 +661,7 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Remove2, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2); if (!NT_STATUS_IS_OK(status)) { return status; @@ -695,7 +695,7 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx); if (!NT_STATUS_IS_OK(status)) { return status; @@ -730,7 +730,7 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2); if (!NT_STATUS_IS_OK(status)) { return status; -- cgit From 18a48df488f5fcf9b55abf61b09778bdc15373d7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 21 Aug 2007 12:20:33 +0000 Subject: r24594: pass down the ndr_interface_table in the samba3 client bindings instead of the pull and push functions metze (This used to be commit 5e3d4df9bca069708d72f548dc5ddfc7708ac122) --- source3/librpc/gen_ndr/cli_dfs.c | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index 2d7d2017ae..9a4e4c8d90 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -16,7 +16,7 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETMANAGERVERSION, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -51,7 +51,7 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Add, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -83,7 +83,7 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Remove, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -117,7 +117,7 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -150,7 +150,7 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETINFO, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -184,7 +184,7 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Enum, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUM, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -219,7 +219,7 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Rename, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_RENAME, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -248,7 +248,7 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Move, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MOVE, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -277,7 +277,7 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERGETCONFIGINFO, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -306,7 +306,7 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERSENDSITEINFO, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -344,7 +344,7 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDFTROOT, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -382,7 +382,7 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVEFTROOT, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -418,7 +418,7 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOT, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -450,7 +450,7 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVESTDROOT, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -481,7 +481,7 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERINITIALIZE, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -514,7 +514,7 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOTFORCED, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -543,7 +543,7 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETDCADDRESS, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -572,7 +572,7 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETDCADDRESS, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -603,7 +603,7 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_FLUSHFTTABLE, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -632,7 +632,7 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Add2, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD2, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -661,7 +661,7 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Remove2, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE2, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -695,7 +695,7 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUMEX, &r); if (!NT_STATUS_IS_OK(status)) { return status; @@ -730,7 +730,7 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r); - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, NDR_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2); + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO2, &r); if (!NT_STATUS_IS_OK(status)) { return status; -- cgit From ba7a979e5374da422b0657161289e344dc23afa1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 17 Oct 2007 10:35:51 +0200 Subject: fix crash bug in pidl generated client code, this could have happend with [in,out,unique] pointers when the clients sends a valid pointer, but the server reponse with a NULL pointer (as samba-3.0.26a do for some calls). I've tested with midl to see how windows handles this situation and also the reverse case where the client sends NULL and the server reposnse with non-NULL. It appears that midl generated code just ignores this and only copies the result if both pointers are non-NULL. metze (This used to be commit cb98869fa189ce2a926a00fa9077a114f31a5d45) --- source3/librpc/gen_ndr/cli_dfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index 9a4e4c8d90..154ceff067 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -198,10 +198,10 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 } /* Return variables */ - if ( info ) { + if (info && r.out.info) { *info = *r.out.info; } - if ( total ) { + if (total && r.out.total) { *total = *r.out.total; } @@ -358,7 +358,7 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, } /* Return variables */ - if ( unknown2 ) { + if (unknown2 && r.out.unknown2) { *unknown2 = *r.out.unknown2; } @@ -396,7 +396,7 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct } /* Return variables */ - if ( unknown ) { + if (unknown && r.out.unknown) { *unknown = *r.out.unknown; } @@ -709,10 +709,10 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con } /* Return variables */ - if ( info ) { + if (info && r.out.info) { *info = *r.out.info; } - if ( total ) { + if (total && r.out.total) { *total = *r.out.total; } -- cgit From 59e9d5b449c8c5b91aa1bd621f41213feba775d0 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 3 Dec 2007 18:19:20 +0100 Subject: Regenerate pidl rpc client calls that are WERROR based. Guenther (This used to be commit 298b0ce951f02705c5660a4171f7cc208de7a1db) --- source3/librpc/gen_ndr/cli_dfs.c | 132 ++++++++++++++++++++++++++++++++------- 1 file changed, 110 insertions(+), 22 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index 154ceff067..fda04608d3 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -36,7 +36,7 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m return NT_STATUS_OK; } -NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32_t flags) +NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32_t flags, WERROR *werror) { struct dfs_Add r; NTSTATUS status; @@ -67,10 +67,14 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename) +NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, WERROR *werror) { struct dfs_Remove r; NTSTATUS status; @@ -99,10 +103,14 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info) +NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror) { struct dfs_SetInfo r; NTSTATUS status; @@ -133,10 +141,14 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info) +NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror) { struct dfs_GetInfo r; NTSTATUS status; @@ -167,10 +179,14 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co *info = *r.out.info; /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total) +NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror) { struct dfs_Enum r; NTSTATUS status; @@ -206,10 +222,14 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 } /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) { struct dfs_Rename r; NTSTATUS status; @@ -235,10 +255,14 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) { struct dfs_Move r; NTSTATUS status; @@ -264,10 +288,14 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) { struct dfs_ManagerGetConfigInfo r; NTSTATUS status; @@ -293,10 +321,14 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) { struct dfs_ManagerSendSiteInfo r; NTSTATUS status; @@ -322,10 +354,14 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, const char *comment, const char *dfs_config_dn, uint8_t unknown1, uint32_t flags, struct dfs_UnknownStruct **unknown2) +NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, const char *comment, const char *dfs_config_dn, uint8_t unknown1, uint32_t flags, struct dfs_UnknownStruct **unknown2, WERROR *werror) { struct dfs_AddFtRoot r; NTSTATUS status; @@ -363,10 +399,14 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, } /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, uint32_t flags, struct dfs_UnknownStruct **unknown) +NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, uint32_t flags, struct dfs_UnknownStruct **unknown, WERROR *werror) { struct dfs_RemoveFtRoot r; NTSTATUS status; @@ -401,10 +441,14 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct } /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, uint32_t flags) +NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, uint32_t flags, WERROR *werror) { struct dfs_AddStdRoot r; NTSTATUS status; @@ -434,10 +478,14 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, uint32_t flags) +NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, uint32_t flags, WERROR *werror) { struct dfs_RemoveStdRoot r; NTSTATUS status; @@ -466,10 +514,14 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, uint32_t flags) +NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, uint32_t flags, WERROR *werror) { struct dfs_ManagerInitialize r; NTSTATUS status; @@ -497,10 +549,14 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, const char *store) +NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, const char *store, WERROR *werror) { struct dfs_AddStdRootForced r; NTSTATUS status; @@ -530,10 +586,14 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) { struct dfs_GetDcAddress r; NTSTATUS status; @@ -559,10 +619,14 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) { struct dfs_SetDcAddress r; NTSTATUS status; @@ -588,10 +652,14 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare) +NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, WERROR *werror) { struct dfs_FlushFtTable r; NTSTATUS status; @@ -619,10 +687,14 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) { struct dfs_Add2 r; NTSTATUS status; @@ -648,10 +720,14 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) { struct dfs_Remove2 r; NTSTATUS status; @@ -677,10 +753,14 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total) +NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror) { struct dfs_EnumEx r; NTSTATUS status; @@ -717,10 +797,14 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con } /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) +NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) { struct dfs_SetInfo2 r; NTSTATUS status; @@ -746,6 +830,10 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) /* Return variables */ /* Return result */ + if (werror) { + *werror = r.out.result; + } + return werror_to_ntstatus(r.out.result); } -- cgit From 791fe3119ef1756fc476b17b8c590241bee5de2e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 8 Jan 2008 18:07:55 +0100 Subject: Pedantic cosmetics: rerun make idl. Guenther (This used to be commit d1fa8049b1c0a3cebbc2c64e245e8055c8d3e84b) --- source3/librpc/gen_ndr/cli_dfs.c | 412 +++++++++++++++++++-------------------- 1 file changed, 206 insertions(+), 206 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index fda04608d3..1cd085eaec 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -10,28 +10,28 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct dfs_GetManagerVersion r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETMANAGERVERSION, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *version = *r.out.version; - + /* Return result */ return NT_STATUS_OK; } @@ -40,37 +40,37 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const { struct dfs_Add r; NTSTATUS status; - + /* In parameters */ r.in.path = path; r.in.server = server; r.in.share = share; r.in.comment = comment; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Add, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Add, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -78,35 +78,35 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con { struct dfs_Remove r; NTSTATUS status; - + /* In parameters */ r.in.dfs_entry_path = dfs_entry_path; r.in.servername = servername; r.in.sharename = sharename; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Remove, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Remove, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -114,37 +114,37 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co { struct dfs_SetInfo r; NTSTATUS status; - + /* In parameters */ r.in.dfs_entry_path = dfs_entry_path; r.in.servername = servername; r.in.sharename = sharename; r.in.level = level; r.in.info = info; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -152,37 +152,37 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co { struct dfs_GetInfo r; NTSTATUS status; - + /* In parameters */ r.in.dfs_entry_path = dfs_entry_path; r.in.servername = servername; r.in.sharename = sharename; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -190,29 +190,29 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 { struct dfs_Enum r; NTSTATUS status; - + /* In parameters */ r.in.level = level; r.in.bufsize = bufsize; r.in.info = info; r.in.total = total; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Enum, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUM, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Enum, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; @@ -220,12 +220,12 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 if (total && r.out.total) { *total = *r.out.total; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -233,32 +233,32 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WER { struct dfs_Rename r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Rename, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_RENAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Rename, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -266,32 +266,32 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO { struct dfs_Move r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Move, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MOVE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Move, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -299,32 +299,32 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX { struct dfs_ManagerGetConfigInfo r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERGETCONFIGINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -332,32 +332,32 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX { struct dfs_ManagerSendSiteInfo r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERSENDSITEINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -365,7 +365,7 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct dfs_AddFtRoot r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.dns_servername = dns_servername; @@ -376,33 +376,33 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, r.in.unknown1 = unknown1; r.in.flags = flags; r.in.unknown2 = unknown2; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDFTROOT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (unknown2 && r.out.unknown2) { *unknown2 = *r.out.unknown2; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -410,7 +410,7 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct dfs_RemoveFtRoot r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.dns_servername = dns_servername; @@ -418,33 +418,33 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.rootshare = rootshare; r.in.flags = flags; r.in.unknown = unknown; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVEFTROOT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (unknown && r.out.unknown) { *unknown = *r.out.unknown; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -452,36 +452,36 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct dfs_AddStdRoot r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.rootshare = rootshare; r.in.comment = comment; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -489,35 +489,35 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct dfs_RemoveStdRoot r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.rootshare = rootshare; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVESTDROOT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -525,34 +525,34 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct dfs_ManagerInitialize r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERINITIALIZE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -560,36 +560,36 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct dfs_AddStdRootForced r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.rootshare = rootshare; r.in.comment = comment; r.in.store = store; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOTFORCED, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -597,32 +597,32 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct dfs_GetDcAddress r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETDCADDRESS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -630,32 +630,32 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct dfs_SetDcAddress r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETDCADDRESS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -663,34 +663,34 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct dfs_FlushFtTable r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.rootshare = rootshare; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_FLUSHFTTABLE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -698,32 +698,32 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO { struct dfs_Add2 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Add2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Add2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -731,32 +731,32 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WE { struct dfs_Remove2 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Remove2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -764,30 +764,30 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con { struct dfs_EnumEx r; NTSTATUS status; - + /* In parameters */ r.in.dfs_name = dfs_name; r.in.level = level; r.in.bufsize = bufsize; r.in.info = info; r.in.total = total; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUMEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; @@ -795,12 +795,12 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con if (total && r.out.total) { *total = *r.out.total; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -808,32 +808,32 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, W { struct dfs_SetInfo2 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } -- cgit From 28ac552381e1e9e115fa08cd6743ec764ca84124 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 9 Jan 2008 11:59:11 +0100 Subject: Re-run make idl. The pidl generated code now fully complies to coding standards. Guenther (This used to be commit 3d34c87612138e4457e824e1a6e3981d1c3fe238) --- source3/librpc/gen_ndr/cli_dfs.c | 448 +++++++++++++++++++++++++++++++-------- 1 file changed, 356 insertions(+), 92 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index 1cd085eaec..9078ce7bba 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -6,24 +6,33 @@ #include "includes.h" #include "librpc/gen_ndr/cli_dfs.h" -NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, enum dfs_ManagerVersion *version) +NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + enum dfs_ManagerVersion *version) { struct dfs_GetManagerVersion r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETMANAGERVERSION, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_GETMANAGERVERSION, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -36,7 +45,14 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m return NT_STATUS_OK; } -NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32_t flags, WERROR *werror) +NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *path, + const char *server, + const char *share, + const char *comment, + uint32_t flags, + WERROR *werror) { struct dfs_Add r; NTSTATUS status; @@ -48,17 +64,24 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const r.in.comment = comment; r.in.flags = flags; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_Add, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_ADD, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_Add, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -74,7 +97,12 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, WERROR *werror) +NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *dfs_entry_path, + const char *servername, + const char *sharename, + WERROR *werror) { struct dfs_Remove r; NTSTATUS status; @@ -84,17 +112,24 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con r.in.servername = servername; r.in.sharename = sharename; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_Remove, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_REMOVE, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_Remove, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -110,7 +145,14 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror) +NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *dfs_entry_path, + const char *servername, + const char *sharename, + uint32_t level, + union dfs_Info *info, + WERROR *werror) { struct dfs_SetInfo r; NTSTATUS status; @@ -122,17 +164,24 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co r.in.level = level; r.in.info = info; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_SETINFO, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -148,7 +197,14 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_entry_path, const char *servername, const char *sharename, uint32_t level, union dfs_Info *info, WERROR *werror) +NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *dfs_entry_path, + const char *servername, + const char *sharename, + uint32_t level, + union dfs_Info *info, + WERROR *werror) { struct dfs_GetInfo r; NTSTATUS status; @@ -159,17 +215,24 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co r.in.sharename = sharename; r.in.level = level; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETINFO, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_GETINFO, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -186,7 +249,13 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror) +NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + uint32_t level, + uint32_t bufsize, + struct dfs_EnumStruct *info, + uint32_t *total, + WERROR *werror) { struct dfs_Enum r; NTSTATUS status; @@ -197,17 +266,24 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 r.in.info = info; r.in.total = total; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_Enum, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUM, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_ENUM, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_Enum, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -229,24 +305,33 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) +NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + WERROR *werror) { struct dfs_Rename r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_Rename, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_RENAME, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_RENAME, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_Rename, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -262,24 +347,33 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WER return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) +NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + WERROR *werror) { struct dfs_Move r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_Move, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MOVE, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_MOVE, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_Move, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -295,24 +389,33 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) +NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + WERROR *werror) { struct dfs_ManagerGetConfigInfo r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERGETCONFIGINFO, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_MANAGERGETCONFIGINFO, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -328,24 +431,33 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) +NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + WERROR *werror) { struct dfs_ManagerSendSiteInfo r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERSENDSITEINFO, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_MANAGERSENDSITEINFO, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -361,7 +473,18 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, const char *comment, const char *dfs_config_dn, uint8_t unknown1, uint32_t flags, struct dfs_UnknownStruct **unknown2, WERROR *werror) +NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *servername, + const char *dns_servername, + const char *dfsname, + const char *rootshare, + const char *comment, + const char *dfs_config_dn, + uint8_t unknown1, + uint32_t flags, + struct dfs_UnknownStruct **unknown2, + WERROR *werror) { struct dfs_AddFtRoot r; NTSTATUS status; @@ -377,17 +500,24 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, r.in.flags = flags; r.in.unknown2 = unknown2; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDFTROOT, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_ADDFTROOT, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -406,7 +536,15 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *dns_servername, const char *dfsname, const char *rootshare, uint32_t flags, struct dfs_UnknownStruct **unknown, WERROR *werror) +NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *servername, + const char *dns_servername, + const char *dfsname, + const char *rootshare, + uint32_t flags, + struct dfs_UnknownStruct **unknown, + WERROR *werror) { struct dfs_RemoveFtRoot r; NTSTATUS status; @@ -419,17 +557,24 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.flags = flags; r.in.unknown = unknown; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVEFTROOT, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_REMOVEFTROOT, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -448,7 +593,13 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, uint32_t flags, WERROR *werror) +NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *servername, + const char *rootshare, + const char *comment, + uint32_t flags, + WERROR *werror) { struct dfs_AddStdRoot r; NTSTATUS status; @@ -459,17 +610,24 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, r.in.comment = comment; r.in.flags = flags; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOT, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_ADDSTDROOT, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -485,7 +643,12 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, uint32_t flags, WERROR *werror) +NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *servername, + const char *rootshare, + uint32_t flags, + WERROR *werror) { struct dfs_RemoveStdRoot r; NTSTATUS status; @@ -495,17 +658,24 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c r.in.rootshare = rootshare; r.in.flags = flags; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVESTDROOT, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_REMOVESTDROOT, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -521,7 +691,11 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, uint32_t flags, WERROR *werror) +NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *servername, + uint32_t flags, + WERROR *werror) { struct dfs_ManagerInitialize r; NTSTATUS status; @@ -530,17 +704,24 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m r.in.servername = servername; r.in.flags = flags; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERINITIALIZE, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_MANAGERINITIALIZE, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -556,7 +737,13 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, const char *comment, const char *store, WERROR *werror) +NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *servername, + const char *rootshare, + const char *comment, + const char *store, + WERROR *werror) { struct dfs_AddStdRootForced r; NTSTATUS status; @@ -567,17 +754,24 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me r.in.comment = comment; r.in.store = store; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOTFORCED, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_ADDSTDROOTFORCED, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -593,24 +787,33 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) +NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + WERROR *werror) { struct dfs_GetDcAddress r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETDCADDRESS, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_GETDCADDRESS, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -626,24 +829,33 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) +NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + WERROR *werror) { struct dfs_SetDcAddress r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETDCADDRESS, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_SETDCADDRESS, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -659,7 +871,11 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *servername, const char *rootshare, WERROR *werror) +NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *servername, + const char *rootshare, + WERROR *werror) { struct dfs_FlushFtTable r; NTSTATUS status; @@ -668,17 +884,24 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.servername = servername; r.in.rootshare = rootshare; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_FLUSHFTTABLE, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_FLUSHFTTABLE, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -694,24 +917,33 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) +NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + WERROR *werror) { struct dfs_Add2 r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_Add2, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD2, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_ADD2, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_Add2, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -727,24 +959,33 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) +NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + WERROR *werror) { struct dfs_Remove2 r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_Remove2, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE2, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_REMOVE2, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -760,7 +1001,14 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WE return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *dfs_name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total, WERROR *werror) +NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *dfs_name, + uint32_t level, + uint32_t bufsize, + struct dfs_EnumStruct *info, + uint32_t *total, + WERROR *werror) { struct dfs_EnumEx r; NTSTATUS status; @@ -772,17 +1020,24 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con r.in.info = info; r.in.total = total; - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUMEX, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_ENUMEX, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; @@ -804,24 +1059,33 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con return werror_to_ntstatus(r.out.result); } -NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERROR *werror) +NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + WERROR *werror) { struct dfs_SetInfo2 r; NTSTATUS status; /* In parameters */ - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r); + } - status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO2, &r); + status = cli_do_rpc_ndr(cli, + mem_ctx, + PI_NETDFS, + &ndr_table_netdfs, + NDR_DFS_SETINFO2, + &r); if (!NT_STATUS_IS_OK(status)) { return status; } - if (DEBUGLEVEL >= 10) + if (DEBUGLEVEL >= 10) { NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r); + } if (NT_STATUS_IS_ERR(status)) { return status; -- cgit From 5e86ac9e6d2eb7ff0f6f8461dcfc230e2d87c42c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 17 Jan 2008 13:00:12 +0100 Subject: idl: Update DFS IDL from Samba 4. (This used to be commit a6677b2e186212f723b24775293682ce5b94952e) --- source3/librpc/gen_ndr/cli_dfs.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index 9078ce7bba..fc00128f3f 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -789,12 +789,20 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, + const char *servername, + const char **server_fullname, + uint8_t *is_root, + uint32_t *ttl, WERROR *werror) { struct dfs_GetDcAddress r; NTSTATUS status; /* In parameters */ + r.in.servername = servername; + r.in.server_fullname = server_fullname; + r.in.is_root = is_root; + r.in.ttl = ttl; if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r); @@ -820,6 +828,9 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, } /* Return variables */ + *server_fullname = *r.out.server_fullname; + *is_root = *r.out.is_root; + *ttl = *r.out.ttl; /* Return result */ if (werror) { @@ -831,12 +842,20 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, + const char *servername, + const char *server_fullname, + uint32_t flags, + uint32_t ttl, WERROR *werror) { struct dfs_SetDcAddress r; NTSTATUS status; /* In parameters */ + r.in.servername = servername; + r.in.server_fullname = server_fullname; + r.in.flags = flags; + r.in.ttl = ttl; if (DEBUGLEVEL >= 10) { NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r); -- cgit From a23b01541948fb99cea922d31f69d2099f2e2359 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 25 Mar 2008 17:52:33 +0100 Subject: Re-run make idl (after pidl change for adding header info to cli_ functions). Guenther (This used to be commit 492c26a9367d93802d3b6a9271dde16c49fffe69) --- source3/librpc/gen_ndr/cli_dfs.c | 132 +++++++++++++++++++-------------------- 1 file changed, 66 insertions(+), 66 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index fc00128f3f..0e33284816 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -8,7 +8,7 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - enum dfs_ManagerVersion *version) + enum dfs_ManagerVersion *version /* [out] [ref] */) { struct dfs_GetManagerVersion r; NTSTATUS status; @@ -47,11 +47,11 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *path, - const char *server, - const char *share, - const char *comment, - uint32_t flags, + const char *path /* [in] [ref,charset(UTF16)] */, + const char *server /* [in] [ref,charset(UTF16)] */, + const char *share /* [in] [unique,charset(UTF16)] */, + const char *comment /* [in] [unique,charset(UTF16)] */, + uint32_t flags /* [in] */, WERROR *werror) { struct dfs_Add r; @@ -99,9 +99,9 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *dfs_entry_path, - const char *servername, - const char *sharename, + const char *dfs_entry_path /* [in] [ref,charset(UTF16)] */, + const char *servername /* [in] [unique,charset(UTF16)] */, + const char *sharename /* [in] [unique,charset(UTF16)] */, WERROR *werror) { struct dfs_Remove r; @@ -147,11 +147,11 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *dfs_entry_path, - const char *servername, - const char *sharename, - uint32_t level, - union dfs_Info *info, + const char *dfs_entry_path /* [in] [charset(UTF16)] */, + const char *servername /* [in] [unique,charset(UTF16)] */, + const char *sharename /* [in] [unique,charset(UTF16)] */, + uint32_t level /* [in] */, + union dfs_Info *info /* [in] [ref,switch_is(level)] */, WERROR *werror) { struct dfs_SetInfo r; @@ -199,11 +199,11 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *dfs_entry_path, - const char *servername, - const char *sharename, - uint32_t level, - union dfs_Info *info, + const char *dfs_entry_path /* [in] [charset(UTF16)] */, + const char *servername /* [in] [unique,charset(UTF16)] */, + const char *sharename /* [in] [unique,charset(UTF16)] */, + uint32_t level /* [in] */, + union dfs_Info *info /* [out] [ref,switch_is(level)] */, WERROR *werror) { struct dfs_GetInfo r; @@ -251,10 +251,10 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - uint32_t level, - uint32_t bufsize, - struct dfs_EnumStruct *info, - uint32_t *total, + uint32_t level /* [in] */, + uint32_t bufsize /* [in] */, + struct dfs_EnumStruct *info /* [in,out] [unique] */, + uint32_t *total /* [in,out] [unique] */, WERROR *werror) { struct dfs_Enum r; @@ -475,15 +475,15 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *servername, - const char *dns_servername, - const char *dfsname, - const char *rootshare, - const char *comment, - const char *dfs_config_dn, - uint8_t unknown1, - uint32_t flags, - struct dfs_UnknownStruct **unknown2, + const char *servername /* [in] [charset(UTF16)] */, + const char *dns_servername /* [in] [charset(UTF16)] */, + const char *dfsname /* [in] [charset(UTF16)] */, + const char *rootshare /* [in] [charset(UTF16)] */, + const char *comment /* [in] [charset(UTF16)] */, + const char *dfs_config_dn /* [in] [charset(UTF16)] */, + uint8_t unknown1 /* [in] */, + uint32_t flags /* [in] */, + struct dfs_UnknownStruct **unknown2 /* [in,out] [unique] */, WERROR *werror) { struct dfs_AddFtRoot r; @@ -538,12 +538,12 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *servername, - const char *dns_servername, - const char *dfsname, - const char *rootshare, - uint32_t flags, - struct dfs_UnknownStruct **unknown, + const char *servername /* [in] [charset(UTF16)] */, + const char *dns_servername /* [in] [charset(UTF16)] */, + const char *dfsname /* [in] [charset(UTF16)] */, + const char *rootshare /* [in] [charset(UTF16)] */, + uint32_t flags /* [in] */, + struct dfs_UnknownStruct **unknown /* [in,out] [unique] */, WERROR *werror) { struct dfs_RemoveFtRoot r; @@ -595,10 +595,10 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *servername, - const char *rootshare, - const char *comment, - uint32_t flags, + const char *servername /* [in] [charset(UTF16)] */, + const char *rootshare /* [in] [charset(UTF16)] */, + const char *comment /* [in] [charset(UTF16)] */, + uint32_t flags /* [in] */, WERROR *werror) { struct dfs_AddStdRoot r; @@ -645,9 +645,9 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *servername, - const char *rootshare, - uint32_t flags, + const char *servername /* [in] [charset(UTF16)] */, + const char *rootshare /* [in] [charset(UTF16)] */, + uint32_t flags /* [in] */, WERROR *werror) { struct dfs_RemoveStdRoot r; @@ -693,8 +693,8 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *servername, - uint32_t flags, + const char *servername /* [in] [ref,charset(UTF16)] */, + uint32_t flags /* [in] */, WERROR *werror) { struct dfs_ManagerInitialize r; @@ -739,10 +739,10 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *servername, - const char *rootshare, - const char *comment, - const char *store, + const char *servername /* [in] [charset(UTF16)] */, + const char *rootshare /* [in] [charset(UTF16)] */, + const char *comment /* [in] [charset(UTF16)] */, + const char *store /* [in] [charset(UTF16)] */, WERROR *werror) { struct dfs_AddStdRootForced r; @@ -789,10 +789,10 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *servername, - const char **server_fullname, - uint8_t *is_root, - uint32_t *ttl, + const char *servername /* [in] [charset(UTF16)] */, + const char **server_fullname /* [in,out] [ref,charset(UTF16)] */, + uint8_t *is_root /* [in,out] [ref] */, + uint32_t *ttl /* [in,out] [ref] */, WERROR *werror) { struct dfs_GetDcAddress r; @@ -842,10 +842,10 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *servername, - const char *server_fullname, - uint32_t flags, - uint32_t ttl, + const char *servername /* [in] [charset(UTF16)] */, + const char *server_fullname /* [in] [charset(UTF16)] */, + uint32_t flags /* [in] */, + uint32_t ttl /* [in] */, WERROR *werror) { struct dfs_SetDcAddress r; @@ -892,8 +892,8 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *servername, - const char *rootshare, + const char *servername /* [in] [charset(UTF16)] */, + const char *rootshare /* [in] [charset(UTF16)] */, WERROR *werror) { struct dfs_FlushFtTable r; @@ -1022,11 +1022,11 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - const char *dfs_name, - uint32_t level, - uint32_t bufsize, - struct dfs_EnumStruct *info, - uint32_t *total, + const char *dfs_name /* [in] [charset(UTF16)] */, + uint32_t level /* [in] */, + uint32_t bufsize /* [in] */, + struct dfs_EnumStruct *info /* [in,out] [unique] */, + uint32_t *total /* [in,out] [unique] */, WERROR *werror) { struct dfs_EnumEx r; -- cgit From da6e4248eedfcf420797f42f589fff4875161303 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 21 Jul 2008 13:04:41 +0200 Subject: Make idl: cli_do_rpc_ndr does not use pipe_idx anymore (This used to be commit ffd2ff5325ef24f08dcb63e4561f5f62bffef6d3) --- source3/librpc/gen_ndr/cli_dfs.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'source3/librpc/gen_ndr/cli_dfs.c') diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index 0e33284816..81ec14694a 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -21,7 +21,6 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETMANAGERVERSION, &r); @@ -70,7 +69,6 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD, &r); @@ -118,7 +116,6 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE, &r); @@ -170,7 +167,6 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO, &r); @@ -221,7 +217,6 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETINFO, &r); @@ -272,7 +267,6 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUM, &r); @@ -320,7 +314,6 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_RENAME, &r); @@ -362,7 +355,6 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MOVE, &r); @@ -404,7 +396,6 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERGETCONFIGINFO, &r); @@ -446,7 +437,6 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERSENDSITEINFO, &r); @@ -506,7 +496,6 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDFTROOT, &r); @@ -563,7 +552,6 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVEFTROOT, &r); @@ -616,7 +604,6 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOT, &r); @@ -664,7 +651,6 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVESTDROOT, &r); @@ -710,7 +696,6 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERINITIALIZE, &r); @@ -760,7 +745,6 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOTFORCED, &r); @@ -810,7 +794,6 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETDCADDRESS, &r); @@ -863,7 +846,6 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETDCADDRESS, &r); @@ -909,7 +891,6 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_FLUSHFTTABLE, &r); @@ -951,7 +932,6 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD2, &r); @@ -993,7 +973,6 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE2, &r); @@ -1045,7 +1024,6 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUMEX, &r); @@ -1093,7 +1071,6 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, status = cli_do_rpc_ndr(cli, mem_ctx, - PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO2, &r); -- cgit