r20832: Remove extra pointers previously added to unique [out] pointers. Instead,
[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         if ( info ) {
198                 *info = *r.out.info;
199         }
200         if ( total ) {
201                 *total = *r.out.total;
202         }
203         
204         /* Return result */
205         return werror_to_ntstatus(r.out.result);
206 }
207
208 NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
209 {
210         struct dfs_Rename r;
211         NTSTATUS status;
212         
213         /* In parameters */
214         
215         if (DEBUGLEVEL >= 10)
216                 NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
217         
218         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);
219         
220         if ( !NT_STATUS_IS_OK(status) ) {
221                 return status;
222         }
223         
224         if (DEBUGLEVEL >= 10)
225                 NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
226         
227         if (NT_STATUS_IS_ERR(status)) {
228                 return status;
229         }
230         
231         /* Return variables */
232         
233         /* Return result */
234         return werror_to_ntstatus(r.out.result);
235 }
236
237 NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
238 {
239         struct dfs_Move r;
240         NTSTATUS status;
241         
242         /* In parameters */
243         
244         if (DEBUGLEVEL >= 10)
245                 NDR_PRINT_IN_DEBUG(dfs_Move, &r);
246         
247         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);
248         
249         if ( !NT_STATUS_IS_OK(status) ) {
250                 return status;
251         }
252         
253         if (DEBUGLEVEL >= 10)
254                 NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
255         
256         if (NT_STATUS_IS_ERR(status)) {
257                 return status;
258         }
259         
260         /* Return variables */
261         
262         /* Return result */
263         return werror_to_ntstatus(r.out.result);
264 }
265
266 NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
267 {
268         struct dfs_ManagerGetConfigInfo r;
269         NTSTATUS status;
270         
271         /* In parameters */
272         
273         if (DEBUGLEVEL >= 10)
274                 NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
275         
276         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);
277         
278         if ( !NT_STATUS_IS_OK(status) ) {
279                 return status;
280         }
281         
282         if (DEBUGLEVEL >= 10)
283                 NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
284         
285         if (NT_STATUS_IS_ERR(status)) {
286                 return status;
287         }
288         
289         /* Return variables */
290         
291         /* Return result */
292         return werror_to_ntstatus(r.out.result);
293 }
294
295 NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
296 {
297         struct dfs_ManagerSendSiteInfo r;
298         NTSTATUS status;
299         
300         /* In parameters */
301         
302         if (DEBUGLEVEL >= 10)
303                 NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
304         
305         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);
306         
307         if ( !NT_STATUS_IS_OK(status) ) {
308                 return status;
309         }
310         
311         if (DEBUGLEVEL >= 10)
312                 NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
313         
314         if (NT_STATUS_IS_ERR(status)) {
315                 return status;
316         }
317         
318         /* Return variables */
319         
320         /* Return result */
321         return werror_to_ntstatus(r.out.result);
322 }
323
324 NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
325 {
326         struct dfs_AddFtRoot r;
327         NTSTATUS status;
328         
329         /* In parameters */
330         
331         if (DEBUGLEVEL >= 10)
332                 NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
333         
334         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);
335         
336         if ( !NT_STATUS_IS_OK(status) ) {
337                 return status;
338         }
339         
340         if (DEBUGLEVEL >= 10)
341                 NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
342         
343         if (NT_STATUS_IS_ERR(status)) {
344                 return status;
345         }
346         
347         /* Return variables */
348         
349         /* Return result */
350         return werror_to_ntstatus(r.out.result);
351 }
352
353 NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
354 {
355         struct dfs_RemoveFtRoot r;
356         NTSTATUS status;
357         
358         /* In parameters */
359         
360         if (DEBUGLEVEL >= 10)
361                 NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
362         
363         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);
364         
365         if ( !NT_STATUS_IS_OK(status) ) {
366                 return status;
367         }
368         
369         if (DEBUGLEVEL >= 10)
370                 NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
371         
372         if (NT_STATUS_IS_ERR(status)) {
373                 return status;
374         }
375         
376         /* Return variables */
377         
378         /* Return result */
379         return werror_to_ntstatus(r.out.result);
380 }
381
382 NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
383 {
384         struct dfs_AddStdRoot r;
385         NTSTATUS status;
386         
387         /* In parameters */
388         
389         if (DEBUGLEVEL >= 10)
390                 NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
391         
392         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);
393         
394         if ( !NT_STATUS_IS_OK(status) ) {
395                 return status;
396         }
397         
398         if (DEBUGLEVEL >= 10)
399                 NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
400         
401         if (NT_STATUS_IS_ERR(status)) {
402                 return status;
403         }
404         
405         /* Return variables */
406         
407         /* Return result */
408         return werror_to_ntstatus(r.out.result);
409 }
410
411 NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
412 {
413         struct dfs_RemoveStdRoot r;
414         NTSTATUS status;
415         
416         /* In parameters */
417         
418         if (DEBUGLEVEL >= 10)
419                 NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
420         
421         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);
422         
423         if ( !NT_STATUS_IS_OK(status) ) {
424                 return status;
425         }
426         
427         if (DEBUGLEVEL >= 10)
428                 NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
429         
430         if (NT_STATUS_IS_ERR(status)) {
431                 return status;
432         }
433         
434         /* Return variables */
435         
436         /* Return result */
437         return werror_to_ntstatus(r.out.result);
438 }
439
440 NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
441 {
442         struct dfs_ManagerInitialize r;
443         NTSTATUS status;
444         
445         /* In parameters */
446         
447         if (DEBUGLEVEL >= 10)
448                 NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
449         
450         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);
451         
452         if ( !NT_STATUS_IS_OK(status) ) {
453                 return status;
454         }
455         
456         if (DEBUGLEVEL >= 10)
457                 NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
458         
459         if (NT_STATUS_IS_ERR(status)) {
460                 return status;
461         }
462         
463         /* Return variables */
464         
465         /* Return result */
466         return werror_to_ntstatus(r.out.result);
467 }
468
469 NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
470 {
471         struct dfs_AddStdRootForced r;
472         NTSTATUS status;
473         
474         /* In parameters */
475         
476         if (DEBUGLEVEL >= 10)
477                 NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
478         
479         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);
480         
481         if ( !NT_STATUS_IS_OK(status) ) {
482                 return status;
483         }
484         
485         if (DEBUGLEVEL >= 10)
486                 NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
487         
488         if (NT_STATUS_IS_ERR(status)) {
489                 return status;
490         }
491         
492         /* Return variables */
493         
494         /* Return result */
495         return werror_to_ntstatus(r.out.result);
496 }
497
498 NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
499 {
500         struct dfs_GetDcAddress r;
501         NTSTATUS status;
502         
503         /* In parameters */
504         
505         if (DEBUGLEVEL >= 10)
506                 NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
507         
508         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);
509         
510         if ( !NT_STATUS_IS_OK(status) ) {
511                 return status;
512         }
513         
514         if (DEBUGLEVEL >= 10)
515                 NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
516         
517         if (NT_STATUS_IS_ERR(status)) {
518                 return status;
519         }
520         
521         /* Return variables */
522         
523         /* Return result */
524         return werror_to_ntstatus(r.out.result);
525 }
526
527 NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
528 {
529         struct dfs_SetDcAddress r;
530         NTSTATUS status;
531         
532         /* In parameters */
533         
534         if (DEBUGLEVEL >= 10)
535                 NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
536         
537         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);
538         
539         if ( !NT_STATUS_IS_OK(status) ) {
540                 return status;
541         }
542         
543         if (DEBUGLEVEL >= 10)
544                 NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
545         
546         if (NT_STATUS_IS_ERR(status)) {
547                 return status;
548         }
549         
550         /* Return variables */
551         
552         /* Return result */
553         return werror_to_ntstatus(r.out.result);
554 }
555
556 NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
557 {
558         struct dfs_FlushFtTable r;
559         NTSTATUS status;
560         
561         /* In parameters */
562         
563         if (DEBUGLEVEL >= 10)
564                 NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
565         
566         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);
567         
568         if ( !NT_STATUS_IS_OK(status) ) {
569                 return status;
570         }
571         
572         if (DEBUGLEVEL >= 10)
573                 NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
574         
575         if (NT_STATUS_IS_ERR(status)) {
576                 return status;
577         }
578         
579         /* Return variables */
580         
581         /* Return result */
582         return werror_to_ntstatus(r.out.result);
583 }
584
585 NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
586 {
587         struct dfs_Add2 r;
588         NTSTATUS status;
589         
590         /* In parameters */
591         
592         if (DEBUGLEVEL >= 10)
593                 NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
594         
595         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);
596         
597         if ( !NT_STATUS_IS_OK(status) ) {
598                 return status;
599         }
600         
601         if (DEBUGLEVEL >= 10)
602                 NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
603         
604         if (NT_STATUS_IS_ERR(status)) {
605                 return status;
606         }
607         
608         /* Return variables */
609         
610         /* Return result */
611         return werror_to_ntstatus(r.out.result);
612 }
613
614 NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
615 {
616         struct dfs_Remove2 r;
617         NTSTATUS status;
618         
619         /* In parameters */
620         
621         if (DEBUGLEVEL >= 10)
622                 NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
623         
624         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);
625         
626         if ( !NT_STATUS_IS_OK(status) ) {
627                 return status;
628         }
629         
630         if (DEBUGLEVEL >= 10)
631                 NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
632         
633         if (NT_STATUS_IS_ERR(status)) {
634                 return status;
635         }
636         
637         /* Return variables */
638         
639         /* Return result */
640         return werror_to_ntstatus(r.out.result);
641 }
642
643 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)
644 {
645         struct dfs_EnumEx r;
646         NTSTATUS status;
647         
648         /* In parameters */
649         r.in.name = name;
650         r.in.level = level;
651         r.in.bufsize = bufsize;
652         r.in.info = info;
653         r.in.total = total;
654         
655         if (DEBUGLEVEL >= 10)
656                 NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
657         
658         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);
659         
660         if ( !NT_STATUS_IS_OK(status) ) {
661                 return status;
662         }
663         
664         if (DEBUGLEVEL >= 10)
665                 NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
666         
667         if (NT_STATUS_IS_ERR(status)) {
668                 return status;
669         }
670         
671         /* Return variables */
672         if ( info ) {
673                 *info = *r.out.info;
674         }
675         if ( total ) {
676                 *total = *r.out.total;
677         }
678         
679         /* Return result */
680         return werror_to_ntstatus(r.out.result);
681 }
682
683 NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
684 {
685         struct dfs_SetInfo2 r;
686         NTSTATUS status;
687         
688         /* In parameters */
689         
690         if (DEBUGLEVEL >= 10)
691                 NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
692         
693         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);
694         
695         if ( !NT_STATUS_IS_OK(status) ) {
696                 return status;
697         }
698         
699         if (DEBUGLEVEL >= 10)
700                 NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
701         
702         if (NT_STATUS_IS_ERR(status)) {
703                 return status;
704         }
705         
706         /* Return variables */
707         
708         /* Return result */
709         return werror_to_ntstatus(r.out.result);
710 }
711