2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_dfs.h"
9 NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t *exist_flag)
11 struct dfs_GetManagerVersion r;
17 NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r);
19 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);
21 if ( !NT_STATUS_IS_OK(status) ) {
26 NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
28 if (NT_STATUS_IS_ERR(status)) {
32 /* Return variables */
33 *exist_flag = *r.out.exist_flag;
39 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)
48 r.in.comment = comment;
52 NDR_PRINT_IN_DEBUG(dfs_Add, &r);
54 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);
56 if ( !NT_STATUS_IS_OK(status) ) {
61 NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
63 if (NT_STATUS_IS_ERR(status)) {
67 /* Return variables */
70 return werror_to_ntstatus(r.out.result);
73 NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share)
84 NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
86 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);
88 if ( !NT_STATUS_IS_OK(status) ) {
93 NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
95 if (NT_STATUS_IS_ERR(status)) {
99 /* Return variables */
102 return werror_to_ntstatus(r.out.result);
105 NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
107 struct dfs_SetInfo r;
112 if (DEBUGLEVEL >= 10)
113 NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
115 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);
117 if ( !NT_STATUS_IS_OK(status) ) {
121 if (DEBUGLEVEL >= 10)
122 NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
124 if (NT_STATUS_IS_ERR(status)) {
128 /* Return variables */
131 return werror_to_ntstatus(r.out.result);
134 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)
136 struct dfs_GetInfo r;
141 r.in.server = server;
145 if (DEBUGLEVEL >= 10)
146 NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
148 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);
150 if ( !NT_STATUS_IS_OK(status) ) {
154 if (DEBUGLEVEL >= 10)
155 NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
157 if (NT_STATUS_IS_ERR(status)) {
161 /* Return variables */
165 return werror_to_ntstatus(r.out.result);
168 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)
175 r.in.bufsize = bufsize;
177 r.in.unknown = unknown;
180 if (DEBUGLEVEL >= 10)
181 NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
183 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);
185 if ( !NT_STATUS_IS_OK(status) ) {
189 if (DEBUGLEVEL >= 10)
190 NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
192 if (NT_STATUS_IS_ERR(status)) {
196 /* Return variables */
201 *total = *r.out.total;
205 return werror_to_ntstatus(r.out.result);
208 NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
215 if (DEBUGLEVEL >= 10)
216 NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
218 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);
220 if ( !NT_STATUS_IS_OK(status) ) {
224 if (DEBUGLEVEL >= 10)
225 NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
227 if (NT_STATUS_IS_ERR(status)) {
231 /* Return variables */
234 return werror_to_ntstatus(r.out.result);
237 NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
244 if (DEBUGLEVEL >= 10)
245 NDR_PRINT_IN_DEBUG(dfs_Move, &r);
247 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);
249 if ( !NT_STATUS_IS_OK(status) ) {
253 if (DEBUGLEVEL >= 10)
254 NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
256 if (NT_STATUS_IS_ERR(status)) {
260 /* Return variables */
263 return werror_to_ntstatus(r.out.result);
266 NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
268 struct dfs_ManagerGetConfigInfo r;
273 if (DEBUGLEVEL >= 10)
274 NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
276 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);
278 if ( !NT_STATUS_IS_OK(status) ) {
282 if (DEBUGLEVEL >= 10)
283 NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
285 if (NT_STATUS_IS_ERR(status)) {
289 /* Return variables */
292 return werror_to_ntstatus(r.out.result);
295 NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
297 struct dfs_ManagerSendSiteInfo r;
302 if (DEBUGLEVEL >= 10)
303 NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
305 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);
307 if ( !NT_STATUS_IS_OK(status) ) {
311 if (DEBUGLEVEL >= 10)
312 NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
314 if (NT_STATUS_IS_ERR(status)) {
318 /* Return variables */
321 return werror_to_ntstatus(r.out.result);
324 NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
326 struct dfs_AddFtRoot r;
331 if (DEBUGLEVEL >= 10)
332 NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
334 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);
336 if ( !NT_STATUS_IS_OK(status) ) {
340 if (DEBUGLEVEL >= 10)
341 NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
343 if (NT_STATUS_IS_ERR(status)) {
347 /* Return variables */
350 return werror_to_ntstatus(r.out.result);
353 NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
355 struct dfs_RemoveFtRoot r;
360 if (DEBUGLEVEL >= 10)
361 NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
363 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);
365 if ( !NT_STATUS_IS_OK(status) ) {
369 if (DEBUGLEVEL >= 10)
370 NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
372 if (NT_STATUS_IS_ERR(status)) {
376 /* Return variables */
379 return werror_to_ntstatus(r.out.result);
382 NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
384 struct dfs_AddStdRoot r;
389 if (DEBUGLEVEL >= 10)
390 NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
392 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);
394 if ( !NT_STATUS_IS_OK(status) ) {
398 if (DEBUGLEVEL >= 10)
399 NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
401 if (NT_STATUS_IS_ERR(status)) {
405 /* Return variables */
408 return werror_to_ntstatus(r.out.result);
411 NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
413 struct dfs_RemoveStdRoot r;
418 if (DEBUGLEVEL >= 10)
419 NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
421 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);
423 if ( !NT_STATUS_IS_OK(status) ) {
427 if (DEBUGLEVEL >= 10)
428 NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
430 if (NT_STATUS_IS_ERR(status)) {
434 /* Return variables */
437 return werror_to_ntstatus(r.out.result);
440 NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
442 struct dfs_ManagerInitialize r;
447 if (DEBUGLEVEL >= 10)
448 NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
450 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);
452 if ( !NT_STATUS_IS_OK(status) ) {
456 if (DEBUGLEVEL >= 10)
457 NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
459 if (NT_STATUS_IS_ERR(status)) {
463 /* Return variables */
466 return werror_to_ntstatus(r.out.result);
469 NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
471 struct dfs_AddStdRootForced r;
476 if (DEBUGLEVEL >= 10)
477 NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
479 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);
481 if ( !NT_STATUS_IS_OK(status) ) {
485 if (DEBUGLEVEL >= 10)
486 NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
488 if (NT_STATUS_IS_ERR(status)) {
492 /* Return variables */
495 return werror_to_ntstatus(r.out.result);
498 NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
500 struct dfs_GetDcAddress r;
505 if (DEBUGLEVEL >= 10)
506 NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
508 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);
510 if ( !NT_STATUS_IS_OK(status) ) {
514 if (DEBUGLEVEL >= 10)
515 NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
517 if (NT_STATUS_IS_ERR(status)) {
521 /* Return variables */
524 return werror_to_ntstatus(r.out.result);
527 NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
529 struct dfs_SetDcAddress r;
534 if (DEBUGLEVEL >= 10)
535 NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
537 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);
539 if ( !NT_STATUS_IS_OK(status) ) {
543 if (DEBUGLEVEL >= 10)
544 NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
546 if (NT_STATUS_IS_ERR(status)) {
550 /* Return variables */
553 return werror_to_ntstatus(r.out.result);
556 NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
558 struct dfs_FlushFtTable r;
563 if (DEBUGLEVEL >= 10)
564 NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
566 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);
568 if ( !NT_STATUS_IS_OK(status) ) {
572 if (DEBUGLEVEL >= 10)
573 NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
575 if (NT_STATUS_IS_ERR(status)) {
579 /* Return variables */
582 return werror_to_ntstatus(r.out.result);
585 NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
592 if (DEBUGLEVEL >= 10)
593 NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
595 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);
597 if ( !NT_STATUS_IS_OK(status) ) {
601 if (DEBUGLEVEL >= 10)
602 NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
604 if (NT_STATUS_IS_ERR(status)) {
608 /* Return variables */
611 return werror_to_ntstatus(r.out.result);
614 NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
616 struct dfs_Remove2 r;
621 if (DEBUGLEVEL >= 10)
622 NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
624 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);
626 if ( !NT_STATUS_IS_OK(status) ) {
630 if (DEBUGLEVEL >= 10)
631 NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
633 if (NT_STATUS_IS_ERR(status)) {
637 /* Return variables */
640 return werror_to_ntstatus(r.out.result);
643 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)
651 r.in.bufsize = bufsize;
655 if (DEBUGLEVEL >= 10)
656 NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
658 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);
660 if ( !NT_STATUS_IS_OK(status) ) {
664 if (DEBUGLEVEL >= 10)
665 NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
667 if (NT_STATUS_IS_ERR(status)) {
671 /* Return variables */
676 *total = *r.out.total;
680 return werror_to_ntstatus(r.out.result);
683 NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
685 struct dfs_SetInfo2 r;
690 if (DEBUGLEVEL >= 10)
691 NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
693 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);
695 if ( !NT_STATUS_IS_OK(status) ) {
699 if (DEBUGLEVEL >= 10)
700 NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
702 if (NT_STATUS_IS_ERR(status)) {
706 /* Return variables */
709 return werror_to_ntstatus(r.out.result);