2 * Unix SMB/CIFS implementation.
3 * server auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/srv_dfs.h"
9 static bool api_dfs_GetManagerVersion(pipes_struct *p)
11 const struct ndr_interface_call *call;
12 struct ndr_pull *pull;
13 struct ndr_push *push;
14 enum ndr_err_code ndr_err;
16 struct dfs_GetManagerVersion *r;
18 call = &ndr_table_netdfs.calls[NDR_DFS_GETMANAGERVERSION];
20 r = talloc(NULL, struct dfs_GetManagerVersion);
25 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
30 pull = ndr_pull_init_blob(&blob, r);
36 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
37 ndr_err = call->ndr_pull(pull, NDR_IN, r);
38 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
44 NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, r);
47 r->out.version = talloc_zero(r, enum dfs_ManagerVersion);
48 if (r->out.version == NULL) {
53 _dfs_GetManagerVersion(p, r);
55 if (p->rng_fault_state) {
57 /* Return True here, srv_pipe_hnd.c will take care */
62 NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, r);
64 push = ndr_push_init_ctx(r);
70 ndr_err = call->ndr_push(push, NDR_OUT, r);
71 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
76 blob = ndr_push_blob(push);
77 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
87 static bool api_dfs_Add(pipes_struct *p)
89 const struct ndr_interface_call *call;
90 struct ndr_pull *pull;
91 struct ndr_push *push;
92 enum ndr_err_code ndr_err;
96 call = &ndr_table_netdfs.calls[NDR_DFS_ADD];
98 r = talloc(NULL, struct dfs_Add);
103 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
108 pull = ndr_pull_init_blob(&blob, r);
114 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
115 ndr_err = call->ndr_pull(pull, NDR_IN, r);
116 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
121 if (DEBUGLEVEL >= 10)
122 NDR_PRINT_IN_DEBUG(dfs_Add, r);
124 r->out.result = _dfs_Add(p, r);
126 if (p->rng_fault_state) {
128 /* Return True here, srv_pipe_hnd.c will take care */
132 if (DEBUGLEVEL >= 10)
133 NDR_PRINT_OUT_DEBUG(dfs_Add, r);
135 push = ndr_push_init_ctx(r);
141 ndr_err = call->ndr_push(push, NDR_OUT, r);
142 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
147 blob = ndr_push_blob(push);
148 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
158 static bool api_dfs_Remove(pipes_struct *p)
160 const struct ndr_interface_call *call;
161 struct ndr_pull *pull;
162 struct ndr_push *push;
163 enum ndr_err_code ndr_err;
165 struct dfs_Remove *r;
167 call = &ndr_table_netdfs.calls[NDR_DFS_REMOVE];
169 r = talloc(NULL, struct dfs_Remove);
174 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
179 pull = ndr_pull_init_blob(&blob, r);
185 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
186 ndr_err = call->ndr_pull(pull, NDR_IN, r);
187 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
192 if (DEBUGLEVEL >= 10)
193 NDR_PRINT_IN_DEBUG(dfs_Remove, r);
195 r->out.result = _dfs_Remove(p, r);
197 if (p->rng_fault_state) {
199 /* Return True here, srv_pipe_hnd.c will take care */
203 if (DEBUGLEVEL >= 10)
204 NDR_PRINT_OUT_DEBUG(dfs_Remove, r);
206 push = ndr_push_init_ctx(r);
212 ndr_err = call->ndr_push(push, NDR_OUT, r);
213 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
218 blob = ndr_push_blob(push);
219 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
229 static bool api_dfs_SetInfo(pipes_struct *p)
231 const struct ndr_interface_call *call;
232 struct ndr_pull *pull;
233 struct ndr_push *push;
234 enum ndr_err_code ndr_err;
236 struct dfs_SetInfo *r;
238 call = &ndr_table_netdfs.calls[NDR_DFS_SETINFO];
240 r = talloc(NULL, struct dfs_SetInfo);
245 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
250 pull = ndr_pull_init_blob(&blob, r);
256 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
257 ndr_err = call->ndr_pull(pull, NDR_IN, r);
258 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
263 if (DEBUGLEVEL >= 10)
264 NDR_PRINT_IN_DEBUG(dfs_SetInfo, r);
266 r->out.result = _dfs_SetInfo(p, r);
268 if (p->rng_fault_state) {
270 /* Return True here, srv_pipe_hnd.c will take care */
274 if (DEBUGLEVEL >= 10)
275 NDR_PRINT_OUT_DEBUG(dfs_SetInfo, r);
277 push = ndr_push_init_ctx(r);
283 ndr_err = call->ndr_push(push, NDR_OUT, r);
284 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
289 blob = ndr_push_blob(push);
290 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
300 static bool api_dfs_GetInfo(pipes_struct *p)
302 const struct ndr_interface_call *call;
303 struct ndr_pull *pull;
304 struct ndr_push *push;
305 enum ndr_err_code ndr_err;
307 struct dfs_GetInfo *r;
309 call = &ndr_table_netdfs.calls[NDR_DFS_GETINFO];
311 r = talloc(NULL, struct dfs_GetInfo);
316 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
321 pull = ndr_pull_init_blob(&blob, r);
327 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
328 ndr_err = call->ndr_pull(pull, NDR_IN, r);
329 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
334 if (DEBUGLEVEL >= 10)
335 NDR_PRINT_IN_DEBUG(dfs_GetInfo, r);
338 r->out.info = talloc_zero(r, union dfs_Info);
339 if (r->out.info == NULL) {
344 r->out.result = _dfs_GetInfo(p, r);
346 if (p->rng_fault_state) {
348 /* Return True here, srv_pipe_hnd.c will take care */
352 if (DEBUGLEVEL >= 10)
353 NDR_PRINT_OUT_DEBUG(dfs_GetInfo, r);
355 push = ndr_push_init_ctx(r);
361 ndr_err = call->ndr_push(push, NDR_OUT, r);
362 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
367 blob = ndr_push_blob(push);
368 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
378 static bool api_dfs_Enum(pipes_struct *p)
380 const struct ndr_interface_call *call;
381 struct ndr_pull *pull;
382 struct ndr_push *push;
383 enum ndr_err_code ndr_err;
387 call = &ndr_table_netdfs.calls[NDR_DFS_ENUM];
389 r = talloc(NULL, struct dfs_Enum);
394 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
399 pull = ndr_pull_init_blob(&blob, r);
405 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
406 ndr_err = call->ndr_pull(pull, NDR_IN, r);
407 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
412 if (DEBUGLEVEL >= 10)
413 NDR_PRINT_IN_DEBUG(dfs_Enum, r);
416 r->out.info = r->in.info;
417 r->out.total = r->in.total;
418 r->out.result = _dfs_Enum(p, r);
420 if (p->rng_fault_state) {
422 /* Return True here, srv_pipe_hnd.c will take care */
426 if (DEBUGLEVEL >= 10)
427 NDR_PRINT_OUT_DEBUG(dfs_Enum, r);
429 push = ndr_push_init_ctx(r);
435 ndr_err = call->ndr_push(push, NDR_OUT, r);
436 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
441 blob = ndr_push_blob(push);
442 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
452 static bool api_dfs_Rename(pipes_struct *p)
454 const struct ndr_interface_call *call;
455 struct ndr_pull *pull;
456 struct ndr_push *push;
457 enum ndr_err_code ndr_err;
459 struct dfs_Rename *r;
461 call = &ndr_table_netdfs.calls[NDR_DFS_RENAME];
463 r = talloc(NULL, struct dfs_Rename);
468 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
473 pull = ndr_pull_init_blob(&blob, r);
479 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
480 ndr_err = call->ndr_pull(pull, NDR_IN, r);
481 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
486 if (DEBUGLEVEL >= 10)
487 NDR_PRINT_IN_DEBUG(dfs_Rename, r);
489 r->out.result = _dfs_Rename(p, r);
491 if (p->rng_fault_state) {
493 /* Return True here, srv_pipe_hnd.c will take care */
497 if (DEBUGLEVEL >= 10)
498 NDR_PRINT_OUT_DEBUG(dfs_Rename, r);
500 push = ndr_push_init_ctx(r);
506 ndr_err = call->ndr_push(push, NDR_OUT, r);
507 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
512 blob = ndr_push_blob(push);
513 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
523 static bool api_dfs_Move(pipes_struct *p)
525 const struct ndr_interface_call *call;
526 struct ndr_pull *pull;
527 struct ndr_push *push;
528 enum ndr_err_code ndr_err;
532 call = &ndr_table_netdfs.calls[NDR_DFS_MOVE];
534 r = talloc(NULL, struct dfs_Move);
539 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
544 pull = ndr_pull_init_blob(&blob, r);
550 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
551 ndr_err = call->ndr_pull(pull, NDR_IN, r);
552 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
557 if (DEBUGLEVEL >= 10)
558 NDR_PRINT_IN_DEBUG(dfs_Move, r);
560 r->out.result = _dfs_Move(p, r);
562 if (p->rng_fault_state) {
564 /* Return True here, srv_pipe_hnd.c will take care */
568 if (DEBUGLEVEL >= 10)
569 NDR_PRINT_OUT_DEBUG(dfs_Move, r);
571 push = ndr_push_init_ctx(r);
577 ndr_err = call->ndr_push(push, NDR_OUT, r);
578 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
583 blob = ndr_push_blob(push);
584 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
594 static bool api_dfs_ManagerGetConfigInfo(pipes_struct *p)
596 const struct ndr_interface_call *call;
597 struct ndr_pull *pull;
598 struct ndr_push *push;
599 enum ndr_err_code ndr_err;
601 struct dfs_ManagerGetConfigInfo *r;
603 call = &ndr_table_netdfs.calls[NDR_DFS_MANAGERGETCONFIGINFO];
605 r = talloc(NULL, struct dfs_ManagerGetConfigInfo);
610 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
615 pull = ndr_pull_init_blob(&blob, r);
621 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
622 ndr_err = call->ndr_pull(pull, NDR_IN, r);
623 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
628 if (DEBUGLEVEL >= 10)
629 NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, r);
631 r->out.result = _dfs_ManagerGetConfigInfo(p, r);
633 if (p->rng_fault_state) {
635 /* Return True here, srv_pipe_hnd.c will take care */
639 if (DEBUGLEVEL >= 10)
640 NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, r);
642 push = ndr_push_init_ctx(r);
648 ndr_err = call->ndr_push(push, NDR_OUT, r);
649 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
654 blob = ndr_push_blob(push);
655 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
665 static bool api_dfs_ManagerSendSiteInfo(pipes_struct *p)
667 const struct ndr_interface_call *call;
668 struct ndr_pull *pull;
669 struct ndr_push *push;
670 enum ndr_err_code ndr_err;
672 struct dfs_ManagerSendSiteInfo *r;
674 call = &ndr_table_netdfs.calls[NDR_DFS_MANAGERSENDSITEINFO];
676 r = talloc(NULL, struct dfs_ManagerSendSiteInfo);
681 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
686 pull = ndr_pull_init_blob(&blob, r);
692 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
693 ndr_err = call->ndr_pull(pull, NDR_IN, r);
694 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
699 if (DEBUGLEVEL >= 10)
700 NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, r);
702 r->out.result = _dfs_ManagerSendSiteInfo(p, r);
704 if (p->rng_fault_state) {
706 /* Return True here, srv_pipe_hnd.c will take care */
710 if (DEBUGLEVEL >= 10)
711 NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, r);
713 push = ndr_push_init_ctx(r);
719 ndr_err = call->ndr_push(push, NDR_OUT, r);
720 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
725 blob = ndr_push_blob(push);
726 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
736 static bool api_dfs_AddFtRoot(pipes_struct *p)
738 const struct ndr_interface_call *call;
739 struct ndr_pull *pull;
740 struct ndr_push *push;
741 enum ndr_err_code ndr_err;
743 struct dfs_AddFtRoot *r;
745 call = &ndr_table_netdfs.calls[NDR_DFS_ADDFTROOT];
747 r = talloc(NULL, struct dfs_AddFtRoot);
752 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
757 pull = ndr_pull_init_blob(&blob, r);
763 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
764 ndr_err = call->ndr_pull(pull, NDR_IN, r);
765 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
770 if (DEBUGLEVEL >= 10)
771 NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, r);
774 r->out.unknown2 = r->in.unknown2;
775 r->out.result = _dfs_AddFtRoot(p, r);
777 if (p->rng_fault_state) {
779 /* Return True here, srv_pipe_hnd.c will take care */
783 if (DEBUGLEVEL >= 10)
784 NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, r);
786 push = ndr_push_init_ctx(r);
792 ndr_err = call->ndr_push(push, NDR_OUT, r);
793 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
798 blob = ndr_push_blob(push);
799 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
809 static bool api_dfs_RemoveFtRoot(pipes_struct *p)
811 const struct ndr_interface_call *call;
812 struct ndr_pull *pull;
813 struct ndr_push *push;
814 enum ndr_err_code ndr_err;
816 struct dfs_RemoveFtRoot *r;
818 call = &ndr_table_netdfs.calls[NDR_DFS_REMOVEFTROOT];
820 r = talloc(NULL, struct dfs_RemoveFtRoot);
825 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
830 pull = ndr_pull_init_blob(&blob, r);
836 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
837 ndr_err = call->ndr_pull(pull, NDR_IN, r);
838 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
843 if (DEBUGLEVEL >= 10)
844 NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, r);
847 r->out.unknown = r->in.unknown;
848 r->out.result = _dfs_RemoveFtRoot(p, r);
850 if (p->rng_fault_state) {
852 /* Return True here, srv_pipe_hnd.c will take care */
856 if (DEBUGLEVEL >= 10)
857 NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, r);
859 push = ndr_push_init_ctx(r);
865 ndr_err = call->ndr_push(push, NDR_OUT, r);
866 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
871 blob = ndr_push_blob(push);
872 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
882 static bool api_dfs_AddStdRoot(pipes_struct *p)
884 const struct ndr_interface_call *call;
885 struct ndr_pull *pull;
886 struct ndr_push *push;
887 enum ndr_err_code ndr_err;
889 struct dfs_AddStdRoot *r;
891 call = &ndr_table_netdfs.calls[NDR_DFS_ADDSTDROOT];
893 r = talloc(NULL, struct dfs_AddStdRoot);
898 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
903 pull = ndr_pull_init_blob(&blob, r);
909 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
910 ndr_err = call->ndr_pull(pull, NDR_IN, r);
911 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
916 if (DEBUGLEVEL >= 10)
917 NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, r);
919 r->out.result = _dfs_AddStdRoot(p, r);
921 if (p->rng_fault_state) {
923 /* Return True here, srv_pipe_hnd.c will take care */
927 if (DEBUGLEVEL >= 10)
928 NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, r);
930 push = ndr_push_init_ctx(r);
936 ndr_err = call->ndr_push(push, NDR_OUT, r);
937 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
942 blob = ndr_push_blob(push);
943 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
953 static bool api_dfs_RemoveStdRoot(pipes_struct *p)
955 const struct ndr_interface_call *call;
956 struct ndr_pull *pull;
957 struct ndr_push *push;
958 enum ndr_err_code ndr_err;
960 struct dfs_RemoveStdRoot *r;
962 call = &ndr_table_netdfs.calls[NDR_DFS_REMOVESTDROOT];
964 r = talloc(NULL, struct dfs_RemoveStdRoot);
969 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
974 pull = ndr_pull_init_blob(&blob, r);
980 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
981 ndr_err = call->ndr_pull(pull, NDR_IN, r);
982 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
987 if (DEBUGLEVEL >= 10)
988 NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, r);
990 r->out.result = _dfs_RemoveStdRoot(p, r);
992 if (p->rng_fault_state) {
994 /* Return True here, srv_pipe_hnd.c will take care */
998 if (DEBUGLEVEL >= 10)
999 NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, r);
1001 push = ndr_push_init_ctx(r);
1007 ndr_err = call->ndr_push(push, NDR_OUT, r);
1008 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1013 blob = ndr_push_blob(push);
1014 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1024 static bool api_dfs_ManagerInitialize(pipes_struct *p)
1026 const struct ndr_interface_call *call;
1027 struct ndr_pull *pull;
1028 struct ndr_push *push;
1029 enum ndr_err_code ndr_err;
1031 struct dfs_ManagerInitialize *r;
1033 call = &ndr_table_netdfs.calls[NDR_DFS_MANAGERINITIALIZE];
1035 r = talloc(NULL, struct dfs_ManagerInitialize);
1040 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1045 pull = ndr_pull_init_blob(&blob, r);
1051 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1052 ndr_err = call->ndr_pull(pull, NDR_IN, r);
1053 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1058 if (DEBUGLEVEL >= 10)
1059 NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, r);
1061 r->out.result = _dfs_ManagerInitialize(p, r);
1063 if (p->rng_fault_state) {
1065 /* Return True here, srv_pipe_hnd.c will take care */
1069 if (DEBUGLEVEL >= 10)
1070 NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, r);
1072 push = ndr_push_init_ctx(r);
1078 ndr_err = call->ndr_push(push, NDR_OUT, r);
1079 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1084 blob = ndr_push_blob(push);
1085 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1095 static bool api_dfs_AddStdRootForced(pipes_struct *p)
1097 const struct ndr_interface_call *call;
1098 struct ndr_pull *pull;
1099 struct ndr_push *push;
1100 enum ndr_err_code ndr_err;
1102 struct dfs_AddStdRootForced *r;
1104 call = &ndr_table_netdfs.calls[NDR_DFS_ADDSTDROOTFORCED];
1106 r = talloc(NULL, struct dfs_AddStdRootForced);
1111 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1116 pull = ndr_pull_init_blob(&blob, r);
1122 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1123 ndr_err = call->ndr_pull(pull, NDR_IN, r);
1124 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1129 if (DEBUGLEVEL >= 10)
1130 NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, r);
1132 r->out.result = _dfs_AddStdRootForced(p, r);
1134 if (p->rng_fault_state) {
1136 /* Return True here, srv_pipe_hnd.c will take care */
1140 if (DEBUGLEVEL >= 10)
1141 NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, r);
1143 push = ndr_push_init_ctx(r);
1149 ndr_err = call->ndr_push(push, NDR_OUT, r);
1150 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1155 blob = ndr_push_blob(push);
1156 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1166 static bool api_dfs_GetDcAddress(pipes_struct *p)
1168 const struct ndr_interface_call *call;
1169 struct ndr_pull *pull;
1170 struct ndr_push *push;
1171 enum ndr_err_code ndr_err;
1173 struct dfs_GetDcAddress *r;
1175 call = &ndr_table_netdfs.calls[NDR_DFS_GETDCADDRESS];
1177 r = talloc(NULL, struct dfs_GetDcAddress);
1182 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1187 pull = ndr_pull_init_blob(&blob, r);
1193 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1194 ndr_err = call->ndr_pull(pull, NDR_IN, r);
1195 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1200 if (DEBUGLEVEL >= 10)
1201 NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, r);
1203 r->out.result = _dfs_GetDcAddress(p, r);
1205 if (p->rng_fault_state) {
1207 /* Return True here, srv_pipe_hnd.c will take care */
1211 if (DEBUGLEVEL >= 10)
1212 NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, r);
1214 push = ndr_push_init_ctx(r);
1220 ndr_err = call->ndr_push(push, NDR_OUT, r);
1221 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1226 blob = ndr_push_blob(push);
1227 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1237 static bool api_dfs_SetDcAddress(pipes_struct *p)
1239 const struct ndr_interface_call *call;
1240 struct ndr_pull *pull;
1241 struct ndr_push *push;
1242 enum ndr_err_code ndr_err;
1244 struct dfs_SetDcAddress *r;
1246 call = &ndr_table_netdfs.calls[NDR_DFS_SETDCADDRESS];
1248 r = talloc(NULL, struct dfs_SetDcAddress);
1253 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1258 pull = ndr_pull_init_blob(&blob, r);
1264 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1265 ndr_err = call->ndr_pull(pull, NDR_IN, r);
1266 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1271 if (DEBUGLEVEL >= 10)
1272 NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, r);
1274 r->out.result = _dfs_SetDcAddress(p, r);
1276 if (p->rng_fault_state) {
1278 /* Return True here, srv_pipe_hnd.c will take care */
1282 if (DEBUGLEVEL >= 10)
1283 NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, r);
1285 push = ndr_push_init_ctx(r);
1291 ndr_err = call->ndr_push(push, NDR_OUT, r);
1292 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1297 blob = ndr_push_blob(push);
1298 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1308 static bool api_dfs_FlushFtTable(pipes_struct *p)
1310 const struct ndr_interface_call *call;
1311 struct ndr_pull *pull;
1312 struct ndr_push *push;
1313 enum ndr_err_code ndr_err;
1315 struct dfs_FlushFtTable *r;
1317 call = &ndr_table_netdfs.calls[NDR_DFS_FLUSHFTTABLE];
1319 r = talloc(NULL, struct dfs_FlushFtTable);
1324 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1329 pull = ndr_pull_init_blob(&blob, r);
1335 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1336 ndr_err = call->ndr_pull(pull, NDR_IN, r);
1337 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1342 if (DEBUGLEVEL >= 10)
1343 NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, r);
1345 r->out.result = _dfs_FlushFtTable(p, r);
1347 if (p->rng_fault_state) {
1349 /* Return True here, srv_pipe_hnd.c will take care */
1353 if (DEBUGLEVEL >= 10)
1354 NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, r);
1356 push = ndr_push_init_ctx(r);
1362 ndr_err = call->ndr_push(push, NDR_OUT, r);
1363 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1368 blob = ndr_push_blob(push);
1369 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1379 static bool api_dfs_Add2(pipes_struct *p)
1381 const struct ndr_interface_call *call;
1382 struct ndr_pull *pull;
1383 struct ndr_push *push;
1384 enum ndr_err_code ndr_err;
1388 call = &ndr_table_netdfs.calls[NDR_DFS_ADD2];
1390 r = talloc(NULL, struct dfs_Add2);
1395 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1400 pull = ndr_pull_init_blob(&blob, r);
1406 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1407 ndr_err = call->ndr_pull(pull, NDR_IN, r);
1408 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1413 if (DEBUGLEVEL >= 10)
1414 NDR_PRINT_IN_DEBUG(dfs_Add2, r);
1416 r->out.result = _dfs_Add2(p, r);
1418 if (p->rng_fault_state) {
1420 /* Return True here, srv_pipe_hnd.c will take care */
1424 if (DEBUGLEVEL >= 10)
1425 NDR_PRINT_OUT_DEBUG(dfs_Add2, r);
1427 push = ndr_push_init_ctx(r);
1433 ndr_err = call->ndr_push(push, NDR_OUT, r);
1434 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1439 blob = ndr_push_blob(push);
1440 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1450 static bool api_dfs_Remove2(pipes_struct *p)
1452 const struct ndr_interface_call *call;
1453 struct ndr_pull *pull;
1454 struct ndr_push *push;
1455 enum ndr_err_code ndr_err;
1457 struct dfs_Remove2 *r;
1459 call = &ndr_table_netdfs.calls[NDR_DFS_REMOVE2];
1461 r = talloc(NULL, struct dfs_Remove2);
1466 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1471 pull = ndr_pull_init_blob(&blob, r);
1477 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1478 ndr_err = call->ndr_pull(pull, NDR_IN, r);
1479 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1484 if (DEBUGLEVEL >= 10)
1485 NDR_PRINT_IN_DEBUG(dfs_Remove2, r);
1487 r->out.result = _dfs_Remove2(p, r);
1489 if (p->rng_fault_state) {
1491 /* Return True here, srv_pipe_hnd.c will take care */
1495 if (DEBUGLEVEL >= 10)
1496 NDR_PRINT_OUT_DEBUG(dfs_Remove2, r);
1498 push = ndr_push_init_ctx(r);
1504 ndr_err = call->ndr_push(push, NDR_OUT, r);
1505 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1510 blob = ndr_push_blob(push);
1511 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1521 static bool api_dfs_EnumEx(pipes_struct *p)
1523 const struct ndr_interface_call *call;
1524 struct ndr_pull *pull;
1525 struct ndr_push *push;
1526 enum ndr_err_code ndr_err;
1528 struct dfs_EnumEx *r;
1530 call = &ndr_table_netdfs.calls[NDR_DFS_ENUMEX];
1532 r = talloc(NULL, struct dfs_EnumEx);
1537 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1542 pull = ndr_pull_init_blob(&blob, r);
1548 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1549 ndr_err = call->ndr_pull(pull, NDR_IN, r);
1550 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1555 if (DEBUGLEVEL >= 10)
1556 NDR_PRINT_IN_DEBUG(dfs_EnumEx, r);
1558 ZERO_STRUCT(r->out);
1559 r->out.info = r->in.info;
1560 r->out.total = r->in.total;
1561 r->out.result = _dfs_EnumEx(p, r);
1563 if (p->rng_fault_state) {
1565 /* Return True here, srv_pipe_hnd.c will take care */
1569 if (DEBUGLEVEL >= 10)
1570 NDR_PRINT_OUT_DEBUG(dfs_EnumEx, r);
1572 push = ndr_push_init_ctx(r);
1578 ndr_err = call->ndr_push(push, NDR_OUT, r);
1579 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1584 blob = ndr_push_blob(push);
1585 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1595 static bool api_dfs_SetInfo2(pipes_struct *p)
1597 const struct ndr_interface_call *call;
1598 struct ndr_pull *pull;
1599 struct ndr_push *push;
1600 enum ndr_err_code ndr_err;
1602 struct dfs_SetInfo2 *r;
1604 call = &ndr_table_netdfs.calls[NDR_DFS_SETINFO2];
1606 r = talloc(NULL, struct dfs_SetInfo2);
1611 if (!prs_data_blob(&p->in_data.data, &blob, r)) {
1616 pull = ndr_pull_init_blob(&blob, r);
1622 pull->flags |= LIBNDR_FLAG_REF_ALLOC;
1623 ndr_err = call->ndr_pull(pull, NDR_IN, r);
1624 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1629 if (DEBUGLEVEL >= 10)
1630 NDR_PRINT_IN_DEBUG(dfs_SetInfo2, r);
1632 r->out.result = _dfs_SetInfo2(p, r);
1634 if (p->rng_fault_state) {
1636 /* Return True here, srv_pipe_hnd.c will take care */
1640 if (DEBUGLEVEL >= 10)
1641 NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, r);
1643 push = ndr_push_init_ctx(r);
1649 ndr_err = call->ndr_push(push, NDR_OUT, r);
1650 if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
1655 blob = ndr_push_blob(push);
1656 if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
1668 static struct api_struct api_netdfs_cmds[] =
1670 {"DFS_GETMANAGERVERSION", NDR_DFS_GETMANAGERVERSION, api_dfs_GetManagerVersion},
1671 {"DFS_ADD", NDR_DFS_ADD, api_dfs_Add},
1672 {"DFS_REMOVE", NDR_DFS_REMOVE, api_dfs_Remove},
1673 {"DFS_SETINFO", NDR_DFS_SETINFO, api_dfs_SetInfo},
1674 {"DFS_GETINFO", NDR_DFS_GETINFO, api_dfs_GetInfo},
1675 {"DFS_ENUM", NDR_DFS_ENUM, api_dfs_Enum},
1676 {"DFS_RENAME", NDR_DFS_RENAME, api_dfs_Rename},
1677 {"DFS_MOVE", NDR_DFS_MOVE, api_dfs_Move},
1678 {"DFS_MANAGERGETCONFIGINFO", NDR_DFS_MANAGERGETCONFIGINFO, api_dfs_ManagerGetConfigInfo},
1679 {"DFS_MANAGERSENDSITEINFO", NDR_DFS_MANAGERSENDSITEINFO, api_dfs_ManagerSendSiteInfo},
1680 {"DFS_ADDFTROOT", NDR_DFS_ADDFTROOT, api_dfs_AddFtRoot},
1681 {"DFS_REMOVEFTROOT", NDR_DFS_REMOVEFTROOT, api_dfs_RemoveFtRoot},
1682 {"DFS_ADDSTDROOT", NDR_DFS_ADDSTDROOT, api_dfs_AddStdRoot},
1683 {"DFS_REMOVESTDROOT", NDR_DFS_REMOVESTDROOT, api_dfs_RemoveStdRoot},
1684 {"DFS_MANAGERINITIALIZE", NDR_DFS_MANAGERINITIALIZE, api_dfs_ManagerInitialize},
1685 {"DFS_ADDSTDROOTFORCED", NDR_DFS_ADDSTDROOTFORCED, api_dfs_AddStdRootForced},
1686 {"DFS_GETDCADDRESS", NDR_DFS_GETDCADDRESS, api_dfs_GetDcAddress},
1687 {"DFS_SETDCADDRESS", NDR_DFS_SETDCADDRESS, api_dfs_SetDcAddress},
1688 {"DFS_FLUSHFTTABLE", NDR_DFS_FLUSHFTTABLE, api_dfs_FlushFtTable},
1689 {"DFS_ADD2", NDR_DFS_ADD2, api_dfs_Add2},
1690 {"DFS_REMOVE2", NDR_DFS_REMOVE2, api_dfs_Remove2},
1691 {"DFS_ENUMEX", NDR_DFS_ENUMEX, api_dfs_EnumEx},
1692 {"DFS_SETINFO2", NDR_DFS_SETINFO2, api_dfs_SetInfo2},
1695 void netdfs_get_pipe_fns(struct api_struct **fns, int *n_fns)
1697 *fns = api_netdfs_cmds;
1698 *n_fns = sizeof(api_netdfs_cmds) / sizeof(struct api_struct);
1701 NTSTATUS rpc_netdfs_init(void)
1703 return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, "netdfs", "netdfs", api_netdfs_cmds, sizeof(api_netdfs_cmds) / sizeof(struct api_struct));