git add -f bin/default/librpc/gen_ndr/*.[ch] bin/default/source*/librpc/gen_ndr/...
[metze/samba/wip.git] / bin.gen_ndr / default / librpc / gen_ndr / ndr_remact.c
1 /* parser auto-generated by pidl */
2
3 #include "includes.h"
4 #include "bin/default/librpc/gen_ndr/ndr_remact.h"
5
6 #include "librpc/gen_ndr/ndr_misc.h"
7 #include "librpc/gen_ndr/ndr_orpc.h"
8 static enum ndr_err_code ndr_push_RemoteActivation(struct ndr_push *ndr, int flags, const struct RemoteActivation *r)
9 {
10         uint32_t cntr_pIIDs_1;
11         uint32_t cntr_protseq_0;
12         uint32_t cntr_ifaces_0;
13         uint32_t cntr_results_0;
14         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15         if (flags & NDR_IN) {
16                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.this_object));
17                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->in.Clsid));
18                 if (r->in.pwszObjectName == NULL) {
19                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20                 }
21                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.pwszObjectName, CH_UTF16)));
22                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
23                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.pwszObjectName, CH_UTF16)));
24                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.pwszObjectName, ndr_charset_length(r->in.pwszObjectName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
25                 if (r->in.pObjectStorage == NULL) {
26                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
27                 }
28                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObjectStorage));
29                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.ClientImpLevel));
30                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.Mode));
31                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.Interfaces));
32                 if (r->in.pIIDs == NULL) {
33                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
34                 }
35                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.Interfaces));
36                 for (cntr_pIIDs_1 = 0; cntr_pIIDs_1 < r->in.Interfaces; cntr_pIIDs_1++) {
37                         NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->in.pIIDs[cntr_pIIDs_1]));
38                 }
39                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.num_protseqs));
40                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.num_protseqs));
41                 for (cntr_protseq_0 = 0; cntr_protseq_0 < r->in.num_protseqs; cntr_protseq_0++) {
42                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.protseq[cntr_protseq_0]));
43                 }
44         }
45         if (flags & NDR_OUT) {
46                 if (r->out.that == NULL) {
47                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
48                 }
49                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.that));
50                 if (r->out.pOxid == NULL) {
51                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
52                 }
53                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, *r->out.pOxid));
54                 if (r->out.pdsaOxidBindings == NULL) {
55                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
56                 }
57                 NDR_CHECK(ndr_push_DUALSTRINGARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.pdsaOxidBindings));
58                 if (r->out.ipidRemUnknown == NULL) {
59                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
60                 }
61                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->out.ipidRemUnknown));
62                 if (r->out.AuthnHint == NULL) {
63                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
64                 }
65                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.AuthnHint));
66                 if (r->out.ServerVersion == NULL) {
67                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
68                 }
69                 NDR_CHECK(ndr_push_COMVERSION(ndr, NDR_SCALARS, r->out.ServerVersion));
70                 if (r->out.hr == NULL) {
71                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
72                 }
73                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.hr));
74                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.Interfaces));
75                 for (cntr_ifaces_0 = 0; cntr_ifaces_0 < r->in.Interfaces; cntr_ifaces_0++) {
76                         if (r->out.ifaces[cntr_ifaces_0] == NULL) {
77                                 return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
78                         }
79                 }
80                 for (cntr_ifaces_0 = 0; cntr_ifaces_0 < r->in.Interfaces; cntr_ifaces_0++) {
81                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ifaces[cntr_ifaces_0]));
82                 }
83                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.Interfaces));
84                 for (cntr_results_0 = 0; cntr_results_0 < r->in.Interfaces; cntr_results_0++) {
85                         NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.results[cntr_results_0]));
86                 }
87                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
88         }
89         return NDR_ERR_SUCCESS;
90 }
91
92 static enum ndr_err_code ndr_pull_RemoteActivation(struct ndr_pull *ndr, int flags, struct RemoteActivation *r)
93 {
94         uint32_t size_pwszObjectName_1 = 0;
95         uint32_t length_pwszObjectName_1 = 0;
96         uint32_t size_pIIDs_1 = 0;
97         uint32_t cntr_pIIDs_1;
98         uint32_t size_protseq_0 = 0;
99         uint32_t cntr_protseq_0;
100         uint32_t size_ifaces_0 = 0;
101         uint32_t cntr_ifaces_0;
102         uint32_t size_results_0 = 0;
103         uint32_t cntr_results_0;
104         TALLOC_CTX *_mem_save_that_0;
105         TALLOC_CTX *_mem_save_pObjectStorage_0;
106         TALLOC_CTX *_mem_save_pIIDs_1;
107         TALLOC_CTX *_mem_save_protseq_0;
108         TALLOC_CTX *_mem_save_pOxid_0;
109         TALLOC_CTX *_mem_save_pdsaOxidBindings_0;
110         TALLOC_CTX *_mem_save_ipidRemUnknown_0;
111         TALLOC_CTX *_mem_save_AuthnHint_0;
112         TALLOC_CTX *_mem_save_ServerVersion_0;
113         TALLOC_CTX *_mem_save_hr_0;
114         TALLOC_CTX *_mem_save_ifaces_0;
115         TALLOC_CTX *_mem_save_ifaces_1;
116         TALLOC_CTX *_mem_save_results_0;
117         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
118         if (flags & NDR_IN) {
119                 ZERO_STRUCT(r->out);
120
121                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.this_object));
122                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->in.Clsid));
123                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pwszObjectName));
124                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.pwszObjectName));
125                 size_pwszObjectName_1 = ndr_get_array_size(ndr, &r->in.pwszObjectName);
126                 length_pwszObjectName_1 = ndr_get_array_length(ndr, &r->in.pwszObjectName);
127                 if (length_pwszObjectName_1 > size_pwszObjectName_1) {
128                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_pwszObjectName_1, length_pwszObjectName_1);
129                 }
130                 NDR_CHECK(ndr_check_string_terminator(ndr, length_pwszObjectName_1, sizeof(uint16_t)));
131                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.pwszObjectName, length_pwszObjectName_1, sizeof(uint16_t), CH_UTF16));
132                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
133                         NDR_PULL_ALLOC(ndr, r->in.pObjectStorage);
134                 }
135                 _mem_save_pObjectStorage_0 = NDR_PULL_GET_MEM_CTX(ndr);
136                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pObjectStorage, LIBNDR_FLAG_REF_ALLOC);
137                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObjectStorage));
138                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pObjectStorage_0, LIBNDR_FLAG_REF_ALLOC);
139                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.ClientImpLevel));
140                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.Mode));
141                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.Interfaces));
142                 if (r->in.Interfaces < 1 || r->in.Interfaces > 32768) {
143                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
144                 }
145                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pIIDs));
146                 size_pIIDs_1 = ndr_get_array_size(ndr, &r->in.pIIDs);
147                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
148                         NDR_PULL_ALLOC_N(ndr, r->in.pIIDs, size_pIIDs_1);
149                 }
150                 _mem_save_pIIDs_1 = NDR_PULL_GET_MEM_CTX(ndr);
151                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pIIDs, 0);
152                 for (cntr_pIIDs_1 = 0; cntr_pIIDs_1 < size_pIIDs_1; cntr_pIIDs_1++) {
153                         NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->in.pIIDs[cntr_pIIDs_1]));
154                 }
155                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pIIDs_1, 0);
156                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.num_protseqs));
157                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.protseq));
158                 size_protseq_0 = ndr_get_array_size(ndr, &r->in.protseq);
159                 NDR_PULL_ALLOC_N(ndr, r->in.protseq, size_protseq_0);
160                 _mem_save_protseq_0 = NDR_PULL_GET_MEM_CTX(ndr);
161                 NDR_PULL_SET_MEM_CTX(ndr, r->in.protseq, 0);
162                 for (cntr_protseq_0 = 0; cntr_protseq_0 < size_protseq_0; cntr_protseq_0++) {
163                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.protseq[cntr_protseq_0]));
164                 }
165                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_protseq_0, 0);
166                 NDR_PULL_ALLOC(ndr, r->out.that);
167                 ZERO_STRUCTP(r->out.that);
168                 NDR_PULL_ALLOC(ndr, r->out.pOxid);
169                 ZERO_STRUCTP(r->out.pOxid);
170                 NDR_PULL_ALLOC(ndr, r->out.pdsaOxidBindings);
171                 ZERO_STRUCTP(r->out.pdsaOxidBindings);
172                 NDR_PULL_ALLOC(ndr, r->out.ipidRemUnknown);
173                 ZERO_STRUCTP(r->out.ipidRemUnknown);
174                 NDR_PULL_ALLOC(ndr, r->out.AuthnHint);
175                 ZERO_STRUCTP(r->out.AuthnHint);
176                 NDR_PULL_ALLOC(ndr, r->out.ServerVersion);
177                 ZERO_STRUCTP(r->out.ServerVersion);
178                 NDR_PULL_ALLOC(ndr, r->out.hr);
179                 ZERO_STRUCTP(r->out.hr);
180                 if (r->in.pIIDs) {
181                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.pIIDs, r->in.Interfaces));
182                 }
183                 if (r->in.protseq) {
184                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.protseq, r->in.num_protseqs));
185                 }
186         }
187         if (flags & NDR_OUT) {
188                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
189                         NDR_PULL_ALLOC(ndr, r->out.that);
190                 }
191                 _mem_save_that_0 = NDR_PULL_GET_MEM_CTX(ndr);
192                 NDR_PULL_SET_MEM_CTX(ndr, r->out.that, LIBNDR_FLAG_REF_ALLOC);
193                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.that));
194                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_that_0, LIBNDR_FLAG_REF_ALLOC);
195                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
196                         NDR_PULL_ALLOC(ndr, r->out.pOxid);
197                 }
198                 _mem_save_pOxid_0 = NDR_PULL_GET_MEM_CTX(ndr);
199                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pOxid, LIBNDR_FLAG_REF_ALLOC);
200                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, r->out.pOxid));
201                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pOxid_0, LIBNDR_FLAG_REF_ALLOC);
202                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
203                         NDR_PULL_ALLOC(ndr, r->out.pdsaOxidBindings);
204                 }
205                 _mem_save_pdsaOxidBindings_0 = NDR_PULL_GET_MEM_CTX(ndr);
206                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pdsaOxidBindings, LIBNDR_FLAG_REF_ALLOC);
207                 NDR_CHECK(ndr_pull_DUALSTRINGARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.pdsaOxidBindings));
208                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pdsaOxidBindings_0, LIBNDR_FLAG_REF_ALLOC);
209                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
210                         NDR_PULL_ALLOC(ndr, r->out.ipidRemUnknown);
211                 }
212                 _mem_save_ipidRemUnknown_0 = NDR_PULL_GET_MEM_CTX(ndr);
213                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ipidRemUnknown, LIBNDR_FLAG_REF_ALLOC);
214                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->out.ipidRemUnknown));
215                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ipidRemUnknown_0, LIBNDR_FLAG_REF_ALLOC);
216                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
217                         NDR_PULL_ALLOC(ndr, r->out.AuthnHint);
218                 }
219                 _mem_save_AuthnHint_0 = NDR_PULL_GET_MEM_CTX(ndr);
220                 NDR_PULL_SET_MEM_CTX(ndr, r->out.AuthnHint, LIBNDR_FLAG_REF_ALLOC);
221                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.AuthnHint));
222                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_AuthnHint_0, LIBNDR_FLAG_REF_ALLOC);
223                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
224                         NDR_PULL_ALLOC(ndr, r->out.ServerVersion);
225                 }
226                 _mem_save_ServerVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
227                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ServerVersion, LIBNDR_FLAG_REF_ALLOC);
228                 NDR_CHECK(ndr_pull_COMVERSION(ndr, NDR_SCALARS, r->out.ServerVersion));
229                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ServerVersion_0, LIBNDR_FLAG_REF_ALLOC);
230                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
231                         NDR_PULL_ALLOC(ndr, r->out.hr);
232                 }
233                 _mem_save_hr_0 = NDR_PULL_GET_MEM_CTX(ndr);
234                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hr, LIBNDR_FLAG_REF_ALLOC);
235                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.hr));
236                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hr_0, LIBNDR_FLAG_REF_ALLOC);
237                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ifaces));
238                 size_ifaces_0 = ndr_get_array_size(ndr, &r->out.ifaces);
239                 NDR_PULL_ALLOC_N(ndr, r->out.ifaces, size_ifaces_0);
240                 _mem_save_ifaces_0 = NDR_PULL_GET_MEM_CTX(ndr);
241                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ifaces, 0);
242                 for (cntr_ifaces_0 = 0; cntr_ifaces_0 < size_ifaces_0; cntr_ifaces_0++) {
243                         if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
244                                 NDR_PULL_ALLOC(ndr, r->out.ifaces[cntr_ifaces_0]);
245                         }
246                 }
247                 for (cntr_ifaces_0 = 0; cntr_ifaces_0 < size_ifaces_0; cntr_ifaces_0++) {
248                         _mem_save_ifaces_1 = NDR_PULL_GET_MEM_CTX(ndr);
249                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ifaces[cntr_ifaces_0], LIBNDR_FLAG_REF_ALLOC);
250                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ifaces[cntr_ifaces_0]));
251                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ifaces_1, LIBNDR_FLAG_REF_ALLOC);
252                 }
253                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ifaces_0, 0);
254                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.results));
255                 size_results_0 = ndr_get_array_size(ndr, &r->out.results);
256                 NDR_PULL_ALLOC_N(ndr, r->out.results, size_results_0);
257                 _mem_save_results_0 = NDR_PULL_GET_MEM_CTX(ndr);
258                 NDR_PULL_SET_MEM_CTX(ndr, r->out.results, 0);
259                 for (cntr_results_0 = 0; cntr_results_0 < size_results_0; cntr_results_0++) {
260                         NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.results[cntr_results_0]));
261                 }
262                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_results_0, 0);
263                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
264                 if (r->out.ifaces) {
265                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.ifaces, r->in.Interfaces));
266                 }
267                 if (r->out.results) {
268                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.results, r->in.Interfaces));
269                 }
270         }
271         return NDR_ERR_SUCCESS;
272 }
273
274 _PUBLIC_ void ndr_print_RemoteActivation(struct ndr_print *ndr, const char *name, int flags, const struct RemoteActivation *r)
275 {
276         uint32_t cntr_pIIDs_1;
277         uint32_t cntr_protseq_0;
278         uint32_t cntr_ifaces_0;
279         uint32_t cntr_results_0;
280         ndr_print_struct(ndr, name, "RemoteActivation");
281         if (r == NULL) { ndr_print_null(ndr); return; }
282         ndr->depth++;
283         if (flags & NDR_SET_VALUES) {
284                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
285         }
286         if (flags & NDR_IN) {
287                 ndr_print_struct(ndr, "in", "RemoteActivation");
288                 ndr->depth++;
289                 ndr_print_ORPCTHIS(ndr, "this_object", &r->in.this_object);
290                 ndr_print_GUID(ndr, "Clsid", &r->in.Clsid);
291                 ndr_print_ptr(ndr, "pwszObjectName", r->in.pwszObjectName);
292                 ndr->depth++;
293                 ndr_print_string(ndr, "pwszObjectName", r->in.pwszObjectName);
294                 ndr->depth--;
295                 ndr_print_ptr(ndr, "pObjectStorage", r->in.pObjectStorage);
296                 ndr->depth++;
297                 ndr_print_MInterfacePointer(ndr, "pObjectStorage", r->in.pObjectStorage);
298                 ndr->depth--;
299                 ndr_print_uint32(ndr, "ClientImpLevel", r->in.ClientImpLevel);
300                 ndr_print_uint32(ndr, "Mode", r->in.Mode);
301                 ndr_print_uint32(ndr, "Interfaces", r->in.Interfaces);
302                 ndr_print_ptr(ndr, "pIIDs", r->in.pIIDs);
303                 ndr->depth++;
304                 ndr->print(ndr, "%s: ARRAY(%d)", "pIIDs", (int)r->in.Interfaces);
305                 ndr->depth++;
306                 for (cntr_pIIDs_1=0;cntr_pIIDs_1<r->in.Interfaces;cntr_pIIDs_1++) {
307                         ndr_print_GUID(ndr, "pIIDs", &r->in.pIIDs[cntr_pIIDs_1]);
308                 }
309                 ndr->depth--;
310                 ndr->depth--;
311                 ndr_print_uint16(ndr, "num_protseqs", r->in.num_protseqs);
312                 ndr->print(ndr, "%s: ARRAY(%d)", "protseq", (int)r->in.num_protseqs);
313                 ndr->depth++;
314                 for (cntr_protseq_0=0;cntr_protseq_0<r->in.num_protseqs;cntr_protseq_0++) {
315                         ndr_print_uint16(ndr, "protseq", r->in.protseq[cntr_protseq_0]);
316                 }
317                 ndr->depth--;
318                 ndr->depth--;
319         }
320         if (flags & NDR_OUT) {
321                 ndr_print_struct(ndr, "out", "RemoteActivation");
322                 ndr->depth++;
323                 ndr_print_ptr(ndr, "that", r->out.that);
324                 ndr->depth++;
325                 ndr_print_ORPCTHAT(ndr, "that", r->out.that);
326                 ndr->depth--;
327                 ndr_print_ptr(ndr, "pOxid", r->out.pOxid);
328                 ndr->depth++;
329                 ndr_print_hyper(ndr, "pOxid", *r->out.pOxid);
330                 ndr->depth--;
331                 ndr_print_ptr(ndr, "pdsaOxidBindings", r->out.pdsaOxidBindings);
332                 ndr->depth++;
333                 ndr_print_DUALSTRINGARRAY(ndr, "pdsaOxidBindings", r->out.pdsaOxidBindings);
334                 ndr->depth--;
335                 ndr_print_ptr(ndr, "ipidRemUnknown", r->out.ipidRemUnknown);
336                 ndr->depth++;
337                 ndr_print_GUID(ndr, "ipidRemUnknown", r->out.ipidRemUnknown);
338                 ndr->depth--;
339                 ndr_print_ptr(ndr, "AuthnHint", r->out.AuthnHint);
340                 ndr->depth++;
341                 ndr_print_uint32(ndr, "AuthnHint", *r->out.AuthnHint);
342                 ndr->depth--;
343                 ndr_print_ptr(ndr, "ServerVersion", r->out.ServerVersion);
344                 ndr->depth++;
345                 ndr_print_COMVERSION(ndr, "ServerVersion", r->out.ServerVersion);
346                 ndr->depth--;
347                 ndr_print_ptr(ndr, "hr", r->out.hr);
348                 ndr->depth++;
349                 ndr_print_WERROR(ndr, "hr", *r->out.hr);
350                 ndr->depth--;
351                 ndr->print(ndr, "%s: ARRAY(%d)", "ifaces", (int)r->in.Interfaces);
352                 ndr->depth++;
353                 for (cntr_ifaces_0=0;cntr_ifaces_0<r->in.Interfaces;cntr_ifaces_0++) {
354                         ndr_print_ptr(ndr, "ifaces", r->out.ifaces[cntr_ifaces_0]);
355                         ndr->depth++;
356                         ndr_print_MInterfacePointer(ndr, "ifaces", r->out.ifaces[cntr_ifaces_0]);
357                         ndr->depth--;
358                 }
359                 ndr->depth--;
360                 ndr->print(ndr, "%s: ARRAY(%d)", "results", (int)r->in.Interfaces);
361                 ndr->depth++;
362                 for (cntr_results_0=0;cntr_results_0<r->in.Interfaces;cntr_results_0++) {
363                         ndr_print_WERROR(ndr, "results", r->out.results[cntr_results_0]);
364                 }
365                 ndr->depth--;
366                 ndr_print_WERROR(ndr, "result", r->out.result);
367                 ndr->depth--;
368         }
369         ndr->depth--;
370 }
371
372 static const struct ndr_interface_call IRemoteActivation_calls[] = {
373         {
374                 "RemoteActivation",
375                 sizeof(struct RemoteActivation),
376                 (ndr_push_flags_fn_t) ndr_push_RemoteActivation,
377                 (ndr_pull_flags_fn_t) ndr_pull_RemoteActivation,
378                 (ndr_print_function_t) ndr_print_RemoteActivation,
379                 { 0, NULL },
380                 { 0, NULL },
381         },
382         { NULL, 0, NULL, NULL, NULL }
383 };
384
385 static const char * const IRemoteActivation_endpoint_strings[] = {
386         "ncalrpc:", 
387         "ncacn_ip_tcp:[135]", 
388         "ncacn_np:[\\pipe\\epmapper]", 
389 };
390
391 static const struct ndr_interface_string_array IRemoteActivation_endpoints = {
392         .count  = 3,
393         .names  = IRemoteActivation_endpoint_strings
394 };
395
396 static const char * const IRemoteActivation_authservice_strings[] = {
397         "host", 
398 };
399
400 static const struct ndr_interface_string_array IRemoteActivation_authservices = {
401         .count  = 1,
402         .names  = IRemoteActivation_authservice_strings
403 };
404
405
406 const struct ndr_interface_table ndr_table_IRemoteActivation = {
407         .name           = "IRemoteActivation",
408         .syntax_id      = {
409                 {0x4d9f4ab8,0x7d1c,0x11cf,{0x86,0x1e},{0x00,0x20,0xaf,0x6e,0x7c,0x57}},
410                 NDR_IREMOTEACTIVATION_VERSION
411         },
412         .helpstring     = NDR_IREMOTEACTIVATION_HELPSTRING,
413         .num_calls      = 1,
414         .calls          = IRemoteActivation_calls,
415         .endpoints      = &IRemoteActivation_endpoints,
416         .authservices   = &IRemoteActivation_authservices
417 };
418