libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone build
[Samba.git] / source / librpc / gen_ndr / cli_dfs.c
blob0e33284816e66a91072803f6d012fd43b3f93f5e
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 PI_NETDFS,
25 &ndr_table_netdfs,
26 NDR_DFS_GETMANAGERVERSION,
27 &r);
29 if (!NT_STATUS_IS_OK(status)) {
30 return status;
33 if (DEBUGLEVEL >= 10) {
34 NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
37 if (NT_STATUS_IS_ERR(status)) {
38 return status;
41 /* Return variables */
42 *version = *r.out.version;
44 /* Return result */
45 return NT_STATUS_OK;
48 NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli,
49 TALLOC_CTX *mem_ctx,
50 const char *path /* [in] [ref,charset(UTF16)] */,
51 const char *server /* [in] [ref,charset(UTF16)] */,
52 const char *share /* [in] [unique,charset(UTF16)] */,
53 const char *comment /* [in] [unique,charset(UTF16)] */,
54 uint32_t flags /* [in] */,
55 WERROR *werror)
57 struct dfs_Add r;
58 NTSTATUS status;
60 /* In parameters */
61 r.in.path = path;
62 r.in.server = server;
63 r.in.share = share;
64 r.in.comment = comment;
65 r.in.flags = flags;
67 if (DEBUGLEVEL >= 10) {
68 NDR_PRINT_IN_DEBUG(dfs_Add, &r);
71 status = cli_do_rpc_ndr(cli,
72 mem_ctx,
73 PI_NETDFS,
74 &ndr_table_netdfs,
75 NDR_DFS_ADD,
76 &r);
78 if (!NT_STATUS_IS_OK(status)) {
79 return status;
82 if (DEBUGLEVEL >= 10) {
83 NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
86 if (NT_STATUS_IS_ERR(status)) {
87 return status;
90 /* Return variables */
92 /* Return result */
93 if (werror) {
94 *werror = r.out.result;
97 return werror_to_ntstatus(r.out.result);
100 NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli,
101 TALLOC_CTX *mem_ctx,
102 const char *dfs_entry_path /* [in] [ref,charset(UTF16)] */,
103 const char *servername /* [in] [unique,charset(UTF16)] */,
104 const char *sharename /* [in] [unique,charset(UTF16)] */,
105 WERROR *werror)
107 struct dfs_Remove r;
108 NTSTATUS status;
110 /* In parameters */
111 r.in.dfs_entry_path = dfs_entry_path;
112 r.in.servername = servername;
113 r.in.sharename = sharename;
115 if (DEBUGLEVEL >= 10) {
116 NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
119 status = cli_do_rpc_ndr(cli,
120 mem_ctx,
121 PI_NETDFS,
122 &ndr_table_netdfs,
123 NDR_DFS_REMOVE,
124 &r);
126 if (!NT_STATUS_IS_OK(status)) {
127 return status;
130 if (DEBUGLEVEL >= 10) {
131 NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
134 if (NT_STATUS_IS_ERR(status)) {
135 return status;
138 /* Return variables */
140 /* Return result */
141 if (werror) {
142 *werror = r.out.result;
145 return werror_to_ntstatus(r.out.result);
148 NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli,
149 TALLOC_CTX *mem_ctx,
150 const char *dfs_entry_path /* [in] [charset(UTF16)] */,
151 const char *servername /* [in] [unique,charset(UTF16)] */,
152 const char *sharename /* [in] [unique,charset(UTF16)] */,
153 uint32_t level /* [in] */,
154 union dfs_Info *info /* [in] [ref,switch_is(level)] */,
155 WERROR *werror)
157 struct dfs_SetInfo r;
158 NTSTATUS status;
160 /* In parameters */
161 r.in.dfs_entry_path = dfs_entry_path;
162 r.in.servername = servername;
163 r.in.sharename = sharename;
164 r.in.level = level;
165 r.in.info = info;
167 if (DEBUGLEVEL >= 10) {
168 NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
171 status = cli_do_rpc_ndr(cli,
172 mem_ctx,
173 PI_NETDFS,
174 &ndr_table_netdfs,
175 NDR_DFS_SETINFO,
176 &r);
178 if (!NT_STATUS_IS_OK(status)) {
179 return status;
182 if (DEBUGLEVEL >= 10) {
183 NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
186 if (NT_STATUS_IS_ERR(status)) {
187 return status;
190 /* Return variables */
192 /* Return result */
193 if (werror) {
194 *werror = r.out.result;
197 return werror_to_ntstatus(r.out.result);
200 NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli,
201 TALLOC_CTX *mem_ctx,
202 const char *dfs_entry_path /* [in] [charset(UTF16)] */,
203 const char *servername /* [in] [unique,charset(UTF16)] */,
204 const char *sharename /* [in] [unique,charset(UTF16)] */,
205 uint32_t level /* [in] */,
206 union dfs_Info *info /* [out] [ref,switch_is(level)] */,
207 WERROR *werror)
209 struct dfs_GetInfo r;
210 NTSTATUS status;
212 /* In parameters */
213 r.in.dfs_entry_path = dfs_entry_path;
214 r.in.servername = servername;
215 r.in.sharename = sharename;
216 r.in.level = level;
218 if (DEBUGLEVEL >= 10) {
219 NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
222 status = cli_do_rpc_ndr(cli,
223 mem_ctx,
224 PI_NETDFS,
225 &ndr_table_netdfs,
226 NDR_DFS_GETINFO,
227 &r);
229 if (!NT_STATUS_IS_OK(status)) {
230 return status;
233 if (DEBUGLEVEL >= 10) {
234 NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
237 if (NT_STATUS_IS_ERR(status)) {
238 return status;
241 /* Return variables */
242 *info = *r.out.info;
244 /* Return result */
245 if (werror) {
246 *werror = r.out.result;
249 return werror_to_ntstatus(r.out.result);
252 NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli,
253 TALLOC_CTX *mem_ctx,
254 uint32_t level /* [in] */,
255 uint32_t bufsize /* [in] */,
256 struct dfs_EnumStruct *info /* [in,out] [unique] */,
257 uint32_t *total /* [in,out] [unique] */,
258 WERROR *werror)
260 struct dfs_Enum r;
261 NTSTATUS status;
263 /* In parameters */
264 r.in.level = level;
265 r.in.bufsize = bufsize;
266 r.in.info = info;
267 r.in.total = total;
269 if (DEBUGLEVEL >= 10) {
270 NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
273 status = cli_do_rpc_ndr(cli,
274 mem_ctx,
275 PI_NETDFS,
276 &ndr_table_netdfs,
277 NDR_DFS_ENUM,
278 &r);
280 if (!NT_STATUS_IS_OK(status)) {
281 return status;
284 if (DEBUGLEVEL >= 10) {
285 NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
288 if (NT_STATUS_IS_ERR(status)) {
289 return status;
292 /* Return variables */
293 if (info && r.out.info) {
294 *info = *r.out.info;
296 if (total && r.out.total) {
297 *total = *r.out.total;
300 /* Return result */
301 if (werror) {
302 *werror = r.out.result;
305 return werror_to_ntstatus(r.out.result);
308 NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli,
309 TALLOC_CTX *mem_ctx,
310 WERROR *werror)
312 struct dfs_Rename r;
313 NTSTATUS status;
315 /* In parameters */
317 if (DEBUGLEVEL >= 10) {
318 NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
321 status = cli_do_rpc_ndr(cli,
322 mem_ctx,
323 PI_NETDFS,
324 &ndr_table_netdfs,
325 NDR_DFS_RENAME,
326 &r);
328 if (!NT_STATUS_IS_OK(status)) {
329 return status;
332 if (DEBUGLEVEL >= 10) {
333 NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
336 if (NT_STATUS_IS_ERR(status)) {
337 return status;
340 /* Return variables */
342 /* Return result */
343 if (werror) {
344 *werror = r.out.result;
347 return werror_to_ntstatus(r.out.result);
350 NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli,
351 TALLOC_CTX *mem_ctx,
352 WERROR *werror)
354 struct dfs_Move r;
355 NTSTATUS status;
357 /* In parameters */
359 if (DEBUGLEVEL >= 10) {
360 NDR_PRINT_IN_DEBUG(dfs_Move, &r);
363 status = cli_do_rpc_ndr(cli,
364 mem_ctx,
365 PI_NETDFS,
366 &ndr_table_netdfs,
367 NDR_DFS_MOVE,
368 &r);
370 if (!NT_STATUS_IS_OK(status)) {
371 return status;
374 if (DEBUGLEVEL >= 10) {
375 NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
378 if (NT_STATUS_IS_ERR(status)) {
379 return status;
382 /* Return variables */
384 /* Return result */
385 if (werror) {
386 *werror = r.out.result;
389 return werror_to_ntstatus(r.out.result);
392 NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli,
393 TALLOC_CTX *mem_ctx,
394 WERROR *werror)
396 struct dfs_ManagerGetConfigInfo r;
397 NTSTATUS status;
399 /* In parameters */
401 if (DEBUGLEVEL >= 10) {
402 NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
405 status = cli_do_rpc_ndr(cli,
406 mem_ctx,
407 PI_NETDFS,
408 &ndr_table_netdfs,
409 NDR_DFS_MANAGERGETCONFIGINFO,
410 &r);
412 if (!NT_STATUS_IS_OK(status)) {
413 return status;
416 if (DEBUGLEVEL >= 10) {
417 NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
420 if (NT_STATUS_IS_ERR(status)) {
421 return status;
424 /* Return variables */
426 /* Return result */
427 if (werror) {
428 *werror = r.out.result;
431 return werror_to_ntstatus(r.out.result);
434 NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli,
435 TALLOC_CTX *mem_ctx,
436 WERROR *werror)
438 struct dfs_ManagerSendSiteInfo r;
439 NTSTATUS status;
441 /* In parameters */
443 if (DEBUGLEVEL >= 10) {
444 NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
447 status = cli_do_rpc_ndr(cli,
448 mem_ctx,
449 PI_NETDFS,
450 &ndr_table_netdfs,
451 NDR_DFS_MANAGERSENDSITEINFO,
452 &r);
454 if (!NT_STATUS_IS_OK(status)) {
455 return status;
458 if (DEBUGLEVEL >= 10) {
459 NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
462 if (NT_STATUS_IS_ERR(status)) {
463 return status;
466 /* Return variables */
468 /* Return result */
469 if (werror) {
470 *werror = r.out.result;
473 return werror_to_ntstatus(r.out.result);
476 NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli,
477 TALLOC_CTX *mem_ctx,
478 const char *servername /* [in] [charset(UTF16)] */,
479 const char *dns_servername /* [in] [charset(UTF16)] */,
480 const char *dfsname /* [in] [charset(UTF16)] */,
481 const char *rootshare /* [in] [charset(UTF16)] */,
482 const char *comment /* [in] [charset(UTF16)] */,
483 const char *dfs_config_dn /* [in] [charset(UTF16)] */,
484 uint8_t unknown1 /* [in] */,
485 uint32_t flags /* [in] */,
486 struct dfs_UnknownStruct **unknown2 /* [in,out] [unique] */,
487 WERROR *werror)
489 struct dfs_AddFtRoot r;
490 NTSTATUS status;
492 /* In parameters */
493 r.in.servername = servername;
494 r.in.dns_servername = dns_servername;
495 r.in.dfsname = dfsname;
496 r.in.rootshare = rootshare;
497 r.in.comment = comment;
498 r.in.dfs_config_dn = dfs_config_dn;
499 r.in.unknown1 = unknown1;
500 r.in.flags = flags;
501 r.in.unknown2 = unknown2;
503 if (DEBUGLEVEL >= 10) {
504 NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
507 status = cli_do_rpc_ndr(cli,
508 mem_ctx,
509 PI_NETDFS,
510 &ndr_table_netdfs,
511 NDR_DFS_ADDFTROOT,
512 &r);
514 if (!NT_STATUS_IS_OK(status)) {
515 return status;
518 if (DEBUGLEVEL >= 10) {
519 NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
522 if (NT_STATUS_IS_ERR(status)) {
523 return status;
526 /* Return variables */
527 if (unknown2 && r.out.unknown2) {
528 *unknown2 = *r.out.unknown2;
531 /* Return result */
532 if (werror) {
533 *werror = r.out.result;
536 return werror_to_ntstatus(r.out.result);
539 NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli,
540 TALLOC_CTX *mem_ctx,
541 const char *servername /* [in] [charset(UTF16)] */,
542 const char *dns_servername /* [in] [charset(UTF16)] */,
543 const char *dfsname /* [in] [charset(UTF16)] */,
544 const char *rootshare /* [in] [charset(UTF16)] */,
545 uint32_t flags /* [in] */,
546 struct dfs_UnknownStruct **unknown /* [in,out] [unique] */,
547 WERROR *werror)
549 struct dfs_RemoveFtRoot r;
550 NTSTATUS status;
552 /* In parameters */
553 r.in.servername = servername;
554 r.in.dns_servername = dns_servername;
555 r.in.dfsname = dfsname;
556 r.in.rootshare = rootshare;
557 r.in.flags = flags;
558 r.in.unknown = unknown;
560 if (DEBUGLEVEL >= 10) {
561 NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
564 status = cli_do_rpc_ndr(cli,
565 mem_ctx,
566 PI_NETDFS,
567 &ndr_table_netdfs,
568 NDR_DFS_REMOVEFTROOT,
569 &r);
571 if (!NT_STATUS_IS_OK(status)) {
572 return status;
575 if (DEBUGLEVEL >= 10) {
576 NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
579 if (NT_STATUS_IS_ERR(status)) {
580 return status;
583 /* Return variables */
584 if (unknown && r.out.unknown) {
585 *unknown = *r.out.unknown;
588 /* Return result */
589 if (werror) {
590 *werror = r.out.result;
593 return werror_to_ntstatus(r.out.result);
596 NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli,
597 TALLOC_CTX *mem_ctx,
598 const char *servername /* [in] [charset(UTF16)] */,
599 const char *rootshare /* [in] [charset(UTF16)] */,
600 const char *comment /* [in] [charset(UTF16)] */,
601 uint32_t flags /* [in] */,
602 WERROR *werror)
604 struct dfs_AddStdRoot r;
605 NTSTATUS status;
607 /* In parameters */
608 r.in.servername = servername;
609 r.in.rootshare = rootshare;
610 r.in.comment = comment;
611 r.in.flags = flags;
613 if (DEBUGLEVEL >= 10) {
614 NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
617 status = cli_do_rpc_ndr(cli,
618 mem_ctx,
619 PI_NETDFS,
620 &ndr_table_netdfs,
621 NDR_DFS_ADDSTDROOT,
622 &r);
624 if (!NT_STATUS_IS_OK(status)) {
625 return status;
628 if (DEBUGLEVEL >= 10) {
629 NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
632 if (NT_STATUS_IS_ERR(status)) {
633 return status;
636 /* Return variables */
638 /* Return result */
639 if (werror) {
640 *werror = r.out.result;
643 return werror_to_ntstatus(r.out.result);
646 NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli,
647 TALLOC_CTX *mem_ctx,
648 const char *servername /* [in] [charset(UTF16)] */,
649 const char *rootshare /* [in] [charset(UTF16)] */,
650 uint32_t flags /* [in] */,
651 WERROR *werror)
653 struct dfs_RemoveStdRoot r;
654 NTSTATUS status;
656 /* In parameters */
657 r.in.servername = servername;
658 r.in.rootshare = rootshare;
659 r.in.flags = flags;
661 if (DEBUGLEVEL >= 10) {
662 NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
665 status = cli_do_rpc_ndr(cli,
666 mem_ctx,
667 PI_NETDFS,
668 &ndr_table_netdfs,
669 NDR_DFS_REMOVESTDROOT,
670 &r);
672 if (!NT_STATUS_IS_OK(status)) {
673 return status;
676 if (DEBUGLEVEL >= 10) {
677 NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
680 if (NT_STATUS_IS_ERR(status)) {
681 return status;
684 /* Return variables */
686 /* Return result */
687 if (werror) {
688 *werror = r.out.result;
691 return werror_to_ntstatus(r.out.result);
694 NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli,
695 TALLOC_CTX *mem_ctx,
696 const char *servername /* [in] [ref,charset(UTF16)] */,
697 uint32_t flags /* [in] */,
698 WERROR *werror)
700 struct dfs_ManagerInitialize r;
701 NTSTATUS status;
703 /* In parameters */
704 r.in.servername = servername;
705 r.in.flags = flags;
707 if (DEBUGLEVEL >= 10) {
708 NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
711 status = cli_do_rpc_ndr(cli,
712 mem_ctx,
713 PI_NETDFS,
714 &ndr_table_netdfs,
715 NDR_DFS_MANAGERINITIALIZE,
716 &r);
718 if (!NT_STATUS_IS_OK(status)) {
719 return status;
722 if (DEBUGLEVEL >= 10) {
723 NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
726 if (NT_STATUS_IS_ERR(status)) {
727 return status;
730 /* Return variables */
732 /* Return result */
733 if (werror) {
734 *werror = r.out.result;
737 return werror_to_ntstatus(r.out.result);
740 NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli,
741 TALLOC_CTX *mem_ctx,
742 const char *servername /* [in] [charset(UTF16)] */,
743 const char *rootshare /* [in] [charset(UTF16)] */,
744 const char *comment /* [in] [charset(UTF16)] */,
745 const char *store /* [in] [charset(UTF16)] */,
746 WERROR *werror)
748 struct dfs_AddStdRootForced r;
749 NTSTATUS status;
751 /* In parameters */
752 r.in.servername = servername;
753 r.in.rootshare = rootshare;
754 r.in.comment = comment;
755 r.in.store = store;
757 if (DEBUGLEVEL >= 10) {
758 NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
761 status = cli_do_rpc_ndr(cli,
762 mem_ctx,
763 PI_NETDFS,
764 &ndr_table_netdfs,
765 NDR_DFS_ADDSTDROOTFORCED,
766 &r);
768 if (!NT_STATUS_IS_OK(status)) {
769 return status;
772 if (DEBUGLEVEL >= 10) {
773 NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
776 if (NT_STATUS_IS_ERR(status)) {
777 return status;
780 /* Return variables */
782 /* Return result */
783 if (werror) {
784 *werror = r.out.result;
787 return werror_to_ntstatus(r.out.result);
790 NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli,
791 TALLOC_CTX *mem_ctx,
792 const char *servername /* [in] [charset(UTF16)] */,
793 const char **server_fullname /* [in,out] [ref,charset(UTF16)] */,
794 uint8_t *is_root /* [in,out] [ref] */,
795 uint32_t *ttl /* [in,out] [ref] */,
796 WERROR *werror)
798 struct dfs_GetDcAddress r;
799 NTSTATUS status;
801 /* In parameters */
802 r.in.servername = servername;
803 r.in.server_fullname = server_fullname;
804 r.in.is_root = is_root;
805 r.in.ttl = ttl;
807 if (DEBUGLEVEL >= 10) {
808 NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
811 status = cli_do_rpc_ndr(cli,
812 mem_ctx,
813 PI_NETDFS,
814 &ndr_table_netdfs,
815 NDR_DFS_GETDCADDRESS,
816 &r);
818 if (!NT_STATUS_IS_OK(status)) {
819 return status;
822 if (DEBUGLEVEL >= 10) {
823 NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
826 if (NT_STATUS_IS_ERR(status)) {
827 return status;
830 /* Return variables */
831 *server_fullname = *r.out.server_fullname;
832 *is_root = *r.out.is_root;
833 *ttl = *r.out.ttl;
835 /* Return result */
836 if (werror) {
837 *werror = r.out.result;
840 return werror_to_ntstatus(r.out.result);
843 NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli,
844 TALLOC_CTX *mem_ctx,
845 const char *servername /* [in] [charset(UTF16)] */,
846 const char *server_fullname /* [in] [charset(UTF16)] */,
847 uint32_t flags /* [in] */,
848 uint32_t ttl /* [in] */,
849 WERROR *werror)
851 struct dfs_SetDcAddress r;
852 NTSTATUS status;
854 /* In parameters */
855 r.in.servername = servername;
856 r.in.server_fullname = server_fullname;
857 r.in.flags = flags;
858 r.in.ttl = ttl;
860 if (DEBUGLEVEL >= 10) {
861 NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
864 status = cli_do_rpc_ndr(cli,
865 mem_ctx,
866 PI_NETDFS,
867 &ndr_table_netdfs,
868 NDR_DFS_SETDCADDRESS,
869 &r);
871 if (!NT_STATUS_IS_OK(status)) {
872 return status;
875 if (DEBUGLEVEL >= 10) {
876 NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
879 if (NT_STATUS_IS_ERR(status)) {
880 return status;
883 /* Return variables */
885 /* Return result */
886 if (werror) {
887 *werror = r.out.result;
890 return werror_to_ntstatus(r.out.result);
893 NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli,
894 TALLOC_CTX *mem_ctx,
895 const char *servername /* [in] [charset(UTF16)] */,
896 const char *rootshare /* [in] [charset(UTF16)] */,
897 WERROR *werror)
899 struct dfs_FlushFtTable r;
900 NTSTATUS status;
902 /* In parameters */
903 r.in.servername = servername;
904 r.in.rootshare = rootshare;
906 if (DEBUGLEVEL >= 10) {
907 NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
910 status = cli_do_rpc_ndr(cli,
911 mem_ctx,
912 PI_NETDFS,
913 &ndr_table_netdfs,
914 NDR_DFS_FLUSHFTTABLE,
915 &r);
917 if (!NT_STATUS_IS_OK(status)) {
918 return status;
921 if (DEBUGLEVEL >= 10) {
922 NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
925 if (NT_STATUS_IS_ERR(status)) {
926 return status;
929 /* Return variables */
931 /* Return result */
932 if (werror) {
933 *werror = r.out.result;
936 return werror_to_ntstatus(r.out.result);
939 NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli,
940 TALLOC_CTX *mem_ctx,
941 WERROR *werror)
943 struct dfs_Add2 r;
944 NTSTATUS status;
946 /* In parameters */
948 if (DEBUGLEVEL >= 10) {
949 NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
952 status = cli_do_rpc_ndr(cli,
953 mem_ctx,
954 PI_NETDFS,
955 &ndr_table_netdfs,
956 NDR_DFS_ADD2,
957 &r);
959 if (!NT_STATUS_IS_OK(status)) {
960 return status;
963 if (DEBUGLEVEL >= 10) {
964 NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
967 if (NT_STATUS_IS_ERR(status)) {
968 return status;
971 /* Return variables */
973 /* Return result */
974 if (werror) {
975 *werror = r.out.result;
978 return werror_to_ntstatus(r.out.result);
981 NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli,
982 TALLOC_CTX *mem_ctx,
983 WERROR *werror)
985 struct dfs_Remove2 r;
986 NTSTATUS status;
988 /* In parameters */
990 if (DEBUGLEVEL >= 10) {
991 NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
994 status = cli_do_rpc_ndr(cli,
995 mem_ctx,
996 PI_NETDFS,
997 &ndr_table_netdfs,
998 NDR_DFS_REMOVE2,
999 &r);
1001 if (!NT_STATUS_IS_OK(status)) {
1002 return status;
1005 if (DEBUGLEVEL >= 10) {
1006 NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
1009 if (NT_STATUS_IS_ERR(status)) {
1010 return status;
1013 /* Return variables */
1015 /* Return result */
1016 if (werror) {
1017 *werror = r.out.result;
1020 return werror_to_ntstatus(r.out.result);
1023 NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli,
1024 TALLOC_CTX *mem_ctx,
1025 const char *dfs_name /* [in] [charset(UTF16)] */,
1026 uint32_t level /* [in] */,
1027 uint32_t bufsize /* [in] */,
1028 struct dfs_EnumStruct *info /* [in,out] [unique] */,
1029 uint32_t *total /* [in,out] [unique] */,
1030 WERROR *werror)
1032 struct dfs_EnumEx r;
1033 NTSTATUS status;
1035 /* In parameters */
1036 r.in.dfs_name = dfs_name;
1037 r.in.level = level;
1038 r.in.bufsize = bufsize;
1039 r.in.info = info;
1040 r.in.total = total;
1042 if (DEBUGLEVEL >= 10) {
1043 NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
1046 status = cli_do_rpc_ndr(cli,
1047 mem_ctx,
1048 PI_NETDFS,
1049 &ndr_table_netdfs,
1050 NDR_DFS_ENUMEX,
1051 &r);
1053 if (!NT_STATUS_IS_OK(status)) {
1054 return status;
1057 if (DEBUGLEVEL >= 10) {
1058 NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
1061 if (NT_STATUS_IS_ERR(status)) {
1062 return status;
1065 /* Return variables */
1066 if (info && r.out.info) {
1067 *info = *r.out.info;
1069 if (total && r.out.total) {
1070 *total = *r.out.total;
1073 /* Return result */
1074 if (werror) {
1075 *werror = r.out.result;
1078 return werror_to_ntstatus(r.out.result);
1081 NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli,
1082 TALLOC_CTX *mem_ctx,
1083 WERROR *werror)
1085 struct dfs_SetInfo2 r;
1086 NTSTATUS status;
1088 /* In parameters */
1090 if (DEBUGLEVEL >= 10) {
1091 NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
1094 status = cli_do_rpc_ndr(cli,
1095 mem_ctx,
1096 PI_NETDFS,
1097 &ndr_table_netdfs,
1098 NDR_DFS_SETINFO2,
1099 &r);
1101 if (!NT_STATUS_IS_OK(status)) {
1102 return status;
1105 if (DEBUGLEVEL >= 10) {
1106 NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
1109 if (NT_STATUS_IS_ERR(status)) {
1110 return status;
1113 /* Return variables */
1115 /* Return result */
1116 if (werror) {
1117 *werror = r.out.result;
1120 return werror_to_ntstatus(r.out.result);