s4 winbind: Fix typos in debug output
[Samba/gbeck.git] / librpc / gen_ndr / cli_dfs.c
blobd2c9b4f03f904518c9a94bf16da8a2c7469bb2b5
1 /*
2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
4 */
6 #include "includes.h"
7 #include "../librpc/gen_ndr/cli_dfs.h"
9 NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli,
10 TALLOC_CTX *mem_ctx,
11 enum dfs_ManagerVersion *version /* [out] [ref] */)
13 struct dfs_GetManagerVersion r;
14 NTSTATUS status;
16 /* In parameters */
18 if (DEBUGLEVEL >= 10) {
19 NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r);
22 status = cli_do_rpc_ndr(cli,
23 mem_ctx,
24 &ndr_table_netdfs,
25 NDR_DFS_GETMANAGERVERSION,
26 &r);
28 if (!NT_STATUS_IS_OK(status)) {
29 return status;
32 if (DEBUGLEVEL >= 10) {
33 NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
36 if (NT_STATUS_IS_ERR(status)) {
37 return status;
40 /* Return variables */
41 *version = *r.out.version;
43 /* Return result */
44 return NT_STATUS_OK;
47 NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli,
48 TALLOC_CTX *mem_ctx,
49 const char *path /* [in] [ref,charset(UTF16)] */,
50 const char *server /* [in] [ref,charset(UTF16)] */,
51 const char *share /* [in] [unique,charset(UTF16)] */,
52 const char *comment /* [in] [unique,charset(UTF16)] */,
53 uint32_t flags /* [in] */,
54 WERROR *werror)
56 struct dfs_Add r;
57 NTSTATUS status;
59 /* In parameters */
60 r.in.path = path;
61 r.in.server = server;
62 r.in.share = share;
63 r.in.comment = comment;
64 r.in.flags = flags;
66 if (DEBUGLEVEL >= 10) {
67 NDR_PRINT_IN_DEBUG(dfs_Add, &r);
70 status = cli_do_rpc_ndr(cli,
71 mem_ctx,
72 &ndr_table_netdfs,
73 NDR_DFS_ADD,
74 &r);
76 if (!NT_STATUS_IS_OK(status)) {
77 return status;
80 if (DEBUGLEVEL >= 10) {
81 NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
84 if (NT_STATUS_IS_ERR(status)) {
85 return status;
88 /* Return variables */
90 /* Return result */
91 if (werror) {
92 *werror = r.out.result;
95 return werror_to_ntstatus(r.out.result);
98 NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli,
99 TALLOC_CTX *mem_ctx,
100 const char *dfs_entry_path /* [in] [ref,charset(UTF16)] */,
101 const char *servername /* [in] [unique,charset(UTF16)] */,
102 const char *sharename /* [in] [unique,charset(UTF16)] */,
103 WERROR *werror)
105 struct dfs_Remove r;
106 NTSTATUS status;
108 /* In parameters */
109 r.in.dfs_entry_path = dfs_entry_path;
110 r.in.servername = servername;
111 r.in.sharename = sharename;
113 if (DEBUGLEVEL >= 10) {
114 NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
117 status = cli_do_rpc_ndr(cli,
118 mem_ctx,
119 &ndr_table_netdfs,
120 NDR_DFS_REMOVE,
121 &r);
123 if (!NT_STATUS_IS_OK(status)) {
124 return status;
127 if (DEBUGLEVEL >= 10) {
128 NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
131 if (NT_STATUS_IS_ERR(status)) {
132 return status;
135 /* Return variables */
137 /* Return result */
138 if (werror) {
139 *werror = r.out.result;
142 return werror_to_ntstatus(r.out.result);
145 NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli,
146 TALLOC_CTX *mem_ctx,
147 const char *dfs_entry_path /* [in] [charset(UTF16)] */,
148 const char *servername /* [in] [unique,charset(UTF16)] */,
149 const char *sharename /* [in] [unique,charset(UTF16)] */,
150 uint32_t level /* [in] */,
151 union dfs_Info *info /* [in] [ref,switch_is(level)] */,
152 WERROR *werror)
154 struct dfs_SetInfo r;
155 NTSTATUS status;
157 /* In parameters */
158 r.in.dfs_entry_path = dfs_entry_path;
159 r.in.servername = servername;
160 r.in.sharename = sharename;
161 r.in.level = level;
162 r.in.info = info;
164 if (DEBUGLEVEL >= 10) {
165 NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
168 status = cli_do_rpc_ndr(cli,
169 mem_ctx,
170 &ndr_table_netdfs,
171 NDR_DFS_SETINFO,
172 &r);
174 if (!NT_STATUS_IS_OK(status)) {
175 return status;
178 if (DEBUGLEVEL >= 10) {
179 NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
182 if (NT_STATUS_IS_ERR(status)) {
183 return status;
186 /* Return variables */
188 /* Return result */
189 if (werror) {
190 *werror = r.out.result;
193 return werror_to_ntstatus(r.out.result);
196 NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli,
197 TALLOC_CTX *mem_ctx,
198 const char *dfs_entry_path /* [in] [charset(UTF16)] */,
199 const char *servername /* [in] [unique,charset(UTF16)] */,
200 const char *sharename /* [in] [unique,charset(UTF16)] */,
201 uint32_t level /* [in] */,
202 union dfs_Info *info /* [out] [ref,switch_is(level)] */,
203 WERROR *werror)
205 struct dfs_GetInfo r;
206 NTSTATUS status;
208 /* In parameters */
209 r.in.dfs_entry_path = dfs_entry_path;
210 r.in.servername = servername;
211 r.in.sharename = sharename;
212 r.in.level = level;
214 if (DEBUGLEVEL >= 10) {
215 NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
218 status = cli_do_rpc_ndr(cli,
219 mem_ctx,
220 &ndr_table_netdfs,
221 NDR_DFS_GETINFO,
222 &r);
224 if (!NT_STATUS_IS_OK(status)) {
225 return status;
228 if (DEBUGLEVEL >= 10) {
229 NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
232 if (NT_STATUS_IS_ERR(status)) {
233 return status;
236 /* Return variables */
237 *info = *r.out.info;
239 /* Return result */
240 if (werror) {
241 *werror = r.out.result;
244 return werror_to_ntstatus(r.out.result);
247 NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli,
248 TALLOC_CTX *mem_ctx,
249 uint32_t level /* [in] */,
250 uint32_t bufsize /* [in] */,
251 struct dfs_EnumStruct *info /* [in,out] [unique] */,
252 uint32_t *total /* [in,out] [unique] */,
253 WERROR *werror)
255 struct dfs_Enum r;
256 NTSTATUS status;
258 /* In parameters */
259 r.in.level = level;
260 r.in.bufsize = bufsize;
261 r.in.info = info;
262 r.in.total = total;
264 if (DEBUGLEVEL >= 10) {
265 NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
268 status = cli_do_rpc_ndr(cli,
269 mem_ctx,
270 &ndr_table_netdfs,
271 NDR_DFS_ENUM,
272 &r);
274 if (!NT_STATUS_IS_OK(status)) {
275 return status;
278 if (DEBUGLEVEL >= 10) {
279 NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
282 if (NT_STATUS_IS_ERR(status)) {
283 return status;
286 /* Return variables */
287 if (info && r.out.info) {
288 *info = *r.out.info;
290 if (total && r.out.total) {
291 *total = *r.out.total;
294 /* Return result */
295 if (werror) {
296 *werror = r.out.result;
299 return werror_to_ntstatus(r.out.result);
302 NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli,
303 TALLOC_CTX *mem_ctx,
304 WERROR *werror)
306 struct dfs_Rename r;
307 NTSTATUS status;
309 /* In parameters */
311 if (DEBUGLEVEL >= 10) {
312 NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
315 status = cli_do_rpc_ndr(cli,
316 mem_ctx,
317 &ndr_table_netdfs,
318 NDR_DFS_RENAME,
319 &r);
321 if (!NT_STATUS_IS_OK(status)) {
322 return status;
325 if (DEBUGLEVEL >= 10) {
326 NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
329 if (NT_STATUS_IS_ERR(status)) {
330 return status;
333 /* Return variables */
335 /* Return result */
336 if (werror) {
337 *werror = r.out.result;
340 return werror_to_ntstatus(r.out.result);
343 NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli,
344 TALLOC_CTX *mem_ctx,
345 WERROR *werror)
347 struct dfs_Move r;
348 NTSTATUS status;
350 /* In parameters */
352 if (DEBUGLEVEL >= 10) {
353 NDR_PRINT_IN_DEBUG(dfs_Move, &r);
356 status = cli_do_rpc_ndr(cli,
357 mem_ctx,
358 &ndr_table_netdfs,
359 NDR_DFS_MOVE,
360 &r);
362 if (!NT_STATUS_IS_OK(status)) {
363 return status;
366 if (DEBUGLEVEL >= 10) {
367 NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
370 if (NT_STATUS_IS_ERR(status)) {
371 return status;
374 /* Return variables */
376 /* Return result */
377 if (werror) {
378 *werror = r.out.result;
381 return werror_to_ntstatus(r.out.result);
384 NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli,
385 TALLOC_CTX *mem_ctx,
386 WERROR *werror)
388 struct dfs_ManagerGetConfigInfo r;
389 NTSTATUS status;
391 /* In parameters */
393 if (DEBUGLEVEL >= 10) {
394 NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
397 status = cli_do_rpc_ndr(cli,
398 mem_ctx,
399 &ndr_table_netdfs,
400 NDR_DFS_MANAGERGETCONFIGINFO,
401 &r);
403 if (!NT_STATUS_IS_OK(status)) {
404 return status;
407 if (DEBUGLEVEL >= 10) {
408 NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
411 if (NT_STATUS_IS_ERR(status)) {
412 return status;
415 /* Return variables */
417 /* Return result */
418 if (werror) {
419 *werror = r.out.result;
422 return werror_to_ntstatus(r.out.result);
425 NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli,
426 TALLOC_CTX *mem_ctx,
427 WERROR *werror)
429 struct dfs_ManagerSendSiteInfo r;
430 NTSTATUS status;
432 /* In parameters */
434 if (DEBUGLEVEL >= 10) {
435 NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
438 status = cli_do_rpc_ndr(cli,
439 mem_ctx,
440 &ndr_table_netdfs,
441 NDR_DFS_MANAGERSENDSITEINFO,
442 &r);
444 if (!NT_STATUS_IS_OK(status)) {
445 return status;
448 if (DEBUGLEVEL >= 10) {
449 NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
452 if (NT_STATUS_IS_ERR(status)) {
453 return status;
456 /* Return variables */
458 /* Return result */
459 if (werror) {
460 *werror = r.out.result;
463 return werror_to_ntstatus(r.out.result);
466 NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli,
467 TALLOC_CTX *mem_ctx,
468 const char *servername /* [in] [charset(UTF16)] */,
469 const char *dns_servername /* [in] [charset(UTF16)] */,
470 const char *dfsname /* [in] [charset(UTF16)] */,
471 const char *rootshare /* [in] [charset(UTF16)] */,
472 const char *comment /* [in] [charset(UTF16)] */,
473 const char *dfs_config_dn /* [in] [charset(UTF16)] */,
474 uint8_t unknown1 /* [in] */,
475 uint32_t flags /* [in] */,
476 struct dfs_UnknownStruct **unknown2 /* [in,out] [unique] */,
477 WERROR *werror)
479 struct dfs_AddFtRoot r;
480 NTSTATUS status;
482 /* In parameters */
483 r.in.servername = servername;
484 r.in.dns_servername = dns_servername;
485 r.in.dfsname = dfsname;
486 r.in.rootshare = rootshare;
487 r.in.comment = comment;
488 r.in.dfs_config_dn = dfs_config_dn;
489 r.in.unknown1 = unknown1;
490 r.in.flags = flags;
491 r.in.unknown2 = unknown2;
493 if (DEBUGLEVEL >= 10) {
494 NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
497 status = cli_do_rpc_ndr(cli,
498 mem_ctx,
499 &ndr_table_netdfs,
500 NDR_DFS_ADDFTROOT,
501 &r);
503 if (!NT_STATUS_IS_OK(status)) {
504 return status;
507 if (DEBUGLEVEL >= 10) {
508 NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
511 if (NT_STATUS_IS_ERR(status)) {
512 return status;
515 /* Return variables */
516 if (unknown2 && r.out.unknown2) {
517 *unknown2 = *r.out.unknown2;
520 /* Return result */
521 if (werror) {
522 *werror = r.out.result;
525 return werror_to_ntstatus(r.out.result);
528 NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli,
529 TALLOC_CTX *mem_ctx,
530 const char *servername /* [in] [charset(UTF16)] */,
531 const char *dns_servername /* [in] [charset(UTF16)] */,
532 const char *dfsname /* [in] [charset(UTF16)] */,
533 const char *rootshare /* [in] [charset(UTF16)] */,
534 uint32_t flags /* [in] */,
535 struct dfs_UnknownStruct **unknown /* [in,out] [unique] */,
536 WERROR *werror)
538 struct dfs_RemoveFtRoot r;
539 NTSTATUS status;
541 /* In parameters */
542 r.in.servername = servername;
543 r.in.dns_servername = dns_servername;
544 r.in.dfsname = dfsname;
545 r.in.rootshare = rootshare;
546 r.in.flags = flags;
547 r.in.unknown = unknown;
549 if (DEBUGLEVEL >= 10) {
550 NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
553 status = cli_do_rpc_ndr(cli,
554 mem_ctx,
555 &ndr_table_netdfs,
556 NDR_DFS_REMOVEFTROOT,
557 &r);
559 if (!NT_STATUS_IS_OK(status)) {
560 return status;
563 if (DEBUGLEVEL >= 10) {
564 NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
567 if (NT_STATUS_IS_ERR(status)) {
568 return status;
571 /* Return variables */
572 if (unknown && r.out.unknown) {
573 *unknown = *r.out.unknown;
576 /* Return result */
577 if (werror) {
578 *werror = r.out.result;
581 return werror_to_ntstatus(r.out.result);
584 NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli,
585 TALLOC_CTX *mem_ctx,
586 const char *servername /* [in] [charset(UTF16)] */,
587 const char *rootshare /* [in] [charset(UTF16)] */,
588 const char *comment /* [in] [charset(UTF16)] */,
589 uint32_t flags /* [in] */,
590 WERROR *werror)
592 struct dfs_AddStdRoot r;
593 NTSTATUS status;
595 /* In parameters */
596 r.in.servername = servername;
597 r.in.rootshare = rootshare;
598 r.in.comment = comment;
599 r.in.flags = flags;
601 if (DEBUGLEVEL >= 10) {
602 NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
605 status = cli_do_rpc_ndr(cli,
606 mem_ctx,
607 &ndr_table_netdfs,
608 NDR_DFS_ADDSTDROOT,
609 &r);
611 if (!NT_STATUS_IS_OK(status)) {
612 return status;
615 if (DEBUGLEVEL >= 10) {
616 NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
619 if (NT_STATUS_IS_ERR(status)) {
620 return status;
623 /* Return variables */
625 /* Return result */
626 if (werror) {
627 *werror = r.out.result;
630 return werror_to_ntstatus(r.out.result);
633 NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli,
634 TALLOC_CTX *mem_ctx,
635 const char *servername /* [in] [charset(UTF16)] */,
636 const char *rootshare /* [in] [charset(UTF16)] */,
637 uint32_t flags /* [in] */,
638 WERROR *werror)
640 struct dfs_RemoveStdRoot r;
641 NTSTATUS status;
643 /* In parameters */
644 r.in.servername = servername;
645 r.in.rootshare = rootshare;
646 r.in.flags = flags;
648 if (DEBUGLEVEL >= 10) {
649 NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
652 status = cli_do_rpc_ndr(cli,
653 mem_ctx,
654 &ndr_table_netdfs,
655 NDR_DFS_REMOVESTDROOT,
656 &r);
658 if (!NT_STATUS_IS_OK(status)) {
659 return status;
662 if (DEBUGLEVEL >= 10) {
663 NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
666 if (NT_STATUS_IS_ERR(status)) {
667 return status;
670 /* Return variables */
672 /* Return result */
673 if (werror) {
674 *werror = r.out.result;
677 return werror_to_ntstatus(r.out.result);
680 NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli,
681 TALLOC_CTX *mem_ctx,
682 const char *servername /* [in] [ref,charset(UTF16)] */,
683 uint32_t flags /* [in] */,
684 WERROR *werror)
686 struct dfs_ManagerInitialize r;
687 NTSTATUS status;
689 /* In parameters */
690 r.in.servername = servername;
691 r.in.flags = flags;
693 if (DEBUGLEVEL >= 10) {
694 NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
697 status = cli_do_rpc_ndr(cli,
698 mem_ctx,
699 &ndr_table_netdfs,
700 NDR_DFS_MANAGERINITIALIZE,
701 &r);
703 if (!NT_STATUS_IS_OK(status)) {
704 return status;
707 if (DEBUGLEVEL >= 10) {
708 NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
711 if (NT_STATUS_IS_ERR(status)) {
712 return status;
715 /* Return variables */
717 /* Return result */
718 if (werror) {
719 *werror = r.out.result;
722 return werror_to_ntstatus(r.out.result);
725 NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli,
726 TALLOC_CTX *mem_ctx,
727 const char *servername /* [in] [charset(UTF16)] */,
728 const char *rootshare /* [in] [charset(UTF16)] */,
729 const char *comment /* [in] [charset(UTF16)] */,
730 const char *store /* [in] [charset(UTF16)] */,
731 WERROR *werror)
733 struct dfs_AddStdRootForced r;
734 NTSTATUS status;
736 /* In parameters */
737 r.in.servername = servername;
738 r.in.rootshare = rootshare;
739 r.in.comment = comment;
740 r.in.store = store;
742 if (DEBUGLEVEL >= 10) {
743 NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
746 status = cli_do_rpc_ndr(cli,
747 mem_ctx,
748 &ndr_table_netdfs,
749 NDR_DFS_ADDSTDROOTFORCED,
750 &r);
752 if (!NT_STATUS_IS_OK(status)) {
753 return status;
756 if (DEBUGLEVEL >= 10) {
757 NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
760 if (NT_STATUS_IS_ERR(status)) {
761 return status;
764 /* Return variables */
766 /* Return result */
767 if (werror) {
768 *werror = r.out.result;
771 return werror_to_ntstatus(r.out.result);
774 NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli,
775 TALLOC_CTX *mem_ctx,
776 const char *servername /* [in] [charset(UTF16)] */,
777 const char **server_fullname /* [in,out] [ref,charset(UTF16)] */,
778 uint8_t *is_root /* [in,out] [ref] */,
779 uint32_t *ttl /* [in,out] [ref] */,
780 WERROR *werror)
782 struct dfs_GetDcAddress r;
783 NTSTATUS status;
785 /* In parameters */
786 r.in.servername = servername;
787 r.in.server_fullname = server_fullname;
788 r.in.is_root = is_root;
789 r.in.ttl = ttl;
791 if (DEBUGLEVEL >= 10) {
792 NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
795 status = cli_do_rpc_ndr(cli,
796 mem_ctx,
797 &ndr_table_netdfs,
798 NDR_DFS_GETDCADDRESS,
799 &r);
801 if (!NT_STATUS_IS_OK(status)) {
802 return status;
805 if (DEBUGLEVEL >= 10) {
806 NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
809 if (NT_STATUS_IS_ERR(status)) {
810 return status;
813 /* Return variables */
814 *server_fullname = *r.out.server_fullname;
815 *is_root = *r.out.is_root;
816 *ttl = *r.out.ttl;
818 /* Return result */
819 if (werror) {
820 *werror = r.out.result;
823 return werror_to_ntstatus(r.out.result);
826 NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli,
827 TALLOC_CTX *mem_ctx,
828 const char *servername /* [in] [charset(UTF16)] */,
829 const char *server_fullname /* [in] [charset(UTF16)] */,
830 uint32_t flags /* [in] */,
831 uint32_t ttl /* [in] */,
832 WERROR *werror)
834 struct dfs_SetDcAddress r;
835 NTSTATUS status;
837 /* In parameters */
838 r.in.servername = servername;
839 r.in.server_fullname = server_fullname;
840 r.in.flags = flags;
841 r.in.ttl = ttl;
843 if (DEBUGLEVEL >= 10) {
844 NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
847 status = cli_do_rpc_ndr(cli,
848 mem_ctx,
849 &ndr_table_netdfs,
850 NDR_DFS_SETDCADDRESS,
851 &r);
853 if (!NT_STATUS_IS_OK(status)) {
854 return status;
857 if (DEBUGLEVEL >= 10) {
858 NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
861 if (NT_STATUS_IS_ERR(status)) {
862 return status;
865 /* Return variables */
867 /* Return result */
868 if (werror) {
869 *werror = r.out.result;
872 return werror_to_ntstatus(r.out.result);
875 NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli,
876 TALLOC_CTX *mem_ctx,
877 const char *servername /* [in] [charset(UTF16)] */,
878 const char *rootshare /* [in] [charset(UTF16)] */,
879 WERROR *werror)
881 struct dfs_FlushFtTable r;
882 NTSTATUS status;
884 /* In parameters */
885 r.in.servername = servername;
886 r.in.rootshare = rootshare;
888 if (DEBUGLEVEL >= 10) {
889 NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
892 status = cli_do_rpc_ndr(cli,
893 mem_ctx,
894 &ndr_table_netdfs,
895 NDR_DFS_FLUSHFTTABLE,
896 &r);
898 if (!NT_STATUS_IS_OK(status)) {
899 return status;
902 if (DEBUGLEVEL >= 10) {
903 NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
906 if (NT_STATUS_IS_ERR(status)) {
907 return status;
910 /* Return variables */
912 /* Return result */
913 if (werror) {
914 *werror = r.out.result;
917 return werror_to_ntstatus(r.out.result);
920 NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli,
921 TALLOC_CTX *mem_ctx,
922 WERROR *werror)
924 struct dfs_Add2 r;
925 NTSTATUS status;
927 /* In parameters */
929 if (DEBUGLEVEL >= 10) {
930 NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
933 status = cli_do_rpc_ndr(cli,
934 mem_ctx,
935 &ndr_table_netdfs,
936 NDR_DFS_ADD2,
937 &r);
939 if (!NT_STATUS_IS_OK(status)) {
940 return status;
943 if (DEBUGLEVEL >= 10) {
944 NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
947 if (NT_STATUS_IS_ERR(status)) {
948 return status;
951 /* Return variables */
953 /* Return result */
954 if (werror) {
955 *werror = r.out.result;
958 return werror_to_ntstatus(r.out.result);
961 NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli,
962 TALLOC_CTX *mem_ctx,
963 WERROR *werror)
965 struct dfs_Remove2 r;
966 NTSTATUS status;
968 /* In parameters */
970 if (DEBUGLEVEL >= 10) {
971 NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
974 status = cli_do_rpc_ndr(cli,
975 mem_ctx,
976 &ndr_table_netdfs,
977 NDR_DFS_REMOVE2,
978 &r);
980 if (!NT_STATUS_IS_OK(status)) {
981 return status;
984 if (DEBUGLEVEL >= 10) {
985 NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
988 if (NT_STATUS_IS_ERR(status)) {
989 return status;
992 /* Return variables */
994 /* Return result */
995 if (werror) {
996 *werror = r.out.result;
999 return werror_to_ntstatus(r.out.result);
1002 NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli,
1003 TALLOC_CTX *mem_ctx,
1004 const char *dfs_name /* [in] [charset(UTF16)] */,
1005 uint32_t level /* [in] */,
1006 uint32_t bufsize /* [in] */,
1007 struct dfs_EnumStruct *info /* [in,out] [unique] */,
1008 uint32_t *total /* [in,out] [unique] */,
1009 WERROR *werror)
1011 struct dfs_EnumEx r;
1012 NTSTATUS status;
1014 /* In parameters */
1015 r.in.dfs_name = dfs_name;
1016 r.in.level = level;
1017 r.in.bufsize = bufsize;
1018 r.in.info = info;
1019 r.in.total = total;
1021 if (DEBUGLEVEL >= 10) {
1022 NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
1025 status = cli_do_rpc_ndr(cli,
1026 mem_ctx,
1027 &ndr_table_netdfs,
1028 NDR_DFS_ENUMEX,
1029 &r);
1031 if (!NT_STATUS_IS_OK(status)) {
1032 return status;
1035 if (DEBUGLEVEL >= 10) {
1036 NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
1039 if (NT_STATUS_IS_ERR(status)) {
1040 return status;
1043 /* Return variables */
1044 if (info && r.out.info) {
1045 *info = *r.out.info;
1047 if (total && r.out.total) {
1048 *total = *r.out.total;
1051 /* Return result */
1052 if (werror) {
1053 *werror = r.out.result;
1056 return werror_to_ntstatus(r.out.result);
1059 NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli,
1060 TALLOC_CTX *mem_ctx,
1061 WERROR *werror)
1063 struct dfs_SetInfo2 r;
1064 NTSTATUS status;
1066 /* In parameters */
1068 if (DEBUGLEVEL >= 10) {
1069 NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
1072 status = cli_do_rpc_ndr(cli,
1073 mem_ctx,
1074 &ndr_table_netdfs,
1075 NDR_DFS_SETINFO2,
1076 &r);
1078 if (!NT_STATUS_IS_OK(status)) {
1079 return status;
1082 if (DEBUGLEVEL >= 10) {
1083 NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
1086 if (NT_STATUS_IS_ERR(status)) {
1087 return status;
1090 /* Return variables */
1092 /* Return result */
1093 if (werror) {
1094 *werror = r.out.result;
1097 return werror_to_ntstatus(r.out.result);