Add new script for building IDL files in librpc/idl, generating both
[sfrench/samba-autobuild/.git] / librpc / gen_ndr / cli_srvsvc.h
1 #include "../librpc/gen_ndr/ndr_srvsvc.h"
2 #ifndef __CLI_SRVSVC__
3 #define __CLI_SRVSVC__
4 NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli,
5                                       TALLOC_CTX *mem_ctx,
6                                       const char *server_unc /* [in] [unique,charset(UTF16)] */,
7                                       struct srvsvc_NetCharDevInfoCtr *info_ctr /* [in,out] [ref] */,
8                                       uint32_t max_buffer /* [in]  */,
9                                       uint32_t *totalentries /* [out] [ref] */,
10                                       uint32_t *resume_handle /* [in,out] [unique] */,
11                                       WERROR *werror);
12 NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli,
13                                          TALLOC_CTX *mem_ctx,
14                                          const char *server_unc /* [in] [unique,charset(UTF16)] */,
15                                          const char *device_name /* [in] [charset(UTF16)] */,
16                                          uint32_t level /* [in]  */,
17                                          union srvsvc_NetCharDevInfo *info /* [out] [ref,switch_is(level)] */,
18                                          WERROR *werror);
19 NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli,
20                                          TALLOC_CTX *mem_ctx,
21                                          const char *server_unc /* [in] [unique,charset(UTF16)] */,
22                                          const char *device_name /* [in] [charset(UTF16)] */,
23                                          uint32_t opcode /* [in]  */,
24                                          WERROR *werror);
25 NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli,
26                                        TALLOC_CTX *mem_ctx,
27                                        const char *server_unc /* [in] [unique,charset(UTF16)] */,
28                                        const char *user /* [in] [unique,charset(UTF16)] */,
29                                        struct srvsvc_NetCharDevQInfoCtr *info_ctr /* [in,out] [ref] */,
30                                        uint32_t max_buffer /* [in]  */,
31                                        uint32_t *totalentries /* [out] [ref] */,
32                                        uint32_t *resume_handle /* [in,out] [unique] */,
33                                        WERROR *werror);
34 NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli,
35                                           TALLOC_CTX *mem_ctx,
36                                           const char *server_unc /* [in] [unique,charset(UTF16)] */,
37                                           const char *queue_name /* [in] [charset(UTF16)] */,
38                                           const char *user /* [in] [charset(UTF16)] */,
39                                           uint32_t level /* [in]  */,
40                                           union srvsvc_NetCharDevQInfo *info /* [out] [ref,switch_is(level)] */,
41                                           WERROR *werror);
42 NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli,
43                                           TALLOC_CTX *mem_ctx,
44                                           const char *server_unc /* [in] [unique,charset(UTF16)] */,
45                                           const char *queue_name /* [in] [charset(UTF16)] */,
46                                           uint32_t level /* [in]  */,
47                                           union srvsvc_NetCharDevQInfo info /* [in] [switch_is(level)] */,
48                                           uint32_t *parm_error /* [in,out] [unique] */,
49                                           WERROR *werror);
50 NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli,
51                                         TALLOC_CTX *mem_ctx,
52                                         const char *server_unc /* [in] [unique,charset(UTF16)] */,
53                                         const char *queue_name /* [in] [charset(UTF16)] */,
54                                         WERROR *werror);
55 NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli,
56                                             TALLOC_CTX *mem_ctx,
57                                             const char *server_unc /* [in] [unique,charset(UTF16)] */,
58                                             const char *queue_name /* [in] [charset(UTF16)] */,
59                                             const char *computer_name /* [in] [charset(UTF16)] */,
60                                             WERROR *werror);
61 NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli,
62                                    TALLOC_CTX *mem_ctx,
63                                    const char *server_unc /* [in] [unique,charset(UTF16)] */,
64                                    const char *path /* [in] [unique,charset(UTF16)] */,
65                                    struct srvsvc_NetConnInfoCtr *info_ctr /* [in,out] [ref] */,
66                                    uint32_t max_buffer /* [in]  */,
67                                    uint32_t *totalentries /* [out] [ref] */,
68                                    uint32_t *resume_handle /* [in,out] [unique] */,
69                                    WERROR *werror);
70 NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli,
71                                    TALLOC_CTX *mem_ctx,
72                                    const char *server_unc /* [in] [unique,charset(UTF16)] */,
73                                    const char *path /* [in] [unique,charset(UTF16)] */,
74                                    const char *user /* [in] [unique,charset(UTF16)] */,
75                                    struct srvsvc_NetFileInfoCtr *info_ctr /* [in,out] [ref] */,
76                                    uint32_t max_buffer /* [in]  */,
77                                    uint32_t *totalentries /* [out] [ref] */,
78                                    uint32_t *resume_handle /* [in,out] [unique] */,
79                                    WERROR *werror);
80 NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli,
81                                       TALLOC_CTX *mem_ctx,
82                                       const char *server_unc /* [in] [unique,charset(UTF16)] */,
83                                       uint32_t fid /* [in]  */,
84                                       uint32_t level /* [in]  */,
85                                       union srvsvc_NetFileInfo *info /* [out] [ref,switch_is(level)] */,
86                                       WERROR *werror);
87 NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli,
88                                     TALLOC_CTX *mem_ctx,
89                                     const char *server_unc /* [in] [unique,charset(UTF16)] */,
90                                     uint32_t fid /* [in]  */,
91                                     WERROR *werror);
92 NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli,
93                                    TALLOC_CTX *mem_ctx,
94                                    const char *server_unc /* [in] [unique,charset(UTF16)] */,
95                                    const char *client /* [in] [unique,charset(UTF16)] */,
96                                    const char *user /* [in] [unique,charset(UTF16)] */,
97                                    struct srvsvc_NetSessInfoCtr *info_ctr /* [in,out] [ref] */,
98                                    uint32_t max_buffer /* [in]  */,
99                                    uint32_t *totalentries /* [out] [ref] */,
100                                    uint32_t *resume_handle /* [in,out] [unique] */,
101                                    WERROR *werror);
102 NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli,
103                                   TALLOC_CTX *mem_ctx,
104                                   const char *server_unc /* [in] [unique,charset(UTF16)] */,
105                                   const char *client /* [in] [unique,charset(UTF16)] */,
106                                   const char *user /* [in] [unique,charset(UTF16)] */,
107                                   WERROR *werror);
108 NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli,
109                                    TALLOC_CTX *mem_ctx,
110                                    const char *server_unc /* [in] [unique,charset(UTF16)] */,
111                                    uint32_t level /* [in]  */,
112                                    union srvsvc_NetShareInfo *info /* [in] [ref,switch_is(level)] */,
113                                    uint32_t *parm_error /* [in,out] [unique] */,
114                                    WERROR *werror);
115 NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli,
116                                        TALLOC_CTX *mem_ctx,
117                                        const char *server_unc /* [in] [unique,charset(UTF16)] */,
118                                        struct srvsvc_NetShareInfoCtr *info_ctr /* [in,out] [ref] */,
119                                        uint32_t max_buffer /* [in]  */,
120                                        uint32_t *totalentries /* [out] [ref] */,
121                                        uint32_t *resume_handle /* [in,out] [unique] */,
122                                        WERROR *werror);
123 NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli,
124                                        TALLOC_CTX *mem_ctx,
125                                        const char *server_unc /* [in] [unique,charset(UTF16)] */,
126                                        const char *share_name /* [in] [charset(UTF16)] */,
127                                        uint32_t level /* [in]  */,
128                                        union srvsvc_NetShareInfo *info /* [out] [ref,switch_is(level)] */,
129                                        WERROR *werror);
130 NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli,
131                                        TALLOC_CTX *mem_ctx,
132                                        const char *server_unc /* [in] [unique,charset(UTF16)] */,
133                                        const char *share_name /* [in] [charset(UTF16)] */,
134                                        uint32_t level /* [in]  */,
135                                        union srvsvc_NetShareInfo *info /* [in] [ref,switch_is(level)] */,
136                                        uint32_t *parm_error /* [in,out] [unique] */,
137                                        WERROR *werror);
138 NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli,
139                                    TALLOC_CTX *mem_ctx,
140                                    const char *server_unc /* [in] [unique,charset(UTF16)] */,
141                                    const char *share_name /* [in] [charset(UTF16)] */,
142                                    uint32_t reserved /* [in]  */,
143                                    WERROR *werror);
144 NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli,
145                                          TALLOC_CTX *mem_ctx,
146                                          const char *server_unc /* [in] [unique,charset(UTF16)] */,
147                                          const char *share_name /* [in] [charset(UTF16)] */,
148                                          uint32_t reserved /* [in]  */,
149                                          WERROR *werror);
150 NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli,
151                                      TALLOC_CTX *mem_ctx,
152                                      const char *server_unc /* [in] [unique,charset(UTF16)] */,
153                                      const char *device_name /* [in] [charset(UTF16)] */,
154                                      enum srvsvc_ShareType *type /* [out] [ref] */,
155                                      WERROR *werror);
156 NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli,
157                                      TALLOC_CTX *mem_ctx,
158                                      const char *server_unc /* [in] [unique,charset(UTF16)] */,
159                                      uint32_t level /* [in]  */,
160                                      union srvsvc_NetSrvInfo *info /* [out] [ref,switch_is(level)] */,
161                                      WERROR *werror);
162 NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli,
163                                      TALLOC_CTX *mem_ctx,
164                                      const char *server_unc /* [in] [unique,charset(UTF16)] */,
165                                      uint32_t level /* [in]  */,
166                                      union srvsvc_NetSrvInfo *info /* [in] [ref,switch_is(level)] */,
167                                      uint32_t *parm_error /* [in,out] [unique] */,
168                                      WERROR *werror);
169 NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli,
170                                    TALLOC_CTX *mem_ctx,
171                                    const char *server_unc /* [in] [unique,charset(UTF16)] */,
172                                    uint32_t level /* [in]  */,
173                                    struct srvsvc_NetDiskInfo *info /* [in,out] [ref] */,
174                                    uint32_t maxlen /* [in]  */,
175                                    uint32_t *totalentries /* [out] [ref] */,
176                                    uint32_t *resume_handle /* [in,out] [unique] */,
177                                    WERROR *werror);
178 NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli,
179                                               TALLOC_CTX *mem_ctx,
180                                               const char *server_unc /* [in] [unique,charset(UTF16)] */,
181                                               const char *service /* [in] [unique,charset(UTF16)] */,
182                                               uint32_t level /* [in]  */,
183                                               uint32_t options /* [in]  */,
184                                               struct srvsvc_Statistics **stats /* [out] [ref] */,
185                                               WERROR *werror);
186 NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli,
187                                        TALLOC_CTX *mem_ctx,
188                                        const char *server_unc /* [in] [unique,charset(UTF16)] */,
189                                        uint32_t level /* [in]  */,
190                                        union srvsvc_NetTransportInfo info /* [in] [switch_is(level)] */,
191                                        WERROR *werror);
192 NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli,
193                                         TALLOC_CTX *mem_ctx,
194                                         const char *server_unc /* [in] [unique,charset(UTF16)] */,
195                                         struct srvsvc_NetTransportInfoCtr *transports /* [in,out] [ref] */,
196                                         uint32_t max_buffer /* [in]  */,
197                                         uint32_t *totalentries /* [out] [ref] */,
198                                         uint32_t *resume_handle /* [in,out] [unique] */,
199                                         WERROR *werror);
200 NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli,
201                                        TALLOC_CTX *mem_ctx,
202                                        const char *server_unc /* [in] [unique,charset(UTF16)] */,
203                                        uint32_t level /* [in]  */,
204                                        struct srvsvc_NetTransportInfo0 *info0 /* [in] [ref] */,
205                                        WERROR *werror);
206 NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli,
207                                     TALLOC_CTX *mem_ctx,
208                                     const char *server_unc /* [in] [unique,charset(UTF16)] */,
209                                     struct srvsvc_NetRemoteTODInfo **info /* [out] [ref] */,
210                                     WERROR *werror);
211 NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli,
212                                          TALLOC_CTX *mem_ctx,
213                                          const char *server_unc /* [in] [unique,charset(UTF16)] */,
214                                          const char *transport /* [in] [unique,charset(UTF16)] */,
215                                          uint32_t servicebits /* [in]  */,
216                                          uint32_t updateimmediately /* [in]  */,
217                                          WERROR *werror);
218 NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli,
219                                    TALLOC_CTX *mem_ctx,
220                                    const char *server_unc /* [in] [unique,charset(UTF16)] */,
221                                    const char *path /* [in] [charset(UTF16)] */,
222                                    uint32_t pathflags /* [in]  */,
223                                    uint32_t *pathtype /* [out] [ref] */,
224                                    WERROR *werror);
225 NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli,
226                                            TALLOC_CTX *mem_ctx,
227                                            const char *server_unc /* [in] [unique,charset(UTF16)] */,
228                                            const char *path /* [in] [charset(UTF16)] */,
229                                            uint8_t *can_path /* [out] [size_is(maxbuf)] */,
230                                            uint32_t maxbuf /* [in]  */,
231                                            const char *prefix /* [in] [charset(UTF16)] */,
232                                            uint32_t *pathtype /* [in,out] [ref] */,
233                                            uint32_t pathflags /* [in]  */,
234                                            WERROR *werror);
235 NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli,
236                                       TALLOC_CTX *mem_ctx,
237                                       const char *server_unc /* [in] [unique,charset(UTF16)] */,
238                                       const char *path1 /* [in] [charset(UTF16)] */,
239                                       const char *path2 /* [in] [charset(UTF16)] */,
240                                       uint32_t pathtype /* [in]  */,
241                                       uint32_t pathflags /* [in]  */,
242                                       WERROR *werror);
243 NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli,
244                                        TALLOC_CTX *mem_ctx,
245                                        const char *server_unc /* [in] [unique,charset(UTF16)] */,
246                                        const char *name /* [in] [charset(UTF16)] */,
247                                        uint32_t name_type /* [in]  */,
248                                        uint32_t flags /* [in]  */,
249                                        WERROR *werror);
250 NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli,
251                                               TALLOC_CTX *mem_ctx,
252                                               WERROR *werror);
253 NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli,
254                                         TALLOC_CTX *mem_ctx,
255                                         const char *server_unc /* [in] [unique,charset(UTF16)] */,
256                                         const char *name1 /* [in] [charset(UTF16)] */,
257                                         const char *name2 /* [in] [charset(UTF16)] */,
258                                         uint32_t name_type /* [in]  */,
259                                         uint32_t flags /* [in]  */,
260                                         WERROR *werror);
261 NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli,
262                                     TALLOC_CTX *mem_ctx,
263                                     const char *server_unc /* [in] [unique,charset(UTF16)] */,
264                                     struct srvsvc_NetShareInfoCtr *info_ctr /* [in,out] [ref] */,
265                                     uint32_t max_buffer /* [in]  */,
266                                     uint32_t *totalentries /* [out] [ref] */,
267                                     uint32_t *resume_handle /* [in,out] [unique] */,
268                                     WERROR *werror);
269 NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli,
270                                         TALLOC_CTX *mem_ctx,
271                                         const char *server_unc /* [in] [unique,charset(UTF16)] */,
272                                         const char *share /* [in] [charset(UTF16)] */,
273                                         uint32_t reserved /* [in]  */,
274                                         struct policy_handle *hnd /* [out] [unique] */,
275                                         WERROR *werror);
276 NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli,
277                                          TALLOC_CTX *mem_ctx,
278                                          struct policy_handle *hnd /* [in,out] [unique] */,
279                                          WERROR *werror);
280 NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli,
281                                           TALLOC_CTX *mem_ctx,
282                                           const char *server_unc /* [in] [unique,charset(UTF16)] */,
283                                           const char *share /* [in] [unique,charset(UTF16)] */,
284                                           const char *file /* [in] [charset(UTF16)] */,
285                                           uint32_t securityinformation /* [in]  */,
286                                           struct sec_desc_buf **sd_buf /* [out] [ref] */,
287                                           WERROR *werror);
288 NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli,
289                                           TALLOC_CTX *mem_ctx,
290                                           const char *server_unc /* [in] [unique,charset(UTF16)] */,
291                                           const char *share /* [in] [unique,charset(UTF16)] */,
292                                           const char *file /* [in] [charset(UTF16)] */,
293                                           uint32_t securityinformation /* [in]  */,
294                                           struct sec_desc_buf *sd_buf /* [in] [ref] */,
295                                           WERROR *werror);
296 NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli,
297                                                TALLOC_CTX *mem_ctx,
298                                                const char *server_unc /* [in] [unique,charset(UTF16)] */,
299                                                uint32_t level /* [in]  */,
300                                                union srvsvc_NetTransportInfo info /* [in] [switch_is(level)] */,
301                                                WERROR *werror);
302 NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli,
303                                                  TALLOC_CTX *mem_ctx,
304                                                  const char *server_unc /* [in] [unique,charset(UTF16)] */,
305                                                  const char *emulated_server_unc /* [in] [unique,charset(UTF16)] */,
306                                                  const char *transport /* [in] [unique,charset(UTF16)] */,
307                                                  uint32_t servicebitsofinterest /* [in]  */,
308                                                  uint32_t servicebits /* [in]  */,
309                                                  uint32_t updateimmediately /* [in]  */,
310                                                  WERROR *werror);
311 NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli,
312                                          TALLOC_CTX *mem_ctx,
313                                          WERROR *werror);
314 NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli,
315                                                    TALLOC_CTX *mem_ctx,
316                                                    WERROR *werror);
317 NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli,
318                                                    TALLOC_CTX *mem_ctx,
319                                                    WERROR *werror);
320 NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli,
321                                                   TALLOC_CTX *mem_ctx,
322                                                   WERROR *werror);
323 NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli,
324                                             TALLOC_CTX *mem_ctx,
325                                             WERROR *werror);
326 NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli,
327                                               TALLOC_CTX *mem_ctx,
328                                               WERROR *werror);
329 NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli,
330                                               TALLOC_CTX *mem_ctx,
331                                               WERROR *werror);
332 NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli,
333                                            TALLOC_CTX *mem_ctx,
334                                            WERROR *werror);
335 NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli,
336                                              TALLOC_CTX *mem_ctx,
337                                              WERROR *werror);
338 NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli,
339                                                     TALLOC_CTX *mem_ctx,
340                                                     WERROR *werror);
341 NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli,
342                                                 TALLOC_CTX *mem_ctx,
343                                                 WERROR *werror);
344 #endif /* __CLI_SRVSVC__ */