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);
22 NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
24 if (NT_STATUS_IS_ERR(status)) {
28 /* Return variables */
29 *exist_flag = *r.out.exist_flag;
35 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)
44 r.in.comment = comment;
48 NDR_PRINT_IN_DEBUG(dfs_Add, &r);
50 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);
53 NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
55 if (NT_STATUS_IS_ERR(status)) {
59 /* Return variables */
62 return werror_to_ntstatus(r.out.result);
65 NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share)
76 NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
78 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);
81 NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
83 if (NT_STATUS_IS_ERR(status)) {
87 /* Return variables */
90 return werror_to_ntstatus(r.out.result);
93 NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
100 if (DEBUGLEVEL >= 10)
101 NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
103 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);
105 if (DEBUGLEVEL >= 10)
106 NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
108 if (NT_STATUS_IS_ERR(status)) {
112 /* Return variables */
115 return werror_to_ntstatus(r.out.result);
118 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)
120 struct dfs_GetInfo r;
125 r.in.server = server;
129 if (DEBUGLEVEL >= 10)
130 NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
132 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);
134 if (DEBUGLEVEL >= 10)
135 NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
137 if (NT_STATUS_IS_ERR(status)) {
141 /* Return variables */
145 return werror_to_ntstatus(r.out.result);
148 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)
155 r.in.bufsize = bufsize;
157 r.in.unknown = unknown;
160 if (DEBUGLEVEL >= 10)
161 NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
163 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);
165 if (DEBUGLEVEL >= 10)
166 NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
168 if (NT_STATUS_IS_ERR(status)) {
172 /* Return variables */
174 *total = *r.out.total;
177 return werror_to_ntstatus(r.out.result);
180 NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
187 if (DEBUGLEVEL >= 10)
188 NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
190 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);
192 if (DEBUGLEVEL >= 10)
193 NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
195 if (NT_STATUS_IS_ERR(status)) {
199 /* Return variables */
202 return werror_to_ntstatus(r.out.result);
205 NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
212 if (DEBUGLEVEL >= 10)
213 NDR_PRINT_IN_DEBUG(dfs_Move, &r);
215 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);
217 if (DEBUGLEVEL >= 10)
218 NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
220 if (NT_STATUS_IS_ERR(status)) {
224 /* Return variables */
227 return werror_to_ntstatus(r.out.result);
230 NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
232 struct dfs_ManagerGetConfigInfo r;
237 if (DEBUGLEVEL >= 10)
238 NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
240 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);
242 if (DEBUGLEVEL >= 10)
243 NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
245 if (NT_STATUS_IS_ERR(status)) {
249 /* Return variables */
252 return werror_to_ntstatus(r.out.result);
255 NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
257 struct dfs_ManagerSendSiteInfo r;
262 if (DEBUGLEVEL >= 10)
263 NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
265 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);
267 if (DEBUGLEVEL >= 10)
268 NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
270 if (NT_STATUS_IS_ERR(status)) {
274 /* Return variables */
277 return werror_to_ntstatus(r.out.result);
280 NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
282 struct dfs_AddFtRoot r;
287 if (DEBUGLEVEL >= 10)
288 NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
290 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);
292 if (DEBUGLEVEL >= 10)
293 NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
295 if (NT_STATUS_IS_ERR(status)) {
299 /* Return variables */
302 return werror_to_ntstatus(r.out.result);
305 NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
307 struct dfs_RemoveFtRoot r;
312 if (DEBUGLEVEL >= 10)
313 NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
315 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);
317 if (DEBUGLEVEL >= 10)
318 NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
320 if (NT_STATUS_IS_ERR(status)) {
324 /* Return variables */
327 return werror_to_ntstatus(r.out.result);
330 NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
332 struct dfs_AddStdRoot r;
337 if (DEBUGLEVEL >= 10)
338 NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
340 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);
342 if (DEBUGLEVEL >= 10)
343 NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
345 if (NT_STATUS_IS_ERR(status)) {
349 /* Return variables */
352 return werror_to_ntstatus(r.out.result);
355 NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
357 struct dfs_RemoveStdRoot r;
362 if (DEBUGLEVEL >= 10)
363 NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
365 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);
367 if (DEBUGLEVEL >= 10)
368 NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
370 if (NT_STATUS_IS_ERR(status)) {
374 /* Return variables */
377 return werror_to_ntstatus(r.out.result);
380 NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
382 struct dfs_ManagerInitialize r;
387 if (DEBUGLEVEL >= 10)
388 NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
390 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);
392 if (DEBUGLEVEL >= 10)
393 NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
395 if (NT_STATUS_IS_ERR(status)) {
399 /* Return variables */
402 return werror_to_ntstatus(r.out.result);
405 NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
407 struct dfs_AddStdRootForced r;
412 if (DEBUGLEVEL >= 10)
413 NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
415 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);
417 if (DEBUGLEVEL >= 10)
418 NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
420 if (NT_STATUS_IS_ERR(status)) {
424 /* Return variables */
427 return werror_to_ntstatus(r.out.result);
430 NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
432 struct dfs_GetDcAddress r;
437 if (DEBUGLEVEL >= 10)
438 NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
440 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);
442 if (DEBUGLEVEL >= 10)
443 NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
445 if (NT_STATUS_IS_ERR(status)) {
449 /* Return variables */
452 return werror_to_ntstatus(r.out.result);
455 NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
457 struct dfs_SetDcAddress r;
462 if (DEBUGLEVEL >= 10)
463 NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
465 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);
467 if (DEBUGLEVEL >= 10)
468 NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
470 if (NT_STATUS_IS_ERR(status)) {
474 /* Return variables */
477 return werror_to_ntstatus(r.out.result);
480 NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
482 struct dfs_FlushFtTable r;
487 if (DEBUGLEVEL >= 10)
488 NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
490 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);
492 if (DEBUGLEVEL >= 10)
493 NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
495 if (NT_STATUS_IS_ERR(status)) {
499 /* Return variables */
502 return werror_to_ntstatus(r.out.result);
505 NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
512 if (DEBUGLEVEL >= 10)
513 NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
515 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);
517 if (DEBUGLEVEL >= 10)
518 NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
520 if (NT_STATUS_IS_ERR(status)) {
524 /* Return variables */
527 return werror_to_ntstatus(r.out.result);
530 NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
532 struct dfs_Remove2 r;
537 if (DEBUGLEVEL >= 10)
538 NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
540 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);
542 if (DEBUGLEVEL >= 10)
543 NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
545 if (NT_STATUS_IS_ERR(status)) {
549 /* Return variables */
552 return werror_to_ntstatus(r.out.result);
555 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)
563 r.in.bufsize = bufsize;
567 if (DEBUGLEVEL >= 10)
568 NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
570 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);
572 if (DEBUGLEVEL >= 10)
573 NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
575 if (NT_STATUS_IS_ERR(status)) {
579 /* Return variables */
581 *total = *r.out.total;
584 return werror_to_ntstatus(r.out.result);
587 NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
589 struct dfs_SetInfo2 r;
594 if (DEBUGLEVEL >= 10)
595 NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
597 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);
599 if (DEBUGLEVEL >= 10)
600 NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
602 if (NT_STATUS_IS_ERR(status)) {
606 /* Return variables */
609 return werror_to_ntstatus(r.out.result);