fd722e1cce6db2be823f405d5bad0a16084a3e1f
[kai/samba.git] / source3 / librpc / gen_ndr / cli_dfs.c
1 /*
2  * Unix SMB/CIFS implementation.
3  * client auto-generated by pidl. DO NOT MODIFY!
4  */
5
6 #include "includes.h"
7 #include "librpc/gen_ndr/cli_dfs.h"
8
9 NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t *exist_flag)
10 {
11         struct dfs_GetManagerVersion r;
12         NTSTATUS status;
13         
14         /* In parameters */
15         
16         if (DEBUGLEVEL >= 10)
17                 NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r);
18         
19         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion);
20         
21         if ( !NT_STATUS_IS_OK(status) ) {
22                 return status;
23         }
24         
25         if (DEBUGLEVEL >= 10)
26                 NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
27         
28         if (NT_STATUS_IS_ERR(status)) {
29                 return status;
30         }
31         
32         /* Return variables */
33         *exist_flag = *r.out.exist_flag;
34         
35         /* Return result */
36         return NT_STATUS_OK;
37 }
38
39 NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, const char *comment, uint32_t flags)
40 {
41         struct dfs_Add r;
42         NTSTATUS status;
43         
44         /* In parameters */
45         r.in.path = path;
46         r.in.server = server;
47         r.in.share = share;
48         r.in.comment = comment;
49         r.in.flags = flags;
50         
51         if (DEBUGLEVEL >= 10)
52                 NDR_PRINT_IN_DEBUG(dfs_Add, &r);
53         
54         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add);
55         
56         if ( !NT_STATUS_IS_OK(status) ) {
57                 return status;
58         }
59         
60         if (DEBUGLEVEL >= 10)
61                 NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
62         
63         if (NT_STATUS_IS_ERR(status)) {
64                 return status;
65         }
66         
67         /* Return variables */
68         
69         /* Return result */
70         return werror_to_ntstatus(r.out.result);
71 }
72
73 NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share)
74 {
75         struct dfs_Remove r;
76         NTSTATUS status;
77         
78         /* In parameters */
79         r.in.path = path;
80         r.in.server = server;
81         r.in.share = share;
82         
83         if (DEBUGLEVEL >= 10)
84                 NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
85         
86         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove);
87         
88         if ( !NT_STATUS_IS_OK(status) ) {
89                 return status;
90         }
91         
92         if (DEBUGLEVEL >= 10)
93                 NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
94         
95         if (NT_STATUS_IS_ERR(status)) {
96                 return status;
97         }
98         
99         /* Return variables */
100         
101         /* Return result */
102         return werror_to_ntstatus(r.out.result);
103 }
104
105 NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
106 {
107         struct dfs_SetInfo r;
108         NTSTATUS status;
109         
110         /* In parameters */
111         
112         if (DEBUGLEVEL >= 10)
113                 NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
114         
115         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo);
116         
117         if ( !NT_STATUS_IS_OK(status) ) {
118                 return status;
119         }
120         
121         if (DEBUGLEVEL >= 10)
122                 NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
123         
124         if (NT_STATUS_IS_ERR(status)) {
125                 return status;
126         }
127         
128         /* Return variables */
129         
130         /* Return result */
131         return werror_to_ntstatus(r.out.result);
132 }
133
134 NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *path, const char *server, const char *share, uint32_t level, union dfs_Info *info)
135 {
136         struct dfs_GetInfo r;
137         NTSTATUS status;
138         
139         /* In parameters */
140         r.in.path = path;
141         r.in.server = server;
142         r.in.share = share;
143         r.in.level = level;
144         
145         if (DEBUGLEVEL >= 10)
146                 NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
147         
148         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo);
149         
150         if ( !NT_STATUS_IS_OK(status) ) {
151                 return status;
152         }
153         
154         if (DEBUGLEVEL >= 10)
155                 NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
156         
157         if (NT_STATUS_IS_ERR(status)) {
158                 return status;
159         }
160         
161         /* Return variables */
162         *info = *r.out.info;
163         
164         /* Return result */
165         return werror_to_ntstatus(r.out.result);
166 }
167
168 NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct **info, uint32_t *unknown, uint32_t **total)
169 {
170         struct dfs_Enum r;
171         NTSTATUS status;
172         
173         /* In parameters */
174         r.in.level = level;
175         r.in.bufsize = bufsize;
176         r.in.info = *info;
177         r.in.unknown = unknown;
178         r.in.total = *total;
179         
180         if (DEBUGLEVEL >= 10)
181                 NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
182         
183         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum);
184         
185         if ( !NT_STATUS_IS_OK(status) ) {
186                 return status;
187         }
188         
189         if (DEBUGLEVEL >= 10)
190                 NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
191         
192         if (NT_STATUS_IS_ERR(status)) {
193                 return status;
194         }
195         
196         /* Return variables */
197         *info = r.out.info;
198         *total = r.out.total;
199         
200         /* Return result */
201         return werror_to_ntstatus(r.out.result);
202 }
203
204 NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
205 {
206         struct dfs_Rename r;
207         NTSTATUS status;
208         
209         /* In parameters */
210         
211         if (DEBUGLEVEL >= 10)
212                 NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
213         
214         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename);
215         
216         if ( !NT_STATUS_IS_OK(status) ) {
217                 return status;
218         }
219         
220         if (DEBUGLEVEL >= 10)
221                 NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
222         
223         if (NT_STATUS_IS_ERR(status)) {
224                 return status;
225         }
226         
227         /* Return variables */
228         
229         /* Return result */
230         return werror_to_ntstatus(r.out.result);
231 }
232
233 NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
234 {
235         struct dfs_Move r;
236         NTSTATUS status;
237         
238         /* In parameters */
239         
240         if (DEBUGLEVEL >= 10)
241                 NDR_PRINT_IN_DEBUG(dfs_Move, &r);
242         
243         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move);
244         
245         if ( !NT_STATUS_IS_OK(status) ) {
246                 return status;
247         }
248         
249         if (DEBUGLEVEL >= 10)
250                 NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
251         
252         if (NT_STATUS_IS_ERR(status)) {
253                 return status;
254         }
255         
256         /* Return variables */
257         
258         /* Return result */
259         return werror_to_ntstatus(r.out.result);
260 }
261
262 NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
263 {
264         struct dfs_ManagerGetConfigInfo r;
265         NTSTATUS status;
266         
267         /* In parameters */
268         
269         if (DEBUGLEVEL >= 10)
270                 NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
271         
272         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo);
273         
274         if ( !NT_STATUS_IS_OK(status) ) {
275                 return status;
276         }
277         
278         if (DEBUGLEVEL >= 10)
279                 NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
280         
281         if (NT_STATUS_IS_ERR(status)) {
282                 return status;
283         }
284         
285         /* Return variables */
286         
287         /* Return result */
288         return werror_to_ntstatus(r.out.result);
289 }
290
291 NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
292 {
293         struct dfs_ManagerSendSiteInfo r;
294         NTSTATUS status;
295         
296         /* In parameters */
297         
298         if (DEBUGLEVEL >= 10)
299                 NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
300         
301         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo);
302         
303         if ( !NT_STATUS_IS_OK(status) ) {
304                 return status;
305         }
306         
307         if (DEBUGLEVEL >= 10)
308                 NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
309         
310         if (NT_STATUS_IS_ERR(status)) {
311                 return status;
312         }
313         
314         /* Return variables */
315         
316         /* Return result */
317         return werror_to_ntstatus(r.out.result);
318 }
319
320 NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
321 {
322         struct dfs_AddFtRoot r;
323         NTSTATUS status;
324         
325         /* In parameters */
326         
327         if (DEBUGLEVEL >= 10)
328                 NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
329         
330         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot);
331         
332         if ( !NT_STATUS_IS_OK(status) ) {
333                 return status;
334         }
335         
336         if (DEBUGLEVEL >= 10)
337                 NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
338         
339         if (NT_STATUS_IS_ERR(status)) {
340                 return status;
341         }
342         
343         /* Return variables */
344         
345         /* Return result */
346         return werror_to_ntstatus(r.out.result);
347 }
348
349 NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
350 {
351         struct dfs_RemoveFtRoot r;
352         NTSTATUS status;
353         
354         /* In parameters */
355         
356         if (DEBUGLEVEL >= 10)
357                 NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
358         
359         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot);
360         
361         if ( !NT_STATUS_IS_OK(status) ) {
362                 return status;
363         }
364         
365         if (DEBUGLEVEL >= 10)
366                 NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
367         
368         if (NT_STATUS_IS_ERR(status)) {
369                 return status;
370         }
371         
372         /* Return variables */
373         
374         /* Return result */
375         return werror_to_ntstatus(r.out.result);
376 }
377
378 NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
379 {
380         struct dfs_AddStdRoot r;
381         NTSTATUS status;
382         
383         /* In parameters */
384         
385         if (DEBUGLEVEL >= 10)
386                 NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
387         
388         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot);
389         
390         if ( !NT_STATUS_IS_OK(status) ) {
391                 return status;
392         }
393         
394         if (DEBUGLEVEL >= 10)
395                 NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
396         
397         if (NT_STATUS_IS_ERR(status)) {
398                 return status;
399         }
400         
401         /* Return variables */
402         
403         /* Return result */
404         return werror_to_ntstatus(r.out.result);
405 }
406
407 NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
408 {
409         struct dfs_RemoveStdRoot r;
410         NTSTATUS status;
411         
412         /* In parameters */
413         
414         if (DEBUGLEVEL >= 10)
415                 NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
416         
417         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot);
418         
419         if ( !NT_STATUS_IS_OK(status) ) {
420                 return status;
421         }
422         
423         if (DEBUGLEVEL >= 10)
424                 NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
425         
426         if (NT_STATUS_IS_ERR(status)) {
427                 return status;
428         }
429         
430         /* Return variables */
431         
432         /* Return result */
433         return werror_to_ntstatus(r.out.result);
434 }
435
436 NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
437 {
438         struct dfs_ManagerInitialize r;
439         NTSTATUS status;
440         
441         /* In parameters */
442         
443         if (DEBUGLEVEL >= 10)
444                 NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
445         
446         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize);
447         
448         if ( !NT_STATUS_IS_OK(status) ) {
449                 return status;
450         }
451         
452         if (DEBUGLEVEL >= 10)
453                 NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
454         
455         if (NT_STATUS_IS_ERR(status)) {
456                 return status;
457         }
458         
459         /* Return variables */
460         
461         /* Return result */
462         return werror_to_ntstatus(r.out.result);
463 }
464
465 NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
466 {
467         struct dfs_AddStdRootForced r;
468         NTSTATUS status;
469         
470         /* In parameters */
471         
472         if (DEBUGLEVEL >= 10)
473                 NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
474         
475         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced);
476         
477         if ( !NT_STATUS_IS_OK(status) ) {
478                 return status;
479         }
480         
481         if (DEBUGLEVEL >= 10)
482                 NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
483         
484         if (NT_STATUS_IS_ERR(status)) {
485                 return status;
486         }
487         
488         /* Return variables */
489         
490         /* Return result */
491         return werror_to_ntstatus(r.out.result);
492 }
493
494 NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
495 {
496         struct dfs_GetDcAddress r;
497         NTSTATUS status;
498         
499         /* In parameters */
500         
501         if (DEBUGLEVEL >= 10)
502                 NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
503         
504         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress);
505         
506         if ( !NT_STATUS_IS_OK(status) ) {
507                 return status;
508         }
509         
510         if (DEBUGLEVEL >= 10)
511                 NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
512         
513         if (NT_STATUS_IS_ERR(status)) {
514                 return status;
515         }
516         
517         /* Return variables */
518         
519         /* Return result */
520         return werror_to_ntstatus(r.out.result);
521 }
522
523 NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
524 {
525         struct dfs_SetDcAddress r;
526         NTSTATUS status;
527         
528         /* In parameters */
529         
530         if (DEBUGLEVEL >= 10)
531                 NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
532         
533         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress);
534         
535         if ( !NT_STATUS_IS_OK(status) ) {
536                 return status;
537         }
538         
539         if (DEBUGLEVEL >= 10)
540                 NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
541         
542         if (NT_STATUS_IS_ERR(status)) {
543                 return status;
544         }
545         
546         /* Return variables */
547         
548         /* Return result */
549         return werror_to_ntstatus(r.out.result);
550 }
551
552 NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
553 {
554         struct dfs_FlushFtTable r;
555         NTSTATUS status;
556         
557         /* In parameters */
558         
559         if (DEBUGLEVEL >= 10)
560                 NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
561         
562         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable);
563         
564         if ( !NT_STATUS_IS_OK(status) ) {
565                 return status;
566         }
567         
568         if (DEBUGLEVEL >= 10)
569                 NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
570         
571         if (NT_STATUS_IS_ERR(status)) {
572                 return status;
573         }
574         
575         /* Return variables */
576         
577         /* Return result */
578         return werror_to_ntstatus(r.out.result);
579 }
580
581 NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
582 {
583         struct dfs_Add2 r;
584         NTSTATUS status;
585         
586         /* In parameters */
587         
588         if (DEBUGLEVEL >= 10)
589                 NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
590         
591         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2);
592         
593         if ( !NT_STATUS_IS_OK(status) ) {
594                 return status;
595         }
596         
597         if (DEBUGLEVEL >= 10)
598                 NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
599         
600         if (NT_STATUS_IS_ERR(status)) {
601                 return status;
602         }
603         
604         /* Return variables */
605         
606         /* Return result */
607         return werror_to_ntstatus(r.out.result);
608 }
609
610 NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
611 {
612         struct dfs_Remove2 r;
613         NTSTATUS status;
614         
615         /* In parameters */
616         
617         if (DEBUGLEVEL >= 10)
618                 NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
619         
620         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2);
621         
622         if ( !NT_STATUS_IS_OK(status) ) {
623                 return status;
624         }
625         
626         if (DEBUGLEVEL >= 10)
627                 NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
628         
629         if (NT_STATUS_IS_ERR(status)) {
630                 return status;
631         }
632         
633         /* Return variables */
634         
635         /* Return result */
636         return werror_to_ntstatus(r.out.result);
637 }
638
639 NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct **info, uint32_t **total)
640 {
641         struct dfs_EnumEx r;
642         NTSTATUS status;
643         
644         /* In parameters */
645         r.in.name = name;
646         r.in.level = level;
647         r.in.bufsize = bufsize;
648         r.in.info = *info;
649         r.in.total = *total;
650         
651         if (DEBUGLEVEL >= 10)
652                 NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
653         
654         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx);
655         
656         if ( !NT_STATUS_IS_OK(status) ) {
657                 return status;
658         }
659         
660         if (DEBUGLEVEL >= 10)
661                 NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
662         
663         if (NT_STATUS_IS_ERR(status)) {
664                 return status;
665         }
666         
667         /* Return variables */
668         *info = r.out.info;
669         *total = r.out.total;
670         
671         /* Return result */
672         return werror_to_ntstatus(r.out.result);
673 }
674
675 NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
676 {
677         struct dfs_SetInfo2 r;
678         NTSTATUS status;
679         
680         /* In parameters */
681         
682         if (DEBUGLEVEL >= 10)
683                 NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
684         
685         status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2);
686         
687         if ( !NT_STATUS_IS_OK(status) ) {
688                 return status;
689         }
690         
691         if (DEBUGLEVEL >= 10)
692                 NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
693         
694         if (NT_STATUS_IS_ERR(status)) {
695                 return status;
696         }
697         
698         /* Return variables */
699         
700         /* Return result */
701         return werror_to_ntstatus(r.out.result);
702 }
703