r17727: Start pulling in changes for 3.0.23c
[Samba.git] / source / rpc_parse / parse_dfs.c
blobfde3dc6e03af900428bf043ffc3ba8488cd8b2d8
1 /*
2 * Unix SMB/CIFS implementation.
3 * parser auto-generated by pidl. DO NOT MODIFY!
4 */
6 #include "includes.h"
8 #undef DBGC_CLASS
9 #define DBGC_CLASS DBGC_RPC_PARSE
11 /* netdfs structures */
12 BOOL init_netdfs_dfs_Info0(NETDFS_DFS_INFO0 *v)
14 DEBUG(5,("init_netdfs_dfs_Info0\n"));
16 return True;
19 BOOL netdfs_io_dfs_Info0_p(const char *desc, NETDFS_DFS_INFO0 *v, prs_struct *ps, int depth)
21 if (v == NULL)
22 return False;
24 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info0_p");
25 depth++;
26 return True;
29 BOOL netdfs_io_dfs_Info0_d(const char *desc, NETDFS_DFS_INFO0 *v, prs_struct *ps, int depth)
31 if (v == NULL)
32 return False;
34 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info0_d");
35 depth++;
36 return True;
39 BOOL init_netdfs_dfs_Info1(NETDFS_DFS_INFO1 *v, const char *path)
41 DEBUG(5,("init_netdfs_dfs_Info1\n"));
43 if (path) {
44 v->ptr0_path = 1;
45 init_unistr2(&v->path, path, UNI_FLAGS_NONE);
46 } else {
47 v->ptr0_path = 0;
50 return True;
53 BOOL netdfs_io_dfs_Info1_p(const char *desc, NETDFS_DFS_INFO1 *v, prs_struct *ps, int depth)
55 if (v == NULL)
56 return False;
58 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info1_p");
59 depth++;
60 if (!prs_uint32("ptr0_path", ps, depth, &v->ptr0_path))
61 return False;
64 return True;
67 BOOL netdfs_io_dfs_Info1_d(const char *desc, NETDFS_DFS_INFO1 *v, prs_struct *ps, int depth)
69 if (v == NULL)
70 return False;
72 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info1_d");
73 depth++;
74 if (v->ptr0_path) {
75 if (!prs_align_custom(ps, 4))
76 return False;
78 if (!smb_io_unistr2("path", &v->path, 1, ps, depth))
79 return False;
82 return True;
85 BOOL init_netdfs_dfs_Info2(NETDFS_DFS_INFO2 *v, const char *path, const char *comment, uint32 state, uint32 num_stores)
87 DEBUG(5,("init_netdfs_dfs_Info2\n"));
89 if (path) {
90 v->ptr0_path = 1;
91 init_unistr2(&v->path, path, UNI_FLAGS_NONE);
92 } else {
93 v->ptr0_path = 0;
96 if (comment) {
97 v->ptr0_comment = 1;
98 init_unistr2(&v->comment, comment, UNI_FLAGS_NONE);
99 } else {
100 v->ptr0_comment = 0;
103 v->state = state;
105 v->num_stores = num_stores;
107 return True;
110 BOOL netdfs_io_dfs_Info2_p(const char *desc, NETDFS_DFS_INFO2 *v, prs_struct *ps, int depth)
112 if (v == NULL)
113 return False;
115 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info2_p");
116 depth++;
117 if (!prs_uint32("ptr0_path", ps, depth, &v->ptr0_path))
118 return False;
121 if (!prs_uint32("ptr0_comment", ps, depth, &v->ptr0_comment))
122 return False;
125 if (!prs_uint32("state", ps, depth, &v->state))
126 return False;
128 if (!prs_uint32("num_stores", ps, depth, &v->num_stores))
129 return False;
131 return True;
134 BOOL netdfs_io_dfs_Info2_d(const char *desc, NETDFS_DFS_INFO2 *v, prs_struct *ps, int depth)
136 if (v == NULL)
137 return False;
139 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info2_d");
140 depth++;
141 if (v->ptr0_path) {
142 if (!prs_align_custom(ps, 4))
143 return False;
145 if (!smb_io_unistr2("path", &v->path, 1, ps, depth))
146 return False;
149 if (v->ptr0_comment) {
150 if (!prs_align_custom(ps, 4))
151 return False;
153 if (!smb_io_unistr2("comment", &v->comment, 1, ps, depth))
154 return False;
159 return True;
162 BOOL init_netdfs_dfs_StorageInfo(NETDFS_DFS_STORAGEINFO *v, uint32 state, const char *server, const char *share)
164 DEBUG(5,("init_netdfs_dfs_StorageInfo\n"));
166 v->state = state;
168 if (server) {
169 v->ptr0_server = 1;
170 init_unistr2(&v->server, server, UNI_FLAGS_NONE);
171 } else {
172 v->ptr0_server = 0;
175 if (share) {
176 v->ptr0_share = 1;
177 init_unistr2(&v->share, share, UNI_FLAGS_NONE);
178 } else {
179 v->ptr0_share = 0;
182 return True;
185 BOOL netdfs_io_dfs_StorageInfo_p(const char *desc, NETDFS_DFS_STORAGEINFO *v, prs_struct *ps, int depth)
187 if (v == NULL)
188 return False;
190 prs_debug(ps, depth, desc, "netdfs_io_dfs_StorageInfo_p");
191 depth++;
192 if (!prs_uint32("state", ps, depth, &v->state))
193 return False;
195 if (!prs_uint32("ptr0_server", ps, depth, &v->ptr0_server))
196 return False;
199 if (!prs_uint32("ptr0_share", ps, depth, &v->ptr0_share))
200 return False;
203 return True;
206 BOOL netdfs_io_dfs_StorageInfo_d(const char *desc, NETDFS_DFS_STORAGEINFO *v, prs_struct *ps, int depth)
208 if (v == NULL)
209 return False;
211 prs_debug(ps, depth, desc, "netdfs_io_dfs_StorageInfo_d");
212 depth++;
214 if (v->ptr0_server) {
215 if (!prs_align_custom(ps, 4))
216 return False;
218 if (!smb_io_unistr2("server", &v->server, 1, ps, depth))
219 return False;
222 if (v->ptr0_share) {
223 if (!prs_align_custom(ps, 4))
224 return False;
226 if (!smb_io_unistr2("share", &v->share, 1, ps, depth))
227 return False;
230 return True;
233 BOOL init_netdfs_dfs_Info3(NETDFS_DFS_INFO3 *v, const char *path, const char *comment, uint32 state, uint32 num_stores, NETDFS_DFS_STORAGEINFO **stores)
235 DEBUG(5,("init_netdfs_dfs_Info3\n"));
237 if (path) {
238 v->ptr0_path = 1;
239 init_unistr2(&v->path, path, UNI_FLAGS_NONE);
240 } else {
241 v->ptr0_path = 0;
244 if (comment) {
245 v->ptr0_comment = 1;
246 init_unistr2(&v->comment, comment, UNI_FLAGS_NONE);
247 } else {
248 v->ptr0_comment = 0;
251 v->state = state;
253 v->num_stores = num_stores;
255 if (stores) {
256 v->ptr0_stores = 1;
257 v->stores = *stores;
258 } else {
259 v->ptr0_stores = 0;
262 return True;
265 BOOL netdfs_io_dfs_Info3_p(const char *desc, NETDFS_DFS_INFO3 *v, prs_struct *ps, int depth)
267 if (v == NULL)
268 return False;
270 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info3_p");
271 depth++;
272 if (!prs_uint32("ptr0_path", ps, depth, &v->ptr0_path))
273 return False;
276 if (!prs_uint32("ptr0_comment", ps, depth, &v->ptr0_comment))
277 return False;
280 if (!prs_uint32("state", ps, depth, &v->state))
281 return False;
283 if (!prs_uint32("num_stores", ps, depth, &v->num_stores))
284 return False;
286 if (!prs_uint32("ptr0_stores", ps, depth, &v->ptr0_stores))
287 return False;
290 return True;
293 BOOL netdfs_io_dfs_Info3_d(const char *desc, NETDFS_DFS_INFO3 *v, prs_struct *ps, int depth)
295 uint32 i_stores_1;
297 if (v == NULL)
298 return False;
300 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info3_d");
301 depth++;
302 if (v->ptr0_path) {
303 if (!prs_align_custom(ps, 4))
304 return False;
306 if (!smb_io_unistr2("path", &v->path, 1, ps, depth))
307 return False;
310 if (v->ptr0_comment) {
311 if (!prs_align_custom(ps, 4))
312 return False;
314 if (!smb_io_unistr2("comment", &v->comment, 1, ps, depth))
315 return False;
320 if (v->ptr0_stores) {
321 if (!prs_align_custom(ps, 4))
322 return False;
324 if (!prs_uint32("size_stores", ps, depth, &v->size_stores))
325 return False;
327 if (UNMARSHALLING(ps)) {
328 v->stores = (void *)PRS_ALLOC_MEM_VOID(ps,sizeof(*v->stores)*v->num_stores);
330 for (i_stores_1=0; i_stores_1<v->num_stores;i_stores_1++) {
331 if (!netdfs_io_dfs_StorageInfo_p("stores", &v->stores[i_stores_1], ps, depth))
332 return False;
334 for (i_stores_1=0; i_stores_1<v->num_stores;i_stores_1++) {
335 if (!netdfs_io_dfs_StorageInfo_d("stores", &v->stores[i_stores_1], ps, depth))
336 return False;
340 return True;
343 BOOL init_netdfs_dfs_Info4(NETDFS_DFS_INFO4 *v, const char *path, const char *comment, uint32 state, uint32 timeout, struct uuid guid, uint32 num_stores, NETDFS_DFS_STORAGEINFO **stores)
345 DEBUG(5,("init_netdfs_dfs_Info4\n"));
347 if (path) {
348 v->ptr0_path = 1;
349 init_unistr2(&v->path, path, UNI_FLAGS_NONE);
350 } else {
351 v->ptr0_path = 0;
354 if (comment) {
355 v->ptr0_comment = 1;
356 init_unistr2(&v->comment, comment, UNI_FLAGS_NONE);
357 } else {
358 v->ptr0_comment = 0;
361 v->state = state;
363 v->timeout = timeout;
367 v->num_stores = num_stores;
369 if (stores) {
370 v->ptr0_stores = 1;
371 v->stores = *stores;
372 } else {
373 v->ptr0_stores = 0;
376 return True;
379 BOOL netdfs_io_dfs_Info4_p(const char *desc, NETDFS_DFS_INFO4 *v, prs_struct *ps, int depth)
381 if (v == NULL)
382 return False;
384 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info4_p");
385 depth++;
386 if (!prs_uint32("ptr0_path", ps, depth, &v->ptr0_path))
387 return False;
390 if (!prs_uint32("ptr0_comment", ps, depth, &v->ptr0_comment))
391 return False;
394 if (!prs_uint32("state", ps, depth, &v->state))
395 return False;
397 if (!prs_uint32("timeout", ps, depth, &v->timeout))
398 return False;
400 if (!smb_io_uuid("guid", &v->guid, ps, depth))
401 return False;
403 if (!prs_uint32("num_stores", ps, depth, &v->num_stores))
404 return False;
406 if (!prs_uint32("ptr0_stores", ps, depth, &v->ptr0_stores))
407 return False;
410 return True;
413 BOOL netdfs_io_dfs_Info4_d(const char *desc, NETDFS_DFS_INFO4 *v, prs_struct *ps, int depth)
415 uint32 i_stores_1;
417 if (v == NULL)
418 return False;
420 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info4_d");
421 depth++;
422 if (v->ptr0_path) {
423 if (!prs_align_custom(ps, 4))
424 return False;
426 if (!smb_io_unistr2("path", &v->path, 1, ps, depth))
427 return False;
430 if (v->ptr0_comment) {
431 if (!prs_align_custom(ps, 4))
432 return False;
434 if (!smb_io_unistr2("comment", &v->comment, 1, ps, depth))
435 return False;
442 if (v->ptr0_stores) {
443 if (!prs_align_custom(ps, 4))
444 return False;
446 if (!prs_uint32("size_stores", ps, depth, &v->size_stores))
447 return False;
449 if (UNMARSHALLING(ps)) {
450 v->stores = (void *)PRS_ALLOC_MEM_VOID(ps,sizeof(*v->stores)*v->num_stores);
452 for (i_stores_1=0; i_stores_1<v->num_stores;i_stores_1++) {
453 if (!netdfs_io_dfs_StorageInfo_p("stores", &v->stores[i_stores_1], ps, depth))
454 return False;
456 for (i_stores_1=0; i_stores_1<v->num_stores;i_stores_1++) {
457 if (!netdfs_io_dfs_StorageInfo_d("stores", &v->stores[i_stores_1], ps, depth))
458 return False;
462 return True;
465 BOOL init_netdfs_dfs_Info100(NETDFS_DFS_INFO100 *v, const char *comment)
467 DEBUG(5,("init_netdfs_dfs_Info100\n"));
469 if (comment) {
470 v->ptr0_comment = 1;
471 init_unistr2(&v->comment, comment, UNI_FLAGS_NONE);
472 } else {
473 v->ptr0_comment = 0;
476 return True;
479 BOOL netdfs_io_dfs_Info100_p(const char *desc, NETDFS_DFS_INFO100 *v, prs_struct *ps, int depth)
481 if (v == NULL)
482 return False;
484 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info100_p");
485 depth++;
486 if (!prs_uint32("ptr0_comment", ps, depth, &v->ptr0_comment))
487 return False;
490 return True;
493 BOOL netdfs_io_dfs_Info100_d(const char *desc, NETDFS_DFS_INFO100 *v, prs_struct *ps, int depth)
495 if (v == NULL)
496 return False;
498 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info100_d");
499 depth++;
500 if (v->ptr0_comment) {
501 if (!prs_align_custom(ps, 4))
502 return False;
504 if (!smb_io_unistr2("comment", &v->comment, 1, ps, depth))
505 return False;
508 return True;
511 BOOL init_netdfs_dfs_Info101(NETDFS_DFS_INFO101 *v, uint32 state)
513 DEBUG(5,("init_netdfs_dfs_Info101\n"));
515 v->state = state;
517 return True;
520 BOOL netdfs_io_dfs_Info101_p(const char *desc, NETDFS_DFS_INFO101 *v, prs_struct *ps, int depth)
522 if (v == NULL)
523 return False;
525 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info101_p");
526 depth++;
527 if (!prs_uint32("state", ps, depth, &v->state))
528 return False;
530 return True;
533 BOOL netdfs_io_dfs_Info101_d(const char *desc, NETDFS_DFS_INFO101 *v, prs_struct *ps, int depth)
535 if (v == NULL)
536 return False;
538 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info101_d");
539 depth++;
541 return True;
544 BOOL init_netdfs_dfs_Info102(NETDFS_DFS_INFO102 *v, uint32 timeout)
546 DEBUG(5,("init_netdfs_dfs_Info102\n"));
548 v->timeout = timeout;
550 return True;
553 BOOL netdfs_io_dfs_Info102_p(const char *desc, NETDFS_DFS_INFO102 *v, prs_struct *ps, int depth)
555 if (v == NULL)
556 return False;
558 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info102_p");
559 depth++;
560 if (!prs_uint32("timeout", ps, depth, &v->timeout))
561 return False;
563 return True;
566 BOOL netdfs_io_dfs_Info102_d(const char *desc, NETDFS_DFS_INFO102 *v, prs_struct *ps, int depth)
568 if (v == NULL)
569 return False;
571 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info102_d");
572 depth++;
574 return True;
577 BOOL init_netdfs_dfs_Info200(NETDFS_DFS_INFO200 *v, const char *dom_root)
579 DEBUG(5,("init_netdfs_dfs_Info200\n"));
581 if (dom_root) {
582 v->ptr0_dom_root = 1;
583 init_unistr2(&v->dom_root, dom_root, UNI_FLAGS_NONE);
584 } else {
585 v->ptr0_dom_root = 0;
588 return True;
591 BOOL netdfs_io_dfs_Info200_p(const char *desc, NETDFS_DFS_INFO200 *v, prs_struct *ps, int depth)
593 if (v == NULL)
594 return False;
596 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info200_p");
597 depth++;
598 if (!prs_uint32("ptr0_dom_root", ps, depth, &v->ptr0_dom_root))
599 return False;
602 return True;
605 BOOL netdfs_io_dfs_Info200_d(const char *desc, NETDFS_DFS_INFO200 *v, prs_struct *ps, int depth)
607 if (v == NULL)
608 return False;
610 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info200_d");
611 depth++;
612 if (v->ptr0_dom_root) {
613 if (!prs_align_custom(ps, 4))
614 return False;
616 if (!smb_io_unistr2("dom_root", &v->dom_root, 1, ps, depth))
617 return False;
620 return True;
623 BOOL init_netdfs_dfs_Info300(NETDFS_DFS_INFO300 *v, uint32 flags, const char *dom_root)
625 DEBUG(5,("init_netdfs_dfs_Info300\n"));
627 v->flags = flags;
629 if (dom_root) {
630 v->ptr0_dom_root = 1;
631 init_unistr2(&v->dom_root, dom_root, UNI_FLAGS_NONE);
632 } else {
633 v->ptr0_dom_root = 0;
636 return True;
639 BOOL netdfs_io_dfs_Info300_p(const char *desc, NETDFS_DFS_INFO300 *v, prs_struct *ps, int depth)
641 if (v == NULL)
642 return False;
644 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info300_p");
645 depth++;
646 if (!prs_uint32("flags", ps, depth, &v->flags))
647 return False;
649 if (!prs_uint32("ptr0_dom_root", ps, depth, &v->ptr0_dom_root))
650 return False;
653 return True;
656 BOOL netdfs_io_dfs_Info300_d(const char *desc, NETDFS_DFS_INFO300 *v, prs_struct *ps, int depth)
658 if (v == NULL)
659 return False;
661 prs_debug(ps, depth, desc, "netdfs_io_dfs_Info300_d");
662 depth++;
664 if (v->ptr0_dom_root) {
665 if (!prs_align_custom(ps, 4))
666 return False;
668 if (!smb_io_unistr2("dom_root", &v->dom_root, 1, ps, depth))
669 return False;
672 return True;
675 BOOL netdfs_io_dfs_Info_p(const char *desc, NETDFS_DFS_INFO_CTR* v, prs_struct *ps, int depth)
677 if (!prs_uint32("switch_value", ps, depth, &v->switch_value))
678 return False;
680 switch (v->switch_value) {
681 case 0:
682 depth++;
683 if (!prs_uint32("ptr0_info0", ps, depth, &v->ptr0))
684 return False;
686 depth--;
687 break;
689 case 1:
690 depth++;
691 if (!prs_uint32("ptr0_info1", ps, depth, &v->ptr0))
692 return False;
694 depth--;
695 break;
697 case 2:
698 depth++;
699 if (!prs_uint32("ptr0_info2", ps, depth, &v->ptr0))
700 return False;
702 depth--;
703 break;
705 case 3:
706 depth++;
707 if (!prs_uint32("ptr0_info3", ps, depth, &v->ptr0))
708 return False;
710 depth--;
711 break;
713 case 4:
714 depth++;
715 if (!prs_uint32("ptr0_info4", ps, depth, &v->ptr0))
716 return False;
718 depth--;
719 break;
721 case 100:
722 depth++;
723 if (!prs_uint32("ptr0_info100", ps, depth, &v->ptr0))
724 return False;
726 depth--;
727 break;
729 case 101:
730 depth++;
731 if (!prs_uint32("ptr0_info101", ps, depth, &v->ptr0))
732 return False;
734 depth--;
735 break;
737 case 102:
738 depth++;
739 if (!prs_uint32("ptr0_info102", ps, depth, &v->ptr0))
740 return False;
742 depth--;
743 break;
745 default:
746 return False;
750 return True;
753 BOOL netdfs_io_dfs_Info_d(const char *desc, NETDFS_DFS_INFO_CTR* v, prs_struct *ps, int depth)
755 switch (v->switch_value) {
756 case 0:
757 depth++;
758 if (v->ptr0) {
759 if (!prs_align_custom(ps, 1))
760 return False;
762 if (!netdfs_io_dfs_Info0_p("info0", &v->u.info0, ps, depth))
763 return False;
764 if (!netdfs_io_dfs_Info0_d("info0", &v->u.info0, ps, depth))
765 return False;
767 depth--;
768 break;
770 case 1:
771 depth++;
772 if (v->ptr0) {
773 if (!prs_align_custom(ps, 4))
774 return False;
776 if (!netdfs_io_dfs_Info1_p("info1", &v->u.info1, ps, depth))
777 return False;
778 if (!netdfs_io_dfs_Info1_d("info1", &v->u.info1, ps, depth))
779 return False;
781 depth--;
782 break;
784 case 2:
785 depth++;
786 if (v->ptr0) {
787 if (!prs_align_custom(ps, 4))
788 return False;
790 if (!netdfs_io_dfs_Info2_p("info2", &v->u.info2, ps, depth))
791 return False;
792 if (!netdfs_io_dfs_Info2_d("info2", &v->u.info2, ps, depth))
793 return False;
795 depth--;
796 break;
798 case 3:
799 depth++;
800 if (v->ptr0) {
801 if (!prs_align_custom(ps, 4))
802 return False;
804 if (!netdfs_io_dfs_Info3_p("info3", &v->u.info3, ps, depth))
805 return False;
806 if (!netdfs_io_dfs_Info3_d("info3", &v->u.info3, ps, depth))
807 return False;
809 depth--;
810 break;
812 case 4:
813 depth++;
814 if (v->ptr0) {
815 if (!prs_align_custom(ps, 4))
816 return False;
818 if (!netdfs_io_dfs_Info4_p("info4", &v->u.info4, ps, depth))
819 return False;
820 if (!netdfs_io_dfs_Info4_d("info4", &v->u.info4, ps, depth))
821 return False;
823 depth--;
824 break;
826 case 100:
827 depth++;
828 if (v->ptr0) {
829 if (!prs_align_custom(ps, 4))
830 return False;
832 if (!netdfs_io_dfs_Info100_p("info100", &v->u.info100, ps, depth))
833 return False;
834 if (!netdfs_io_dfs_Info100_d("info100", &v->u.info100, ps, depth))
835 return False;
837 depth--;
838 break;
840 case 101:
841 depth++;
842 if (v->ptr0) {
843 if (!prs_align_custom(ps, 4))
844 return False;
846 if (!netdfs_io_dfs_Info101_p("info101", &v->u.info101, ps, depth))
847 return False;
848 if (!netdfs_io_dfs_Info101_d("info101", &v->u.info101, ps, depth))
849 return False;
851 depth--;
852 break;
854 case 102:
855 depth++;
856 if (v->ptr0) {
857 if (!prs_align_custom(ps, 4))
858 return False;
860 if (!netdfs_io_dfs_Info102_p("info102", &v->u.info102, ps, depth))
861 return False;
862 if (!netdfs_io_dfs_Info102_d("info102", &v->u.info102, ps, depth))
863 return False;
865 depth--;
866 break;
870 return True;
872 BOOL init_netdfs_dfs_EnumArray1(NETDFS_DFS_ENUMARRAY1 *v, uint32 count, NETDFS_DFS_INFO1 **s)
874 DEBUG(5,("init_netdfs_dfs_EnumArray1\n"));
876 v->count = count;
878 if (s) {
879 v->ptr0_s = 1;
880 v->s = *s;
881 } else {
882 v->ptr0_s = 0;
885 return True;
888 BOOL netdfs_io_dfs_EnumArray1_p(const char *desc, NETDFS_DFS_ENUMARRAY1 *v, prs_struct *ps, int depth)
890 if (v == NULL)
891 return False;
893 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray1_p");
894 depth++;
895 if (!prs_uint32("count", ps, depth, &v->count))
896 return False;
898 if (!prs_uint32("ptr0_s", ps, depth, &v->ptr0_s))
899 return False;
902 return True;
905 BOOL netdfs_io_dfs_EnumArray1_d(const char *desc, NETDFS_DFS_ENUMARRAY1 *v, prs_struct *ps, int depth)
907 uint32 i_s_1;
909 if (v == NULL)
910 return False;
912 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray1_d");
913 depth++;
915 if (v->ptr0_s) {
916 if (!prs_align_custom(ps, 4))
917 return False;
919 if (!prs_uint32("size_s", ps, depth, &v->size_s))
920 return False;
922 if (UNMARSHALLING(ps)) {
923 v->s = (void *)PRS_ALLOC_MEM_VOID(ps,sizeof(*v->s)*v->count);
925 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
926 if (!netdfs_io_dfs_Info1_p("s", &v->s[i_s_1], ps, depth))
927 return False;
929 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
930 if (!netdfs_io_dfs_Info1_d("s", &v->s[i_s_1], ps, depth))
931 return False;
935 return True;
938 BOOL init_netdfs_dfs_EnumArray2(NETDFS_DFS_ENUMARRAY2 *v, uint32 count, NETDFS_DFS_INFO2 **s)
940 DEBUG(5,("init_netdfs_dfs_EnumArray2\n"));
942 v->count = count;
944 if (s) {
945 v->ptr0_s = 1;
946 v->s = *s;
947 } else {
948 v->ptr0_s = 0;
951 return True;
954 BOOL netdfs_io_dfs_EnumArray2_p(const char *desc, NETDFS_DFS_ENUMARRAY2 *v, prs_struct *ps, int depth)
956 if (v == NULL)
957 return False;
959 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray2_p");
960 depth++;
961 if (!prs_uint32("count", ps, depth, &v->count))
962 return False;
964 if (!prs_uint32("ptr0_s", ps, depth, &v->ptr0_s))
965 return False;
968 return True;
971 BOOL netdfs_io_dfs_EnumArray2_d(const char *desc, NETDFS_DFS_ENUMARRAY2 *v, prs_struct *ps, int depth)
973 uint32 i_s_1;
975 if (v == NULL)
976 return False;
978 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray2_d");
979 depth++;
981 if (v->ptr0_s) {
982 if (!prs_align_custom(ps, 4))
983 return False;
985 if (!prs_uint32("size_s", ps, depth, &v->size_s))
986 return False;
988 if (UNMARSHALLING(ps)) {
989 v->s = (void *)PRS_ALLOC_MEM_VOID(ps,sizeof(*v->s)*v->count);
991 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
992 if (!netdfs_io_dfs_Info2_p("s", &v->s[i_s_1], ps, depth))
993 return False;
995 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
996 if (!netdfs_io_dfs_Info2_d("s", &v->s[i_s_1], ps, depth))
997 return False;
1001 return True;
1004 BOOL init_netdfs_dfs_EnumArray3(NETDFS_DFS_ENUMARRAY3 *v, uint32 count, NETDFS_DFS_INFO3 **s)
1006 DEBUG(5,("init_netdfs_dfs_EnumArray3\n"));
1008 v->count = count;
1010 if (s) {
1011 v->ptr0_s = 1;
1012 v->s = *s;
1013 } else {
1014 v->ptr0_s = 0;
1017 return True;
1020 BOOL netdfs_io_dfs_EnumArray3_p(const char *desc, NETDFS_DFS_ENUMARRAY3 *v, prs_struct *ps, int depth)
1022 if (v == NULL)
1023 return False;
1025 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray3_p");
1026 depth++;
1027 if (!prs_uint32("count", ps, depth, &v->count))
1028 return False;
1030 if (!prs_uint32("ptr0_s", ps, depth, &v->ptr0_s))
1031 return False;
1034 return True;
1037 BOOL netdfs_io_dfs_EnumArray3_d(const char *desc, NETDFS_DFS_ENUMARRAY3 *v, prs_struct *ps, int depth)
1039 uint32 i_s_1;
1041 if (v == NULL)
1042 return False;
1044 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray3_d");
1045 depth++;
1047 if (v->ptr0_s) {
1048 if (!prs_align_custom(ps, 4))
1049 return False;
1051 if (!prs_uint32("size_s", ps, depth, &v->size_s))
1052 return False;
1054 if (UNMARSHALLING(ps)) {
1055 v->s = (void *)PRS_ALLOC_MEM_VOID(ps,sizeof(*v->s)*v->count);
1057 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
1058 if (!netdfs_io_dfs_Info3_p("s", &v->s[i_s_1], ps, depth))
1059 return False;
1061 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
1062 if (!netdfs_io_dfs_Info3_d("s", &v->s[i_s_1], ps, depth))
1063 return False;
1067 return True;
1070 BOOL init_netdfs_dfs_EnumArray4(NETDFS_DFS_ENUMARRAY4 *v, uint32 count, NETDFS_DFS_INFO4 **s)
1072 DEBUG(5,("init_netdfs_dfs_EnumArray4\n"));
1074 v->count = count;
1076 if (s) {
1077 v->ptr0_s = 1;
1078 v->s = *s;
1079 } else {
1080 v->ptr0_s = 0;
1083 return True;
1086 BOOL netdfs_io_dfs_EnumArray4_p(const char *desc, NETDFS_DFS_ENUMARRAY4 *v, prs_struct *ps, int depth)
1088 if (v == NULL)
1089 return False;
1091 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray4_p");
1092 depth++;
1093 if (!prs_uint32("count", ps, depth, &v->count))
1094 return False;
1096 if (!prs_uint32("ptr0_s", ps, depth, &v->ptr0_s))
1097 return False;
1100 return True;
1103 BOOL netdfs_io_dfs_EnumArray4_d(const char *desc, NETDFS_DFS_ENUMARRAY4 *v, prs_struct *ps, int depth)
1105 uint32 i_s_1;
1107 if (v == NULL)
1108 return False;
1110 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray4_d");
1111 depth++;
1113 if (v->ptr0_s) {
1114 if (!prs_align_custom(ps, 4))
1115 return False;
1117 if (!prs_uint32("size_s", ps, depth, &v->size_s))
1118 return False;
1120 if (UNMARSHALLING(ps)) {
1121 v->s = (void *)PRS_ALLOC_MEM_VOID(ps,sizeof(*v->s)*v->count);
1123 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
1124 if (!netdfs_io_dfs_Info4_p("s", &v->s[i_s_1], ps, depth))
1125 return False;
1127 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
1128 if (!netdfs_io_dfs_Info4_d("s", &v->s[i_s_1], ps, depth))
1129 return False;
1133 return True;
1136 BOOL init_netdfs_dfs_EnumArray200(NETDFS_DFS_ENUMARRAY200 *v, uint32 count, NETDFS_DFS_INFO200 **s)
1138 DEBUG(5,("init_netdfs_dfs_EnumArray200\n"));
1140 v->count = count;
1142 if (s) {
1143 v->ptr0_s = 1;
1144 v->s = *s;
1145 } else {
1146 v->ptr0_s = 0;
1149 return True;
1152 BOOL netdfs_io_dfs_EnumArray200_p(const char *desc, NETDFS_DFS_ENUMARRAY200 *v, prs_struct *ps, int depth)
1154 if (v == NULL)
1155 return False;
1157 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray200_p");
1158 depth++;
1159 if (!prs_uint32("count", ps, depth, &v->count))
1160 return False;
1162 if (!prs_uint32("ptr0_s", ps, depth, &v->ptr0_s))
1163 return False;
1166 return True;
1169 BOOL netdfs_io_dfs_EnumArray200_d(const char *desc, NETDFS_DFS_ENUMARRAY200 *v, prs_struct *ps, int depth)
1171 uint32 i_s_1;
1173 if (v == NULL)
1174 return False;
1176 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray200_d");
1177 depth++;
1179 if (v->ptr0_s) {
1180 if (!prs_align_custom(ps, 4))
1181 return False;
1183 if (!prs_uint32("size_s", ps, depth, &v->size_s))
1184 return False;
1186 if (UNMARSHALLING(ps)) {
1187 v->s = (void *)PRS_ALLOC_MEM_VOID(ps,sizeof(*v->s)*v->count);
1189 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
1190 if (!netdfs_io_dfs_Info200_p("s", &v->s[i_s_1], ps, depth))
1191 return False;
1193 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
1194 if (!netdfs_io_dfs_Info200_d("s", &v->s[i_s_1], ps, depth))
1195 return False;
1199 return True;
1202 BOOL init_netdfs_dfs_EnumArray300(NETDFS_DFS_ENUMARRAY300 *v, uint32 count, NETDFS_DFS_INFO300 **s)
1204 DEBUG(5,("init_netdfs_dfs_EnumArray300\n"));
1206 v->count = count;
1208 if (s) {
1209 v->ptr0_s = 1;
1210 v->s = *s;
1211 } else {
1212 v->ptr0_s = 0;
1215 return True;
1218 BOOL netdfs_io_dfs_EnumArray300_p(const char *desc, NETDFS_DFS_ENUMARRAY300 *v, prs_struct *ps, int depth)
1220 if (v == NULL)
1221 return False;
1223 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray300_p");
1224 depth++;
1225 if (!prs_uint32("count", ps, depth, &v->count))
1226 return False;
1228 if (!prs_uint32("ptr0_s", ps, depth, &v->ptr0_s))
1229 return False;
1232 return True;
1235 BOOL netdfs_io_dfs_EnumArray300_d(const char *desc, NETDFS_DFS_ENUMARRAY300 *v, prs_struct *ps, int depth)
1237 uint32 i_s_1;
1239 if (v == NULL)
1240 return False;
1242 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumArray300_d");
1243 depth++;
1245 if (v->ptr0_s) {
1246 if (!prs_align_custom(ps, 4))
1247 return False;
1249 if (!prs_uint32("size_s", ps, depth, &v->size_s))
1250 return False;
1252 if (UNMARSHALLING(ps)) {
1253 v->s = (void *)PRS_ALLOC_MEM_VOID(ps,sizeof(*v->s)*v->count);
1255 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
1256 if (!netdfs_io_dfs_Info300_p("s", &v->s[i_s_1], ps, depth))
1257 return False;
1259 for (i_s_1=0; i_s_1<v->count;i_s_1++) {
1260 if (!netdfs_io_dfs_Info300_d("s", &v->s[i_s_1], ps, depth))
1261 return False;
1265 return True;
1268 BOOL netdfs_io_dfs_EnumInfo_p(const char *desc, NETDFS_DFS_ENUMINFO_CTR* v, prs_struct *ps, int depth)
1270 if (!prs_uint32("switch_value", ps, depth, &v->switch_value))
1271 return False;
1273 switch (v->switch_value) {
1274 case 1:
1275 depth++;
1276 if (!prs_uint32("ptr0_info1", ps, depth, &v->ptr0))
1277 return False;
1279 depth--;
1280 break;
1282 case 2:
1283 depth++;
1284 if (!prs_uint32("ptr0_info2", ps, depth, &v->ptr0))
1285 return False;
1287 depth--;
1288 break;
1290 case 3:
1291 depth++;
1292 if (!prs_uint32("ptr0_info3", ps, depth, &v->ptr0))
1293 return False;
1295 depth--;
1296 break;
1298 case 4:
1299 depth++;
1300 if (!prs_uint32("ptr0_info4", ps, depth, &v->ptr0))
1301 return False;
1303 depth--;
1304 break;
1306 case 200:
1307 depth++;
1308 if (!prs_uint32("ptr0_info200", ps, depth, &v->ptr0))
1309 return False;
1311 depth--;
1312 break;
1314 case 300:
1315 depth++;
1316 if (!prs_uint32("ptr0_info300", ps, depth, &v->ptr0))
1317 return False;
1319 depth--;
1320 break;
1322 default:
1323 return False;
1327 return True;
1330 BOOL netdfs_io_dfs_EnumInfo_d(const char *desc, NETDFS_DFS_ENUMINFO_CTR* v, prs_struct *ps, int depth)
1332 switch (v->switch_value) {
1333 case 1:
1334 depth++;
1335 if (v->ptr0) {
1336 if (!prs_align_custom(ps, 4))
1337 return False;
1339 if (!netdfs_io_dfs_EnumArray1_p("info1", &v->u.info1, ps, depth))
1340 return False;
1341 if (!netdfs_io_dfs_EnumArray1_d("info1", &v->u.info1, ps, depth))
1342 return False;
1344 depth--;
1345 break;
1347 case 2:
1348 depth++;
1349 if (v->ptr0) {
1350 if (!prs_align_custom(ps, 4))
1351 return False;
1353 if (!netdfs_io_dfs_EnumArray2_p("info2", &v->u.info2, ps, depth))
1354 return False;
1355 if (!netdfs_io_dfs_EnumArray2_d("info2", &v->u.info2, ps, depth))
1356 return False;
1358 depth--;
1359 break;
1361 case 3:
1362 depth++;
1363 if (v->ptr0) {
1364 if (!prs_align_custom(ps, 4))
1365 return False;
1367 if (!netdfs_io_dfs_EnumArray3_p("info3", &v->u.info3, ps, depth))
1368 return False;
1369 if (!netdfs_io_dfs_EnumArray3_d("info3", &v->u.info3, ps, depth))
1370 return False;
1372 depth--;
1373 break;
1375 case 4:
1376 depth++;
1377 if (v->ptr0) {
1378 if (!prs_align_custom(ps, 4))
1379 return False;
1381 if (!netdfs_io_dfs_EnumArray4_p("info4", &v->u.info4, ps, depth))
1382 return False;
1383 if (!netdfs_io_dfs_EnumArray4_d("info4", &v->u.info4, ps, depth))
1384 return False;
1386 depth--;
1387 break;
1389 case 200:
1390 depth++;
1391 if (v->ptr0) {
1392 if (!prs_align_custom(ps, 4))
1393 return False;
1395 if (!netdfs_io_dfs_EnumArray200_p("info200", &v->u.info200, ps, depth))
1396 return False;
1397 if (!netdfs_io_dfs_EnumArray200_d("info200", &v->u.info200, ps, depth))
1398 return False;
1400 depth--;
1401 break;
1403 case 300:
1404 depth++;
1405 if (v->ptr0) {
1406 if (!prs_align_custom(ps, 4))
1407 return False;
1409 if (!netdfs_io_dfs_EnumArray300_p("info300", &v->u.info300, ps, depth))
1410 return False;
1411 if (!netdfs_io_dfs_EnumArray300_d("info300", &v->u.info300, ps, depth))
1412 return False;
1414 depth--;
1415 break;
1419 return True;
1421 BOOL init_netdfs_dfs_EnumStruct(NETDFS_DFS_ENUMSTRUCT *v, uint32 level, NETDFS_DFS_ENUMINFO_CTR e)
1423 DEBUG(5,("init_netdfs_dfs_EnumStruct\n"));
1425 v->level = level;
1427 v->e = e;
1428 v->e.switch_value = v->level;
1430 return True;
1433 BOOL netdfs_io_dfs_EnumStruct_p(const char *desc, NETDFS_DFS_ENUMSTRUCT *v, prs_struct *ps, int depth)
1435 if (v == NULL)
1436 return False;
1438 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumStruct_p");
1439 depth++;
1440 if (!prs_uint32("level", ps, depth, &v->level))
1441 return False;
1443 if (!netdfs_io_dfs_EnumInfo_p("e", &v->e, ps, depth))
1444 return False;
1446 return True;
1449 BOOL netdfs_io_dfs_EnumStruct_d(const char *desc, NETDFS_DFS_ENUMSTRUCT *v, prs_struct *ps, int depth)
1451 if (v == NULL)
1452 return False;
1454 prs_debug(ps, depth, desc, "netdfs_io_dfs_EnumStruct_d");
1455 depth++;
1457 if (!prs_align_custom(ps, 4))
1458 return False;
1460 if (!netdfs_io_dfs_EnumInfo_d("e", &v->e, ps, depth))
1461 return False;
1463 return True;
1466 /* netdfs functions */
1467 BOOL init_netdfs_q_dfs_GetManagerVersion(NETDFS_Q_DFS_GETMANAGERVERSION *v)
1469 DEBUG(5,("init_netdfs_q_dfs_GetManagerVersion\n"));
1471 return True;
1474 BOOL netdfs_io_q_dfs_GetManagerVersion(const char *desc, NETDFS_Q_DFS_GETMANAGERVERSION *v, prs_struct *ps, int depth)
1476 if (v == NULL)
1477 return False;
1479 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_GetManagerVersion");
1480 depth++;
1481 return True;
1484 BOOL init_netdfs_r_dfs_GetManagerVersion(NETDFS_R_DFS_GETMANAGERVERSION *v, uint32 *exist_flag)
1486 DEBUG(5,("init_netdfs_r_dfs_GetManagerVersion\n"));
1488 if (!exist_flag)
1489 return False;
1491 v->exist_flag = *exist_flag;
1493 return True;
1496 BOOL netdfs_io_r_dfs_GetManagerVersion(const char *desc, NETDFS_R_DFS_GETMANAGERVERSION *v, prs_struct *ps, int depth)
1498 if (v == NULL)
1499 return False;
1501 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_GetManagerVersion");
1502 depth++;
1503 if (!prs_uint32("exist_flag", ps, depth, &v->exist_flag))
1504 return False;
1506 return True;
1509 BOOL init_netdfs_q_dfs_Add(NETDFS_Q_DFS_ADD *v, const char *path, const char *server, const char *share, const char *comment, uint32 flags)
1511 DEBUG(5,("init_netdfs_q_dfs_Add\n"));
1513 if (!path)
1514 return False;
1516 init_unistr2(&v->path, path, UNI_FLAGS_NONE);
1518 if (!server)
1519 return False;
1521 init_unistr2(&v->server, server, UNI_FLAGS_NONE);
1523 if (share) {
1524 v->ptr0_share = 1;
1525 init_unistr2(&v->share, share, UNI_FLAGS_NONE);
1526 } else {
1527 v->ptr0_share = 0;
1530 if (comment) {
1531 v->ptr0_comment = 1;
1532 init_unistr2(&v->comment, comment, UNI_FLAGS_NONE);
1533 } else {
1534 v->ptr0_comment = 0;
1537 v->flags = flags;
1539 return True;
1542 BOOL netdfs_io_q_dfs_Add(const char *desc, NETDFS_Q_DFS_ADD *v, prs_struct *ps, int depth)
1544 if (v == NULL)
1545 return False;
1547 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_Add");
1548 depth++;
1549 if (!prs_align_custom(ps, 4))
1550 return False;
1552 if (!smb_io_unistr2("path", &v->path, 1, ps, depth))
1553 return False;
1555 if (!prs_align_custom(ps, 4))
1556 return False;
1558 if (!smb_io_unistr2("server", &v->server, 1, ps, depth))
1559 return False;
1561 if (!prs_align_custom(ps, 4))
1562 return False;
1564 if (!prs_uint32("ptr0_share", ps, depth, &v->ptr0_share))
1565 return False;
1567 if (v->ptr0_share) {
1568 if (!prs_align_custom(ps, 4))
1569 return False;
1571 if (!smb_io_unistr2("share", &v->share, 1, ps, depth))
1572 return False;
1575 if (!prs_align_custom(ps, 4))
1576 return False;
1578 if (!prs_uint32("ptr0_comment", ps, depth, &v->ptr0_comment))
1579 return False;
1581 if (v->ptr0_comment) {
1582 if (!prs_align_custom(ps, 4))
1583 return False;
1585 if (!smb_io_unistr2("comment", &v->comment, 1, ps, depth))
1586 return False;
1589 if (!prs_align_custom(ps, 4))
1590 return False;
1592 if (!prs_uint32("flags", ps, depth, &v->flags))
1593 return False;
1595 return True;
1598 BOOL init_netdfs_r_dfs_Add(NETDFS_R_DFS_ADD *v, const char *path, const char *server, const char *share, const char *comment, uint32 flags, WERROR status)
1600 DEBUG(5,("init_netdfs_r_dfs_Add\n"));
1602 v->status = status;
1604 return True;
1607 BOOL netdfs_io_r_dfs_Add(const char *desc, NETDFS_R_DFS_ADD *v, prs_struct *ps, int depth)
1609 if (v == NULL)
1610 return False;
1612 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_Add");
1613 depth++;
1614 if (!prs_werror("status", ps, depth, &v->status))
1615 return False;
1617 return True;
1620 BOOL init_netdfs_q_dfs_Remove(NETDFS_Q_DFS_REMOVE *v, const char *path, const char *server, const char *share)
1622 DEBUG(5,("init_netdfs_q_dfs_Remove\n"));
1624 if (!path)
1625 return False;
1627 init_unistr2(&v->path, path, UNI_FLAGS_NONE);
1629 if (server) {
1630 v->ptr0_server = 1;
1631 init_unistr2(&v->server, server, UNI_FLAGS_NONE);
1632 } else {
1633 v->ptr0_server = 0;
1636 if (share) {
1637 v->ptr0_share = 1;
1638 init_unistr2(&v->share, share, UNI_FLAGS_NONE);
1639 } else {
1640 v->ptr0_share = 0;
1643 return True;
1646 BOOL netdfs_io_q_dfs_Remove(const char *desc, NETDFS_Q_DFS_REMOVE *v, prs_struct *ps, int depth)
1648 if (v == NULL)
1649 return False;
1651 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_Remove");
1652 depth++;
1653 if (!prs_align_custom(ps, 4))
1654 return False;
1656 if (!smb_io_unistr2("path", &v->path, 1, ps, depth))
1657 return False;
1659 if (!prs_align_custom(ps, 4))
1660 return False;
1662 if (!prs_uint32("ptr0_server", ps, depth, &v->ptr0_server))
1663 return False;
1665 if (v->ptr0_server) {
1666 if (!prs_align_custom(ps, 4))
1667 return False;
1669 if (!smb_io_unistr2("server", &v->server, 1, ps, depth))
1670 return False;
1673 if (!prs_align_custom(ps, 4))
1674 return False;
1676 if (!prs_uint32("ptr0_share", ps, depth, &v->ptr0_share))
1677 return False;
1679 if (v->ptr0_share) {
1680 if (!prs_align_custom(ps, 4))
1681 return False;
1683 if (!smb_io_unistr2("share", &v->share, 1, ps, depth))
1684 return False;
1687 return True;
1690 BOOL init_netdfs_r_dfs_Remove(NETDFS_R_DFS_REMOVE *v, const char *path, const char *server, const char *share, WERROR status)
1692 DEBUG(5,("init_netdfs_r_dfs_Remove\n"));
1694 v->status = status;
1696 return True;
1699 BOOL netdfs_io_r_dfs_Remove(const char *desc, NETDFS_R_DFS_REMOVE *v, prs_struct *ps, int depth)
1701 if (v == NULL)
1702 return False;
1704 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_Remove");
1705 depth++;
1706 if (!prs_werror("status", ps, depth, &v->status))
1707 return False;
1709 return True;
1712 BOOL init_netdfs_q_dfs_SetInfo(NETDFS_Q_DFS_SETINFO *v)
1714 DEBUG(5,("init_netdfs_q_dfs_SetInfo\n"));
1716 return True;
1719 BOOL netdfs_io_q_dfs_SetInfo(const char *desc, NETDFS_Q_DFS_SETINFO *v, prs_struct *ps, int depth)
1721 if (v == NULL)
1722 return False;
1724 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_SetInfo");
1725 depth++;
1726 return True;
1729 BOOL init_netdfs_r_dfs_SetInfo(NETDFS_R_DFS_SETINFO *v, WERROR status)
1731 DEBUG(5,("init_netdfs_r_dfs_SetInfo\n"));
1733 v->status = status;
1735 return True;
1738 BOOL netdfs_io_r_dfs_SetInfo(const char *desc, NETDFS_R_DFS_SETINFO *v, prs_struct *ps, int depth)
1740 if (v == NULL)
1741 return False;
1743 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_SetInfo");
1744 depth++;
1745 if (!prs_werror("status", ps, depth, &v->status))
1746 return False;
1748 return True;
1751 BOOL init_netdfs_q_dfs_GetInfo(NETDFS_Q_DFS_GETINFO *v, const char *path, const char *server, const char *share, uint32 level)
1753 DEBUG(5,("init_netdfs_q_dfs_GetInfo\n"));
1755 if (!path)
1756 return False;
1758 init_unistr2(&v->path, path, UNI_FLAGS_NONE);
1760 if (server) {
1761 v->ptr0_server = 1;
1762 init_unistr2(&v->server, server, UNI_FLAGS_NONE);
1763 } else {
1764 v->ptr0_server = 0;
1767 if (share) {
1768 v->ptr0_share = 1;
1769 init_unistr2(&v->share, share, UNI_FLAGS_NONE);
1770 } else {
1771 v->ptr0_share = 0;
1774 v->level = level;
1776 return True;
1779 BOOL netdfs_io_q_dfs_GetInfo(const char *desc, NETDFS_Q_DFS_GETINFO *v, prs_struct *ps, int depth)
1781 if (v == NULL)
1782 return False;
1784 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_GetInfo");
1785 depth++;
1786 if (!prs_align_custom(ps, 4))
1787 return False;
1789 if (!smb_io_unistr2("path", &v->path, 1, ps, depth))
1790 return False;
1792 if (!prs_align_custom(ps, 4))
1793 return False;
1795 if (!prs_uint32("ptr0_server", ps, depth, &v->ptr0_server))
1796 return False;
1798 if (v->ptr0_server) {
1799 if (!prs_align_custom(ps, 4))
1800 return False;
1802 if (!smb_io_unistr2("server", &v->server, 1, ps, depth))
1803 return False;
1806 if (!prs_align_custom(ps, 4))
1807 return False;
1809 if (!prs_uint32("ptr0_share", ps, depth, &v->ptr0_share))
1810 return False;
1812 if (v->ptr0_share) {
1813 if (!prs_align_custom(ps, 4))
1814 return False;
1816 if (!smb_io_unistr2("share", &v->share, 1, ps, depth))
1817 return False;
1820 if (!prs_align_custom(ps, 4))
1821 return False;
1823 if (!prs_uint32("level", ps, depth, &v->level))
1824 return False;
1826 return True;
1829 BOOL init_netdfs_r_dfs_GetInfo(NETDFS_R_DFS_GETINFO *v, const char *path, const char *server, const char *share, uint32 level, NETDFS_DFS_INFO_CTR *info, WERROR status)
1831 DEBUG(5,("init_netdfs_r_dfs_GetInfo\n"));
1833 if (!info)
1834 return False;
1836 v->info = *info;
1837 v->info.switch_value = level;
1839 v->status = status;
1841 return True;
1844 BOOL netdfs_io_r_dfs_GetInfo(const char *desc, NETDFS_R_DFS_GETINFO *v, prs_struct *ps, int depth)
1846 if (v == NULL)
1847 return False;
1849 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_GetInfo");
1850 depth++;
1851 if (!netdfs_io_dfs_Info_p("info", &v->info, ps, depth))
1852 return False;
1853 if (!netdfs_io_dfs_Info_d("info", &v->info, ps, depth))
1854 return False;
1856 if (!prs_align_custom(ps, 4))
1857 return False;
1859 if (!prs_werror("status", ps, depth, &v->status))
1860 return False;
1862 return True;
1865 BOOL init_netdfs_q_dfs_Enum(NETDFS_Q_DFS_ENUM *v, uint32 level, uint32 bufsize, NETDFS_DFS_ENUMSTRUCT *info, uint32 *total)
1867 DEBUG(5,("init_netdfs_q_dfs_Enum\n"));
1869 v->level = level;
1871 v->bufsize = bufsize;
1873 if (info) {
1874 v->ptr0_info = 1;
1875 v->info = *info;
1876 } else {
1877 v->ptr0_info = 0;
1880 if (total) {
1881 v->ptr0_total = 1;
1882 v->total = *total;
1883 } else {
1884 v->ptr0_total = 0;
1887 return True;
1890 BOOL netdfs_io_q_dfs_Enum(const char *desc, NETDFS_Q_DFS_ENUM *v, prs_struct *ps, int depth)
1892 if (v == NULL)
1893 return False;
1895 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_Enum");
1896 depth++;
1897 if (!prs_uint32("level", ps, depth, &v->level))
1898 return False;
1900 if (!prs_uint32("bufsize", ps, depth, &v->bufsize))
1901 return False;
1903 if (!prs_uint32("ptr0_info", ps, depth, &v->ptr0_info))
1904 return False;
1906 if (v->ptr0_info) {
1907 if (!netdfs_io_dfs_EnumStruct_p("info", &v->info, ps, depth))
1908 return False;
1909 if (!netdfs_io_dfs_EnumStruct_d("info", &v->info, ps, depth))
1910 return False;
1913 if (!prs_align_custom(ps, 4))
1914 return False;
1916 if (!prs_uint32("ptr0_total", ps, depth, &v->ptr0_total))
1917 return False;
1919 if (v->ptr0_total) {
1920 if (!prs_uint32("total", ps, depth, &v->total))
1921 return False;
1924 return True;
1927 BOOL init_netdfs_r_dfs_Enum(NETDFS_R_DFS_ENUM *v, uint32 level, uint32 bufsize, NETDFS_DFS_ENUMSTRUCT *info, uint32 *unknown, uint32 *total, WERROR status)
1929 DEBUG(5,("init_netdfs_r_dfs_Enum\n"));
1931 if (info) {
1932 v->ptr0_info = 1;
1933 v->info = *info;
1934 } else {
1935 v->ptr0_info = 0;
1938 if (total) {
1939 v->ptr0_total = 1;
1940 v->total = *total;
1941 } else {
1942 v->ptr0_total = 0;
1945 v->status = status;
1947 return True;
1950 BOOL netdfs_io_r_dfs_Enum(const char *desc, NETDFS_R_DFS_ENUM *v, prs_struct *ps, int depth)
1952 if (v == NULL)
1953 return False;
1955 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_Enum");
1956 depth++;
1957 if (!prs_uint32("ptr0_info", ps, depth, &v->ptr0_info))
1958 return False;
1960 if (v->ptr0_info) {
1961 if (!netdfs_io_dfs_EnumStruct_p("info", &v->info, ps, depth))
1962 return False;
1963 if (!netdfs_io_dfs_EnumStruct_d("info", &v->info, ps, depth))
1964 return False;
1967 if (!prs_align_custom(ps, 4))
1968 return False;
1970 if (!prs_uint32("ptr0_total", ps, depth, &v->ptr0_total))
1971 return False;
1973 if (v->ptr0_total) {
1974 if (!prs_uint32("total", ps, depth, &v->total))
1975 return False;
1978 if (!prs_align_custom(ps, 4))
1979 return False;
1981 if (!prs_werror("status", ps, depth, &v->status))
1982 return False;
1984 return True;
1987 BOOL init_netdfs_q_dfs_Rename(NETDFS_Q_DFS_RENAME *v)
1989 DEBUG(5,("init_netdfs_q_dfs_Rename\n"));
1991 return True;
1994 BOOL netdfs_io_q_dfs_Rename(const char *desc, NETDFS_Q_DFS_RENAME *v, prs_struct *ps, int depth)
1996 if (v == NULL)
1997 return False;
1999 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_Rename");
2000 depth++;
2001 return True;
2004 BOOL init_netdfs_r_dfs_Rename(NETDFS_R_DFS_RENAME *v, WERROR status)
2006 DEBUG(5,("init_netdfs_r_dfs_Rename\n"));
2008 v->status = status;
2010 return True;
2013 BOOL netdfs_io_r_dfs_Rename(const char *desc, NETDFS_R_DFS_RENAME *v, prs_struct *ps, int depth)
2015 if (v == NULL)
2016 return False;
2018 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_Rename");
2019 depth++;
2020 if (!prs_werror("status", ps, depth, &v->status))
2021 return False;
2023 return True;
2026 BOOL init_netdfs_q_dfs_Move(NETDFS_Q_DFS_MOVE *v)
2028 DEBUG(5,("init_netdfs_q_dfs_Move\n"));
2030 return True;
2033 BOOL netdfs_io_q_dfs_Move(const char *desc, NETDFS_Q_DFS_MOVE *v, prs_struct *ps, int depth)
2035 if (v == NULL)
2036 return False;
2038 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_Move");
2039 depth++;
2040 return True;
2043 BOOL init_netdfs_r_dfs_Move(NETDFS_R_DFS_MOVE *v, WERROR status)
2045 DEBUG(5,("init_netdfs_r_dfs_Move\n"));
2047 v->status = status;
2049 return True;
2052 BOOL netdfs_io_r_dfs_Move(const char *desc, NETDFS_R_DFS_MOVE *v, prs_struct *ps, int depth)
2054 if (v == NULL)
2055 return False;
2057 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_Move");
2058 depth++;
2059 if (!prs_werror("status", ps, depth, &v->status))
2060 return False;
2062 return True;
2065 BOOL init_netdfs_q_dfs_ManagerGetConfigInfo(NETDFS_Q_DFS_MANAGERGETCONFIGINFO *v)
2067 DEBUG(5,("init_netdfs_q_dfs_ManagerGetConfigInfo\n"));
2069 return True;
2072 BOOL netdfs_io_q_dfs_ManagerGetConfigInfo(const char *desc, NETDFS_Q_DFS_MANAGERGETCONFIGINFO *v, prs_struct *ps, int depth)
2074 if (v == NULL)
2075 return False;
2077 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_ManagerGetConfigInfo");
2078 depth++;
2079 return True;
2082 BOOL init_netdfs_r_dfs_ManagerGetConfigInfo(NETDFS_R_DFS_MANAGERGETCONFIGINFO *v, WERROR status)
2084 DEBUG(5,("init_netdfs_r_dfs_ManagerGetConfigInfo\n"));
2086 v->status = status;
2088 return True;
2091 BOOL netdfs_io_r_dfs_ManagerGetConfigInfo(const char *desc, NETDFS_R_DFS_MANAGERGETCONFIGINFO *v, prs_struct *ps, int depth)
2093 if (v == NULL)
2094 return False;
2096 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_ManagerGetConfigInfo");
2097 depth++;
2098 if (!prs_werror("status", ps, depth, &v->status))
2099 return False;
2101 return True;
2104 BOOL init_netdfs_q_dfs_ManagerSendSiteInfo(NETDFS_Q_DFS_MANAGERSENDSITEINFO *v)
2106 DEBUG(5,("init_netdfs_q_dfs_ManagerSendSiteInfo\n"));
2108 return True;
2111 BOOL netdfs_io_q_dfs_ManagerSendSiteInfo(const char *desc, NETDFS_Q_DFS_MANAGERSENDSITEINFO *v, prs_struct *ps, int depth)
2113 if (v == NULL)
2114 return False;
2116 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_ManagerSendSiteInfo");
2117 depth++;
2118 return True;
2121 BOOL init_netdfs_r_dfs_ManagerSendSiteInfo(NETDFS_R_DFS_MANAGERSENDSITEINFO *v, WERROR status)
2123 DEBUG(5,("init_netdfs_r_dfs_ManagerSendSiteInfo\n"));
2125 v->status = status;
2127 return True;
2130 BOOL netdfs_io_r_dfs_ManagerSendSiteInfo(const char *desc, NETDFS_R_DFS_MANAGERSENDSITEINFO *v, prs_struct *ps, int depth)
2132 if (v == NULL)
2133 return False;
2135 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_ManagerSendSiteInfo");
2136 depth++;
2137 if (!prs_werror("status", ps, depth, &v->status))
2138 return False;
2140 return True;
2143 BOOL init_netdfs_q_dfs_AddFtRoot(NETDFS_Q_DFS_ADDFTROOT *v)
2145 DEBUG(5,("init_netdfs_q_dfs_AddFtRoot\n"));
2147 return True;
2150 BOOL netdfs_io_q_dfs_AddFtRoot(const char *desc, NETDFS_Q_DFS_ADDFTROOT *v, prs_struct *ps, int depth)
2152 if (v == NULL)
2153 return False;
2155 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_AddFtRoot");
2156 depth++;
2157 return True;
2160 BOOL init_netdfs_r_dfs_AddFtRoot(NETDFS_R_DFS_ADDFTROOT *v, WERROR status)
2162 DEBUG(5,("init_netdfs_r_dfs_AddFtRoot\n"));
2164 v->status = status;
2166 return True;
2169 BOOL netdfs_io_r_dfs_AddFtRoot(const char *desc, NETDFS_R_DFS_ADDFTROOT *v, prs_struct *ps, int depth)
2171 if (v == NULL)
2172 return False;
2174 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_AddFtRoot");
2175 depth++;
2176 if (!prs_werror("status", ps, depth, &v->status))
2177 return False;
2179 return True;
2182 BOOL init_netdfs_q_dfs_RemoveFtRoot(NETDFS_Q_DFS_REMOVEFTROOT *v)
2184 DEBUG(5,("init_netdfs_q_dfs_RemoveFtRoot\n"));
2186 return True;
2189 BOOL netdfs_io_q_dfs_RemoveFtRoot(const char *desc, NETDFS_Q_DFS_REMOVEFTROOT *v, prs_struct *ps, int depth)
2191 if (v == NULL)
2192 return False;
2194 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_RemoveFtRoot");
2195 depth++;
2196 return True;
2199 BOOL init_netdfs_r_dfs_RemoveFtRoot(NETDFS_R_DFS_REMOVEFTROOT *v, WERROR status)
2201 DEBUG(5,("init_netdfs_r_dfs_RemoveFtRoot\n"));
2203 v->status = status;
2205 return True;
2208 BOOL netdfs_io_r_dfs_RemoveFtRoot(const char *desc, NETDFS_R_DFS_REMOVEFTROOT *v, prs_struct *ps, int depth)
2210 if (v == NULL)
2211 return False;
2213 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_RemoveFtRoot");
2214 depth++;
2215 if (!prs_werror("status", ps, depth, &v->status))
2216 return False;
2218 return True;
2221 BOOL init_netdfs_q_dfs_AddStdRoot(NETDFS_Q_DFS_ADDSTDROOT *v)
2223 DEBUG(5,("init_netdfs_q_dfs_AddStdRoot\n"));
2225 return True;
2228 BOOL netdfs_io_q_dfs_AddStdRoot(const char *desc, NETDFS_Q_DFS_ADDSTDROOT *v, prs_struct *ps, int depth)
2230 if (v == NULL)
2231 return False;
2233 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_AddStdRoot");
2234 depth++;
2235 return True;
2238 BOOL init_netdfs_r_dfs_AddStdRoot(NETDFS_R_DFS_ADDSTDROOT *v, WERROR status)
2240 DEBUG(5,("init_netdfs_r_dfs_AddStdRoot\n"));
2242 v->status = status;
2244 return True;
2247 BOOL netdfs_io_r_dfs_AddStdRoot(const char *desc, NETDFS_R_DFS_ADDSTDROOT *v, prs_struct *ps, int depth)
2249 if (v == NULL)
2250 return False;
2252 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_AddStdRoot");
2253 depth++;
2254 if (!prs_werror("status", ps, depth, &v->status))
2255 return False;
2257 return True;
2260 BOOL init_netdfs_q_dfs_RemoveStdRoot(NETDFS_Q_DFS_REMOVESTDROOT *v)
2262 DEBUG(5,("init_netdfs_q_dfs_RemoveStdRoot\n"));
2264 return True;
2267 BOOL netdfs_io_q_dfs_RemoveStdRoot(const char *desc, NETDFS_Q_DFS_REMOVESTDROOT *v, prs_struct *ps, int depth)
2269 if (v == NULL)
2270 return False;
2272 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_RemoveStdRoot");
2273 depth++;
2274 return True;
2277 BOOL init_netdfs_r_dfs_RemoveStdRoot(NETDFS_R_DFS_REMOVESTDROOT *v, WERROR status)
2279 DEBUG(5,("init_netdfs_r_dfs_RemoveStdRoot\n"));
2281 v->status = status;
2283 return True;
2286 BOOL netdfs_io_r_dfs_RemoveStdRoot(const char *desc, NETDFS_R_DFS_REMOVESTDROOT *v, prs_struct *ps, int depth)
2288 if (v == NULL)
2289 return False;
2291 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_RemoveStdRoot");
2292 depth++;
2293 if (!prs_werror("status", ps, depth, &v->status))
2294 return False;
2296 return True;
2299 BOOL init_netdfs_q_dfs_ManagerInitialize(NETDFS_Q_DFS_MANAGERINITIALIZE *v)
2301 DEBUG(5,("init_netdfs_q_dfs_ManagerInitialize\n"));
2303 return True;
2306 BOOL netdfs_io_q_dfs_ManagerInitialize(const char *desc, NETDFS_Q_DFS_MANAGERINITIALIZE *v, prs_struct *ps, int depth)
2308 if (v == NULL)
2309 return False;
2311 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_ManagerInitialize");
2312 depth++;
2313 return True;
2316 BOOL init_netdfs_r_dfs_ManagerInitialize(NETDFS_R_DFS_MANAGERINITIALIZE *v, WERROR status)
2318 DEBUG(5,("init_netdfs_r_dfs_ManagerInitialize\n"));
2320 v->status = status;
2322 return True;
2325 BOOL netdfs_io_r_dfs_ManagerInitialize(const char *desc, NETDFS_R_DFS_MANAGERINITIALIZE *v, prs_struct *ps, int depth)
2327 if (v == NULL)
2328 return False;
2330 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_ManagerInitialize");
2331 depth++;
2332 if (!prs_werror("status", ps, depth, &v->status))
2333 return False;
2335 return True;
2338 BOOL init_netdfs_q_dfs_AddStdRootForced(NETDFS_Q_DFS_ADDSTDROOTFORCED *v)
2340 DEBUG(5,("init_netdfs_q_dfs_AddStdRootForced\n"));
2342 return True;
2345 BOOL netdfs_io_q_dfs_AddStdRootForced(const char *desc, NETDFS_Q_DFS_ADDSTDROOTFORCED *v, prs_struct *ps, int depth)
2347 if (v == NULL)
2348 return False;
2350 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_AddStdRootForced");
2351 depth++;
2352 return True;
2355 BOOL init_netdfs_r_dfs_AddStdRootForced(NETDFS_R_DFS_ADDSTDROOTFORCED *v, WERROR status)
2357 DEBUG(5,("init_netdfs_r_dfs_AddStdRootForced\n"));
2359 v->status = status;
2361 return True;
2364 BOOL netdfs_io_r_dfs_AddStdRootForced(const char *desc, NETDFS_R_DFS_ADDSTDROOTFORCED *v, prs_struct *ps, int depth)
2366 if (v == NULL)
2367 return False;
2369 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_AddStdRootForced");
2370 depth++;
2371 if (!prs_werror("status", ps, depth, &v->status))
2372 return False;
2374 return True;
2377 BOOL init_netdfs_q_dfs_GetDcAddress(NETDFS_Q_DFS_GETDCADDRESS *v)
2379 DEBUG(5,("init_netdfs_q_dfs_GetDcAddress\n"));
2381 return True;
2384 BOOL netdfs_io_q_dfs_GetDcAddress(const char *desc, NETDFS_Q_DFS_GETDCADDRESS *v, prs_struct *ps, int depth)
2386 if (v == NULL)
2387 return False;
2389 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_GetDcAddress");
2390 depth++;
2391 return True;
2394 BOOL init_netdfs_r_dfs_GetDcAddress(NETDFS_R_DFS_GETDCADDRESS *v, WERROR status)
2396 DEBUG(5,("init_netdfs_r_dfs_GetDcAddress\n"));
2398 v->status = status;
2400 return True;
2403 BOOL netdfs_io_r_dfs_GetDcAddress(const char *desc, NETDFS_R_DFS_GETDCADDRESS *v, prs_struct *ps, int depth)
2405 if (v == NULL)
2406 return False;
2408 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_GetDcAddress");
2409 depth++;
2410 if (!prs_werror("status", ps, depth, &v->status))
2411 return False;
2413 return True;
2416 BOOL init_netdfs_q_dfs_SetDcAddress(NETDFS_Q_DFS_SETDCADDRESS *v)
2418 DEBUG(5,("init_netdfs_q_dfs_SetDcAddress\n"));
2420 return True;
2423 BOOL netdfs_io_q_dfs_SetDcAddress(const char *desc, NETDFS_Q_DFS_SETDCADDRESS *v, prs_struct *ps, int depth)
2425 if (v == NULL)
2426 return False;
2428 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_SetDcAddress");
2429 depth++;
2430 return True;
2433 BOOL init_netdfs_r_dfs_SetDcAddress(NETDFS_R_DFS_SETDCADDRESS *v, WERROR status)
2435 DEBUG(5,("init_netdfs_r_dfs_SetDcAddress\n"));
2437 v->status = status;
2439 return True;
2442 BOOL netdfs_io_r_dfs_SetDcAddress(const char *desc, NETDFS_R_DFS_SETDCADDRESS *v, prs_struct *ps, int depth)
2444 if (v == NULL)
2445 return False;
2447 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_SetDcAddress");
2448 depth++;
2449 if (!prs_werror("status", ps, depth, &v->status))
2450 return False;
2452 return True;
2455 BOOL init_netdfs_q_dfs_FlushFtTable(NETDFS_Q_DFS_FLUSHFTTABLE *v)
2457 DEBUG(5,("init_netdfs_q_dfs_FlushFtTable\n"));
2459 return True;
2462 BOOL netdfs_io_q_dfs_FlushFtTable(const char *desc, NETDFS_Q_DFS_FLUSHFTTABLE *v, prs_struct *ps, int depth)
2464 if (v == NULL)
2465 return False;
2467 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_FlushFtTable");
2468 depth++;
2469 return True;
2472 BOOL init_netdfs_r_dfs_FlushFtTable(NETDFS_R_DFS_FLUSHFTTABLE *v, WERROR status)
2474 DEBUG(5,("init_netdfs_r_dfs_FlushFtTable\n"));
2476 v->status = status;
2478 return True;
2481 BOOL netdfs_io_r_dfs_FlushFtTable(const char *desc, NETDFS_R_DFS_FLUSHFTTABLE *v, prs_struct *ps, int depth)
2483 if (v == NULL)
2484 return False;
2486 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_FlushFtTable");
2487 depth++;
2488 if (!prs_werror("status", ps, depth, &v->status))
2489 return False;
2491 return True;
2494 BOOL init_netdfs_q_dfs_Add2(NETDFS_Q_DFS_ADD2 *v)
2496 DEBUG(5,("init_netdfs_q_dfs_Add2\n"));
2498 return True;
2501 BOOL netdfs_io_q_dfs_Add2(const char *desc, NETDFS_Q_DFS_ADD2 *v, prs_struct *ps, int depth)
2503 if (v == NULL)
2504 return False;
2506 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_Add2");
2507 depth++;
2508 return True;
2511 BOOL init_netdfs_r_dfs_Add2(NETDFS_R_DFS_ADD2 *v, WERROR status)
2513 DEBUG(5,("init_netdfs_r_dfs_Add2\n"));
2515 v->status = status;
2517 return True;
2520 BOOL netdfs_io_r_dfs_Add2(const char *desc, NETDFS_R_DFS_ADD2 *v, prs_struct *ps, int depth)
2522 if (v == NULL)
2523 return False;
2525 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_Add2");
2526 depth++;
2527 if (!prs_werror("status", ps, depth, &v->status))
2528 return False;
2530 return True;
2533 BOOL init_netdfs_q_dfs_Remove2(NETDFS_Q_DFS_REMOVE2 *v)
2535 DEBUG(5,("init_netdfs_q_dfs_Remove2\n"));
2537 return True;
2540 BOOL netdfs_io_q_dfs_Remove2(const char *desc, NETDFS_Q_DFS_REMOVE2 *v, prs_struct *ps, int depth)
2542 if (v == NULL)
2543 return False;
2545 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_Remove2");
2546 depth++;
2547 return True;
2550 BOOL init_netdfs_r_dfs_Remove2(NETDFS_R_DFS_REMOVE2 *v, WERROR status)
2552 DEBUG(5,("init_netdfs_r_dfs_Remove2\n"));
2554 v->status = status;
2556 return True;
2559 BOOL netdfs_io_r_dfs_Remove2(const char *desc, NETDFS_R_DFS_REMOVE2 *v, prs_struct *ps, int depth)
2561 if (v == NULL)
2562 return False;
2564 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_Remove2");
2565 depth++;
2566 if (!prs_werror("status", ps, depth, &v->status))
2567 return False;
2569 return True;
2572 BOOL init_netdfs_q_dfs_EnumEx(NETDFS_Q_DFS_ENUMEX *v)
2574 DEBUG(5,("init_netdfs_q_dfs_EnumEx\n"));
2576 return True;
2579 BOOL netdfs_io_q_dfs_EnumEx(const char *desc, NETDFS_Q_DFS_ENUMEX *v, prs_struct *ps, int depth)
2581 if (v == NULL)
2582 return False;
2584 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_EnumEx");
2585 depth++;
2586 return True;
2589 BOOL init_netdfs_r_dfs_EnumEx(NETDFS_R_DFS_ENUMEX *v, WERROR status)
2591 DEBUG(5,("init_netdfs_r_dfs_EnumEx\n"));
2593 v->status = status;
2595 return True;
2598 BOOL netdfs_io_r_dfs_EnumEx(const char *desc, NETDFS_R_DFS_ENUMEX *v, prs_struct *ps, int depth)
2600 if (v == NULL)
2601 return False;
2603 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_EnumEx");
2604 depth++;
2605 if (!prs_werror("status", ps, depth, &v->status))
2606 return False;
2608 return True;
2611 BOOL init_netdfs_q_dfs_SetInfo2(NETDFS_Q_DFS_SETINFO2 *v)
2613 DEBUG(5,("init_netdfs_q_dfs_SetInfo2\n"));
2615 return True;
2618 BOOL netdfs_io_q_dfs_SetInfo2(const char *desc, NETDFS_Q_DFS_SETINFO2 *v, prs_struct *ps, int depth)
2620 if (v == NULL)
2621 return False;
2623 prs_debug(ps, depth, desc, "netdfs_io_q_dfs_SetInfo2");
2624 depth++;
2625 return True;
2628 BOOL init_netdfs_r_dfs_SetInfo2(NETDFS_R_DFS_SETINFO2 *v, WERROR status)
2630 DEBUG(5,("init_netdfs_r_dfs_SetInfo2\n"));
2632 v->status = status;
2634 return True;
2637 BOOL netdfs_io_r_dfs_SetInfo2(const char *desc, NETDFS_R_DFS_SETINFO2 *v, prs_struct *ps, int depth)
2639 if (v == NULL)
2640 return False;
2642 prs_debug(ps, depth, desc, "netdfs_io_r_dfs_SetInfo2");
2643 depth++;
2644 if (!prs_werror("status", ps, depth, &v->status))
2645 return False;
2647 return True;