Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/librpc/gen_ndr/ndr_clusapi.h"
5 :
6 : #include "librpc/gen_ndr/ndr_winreg.h"
7 : #include "librpc/gen_ndr/ndr_misc.h"
8 0 : static enum ndr_err_code ndr_push_RPC_SECURITY_DESCRIPTOR(struct ndr_push *ndr, int ndr_flags, const struct RPC_SECURITY_DESCRIPTOR *r)
9 : {
10 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
11 0 : if (ndr_flags & NDR_SCALARS) {
12 0 : NDR_CHECK(ndr_push_align(ndr, 5));
13 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->lpSecurityDescriptor));
14 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbInSecurityDescriptor));
15 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbOutSecurityDescriptor));
16 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
17 : }
18 0 : if (ndr_flags & NDR_BUFFERS) {
19 0 : if (r->lpSecurityDescriptor) {
20 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbInSecurityDescriptor));
21 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
22 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbOutSecurityDescriptor));
23 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->lpSecurityDescriptor, r->cbOutSecurityDescriptor));
24 : }
25 : }
26 0 : return NDR_ERR_SUCCESS;
27 : }
28 :
29 0 : static enum ndr_err_code ndr_pull_RPC_SECURITY_DESCRIPTOR(struct ndr_pull *ndr, int ndr_flags, struct RPC_SECURITY_DESCRIPTOR *r)
30 : {
31 : uint32_t _ptr_lpSecurityDescriptor;
32 0 : uint32_t size_lpSecurityDescriptor_1 = 0;
33 0 : uint32_t length_lpSecurityDescriptor_1 = 0;
34 0 : TALLOC_CTX *_mem_save_lpSecurityDescriptor_0 = NULL;
35 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
36 0 : if (ndr_flags & NDR_SCALARS) {
37 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
38 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpSecurityDescriptor));
39 0 : if (_ptr_lpSecurityDescriptor) {
40 0 : NDR_PULL_ALLOC(ndr, r->lpSecurityDescriptor);
41 : } else {
42 0 : r->lpSecurityDescriptor = NULL;
43 : }
44 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbInSecurityDescriptor));
45 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbOutSecurityDescriptor));
46 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
47 : }
48 0 : if (ndr_flags & NDR_BUFFERS) {
49 0 : if (r->lpSecurityDescriptor) {
50 0 : _mem_save_lpSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
51 0 : NDR_PULL_SET_MEM_CTX(ndr, r->lpSecurityDescriptor, 0);
52 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->lpSecurityDescriptor));
53 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->lpSecurityDescriptor));
54 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->lpSecurityDescriptor, &size_lpSecurityDescriptor_1));
55 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->lpSecurityDescriptor, &length_lpSecurityDescriptor_1));
56 0 : if (length_lpSecurityDescriptor_1 > size_lpSecurityDescriptor_1) {
57 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpSecurityDescriptor_1, length_lpSecurityDescriptor_1);
58 : }
59 0 : NDR_PULL_ALLOC_N(ndr, r->lpSecurityDescriptor, size_lpSecurityDescriptor_1);
60 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->lpSecurityDescriptor, length_lpSecurityDescriptor_1));
61 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpSecurityDescriptor_0, 0);
62 : }
63 0 : if (r->lpSecurityDescriptor) {
64 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->lpSecurityDescriptor, r->cbInSecurityDescriptor));
65 : }
66 0 : if (r->lpSecurityDescriptor) {
67 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->lpSecurityDescriptor, r->cbOutSecurityDescriptor));
68 : }
69 : }
70 0 : return NDR_ERR_SUCCESS;
71 : }
72 :
73 0 : _PUBLIC_ void ndr_print_RPC_SECURITY_DESCRIPTOR(struct ndr_print *ndr, const char *name, const struct RPC_SECURITY_DESCRIPTOR *r)
74 : {
75 0 : ndr_print_struct(ndr, name, "RPC_SECURITY_DESCRIPTOR");
76 0 : if (r == NULL) { ndr_print_null(ndr); return; }
77 0 : ndr->depth++;
78 0 : ndr_print_ptr(ndr, "lpSecurityDescriptor", r->lpSecurityDescriptor);
79 0 : ndr->depth++;
80 0 : if (r->lpSecurityDescriptor) {
81 0 : ndr_print_array_uint8(ndr, "lpSecurityDescriptor", r->lpSecurityDescriptor, r->cbOutSecurityDescriptor);
82 : }
83 0 : ndr->depth--;
84 0 : ndr_print_uint32(ndr, "cbInSecurityDescriptor", r->cbInSecurityDescriptor);
85 0 : ndr_print_uint32(ndr, "cbOutSecurityDescriptor", r->cbOutSecurityDescriptor);
86 0 : ndr->depth--;
87 : }
88 :
89 0 : static enum ndr_err_code ndr_push_RPC_SECURITY_ATTRIBUTES(struct ndr_push *ndr, int ndr_flags, const struct RPC_SECURITY_ATTRIBUTES *r)
90 : {
91 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
92 0 : if (ndr_flags & NDR_SCALARS) {
93 0 : NDR_CHECK(ndr_push_align(ndr, 5));
94 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->nLength));
95 0 : NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS, &r->RpcSecurityDescriptor));
96 0 : NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->bInheritHandle));
97 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
98 : }
99 0 : if (ndr_flags & NDR_BUFFERS) {
100 0 : NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_BUFFERS, &r->RpcSecurityDescriptor));
101 : }
102 0 : return NDR_ERR_SUCCESS;
103 : }
104 :
105 0 : static enum ndr_err_code ndr_pull_RPC_SECURITY_ATTRIBUTES(struct ndr_pull *ndr, int ndr_flags, struct RPC_SECURITY_ATTRIBUTES *r)
106 : {
107 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
108 0 : if (ndr_flags & NDR_SCALARS) {
109 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
110 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->nLength));
111 0 : NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS, &r->RpcSecurityDescriptor));
112 0 : NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->bInheritHandle));
113 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
114 : }
115 0 : if (ndr_flags & NDR_BUFFERS) {
116 0 : NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_BUFFERS, &r->RpcSecurityDescriptor));
117 : }
118 0 : return NDR_ERR_SUCCESS;
119 : }
120 :
121 0 : _PUBLIC_ void ndr_print_RPC_SECURITY_ATTRIBUTES(struct ndr_print *ndr, const char *name, const struct RPC_SECURITY_ATTRIBUTES *r)
122 : {
123 0 : ndr_print_struct(ndr, name, "RPC_SECURITY_ATTRIBUTES");
124 0 : if (r == NULL) { ndr_print_null(ndr); return; }
125 0 : ndr->depth++;
126 0 : ndr_print_uint32(ndr, "nLength", r->nLength);
127 0 : ndr_print_RPC_SECURITY_DESCRIPTOR(ndr, "RpcSecurityDescriptor", &r->RpcSecurityDescriptor);
128 0 : ndr_print_int32(ndr, "bInheritHandle", r->bInheritHandle);
129 0 : ndr->depth--;
130 : }
131 :
132 0 : static enum ndr_err_code ndr_push_CLUSTER_OPERATIONAL_VERSION_INFO(struct ndr_push *ndr, int ndr_flags, const struct CLUSTER_OPERATIONAL_VERSION_INFO *r)
133 : {
134 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
135 0 : if (ndr_flags & NDR_SCALARS) {
136 0 : NDR_CHECK(ndr_push_align(ndr, 4));
137 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 20));
138 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwClusterHighestVersion));
139 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwClusterLowestVersion));
140 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwFlags));
141 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwReserved));
142 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
143 : }
144 0 : if (ndr_flags & NDR_BUFFERS) {
145 : }
146 0 : return NDR_ERR_SUCCESS;
147 : }
148 :
149 0 : static enum ndr_err_code ndr_pull_CLUSTER_OPERATIONAL_VERSION_INFO(struct ndr_pull *ndr, int ndr_flags, struct CLUSTER_OPERATIONAL_VERSION_INFO *r)
150 : {
151 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
152 0 : if (ndr_flags & NDR_SCALARS) {
153 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
154 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwSize));
155 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwClusterHighestVersion));
156 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwClusterLowestVersion));
157 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwFlags));
158 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwReserved));
159 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
160 : }
161 0 : if (ndr_flags & NDR_BUFFERS) {
162 : }
163 0 : return NDR_ERR_SUCCESS;
164 : }
165 :
166 0 : _PUBLIC_ void ndr_print_CLUSTER_OPERATIONAL_VERSION_INFO(struct ndr_print *ndr, const char *name, const struct CLUSTER_OPERATIONAL_VERSION_INFO *r)
167 : {
168 0 : ndr_print_struct(ndr, name, "CLUSTER_OPERATIONAL_VERSION_INFO");
169 0 : if (r == NULL) { ndr_print_null(ndr); return; }
170 0 : ndr->depth++;
171 0 : ndr_print_uint32(ndr, "dwSize", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?20:r->dwSize);
172 0 : ndr_print_uint32(ndr, "dwClusterHighestVersion", r->dwClusterHighestVersion);
173 0 : ndr_print_uint32(ndr, "dwClusterLowestVersion", r->dwClusterLowestVersion);
174 0 : ndr_print_uint32(ndr, "dwFlags", r->dwFlags);
175 0 : ndr_print_uint32(ndr, "dwReserved", r->dwReserved);
176 0 : ndr->depth--;
177 : }
178 :
179 0 : static enum ndr_err_code ndr_push_IDL_CLUSTER_SET_PASSWORD_STATUS(struct ndr_push *ndr, int ndr_flags, const struct IDL_CLUSTER_SET_PASSWORD_STATUS *r)
180 : {
181 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
182 0 : if (ndr_flags & NDR_SCALARS) {
183 0 : NDR_CHECK(ndr_push_align(ndr, 4));
184 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->NodeId));
185 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->SetAttempted));
186 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->ReturnStatus));
187 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
188 : }
189 0 : if (ndr_flags & NDR_BUFFERS) {
190 : }
191 0 : return NDR_ERR_SUCCESS;
192 : }
193 :
194 0 : static enum ndr_err_code ndr_pull_IDL_CLUSTER_SET_PASSWORD_STATUS(struct ndr_pull *ndr, int ndr_flags, struct IDL_CLUSTER_SET_PASSWORD_STATUS *r)
195 : {
196 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
197 0 : if (ndr_flags & NDR_SCALARS) {
198 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
199 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->NodeId));
200 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->SetAttempted));
201 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->ReturnStatus));
202 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
203 : }
204 0 : if (ndr_flags & NDR_BUFFERS) {
205 : }
206 0 : return NDR_ERR_SUCCESS;
207 : }
208 :
209 0 : _PUBLIC_ void ndr_print_IDL_CLUSTER_SET_PASSWORD_STATUS(struct ndr_print *ndr, const char *name, const struct IDL_CLUSTER_SET_PASSWORD_STATUS *r)
210 : {
211 0 : ndr_print_struct(ndr, name, "IDL_CLUSTER_SET_PASSWORD_STATUS");
212 0 : if (r == NULL) { ndr_print_null(ndr); return; }
213 0 : ndr->depth++;
214 0 : ndr_print_uint32(ndr, "NodeId", r->NodeId);
215 0 : ndr_print_uint8(ndr, "SetAttempted", r->SetAttempted);
216 0 : ndr_print_uint32(ndr, "ReturnStatus", r->ReturnStatus);
217 0 : ndr->depth--;
218 : }
219 :
220 0 : static enum ndr_err_code ndr_push_IDL_CLUSTER_SET_PASSWORD_FLAGS(struct ndr_push *ndr, int ndr_flags, enum IDL_CLUSTER_SET_PASSWORD_FLAGS r)
221 : {
222 0 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
223 0 : return NDR_ERR_SUCCESS;
224 : }
225 :
226 0 : static enum ndr_err_code ndr_pull_IDL_CLUSTER_SET_PASSWORD_FLAGS(struct ndr_pull *ndr, int ndr_flags, enum IDL_CLUSTER_SET_PASSWORD_FLAGS *r)
227 : {
228 : uint16_t v;
229 0 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
230 0 : *r = v;
231 0 : return NDR_ERR_SUCCESS;
232 : }
233 :
234 0 : _PUBLIC_ void ndr_print_IDL_CLUSTER_SET_PASSWORD_FLAGS(struct ndr_print *ndr, const char *name, enum IDL_CLUSTER_SET_PASSWORD_FLAGS r)
235 : {
236 0 : const char *val = NULL;
237 :
238 0 : switch (r) {
239 0 : case IDL_CLUSTER_SET_PASSWORD_IGNORE_DOWN_NODES: val = "IDL_CLUSTER_SET_PASSWORD_IGNORE_DOWN_NODES"; break;
240 : }
241 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
242 0 : }
243 :
244 0 : static enum ndr_err_code ndr_push_CLUSTER_CREATE_GROUP_INFO_RPC(struct ndr_push *ndr, int ndr_flags, const struct CLUSTER_CREATE_GROUP_INFO_RPC *r)
245 : {
246 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
247 0 : if (ndr_flags & NDR_SCALARS) {
248 0 : NDR_CHECK(ndr_push_align(ndr, 4));
249 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwVersion));
250 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwGroupType));
251 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
252 : }
253 0 : if (ndr_flags & NDR_BUFFERS) {
254 : }
255 0 : return NDR_ERR_SUCCESS;
256 : }
257 :
258 0 : static enum ndr_err_code ndr_pull_CLUSTER_CREATE_GROUP_INFO_RPC(struct ndr_pull *ndr, int ndr_flags, struct CLUSTER_CREATE_GROUP_INFO_RPC *r)
259 : {
260 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
261 0 : if (ndr_flags & NDR_SCALARS) {
262 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
263 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwVersion));
264 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwGroupType));
265 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
266 : }
267 0 : if (ndr_flags & NDR_BUFFERS) {
268 : }
269 0 : return NDR_ERR_SUCCESS;
270 : }
271 :
272 0 : _PUBLIC_ void ndr_print_CLUSTER_CREATE_GROUP_INFO_RPC(struct ndr_print *ndr, const char *name, const struct CLUSTER_CREATE_GROUP_INFO_RPC *r)
273 : {
274 0 : ndr_print_struct(ndr, name, "CLUSTER_CREATE_GROUP_INFO_RPC");
275 0 : if (r == NULL) { ndr_print_null(ndr); return; }
276 0 : ndr->depth++;
277 0 : ndr_print_uint32(ndr, "dwVersion", r->dwVersion);
278 0 : ndr_print_uint32(ndr, "dwGroupType", r->dwGroupType);
279 0 : ndr->depth--;
280 : }
281 :
282 0 : static enum ndr_err_code ndr_push_ClusterEnumType(struct ndr_push *ndr, int ndr_flags, uint32_t r)
283 : {
284 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
285 0 : return NDR_ERR_SUCCESS;
286 : }
287 :
288 0 : static enum ndr_err_code ndr_pull_ClusterEnumType(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
289 : {
290 : uint32_t v;
291 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
292 0 : *r = v;
293 0 : return NDR_ERR_SUCCESS;
294 : }
295 :
296 0 : _PUBLIC_ void ndr_print_ClusterEnumType(struct ndr_print *ndr, const char *name, uint32_t r)
297 : {
298 0 : ndr_print_uint32(ndr, name, r);
299 0 : ndr->depth++;
300 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_NODE", CLUSTER_ENUM_NODE, r);
301 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_RESTYPE", CLUSTER_ENUM_RESTYPE, r);
302 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_RESOURCE", CLUSTER_ENUM_RESOURCE, r);
303 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_GROUP", CLUSTER_ENUM_GROUP, r);
304 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_NETWORK", CLUSTER_ENUM_NETWORK, r);
305 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_NETINTERFACE", CLUSTER_ENUM_NETINTERFACE, r);
306 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_INTERNAL_NETWORK", CLUSTER_ENUM_INTERNAL_NETWORK, r);
307 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_SHARED_VOLUME_RESOURCE", CLUSTER_ENUM_SHARED_VOLUME_RESOURCE, r);
308 0 : ndr->depth--;
309 0 : }
310 :
311 0 : static enum ndr_err_code ndr_push_ENUM_ENTRY(struct ndr_push *ndr, int ndr_flags, const struct ENUM_ENTRY *r)
312 : {
313 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
314 0 : if (ndr_flags & NDR_SCALARS) {
315 0 : NDR_CHECK(ndr_push_align(ndr, 5));
316 0 : NDR_CHECK(ndr_push_ClusterEnumType(ndr, NDR_SCALARS, r->Type));
317 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
318 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
319 : }
320 0 : if (ndr_flags & NDR_BUFFERS) {
321 0 : if (r->Name) {
322 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
323 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
324 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
325 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
326 : }
327 : }
328 0 : return NDR_ERR_SUCCESS;
329 : }
330 :
331 0 : static enum ndr_err_code ndr_pull_ENUM_ENTRY(struct ndr_pull *ndr, int ndr_flags, struct ENUM_ENTRY *r)
332 : {
333 : uint32_t _ptr_Name;
334 0 : uint32_t size_Name_1 = 0;
335 0 : uint32_t length_Name_1 = 0;
336 0 : TALLOC_CTX *_mem_save_Name_0 = NULL;
337 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
338 0 : if (ndr_flags & NDR_SCALARS) {
339 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
340 0 : NDR_CHECK(ndr_pull_ClusterEnumType(ndr, NDR_SCALARS, &r->Type));
341 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
342 0 : if (_ptr_Name) {
343 0 : NDR_PULL_ALLOC(ndr, r->Name);
344 : } else {
345 0 : r->Name = NULL;
346 : }
347 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
348 : }
349 0 : if (ndr_flags & NDR_BUFFERS) {
350 0 : if (r->Name) {
351 0 : _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
352 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
353 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
354 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
355 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
356 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
357 0 : if (length_Name_1 > size_Name_1) {
358 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Name_1, length_Name_1);
359 : }
360 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
361 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
362 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
363 : }
364 : }
365 0 : return NDR_ERR_SUCCESS;
366 : }
367 :
368 0 : _PUBLIC_ void ndr_print_ENUM_ENTRY(struct ndr_print *ndr, const char *name, const struct ENUM_ENTRY *r)
369 : {
370 0 : ndr_print_struct(ndr, name, "ENUM_ENTRY");
371 0 : if (r == NULL) { ndr_print_null(ndr); return; }
372 0 : ndr->depth++;
373 0 : ndr_print_ClusterEnumType(ndr, "Type", r->Type);
374 0 : ndr_print_ptr(ndr, "Name", r->Name);
375 0 : ndr->depth++;
376 0 : if (r->Name) {
377 0 : ndr_print_string(ndr, "Name", r->Name);
378 : }
379 0 : ndr->depth--;
380 0 : ndr->depth--;
381 : }
382 :
383 0 : static enum ndr_err_code ndr_push_ENUM_LIST(struct ndr_push *ndr, int ndr_flags, const struct ENUM_LIST *r)
384 : {
385 : uint32_t cntr_Entry_0;
386 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
387 0 : if (ndr_flags & NDR_SCALARS) {
388 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->EntryCount));
389 0 : NDR_CHECK(ndr_push_align(ndr, 5));
390 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->EntryCount));
391 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
392 0 : NDR_CHECK(ndr_push_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
393 : }
394 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
395 : }
396 0 : if (ndr_flags & NDR_BUFFERS) {
397 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
398 0 : NDR_CHECK(ndr_push_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
399 : }
400 : }
401 0 : return NDR_ERR_SUCCESS;
402 : }
403 :
404 0 : static enum ndr_err_code ndr_pull_ENUM_LIST(struct ndr_pull *ndr, int ndr_flags, struct ENUM_LIST *r)
405 : {
406 0 : uint32_t size_Entry_0 = 0;
407 : uint32_t cntr_Entry_0;
408 0 : TALLOC_CTX *_mem_save_Entry_0 = NULL;
409 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
410 0 : if (ndr_flags & NDR_SCALARS) {
411 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Entry));
412 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
413 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EntryCount));
414 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
415 0 : NDR_PULL_ALLOC_N(ndr, r->Entry, size_Entry_0);
416 0 : _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
417 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
418 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
419 0 : NDR_CHECK(ndr_pull_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
420 : }
421 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
422 0 : if (r->Entry) {
423 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->Entry, r->EntryCount));
424 : }
425 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
426 : }
427 0 : if (ndr_flags & NDR_BUFFERS) {
428 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
429 0 : _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
430 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
431 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
432 0 : NDR_CHECK(ndr_pull_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
433 : }
434 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
435 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
436 : }
437 : }
438 0 : return NDR_ERR_SUCCESS;
439 : }
440 :
441 0 : _PUBLIC_ void ndr_print_ENUM_LIST(struct ndr_print *ndr, const char *name, const struct ENUM_LIST *r)
442 : {
443 : uint32_t cntr_Entry_0;
444 0 : ndr_print_struct(ndr, name, "ENUM_LIST");
445 0 : if (r == NULL) { ndr_print_null(ndr); return; }
446 0 : ndr->depth++;
447 0 : ndr_print_uint32(ndr, "EntryCount", r->EntryCount);
448 0 : ndr->print(ndr, "%s: ARRAY(%d)", "Entry", (int)r->EntryCount);
449 0 : ndr->depth++;
450 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
451 0 : ndr_print_ENUM_ENTRY(ndr, "Entry", &r->Entry[cntr_Entry_0]);
452 : }
453 0 : ndr->depth--;
454 0 : ndr->depth--;
455 : }
456 :
457 0 : static enum ndr_err_code ndr_push_GROUP_ENUM_ENTRY(struct ndr_push *ndr, int ndr_flags, const struct GROUP_ENUM_ENTRY *r)
458 : {
459 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
460 0 : if (ndr_flags & NDR_SCALARS) {
461 0 : NDR_CHECK(ndr_push_align(ndr, 5));
462 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
463 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Id));
464 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwState));
465 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Owner));
466 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwFlags));
467 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbProperties));
468 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Properties));
469 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbRoProperties));
470 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->RoProperties));
471 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
472 : }
473 0 : if (ndr_flags & NDR_BUFFERS) {
474 0 : if (r->Name) {
475 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
476 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
477 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
478 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
479 : }
480 0 : if (r->Id) {
481 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Id, CH_UTF16)));
482 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
483 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Id, CH_UTF16)));
484 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Id, ndr_charset_length(r->Id, CH_UTF16), sizeof(uint16_t), CH_UTF16));
485 : }
486 0 : if (r->Owner) {
487 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Owner, CH_UTF16)));
488 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
489 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Owner, CH_UTF16)));
490 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Owner, ndr_charset_length(r->Owner, CH_UTF16), sizeof(uint16_t), CH_UTF16));
491 : }
492 0 : if (r->Properties) {
493 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbProperties));
494 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->Properties, r->cbProperties));
495 : }
496 0 : if (r->RoProperties) {
497 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbRoProperties));
498 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->RoProperties, r->cbRoProperties));
499 : }
500 : }
501 0 : return NDR_ERR_SUCCESS;
502 : }
503 :
504 0 : static enum ndr_err_code ndr_pull_GROUP_ENUM_ENTRY(struct ndr_pull *ndr, int ndr_flags, struct GROUP_ENUM_ENTRY *r)
505 : {
506 : uint32_t _ptr_Name;
507 0 : uint32_t size_Name_1 = 0;
508 0 : uint32_t length_Name_1 = 0;
509 0 : TALLOC_CTX *_mem_save_Name_0 = NULL;
510 : uint32_t _ptr_Id;
511 0 : uint32_t size_Id_1 = 0;
512 0 : uint32_t length_Id_1 = 0;
513 0 : TALLOC_CTX *_mem_save_Id_0 = NULL;
514 : uint32_t _ptr_Owner;
515 0 : uint32_t size_Owner_1 = 0;
516 0 : uint32_t length_Owner_1 = 0;
517 0 : TALLOC_CTX *_mem_save_Owner_0 = NULL;
518 : uint32_t _ptr_Properties;
519 0 : uint32_t size_Properties_1 = 0;
520 0 : TALLOC_CTX *_mem_save_Properties_0 = NULL;
521 : uint32_t _ptr_RoProperties;
522 0 : uint32_t size_RoProperties_1 = 0;
523 0 : TALLOC_CTX *_mem_save_RoProperties_0 = NULL;
524 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
525 0 : if (ndr_flags & NDR_SCALARS) {
526 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
527 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
528 0 : if (_ptr_Name) {
529 0 : NDR_PULL_ALLOC(ndr, r->Name);
530 : } else {
531 0 : r->Name = NULL;
532 : }
533 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Id));
534 0 : if (_ptr_Id) {
535 0 : NDR_PULL_ALLOC(ndr, r->Id);
536 : } else {
537 0 : r->Id = NULL;
538 : }
539 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwState));
540 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Owner));
541 0 : if (_ptr_Owner) {
542 0 : NDR_PULL_ALLOC(ndr, r->Owner);
543 : } else {
544 0 : r->Owner = NULL;
545 : }
546 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwFlags));
547 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbProperties));
548 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Properties));
549 0 : if (_ptr_Properties) {
550 0 : NDR_PULL_ALLOC(ndr, r->Properties);
551 : } else {
552 0 : r->Properties = NULL;
553 : }
554 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbRoProperties));
555 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_RoProperties));
556 0 : if (_ptr_RoProperties) {
557 0 : NDR_PULL_ALLOC(ndr, r->RoProperties);
558 : } else {
559 0 : r->RoProperties = NULL;
560 : }
561 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
562 : }
563 0 : if (ndr_flags & NDR_BUFFERS) {
564 0 : if (r->Name) {
565 0 : _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
566 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
567 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
568 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
569 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
570 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
571 0 : if (length_Name_1 > size_Name_1) {
572 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Name_1, length_Name_1);
573 : }
574 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
575 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
576 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
577 : }
578 0 : if (r->Id) {
579 0 : _mem_save_Id_0 = NDR_PULL_GET_MEM_CTX(ndr);
580 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Id, 0);
581 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Id));
582 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->Id));
583 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Id, &size_Id_1));
584 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Id, &length_Id_1));
585 0 : if (length_Id_1 > size_Id_1) {
586 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Id_1, length_Id_1);
587 : }
588 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Id_1, sizeof(uint16_t)));
589 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Id, length_Id_1, sizeof(uint16_t), CH_UTF16));
590 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Id_0, 0);
591 : }
592 0 : if (r->Owner) {
593 0 : _mem_save_Owner_0 = NDR_PULL_GET_MEM_CTX(ndr);
594 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Owner, 0);
595 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Owner));
596 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->Owner));
597 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Owner, &size_Owner_1));
598 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Owner, &length_Owner_1));
599 0 : if (length_Owner_1 > size_Owner_1) {
600 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Owner_1, length_Owner_1);
601 : }
602 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Owner_1, sizeof(uint16_t)));
603 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Owner, length_Owner_1, sizeof(uint16_t), CH_UTF16));
604 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Owner_0, 0);
605 : }
606 0 : if (r->Properties) {
607 0 : _mem_save_Properties_0 = NDR_PULL_GET_MEM_CTX(ndr);
608 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Properties, 0);
609 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Properties));
610 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Properties, &size_Properties_1));
611 0 : NDR_PULL_ALLOC_N(ndr, r->Properties, size_Properties_1);
612 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->Properties, size_Properties_1));
613 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Properties_0, 0);
614 : }
615 0 : if (r->RoProperties) {
616 0 : _mem_save_RoProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
617 0 : NDR_PULL_SET_MEM_CTX(ndr, r->RoProperties, 0);
618 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->RoProperties));
619 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->RoProperties, &size_RoProperties_1));
620 0 : NDR_PULL_ALLOC_N(ndr, r->RoProperties, size_RoProperties_1);
621 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->RoProperties, size_RoProperties_1));
622 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_RoProperties_0, 0);
623 : }
624 0 : if (r->Properties) {
625 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->Properties, r->cbProperties));
626 : }
627 0 : if (r->RoProperties) {
628 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->RoProperties, r->cbRoProperties));
629 : }
630 : }
631 0 : return NDR_ERR_SUCCESS;
632 : }
633 :
634 0 : _PUBLIC_ void ndr_print_GROUP_ENUM_ENTRY(struct ndr_print *ndr, const char *name, const struct GROUP_ENUM_ENTRY *r)
635 : {
636 0 : ndr_print_struct(ndr, name, "GROUP_ENUM_ENTRY");
637 0 : if (r == NULL) { ndr_print_null(ndr); return; }
638 0 : ndr->depth++;
639 0 : ndr_print_ptr(ndr, "Name", r->Name);
640 0 : ndr->depth++;
641 0 : if (r->Name) {
642 0 : ndr_print_string(ndr, "Name", r->Name);
643 : }
644 0 : ndr->depth--;
645 0 : ndr_print_ptr(ndr, "Id", r->Id);
646 0 : ndr->depth++;
647 0 : if (r->Id) {
648 0 : ndr_print_string(ndr, "Id", r->Id);
649 : }
650 0 : ndr->depth--;
651 0 : ndr_print_uint32(ndr, "dwState", r->dwState);
652 0 : ndr_print_ptr(ndr, "Owner", r->Owner);
653 0 : ndr->depth++;
654 0 : if (r->Owner) {
655 0 : ndr_print_string(ndr, "Owner", r->Owner);
656 : }
657 0 : ndr->depth--;
658 0 : ndr_print_uint32(ndr, "dwFlags", r->dwFlags);
659 0 : ndr_print_uint32(ndr, "cbProperties", r->cbProperties);
660 0 : ndr_print_ptr(ndr, "Properties", r->Properties);
661 0 : ndr->depth++;
662 0 : if (r->Properties) {
663 0 : ndr_print_array_uint8(ndr, "Properties", r->Properties, r->cbProperties);
664 : }
665 0 : ndr->depth--;
666 0 : ndr_print_uint32(ndr, "cbRoProperties", r->cbRoProperties);
667 0 : ndr_print_ptr(ndr, "RoProperties", r->RoProperties);
668 0 : ndr->depth++;
669 0 : if (r->RoProperties) {
670 0 : ndr_print_array_uint8(ndr, "RoProperties", r->RoProperties, r->cbRoProperties);
671 : }
672 0 : ndr->depth--;
673 0 : ndr->depth--;
674 : }
675 :
676 0 : static enum ndr_err_code ndr_push_RESOURCE_ENUM_ENTRY(struct ndr_push *ndr, int ndr_flags, const struct RESOURCE_ENUM_ENTRY *r)
677 : {
678 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
679 0 : if (ndr_flags & NDR_SCALARS) {
680 0 : NDR_CHECK(ndr_push_align(ndr, 5));
681 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
682 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Id));
683 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->OwnerName));
684 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->OwnerId));
685 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbProperties));
686 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Properties));
687 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbRoProperties));
688 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->RoProperties));
689 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
690 : }
691 0 : if (ndr_flags & NDR_BUFFERS) {
692 0 : if (r->Name) {
693 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
694 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
695 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
696 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
697 : }
698 0 : if (r->Id) {
699 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Id, CH_UTF16)));
700 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
701 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Id, CH_UTF16)));
702 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Id, ndr_charset_length(r->Id, CH_UTF16), sizeof(uint16_t), CH_UTF16));
703 : }
704 0 : if (r->OwnerName) {
705 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->OwnerName, CH_UTF16)));
706 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
707 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->OwnerName, CH_UTF16)));
708 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->OwnerName, ndr_charset_length(r->OwnerName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
709 : }
710 0 : if (r->OwnerId) {
711 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->OwnerId, CH_UTF16)));
712 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
713 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->OwnerId, CH_UTF16)));
714 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->OwnerId, ndr_charset_length(r->OwnerId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
715 : }
716 0 : if (r->Properties) {
717 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbProperties));
718 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->Properties, r->cbProperties));
719 : }
720 0 : if (r->RoProperties) {
721 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbRoProperties));
722 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->RoProperties, r->cbRoProperties));
723 : }
724 : }
725 0 : return NDR_ERR_SUCCESS;
726 : }
727 :
728 0 : static enum ndr_err_code ndr_pull_RESOURCE_ENUM_ENTRY(struct ndr_pull *ndr, int ndr_flags, struct RESOURCE_ENUM_ENTRY *r)
729 : {
730 : uint32_t _ptr_Name;
731 0 : uint32_t size_Name_1 = 0;
732 0 : uint32_t length_Name_1 = 0;
733 0 : TALLOC_CTX *_mem_save_Name_0 = NULL;
734 : uint32_t _ptr_Id;
735 0 : uint32_t size_Id_1 = 0;
736 0 : uint32_t length_Id_1 = 0;
737 0 : TALLOC_CTX *_mem_save_Id_0 = NULL;
738 : uint32_t _ptr_OwnerName;
739 0 : uint32_t size_OwnerName_1 = 0;
740 0 : uint32_t length_OwnerName_1 = 0;
741 0 : TALLOC_CTX *_mem_save_OwnerName_0 = NULL;
742 : uint32_t _ptr_OwnerId;
743 0 : uint32_t size_OwnerId_1 = 0;
744 0 : uint32_t length_OwnerId_1 = 0;
745 0 : TALLOC_CTX *_mem_save_OwnerId_0 = NULL;
746 : uint32_t _ptr_Properties;
747 0 : uint32_t size_Properties_1 = 0;
748 0 : TALLOC_CTX *_mem_save_Properties_0 = NULL;
749 : uint32_t _ptr_RoProperties;
750 0 : uint32_t size_RoProperties_1 = 0;
751 0 : TALLOC_CTX *_mem_save_RoProperties_0 = NULL;
752 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
753 0 : if (ndr_flags & NDR_SCALARS) {
754 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
755 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
756 0 : if (_ptr_Name) {
757 0 : NDR_PULL_ALLOC(ndr, r->Name);
758 : } else {
759 0 : r->Name = NULL;
760 : }
761 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Id));
762 0 : if (_ptr_Id) {
763 0 : NDR_PULL_ALLOC(ndr, r->Id);
764 : } else {
765 0 : r->Id = NULL;
766 : }
767 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_OwnerName));
768 0 : if (_ptr_OwnerName) {
769 0 : NDR_PULL_ALLOC(ndr, r->OwnerName);
770 : } else {
771 0 : r->OwnerName = NULL;
772 : }
773 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_OwnerId));
774 0 : if (_ptr_OwnerId) {
775 0 : NDR_PULL_ALLOC(ndr, r->OwnerId);
776 : } else {
777 0 : r->OwnerId = NULL;
778 : }
779 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbProperties));
780 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Properties));
781 0 : if (_ptr_Properties) {
782 0 : NDR_PULL_ALLOC(ndr, r->Properties);
783 : } else {
784 0 : r->Properties = NULL;
785 : }
786 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbRoProperties));
787 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_RoProperties));
788 0 : if (_ptr_RoProperties) {
789 0 : NDR_PULL_ALLOC(ndr, r->RoProperties);
790 : } else {
791 0 : r->RoProperties = NULL;
792 : }
793 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
794 : }
795 0 : if (ndr_flags & NDR_BUFFERS) {
796 0 : if (r->Name) {
797 0 : _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
798 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
799 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
800 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
801 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
802 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
803 0 : if (length_Name_1 > size_Name_1) {
804 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Name_1, length_Name_1);
805 : }
806 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
807 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
808 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
809 : }
810 0 : if (r->Id) {
811 0 : _mem_save_Id_0 = NDR_PULL_GET_MEM_CTX(ndr);
812 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Id, 0);
813 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Id));
814 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->Id));
815 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Id, &size_Id_1));
816 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Id, &length_Id_1));
817 0 : if (length_Id_1 > size_Id_1) {
818 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Id_1, length_Id_1);
819 : }
820 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Id_1, sizeof(uint16_t)));
821 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Id, length_Id_1, sizeof(uint16_t), CH_UTF16));
822 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Id_0, 0);
823 : }
824 0 : if (r->OwnerName) {
825 0 : _mem_save_OwnerName_0 = NDR_PULL_GET_MEM_CTX(ndr);
826 0 : NDR_PULL_SET_MEM_CTX(ndr, r->OwnerName, 0);
827 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->OwnerName));
828 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->OwnerName));
829 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->OwnerName, &size_OwnerName_1));
830 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->OwnerName, &length_OwnerName_1));
831 0 : if (length_OwnerName_1 > size_OwnerName_1) {
832 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_OwnerName_1, length_OwnerName_1);
833 : }
834 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_OwnerName_1, sizeof(uint16_t)));
835 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->OwnerName, length_OwnerName_1, sizeof(uint16_t), CH_UTF16));
836 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_OwnerName_0, 0);
837 : }
838 0 : if (r->OwnerId) {
839 0 : _mem_save_OwnerId_0 = NDR_PULL_GET_MEM_CTX(ndr);
840 0 : NDR_PULL_SET_MEM_CTX(ndr, r->OwnerId, 0);
841 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->OwnerId));
842 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->OwnerId));
843 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->OwnerId, &size_OwnerId_1));
844 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->OwnerId, &length_OwnerId_1));
845 0 : if (length_OwnerId_1 > size_OwnerId_1) {
846 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_OwnerId_1, length_OwnerId_1);
847 : }
848 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_OwnerId_1, sizeof(uint16_t)));
849 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->OwnerId, length_OwnerId_1, sizeof(uint16_t), CH_UTF16));
850 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_OwnerId_0, 0);
851 : }
852 0 : if (r->Properties) {
853 0 : _mem_save_Properties_0 = NDR_PULL_GET_MEM_CTX(ndr);
854 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Properties, 0);
855 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Properties));
856 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Properties, &size_Properties_1));
857 0 : NDR_PULL_ALLOC_N(ndr, r->Properties, size_Properties_1);
858 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->Properties, size_Properties_1));
859 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Properties_0, 0);
860 : }
861 0 : if (r->RoProperties) {
862 0 : _mem_save_RoProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
863 0 : NDR_PULL_SET_MEM_CTX(ndr, r->RoProperties, 0);
864 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->RoProperties));
865 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->RoProperties, &size_RoProperties_1));
866 0 : NDR_PULL_ALLOC_N(ndr, r->RoProperties, size_RoProperties_1);
867 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->RoProperties, size_RoProperties_1));
868 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_RoProperties_0, 0);
869 : }
870 0 : if (r->Properties) {
871 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->Properties, r->cbProperties));
872 : }
873 0 : if (r->RoProperties) {
874 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->RoProperties, r->cbRoProperties));
875 : }
876 : }
877 0 : return NDR_ERR_SUCCESS;
878 : }
879 :
880 0 : _PUBLIC_ void ndr_print_RESOURCE_ENUM_ENTRY(struct ndr_print *ndr, const char *name, const struct RESOURCE_ENUM_ENTRY *r)
881 : {
882 0 : ndr_print_struct(ndr, name, "RESOURCE_ENUM_ENTRY");
883 0 : if (r == NULL) { ndr_print_null(ndr); return; }
884 0 : ndr->depth++;
885 0 : ndr_print_ptr(ndr, "Name", r->Name);
886 0 : ndr->depth++;
887 0 : if (r->Name) {
888 0 : ndr_print_string(ndr, "Name", r->Name);
889 : }
890 0 : ndr->depth--;
891 0 : ndr_print_ptr(ndr, "Id", r->Id);
892 0 : ndr->depth++;
893 0 : if (r->Id) {
894 0 : ndr_print_string(ndr, "Id", r->Id);
895 : }
896 0 : ndr->depth--;
897 0 : ndr_print_ptr(ndr, "OwnerName", r->OwnerName);
898 0 : ndr->depth++;
899 0 : if (r->OwnerName) {
900 0 : ndr_print_string(ndr, "OwnerName", r->OwnerName);
901 : }
902 0 : ndr->depth--;
903 0 : ndr_print_ptr(ndr, "OwnerId", r->OwnerId);
904 0 : ndr->depth++;
905 0 : if (r->OwnerId) {
906 0 : ndr_print_string(ndr, "OwnerId", r->OwnerId);
907 : }
908 0 : ndr->depth--;
909 0 : ndr_print_uint32(ndr, "cbProperties", r->cbProperties);
910 0 : ndr_print_ptr(ndr, "Properties", r->Properties);
911 0 : ndr->depth++;
912 0 : if (r->Properties) {
913 0 : ndr_print_array_uint8(ndr, "Properties", r->Properties, r->cbProperties);
914 : }
915 0 : ndr->depth--;
916 0 : ndr_print_uint32(ndr, "cbRoProperties", r->cbRoProperties);
917 0 : ndr_print_ptr(ndr, "RoProperties", r->RoProperties);
918 0 : ndr->depth++;
919 0 : if (r->RoProperties) {
920 0 : ndr_print_array_uint8(ndr, "RoProperties", r->RoProperties, r->cbRoProperties);
921 : }
922 0 : ndr->depth--;
923 0 : ndr->depth--;
924 : }
925 :
926 0 : static enum ndr_err_code ndr_push_GROUP_ENUM_LIST(struct ndr_push *ndr, int ndr_flags, const struct GROUP_ENUM_LIST *r)
927 : {
928 : uint32_t cntr_Entry_0;
929 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
930 0 : if (ndr_flags & NDR_SCALARS) {
931 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->EntryCount));
932 0 : NDR_CHECK(ndr_push_align(ndr, 5));
933 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->EntryCount));
934 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
935 0 : NDR_CHECK(ndr_push_GROUP_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
936 : }
937 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
938 : }
939 0 : if (ndr_flags & NDR_BUFFERS) {
940 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
941 0 : NDR_CHECK(ndr_push_GROUP_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
942 : }
943 : }
944 0 : return NDR_ERR_SUCCESS;
945 : }
946 :
947 0 : static enum ndr_err_code ndr_pull_GROUP_ENUM_LIST(struct ndr_pull *ndr, int ndr_flags, struct GROUP_ENUM_LIST *r)
948 : {
949 0 : uint32_t size_Entry_0 = 0;
950 : uint32_t cntr_Entry_0;
951 0 : TALLOC_CTX *_mem_save_Entry_0 = NULL;
952 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
953 0 : if (ndr_flags & NDR_SCALARS) {
954 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Entry));
955 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
956 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EntryCount));
957 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
958 0 : NDR_PULL_ALLOC_N(ndr, r->Entry, size_Entry_0);
959 0 : _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
960 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
961 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
962 0 : NDR_CHECK(ndr_pull_GROUP_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
963 : }
964 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
965 0 : if (r->Entry) {
966 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->Entry, r->EntryCount));
967 : }
968 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
969 : }
970 0 : if (ndr_flags & NDR_BUFFERS) {
971 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
972 0 : _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
973 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
974 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
975 0 : NDR_CHECK(ndr_pull_GROUP_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
976 : }
977 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
978 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
979 : }
980 : }
981 0 : return NDR_ERR_SUCCESS;
982 : }
983 :
984 0 : _PUBLIC_ void ndr_print_GROUP_ENUM_LIST(struct ndr_print *ndr, const char *name, const struct GROUP_ENUM_LIST *r)
985 : {
986 : uint32_t cntr_Entry_0;
987 0 : ndr_print_struct(ndr, name, "GROUP_ENUM_LIST");
988 0 : if (r == NULL) { ndr_print_null(ndr); return; }
989 0 : ndr->depth++;
990 0 : ndr_print_uint32(ndr, "EntryCount", r->EntryCount);
991 0 : ndr->print(ndr, "%s: ARRAY(%d)", "Entry", (int)r->EntryCount);
992 0 : ndr->depth++;
993 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
994 0 : ndr_print_GROUP_ENUM_ENTRY(ndr, "Entry", &r->Entry[cntr_Entry_0]);
995 : }
996 0 : ndr->depth--;
997 0 : ndr->depth--;
998 : }
999 :
1000 0 : static enum ndr_err_code ndr_push_RESOURCE_ENUM_LIST(struct ndr_push *ndr, int ndr_flags, const struct RESOURCE_ENUM_LIST *r)
1001 : {
1002 : uint32_t cntr_Entry_0;
1003 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1004 0 : if (ndr_flags & NDR_SCALARS) {
1005 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->EntryCount));
1006 0 : NDR_CHECK(ndr_push_align(ndr, 5));
1007 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->EntryCount));
1008 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
1009 0 : NDR_CHECK(ndr_push_RESOURCE_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
1010 : }
1011 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1012 : }
1013 0 : if (ndr_flags & NDR_BUFFERS) {
1014 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
1015 0 : NDR_CHECK(ndr_push_RESOURCE_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
1016 : }
1017 : }
1018 0 : return NDR_ERR_SUCCESS;
1019 : }
1020 :
1021 0 : static enum ndr_err_code ndr_pull_RESOURCE_ENUM_LIST(struct ndr_pull *ndr, int ndr_flags, struct RESOURCE_ENUM_LIST *r)
1022 : {
1023 0 : uint32_t size_Entry_0 = 0;
1024 : uint32_t cntr_Entry_0;
1025 0 : TALLOC_CTX *_mem_save_Entry_0 = NULL;
1026 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1027 0 : if (ndr_flags & NDR_SCALARS) {
1028 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Entry));
1029 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
1030 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EntryCount));
1031 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
1032 0 : NDR_PULL_ALLOC_N(ndr, r->Entry, size_Entry_0);
1033 0 : _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
1034 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
1035 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
1036 0 : NDR_CHECK(ndr_pull_RESOURCE_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
1037 : }
1038 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
1039 0 : if (r->Entry) {
1040 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->Entry, r->EntryCount));
1041 : }
1042 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1043 : }
1044 0 : if (ndr_flags & NDR_BUFFERS) {
1045 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
1046 0 : _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
1047 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
1048 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
1049 0 : NDR_CHECK(ndr_pull_RESOURCE_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
1050 : }
1051 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
1052 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
1053 : }
1054 : }
1055 0 : return NDR_ERR_SUCCESS;
1056 : }
1057 :
1058 0 : _PUBLIC_ void ndr_print_RESOURCE_ENUM_LIST(struct ndr_print *ndr, const char *name, const struct RESOURCE_ENUM_LIST *r)
1059 : {
1060 : uint32_t cntr_Entry_0;
1061 0 : ndr_print_struct(ndr, name, "RESOURCE_ENUM_LIST");
1062 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1063 0 : ndr->depth++;
1064 0 : ndr_print_uint32(ndr, "EntryCount", r->EntryCount);
1065 0 : ndr->print(ndr, "%s: ARRAY(%d)", "Entry", (int)r->EntryCount);
1066 0 : ndr->depth++;
1067 0 : for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
1068 0 : ndr_print_RESOURCE_ENUM_ENTRY(ndr, "Entry", &r->Entry[cntr_Entry_0]);
1069 : }
1070 0 : ndr->depth--;
1071 0 : ndr->depth--;
1072 : }
1073 :
1074 0 : static enum ndr_err_code ndr_push_clusapi_CreateResourceFlags(struct ndr_push *ndr, int ndr_flags, enum clusapi_CreateResourceFlags r)
1075 : {
1076 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1077 0 : return NDR_ERR_SUCCESS;
1078 : }
1079 :
1080 0 : static enum ndr_err_code ndr_pull_clusapi_CreateResourceFlags(struct ndr_pull *ndr, int ndr_flags, enum clusapi_CreateResourceFlags *r)
1081 : {
1082 : uint32_t v;
1083 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1084 0 : *r = v;
1085 0 : return NDR_ERR_SUCCESS;
1086 : }
1087 :
1088 0 : _PUBLIC_ void ndr_print_clusapi_CreateResourceFlags(struct ndr_print *ndr, const char *name, enum clusapi_CreateResourceFlags r)
1089 : {
1090 0 : const char *val = NULL;
1091 :
1092 0 : switch (r) {
1093 0 : case CLUSTER_RESOURCE_DEFAULT_MONITOR: val = "CLUSTER_RESOURCE_DEFAULT_MONITOR"; break;
1094 0 : case CLUSTER_RESOURCE_SEPARATE_MONITOR: val = "CLUSTER_RESOURCE_SEPARATE_MONITOR"; break;
1095 : }
1096 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1097 0 : }
1098 :
1099 0 : static enum ndr_err_code ndr_push_clusapi_ClusterResourceState(struct ndr_push *ndr, int ndr_flags, enum clusapi_ClusterResourceState r)
1100 : {
1101 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1102 0 : return NDR_ERR_SUCCESS;
1103 : }
1104 :
1105 0 : static enum ndr_err_code ndr_pull_clusapi_ClusterResourceState(struct ndr_pull *ndr, int ndr_flags, enum clusapi_ClusterResourceState *r)
1106 : {
1107 : uint32_t v;
1108 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1109 0 : *r = v;
1110 0 : return NDR_ERR_SUCCESS;
1111 : }
1112 :
1113 0 : _PUBLIC_ void ndr_print_clusapi_ClusterResourceState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterResourceState r)
1114 : {
1115 0 : const char *val = NULL;
1116 :
1117 0 : switch (r) {
1118 0 : case ClusterResourceInitializing: val = "ClusterResourceInitializing"; break;
1119 0 : case ClusterResourceOnline: val = "ClusterResourceOnline"; break;
1120 0 : case ClusterResourceOffline: val = "ClusterResourceOffline"; break;
1121 0 : case ClusterResourceFailed: val = "ClusterResourceFailed"; break;
1122 0 : case ClusterResourceOnlinePending: val = "ClusterResourceOnlinePending"; break;
1123 0 : case ClusterResourceOfflinePending: val = "ClusterResourceOfflinePending"; break;
1124 0 : case ClusterResourceStateUnknown: val = "ClusterResourceStateUnknown"; break;
1125 : }
1126 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1127 0 : }
1128 :
1129 0 : static enum ndr_err_code ndr_push_clusapi_ClusterGroupState(struct ndr_push *ndr, int ndr_flags, enum clusapi_ClusterGroupState r)
1130 : {
1131 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1132 0 : return NDR_ERR_SUCCESS;
1133 : }
1134 :
1135 0 : static enum ndr_err_code ndr_pull_clusapi_ClusterGroupState(struct ndr_pull *ndr, int ndr_flags, enum clusapi_ClusterGroupState *r)
1136 : {
1137 : uint32_t v;
1138 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1139 0 : *r = v;
1140 0 : return NDR_ERR_SUCCESS;
1141 : }
1142 :
1143 0 : _PUBLIC_ void ndr_print_clusapi_ClusterGroupState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterGroupState r)
1144 : {
1145 0 : const char *val = NULL;
1146 :
1147 0 : switch (r) {
1148 0 : case ClusterGroupOnline: val = "ClusterGroupOnline"; break;
1149 0 : case ClusterGroupOffline: val = "ClusterGroupOffline"; break;
1150 0 : case ClusterGroupFailed: val = "ClusterGroupFailed"; break;
1151 0 : case ClusterGroupPartialOnline: val = "ClusterGroupPartialOnline"; break;
1152 0 : case ClusterGroupPending: val = "ClusterGroupPending"; break;
1153 0 : case ClusterGroupStateUnknown: val = "ClusterGroupStateUnknown"; break;
1154 : }
1155 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1156 0 : }
1157 :
1158 0 : static enum ndr_err_code ndr_push_ClusterGroupEnumType(struct ndr_push *ndr, int ndr_flags, uint32_t r)
1159 : {
1160 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
1161 0 : return NDR_ERR_SUCCESS;
1162 : }
1163 :
1164 0 : static enum ndr_err_code ndr_pull_ClusterGroupEnumType(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
1165 : {
1166 : uint32_t v;
1167 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
1168 0 : *r = v;
1169 0 : return NDR_ERR_SUCCESS;
1170 : }
1171 :
1172 0 : _PUBLIC_ void ndr_print_ClusterGroupEnumType(struct ndr_print *ndr, const char *name, uint32_t r)
1173 : {
1174 0 : ndr_print_uint32(ndr, name, r);
1175 0 : ndr->depth++;
1176 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_GROUP_ENUM_CONTAINS", CLUSTER_GROUP_ENUM_CONTAINS, r);
1177 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_GROUP_ENUM_NODES", CLUSTER_GROUP_ENUM_NODES, r);
1178 0 : ndr->depth--;
1179 0 : }
1180 :
1181 0 : static enum ndr_err_code ndr_push_clusapi_ClusterNodeState(struct ndr_push *ndr, int ndr_flags, enum clusapi_ClusterNodeState r)
1182 : {
1183 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1184 0 : return NDR_ERR_SUCCESS;
1185 : }
1186 :
1187 0 : static enum ndr_err_code ndr_pull_clusapi_ClusterNodeState(struct ndr_pull *ndr, int ndr_flags, enum clusapi_ClusterNodeState *r)
1188 : {
1189 : uint32_t v;
1190 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1191 0 : *r = v;
1192 0 : return NDR_ERR_SUCCESS;
1193 : }
1194 :
1195 0 : _PUBLIC_ void ndr_print_clusapi_ClusterNodeState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterNodeState r)
1196 : {
1197 0 : const char *val = NULL;
1198 :
1199 0 : switch (r) {
1200 0 : case ClusterNodeUp: val = "ClusterNodeUp"; break;
1201 0 : case ClusterNodeDown: val = "ClusterNodeDown"; break;
1202 0 : case ClusterNodePaused: val = "ClusterNodePaused"; break;
1203 0 : case ClusterNodeJoining: val = "ClusterNodeJoining"; break;
1204 0 : case ClusterNodeStateUnknown: val = "ClusterNodeStateUnknown"; break;
1205 : }
1206 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1207 0 : }
1208 :
1209 0 : static enum ndr_err_code ndr_push_clusapi_ResourceClass(struct ndr_push *ndr, int ndr_flags, enum clusapi_ResourceClass r)
1210 : {
1211 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1212 0 : return NDR_ERR_SUCCESS;
1213 : }
1214 :
1215 0 : static enum ndr_err_code ndr_pull_clusapi_ResourceClass(struct ndr_pull *ndr, int ndr_flags, enum clusapi_ResourceClass *r)
1216 : {
1217 : uint32_t v;
1218 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1219 0 : *r = v;
1220 0 : return NDR_ERR_SUCCESS;
1221 : }
1222 :
1223 0 : _PUBLIC_ void ndr_print_clusapi_ResourceClass(struct ndr_print *ndr, const char *name, enum clusapi_ResourceClass r)
1224 : {
1225 0 : const char *val = NULL;
1226 :
1227 0 : switch (r) {
1228 0 : case CLUS_RESCLASS_UNKNOWN: val = "CLUS_RESCLASS_UNKNOWN"; break;
1229 0 : case CLUS_RESCLASS_STORAGE: val = "CLUS_RESCLASS_STORAGE"; break;
1230 0 : case CLUS_RESCLASS_NETWORK: val = "CLUS_RESCLASS_NETWORK"; break;
1231 : }
1232 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1233 0 : }
1234 :
1235 0 : _PUBLIC_ enum ndr_err_code ndr_push_CLUS_RESOURCE_CLASS_INFO(struct ndr_push *ndr, int ndr_flags, const struct CLUS_RESOURCE_CLASS_INFO *r)
1236 : {
1237 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1238 0 : if (ndr_flags & NDR_SCALARS) {
1239 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1240 0 : NDR_CHECK(ndr_push_clusapi_ResourceClass(ndr, NDR_SCALARS, r->Class));
1241 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->SubClass));
1242 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1243 : }
1244 0 : if (ndr_flags & NDR_BUFFERS) {
1245 : }
1246 0 : return NDR_ERR_SUCCESS;
1247 : }
1248 :
1249 0 : _PUBLIC_ enum ndr_err_code ndr_pull_CLUS_RESOURCE_CLASS_INFO(struct ndr_pull *ndr, int ndr_flags, struct CLUS_RESOURCE_CLASS_INFO *r)
1250 : {
1251 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1252 0 : if (ndr_flags & NDR_SCALARS) {
1253 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1254 0 : NDR_CHECK(ndr_pull_clusapi_ResourceClass(ndr, NDR_SCALARS, &r->Class));
1255 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->SubClass));
1256 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1257 : }
1258 0 : if (ndr_flags & NDR_BUFFERS) {
1259 : }
1260 0 : return NDR_ERR_SUCCESS;
1261 : }
1262 :
1263 0 : static void ndr_print_flags_CLUS_RESOURCE_CLASS_INFO(struct ndr_print *ndr, const char *name, int unused, const struct CLUS_RESOURCE_CLASS_INFO *r)
1264 : {
1265 0 : ndr_print_CLUS_RESOURCE_CLASS_INFO(ndr, name, r);
1266 0 : }
1267 :
1268 0 : _PUBLIC_ void ndr_print_CLUS_RESOURCE_CLASS_INFO(struct ndr_print *ndr, const char *name, const struct CLUS_RESOURCE_CLASS_INFO *r)
1269 : {
1270 0 : ndr_print_struct(ndr, name, "CLUS_RESOURCE_CLASS_INFO");
1271 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1272 0 : ndr->depth++;
1273 0 : ndr_print_clusapi_ResourceClass(ndr, "Class", r->Class);
1274 0 : ndr_print_uint32(ndr, "SubClass", r->SubClass);
1275 0 : ndr->depth--;
1276 : }
1277 :
1278 0 : static enum ndr_err_code ndr_push_clusapi_ResourceControlCode(struct ndr_push *ndr, int ndr_flags, enum clusapi_ResourceControlCode r)
1279 : {
1280 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1281 0 : return NDR_ERR_SUCCESS;
1282 : }
1283 :
1284 0 : static enum ndr_err_code ndr_pull_clusapi_ResourceControlCode(struct ndr_pull *ndr, int ndr_flags, enum clusapi_ResourceControlCode *r)
1285 : {
1286 : uint32_t v;
1287 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1288 0 : *r = v;
1289 0 : return NDR_ERR_SUCCESS;
1290 : }
1291 :
1292 0 : _PUBLIC_ void ndr_print_clusapi_ResourceControlCode(struct ndr_print *ndr, const char *name, enum clusapi_ResourceControlCode r)
1293 : {
1294 0 : const char *val = NULL;
1295 :
1296 0 : switch (r) {
1297 0 : case CLUSCTL_RESOURCE_UNKNOWN: val = "CLUSCTL_RESOURCE_UNKNOWN"; break;
1298 0 : case CLUSCTL_RESOURCE_GET_CHARACTERISTICS: val = "CLUSCTL_RESOURCE_GET_CHARACTERISTICS"; break;
1299 0 : case CLUSCTL_RESOURCE_GET_FLAGS: val = "CLUSCTL_RESOURCE_GET_FLAGS"; break;
1300 0 : case CLUSCTL_RESOURCE_GET_CLASS_INFO: val = "CLUSCTL_RESOURCE_GET_CLASS_INFO"; break;
1301 0 : case CLUSCTL_RESOURCE_GET_REQUIRED_DEPENDENCIES: val = "CLUSCTL_RESOURCE_GET_REQUIRED_DEPENDENCIES"; break;
1302 0 : case CLUSCTL_RESOURCE_GET_NAME: val = "CLUSCTL_RESOURCE_GET_NAME"; break;
1303 0 : case CLUSCTL_RESOURCE_GET_RESOURCE_TYPE: val = "CLUSCTL_RESOURCE_GET_RESOURCE_TYPE"; break;
1304 0 : case CLUSCTL_RESOURCE_GET_ID: val = "CLUSCTL_RESOURCE_GET_ID"; break;
1305 0 : case CLUSCTL_RESOURCE_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_ENUM_COMMON_PROPERTIES"; break;
1306 0 : case CLUSCTL_RESOURCE_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_GET_RO_COMMON_PROPERTIES"; break;
1307 0 : case CLUSCTL_RESOURCE_GET_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_GET_COMMON_PROPERTIES"; break;
1308 0 : case CLUSCTL_RESOURCE_SET_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_SET_COMMON_PROPERTIES"; break;
1309 0 : case CLUSCTL_RESOURCE_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_VALIDATE_COMMON_PROPERTIES"; break;
1310 0 : case CLUSCTL_RESOURCE_GET_COMMON_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_GET_COMMON_PROPERTY_FMTS"; break;
1311 0 : case CLUSCTL_RESOURCE_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_ENUM_PRIVATE_PROPERTIES"; break;
1312 0 : case CLUSCTL_RESOURCE_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_GET_RO_PRIVATE_PROPERTIES"; break;
1313 0 : case CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES"; break;
1314 0 : case CLUSCTL_RESOURCE_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_SET_PRIVATE_PROPERTIES"; break;
1315 0 : case CLUSCTL_RESOURCE_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_VALIDATE_PRIVATE_PROPERTIES"; break;
1316 0 : case CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTY_FMTS"; break;
1317 0 : case CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT: val = "CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT"; break;
1318 0 : case CLUSCTL_RESOURCE_DELETE_REGISTRY_CHECKPOINT: val = "CLUSCTL_RESOURCE_DELETE_REGISTRY_CHECKPOINT"; break;
1319 0 : case CLUSCTL_RESOURCE_GET_REGISTRY_CHECKPOINTS: val = "CLUSCTL_RESOURCE_GET_REGISTRY_CHECKPOINTS"; break;
1320 0 : case CLUSCTL_RESOURCE_ADD_CRYPTO_CHECKPOINT: val = "CLUSCTL_RESOURCE_ADD_CRYPTO_CHECKPOINT"; break;
1321 0 : case CLUSCTL_RESOURCE_DELETE_CRYPTO_CHECKPOINT: val = "CLUSCTL_RESOURCE_DELETE_CRYPTO_CHECKPOINT"; break;
1322 0 : case CLUSCTL_RESOURCE_GET_CRYPTO_CHECKPOINTS: val = "CLUSCTL_RESOURCE_GET_CRYPTO_CHECKPOINTS"; break;
1323 0 : case CLUSCTL_RESOURCE_UPGRADE_DLL: val = "CLUSCTL_RESOURCE_UPGRADE_DLL"; break;
1324 0 : case CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_64BIT: val = "CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_64BIT"; break;
1325 0 : case CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_32BIT: val = "CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_32BIT"; break;
1326 0 : case CLUSCTL_RESOURCE_GET_NETWORK_NAME: val = "CLUSCTL_RESOURCE_GET_NETWORK_NAME"; break;
1327 0 : case CLUSCTL_RESOURCE_NETNAME_REGISTER_DNS_RECORDS: val = "CLUSCTL_RESOURCE_NETNAME_REGISTER_DNS_RECORDS"; break;
1328 0 : case CLUSCTL_RESOURCE_GET_DNS_NAME: val = "CLUSCTL_RESOURCE_GET_DNS_NAME"; break;
1329 0 : case CLUSCTL_RESOURCE_NETNAME_SET_PWD_INFO: val = "CLUSCTL_RESOURCE_NETNAME_SET_PWD_INFO"; break;
1330 0 : case CLUSCTL_RESOURCE_NETNAME_DELETE_CO: val = "CLUSCTL_RESOURCE_NETNAME_DELETE_CO"; break;
1331 0 : case CLUSCTL_RESOURCE_NETNAME_VALIDATE_VCO: val = "CLUSCTL_RESOURCE_NETNAME_VALIDATE_VCO"; break;
1332 0 : case CLUSCTL_RESOURCE_NETNAME_RESET_VCO: val = "CLUSCTL_RESOURCE_NETNAME_RESET_VCO"; break;
1333 0 : case CLUSCTL_RESOURCE_NETNAME_CREDS_UPDATED: val = "CLUSCTL_RESOURCE_NETNAME_CREDS_UPDATED"; break;
1334 0 : case CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO: val = "CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO"; break;
1335 0 : case CLUSCTL_RESOURCE_STORAGE_IS_PATH_VALID: val = "CLUSCTL_RESOURCE_STORAGE_IS_PATH_VALID"; break;
1336 0 : case CLUSCTL_RESOURCE_IPADDRESS_RENEW_LEASE: val = "CLUSCTL_RESOURCE_IPADDRESS_RENEW_LEASE"; break;
1337 0 : case CLUSCTL_RESOURCE_IPADDRESS_RELEASE_LEASE: val = "CLUSCTL_RESOURCE_IPADDRESS_RELEASE_LEASE"; break;
1338 0 : case CLUSCTL_RESOURCE_QUERY_MAINTENANCE_MODE: val = "CLUSCTL_RESOURCE_QUERY_MAINTENANCE_MODE"; break;
1339 0 : case CLUSCTL_RESOURCE_SET_MAINTENANCE_MODE: val = "CLUSCTL_RESOURCE_SET_MAINTENANCE_MODE"; break;
1340 0 : case CLUSCTL_RESOURCE_STORAGE_SET_DRIVELETTER: val = "CLUSCTL_RESOURCE_STORAGE_SET_DRIVELETTER"; break;
1341 0 : case CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO_EX: val = "CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO_EX"; break;
1342 0 : case CLUSCTL_RESOURCE_STORAGE_GET_DIRTY: val = "CLUSCTL_RESOURCE_STORAGE_GET_DIRTY"; break;
1343 0 : case CLUSCTL_RESOURCE_STORAGE_GET_MOUNTPOINTS: val = "CLUSCTL_RESOURCE_STORAGE_GET_MOUNTPOINTS"; break;
1344 0 : case CLUSCTL_RESOURCE_STORAGE_GET_SHARED_VOLUME_INFO: val = "CLUSCTL_RESOURCE_STORAGE_GET_SHARED_VOLUME_INFO"; break;
1345 0 : case CLUSCTL_RESOURCE_VM_START_MIGRATION: val = "CLUSCTL_RESOURCE_VM_START_MIGRATION"; break;
1346 0 : case CLUSCTL_RESOURCE_VM_CANCEL_MIGRATION: val = "CLUSCTL_RESOURCE_VM_CANCEL_MIGRATION"; break;
1347 0 : case CLUSCTL_RESOURCE_SET_CSV_MAINTENANCE_MODE: val = "CLUSCTL_RESOURCE_SET_CSV_MAINTENANCE_MODE"; break;
1348 0 : case CLUSCTL_RESOURCE_ENABLE_SHARED_VOLUME_DIRECTIO: val = "CLUSCTL_RESOURCE_ENABLE_SHARED_VOLUME_DIRECTIO"; break;
1349 0 : case CLUSCTL_RESOURCE_DISABLE_SHARED_VOLUME_DIRECTIO: val = "CLUSCTL_RESOURCE_DISABLE_SHARED_VOLUME_DIRECTIO"; break;
1350 0 : case CLUSCTL_RESOURCE_SET_SHARED_VOLUME_BACKUP_MODE: val = "CLUSCTL_RESOURCE_SET_SHARED_VOLUME_BACKUP_MODE"; break;
1351 0 : case CLUSCTL_RESOURCE_GET_RELATED_RESOURCE_NAMES: val = "CLUSCTL_RESOURCE_GET_RELATED_RESOURCE_NAMES"; break;
1352 0 : case CLUSCTL_RESOURCE_POOL_GET_DRIVE_INFO: val = "CLUSCTL_RESOURCE_POOL_GET_DRIVE_INFO"; break;
1353 0 : case CLUSCTL_RESOURCE_CLOUD_WITNESS_UPDATE_TOKEN: val = "CLUSCTL_RESOURCE_CLOUD_WITNESS_UPDATE_TOKEN"; break;
1354 0 : case CLUSCTL_RESOURCE_NETNAME_CHECK_OU_PERMISSIONS: val = "CLUSCTL_RESOURCE_NETNAME_CHECK_OU_PERMISSIONS"; break;
1355 0 : case CLUSCTL_RESOURCE_NETNAME_CHECK_AD_STATE: val = "CLUSCTL_RESOURCE_NETNAME_CHECK_AD_STATE"; break;
1356 : }
1357 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1358 0 : }
1359 :
1360 0 : static enum ndr_err_code ndr_push_clusapi_ResourceTypeControlCode(struct ndr_push *ndr, int ndr_flags, enum clusapi_ResourceTypeControlCode r)
1361 : {
1362 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1363 0 : return NDR_ERR_SUCCESS;
1364 : }
1365 :
1366 0 : static enum ndr_err_code ndr_pull_clusapi_ResourceTypeControlCode(struct ndr_pull *ndr, int ndr_flags, enum clusapi_ResourceTypeControlCode *r)
1367 : {
1368 : uint32_t v;
1369 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1370 0 : *r = v;
1371 0 : return NDR_ERR_SUCCESS;
1372 : }
1373 :
1374 0 : _PUBLIC_ void ndr_print_clusapi_ResourceTypeControlCode(struct ndr_print *ndr, const char *name, enum clusapi_ResourceTypeControlCode r)
1375 : {
1376 0 : const char *val = NULL;
1377 :
1378 0 : switch (r) {
1379 0 : case CLUSCTL_RESOURCE_TYPE_UNKNOWN: val = "CLUSCTL_RESOURCE_TYPE_UNKNOWN"; break;
1380 0 : case CLUSCTL_RESOURCE_TYPE_GET_CHARACTERISTICS: val = "CLUSCTL_RESOURCE_TYPE_GET_CHARACTERISTICS"; break;
1381 0 : case CLUSCTL_RESOURCE_TYPE_GET_FLAGS: val = "CLUSCTL_RESOURCE_TYPE_GET_FLAGS"; break;
1382 0 : case CLUSCTL_RESOURCE_TYPE_GET_CLASS_INFO: val = "CLUSCTL_RESOURCE_TYPE_GET_CLASS_INFO"; break;
1383 0 : case CLUSCTL_RESOURCE_TYPE_GET_REQUIRED_DEPENDENCIES: val = "CLUSCTL_RESOURCE_TYPE_GET_REQUIRED_DEPENDENCIES"; break;
1384 0 : case CLUSCTL_RESOURCE_TYPE_GET_ARB_TIMEOUT: val = "CLUSCTL_RESOURCE_TYPE_GET_ARB_TIMEOUT"; break;
1385 0 : case CLUSCTL_RESOURCE_TYPE_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_ENUM_COMMON_PROPERTIES"; break;
1386 0 : case CLUSCTL_RESOURCE_TYPE_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_GET_RO_COMMON_PROPERTIES"; break;
1387 0 : case CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTIES"; break;
1388 0 : case CLUSCTL_RESOURCE_TYPE_SET_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_SET_COMMON_PROPERTIES"; break;
1389 0 : case CLUSCTL_RESOURCE_TYPE_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_VALIDATE_COMMON_PROPERTIES"; break;
1390 0 : case CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTY_FMTS"; break;
1391 0 : case CLUSCTL_RESOURCE_TYPE_GET_COMMON_RESOURCE_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_TYPE_GET_COMMON_RESOURCE_PROPERTY_FMTS"; break;
1392 0 : case CLUSCTL_RESOURCE_TYPE_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_ENUM_PRIVATE_PROPERTIES"; break;
1393 0 : case CLUSCTL_RESOURCE_TYPE_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_GET_RO_PRIVATE_PROPERTIES"; break;
1394 0 : case CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTIES"; break;
1395 0 : case CLUSCTL_RESOURCE_TYPE_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_SET_PRIVATE_PROPERTIES"; break;
1396 0 : case CLUSCTL_RESOURCE_TYPE_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_VALIDATE_PRIVATE_PROPERTIES"; break;
1397 0 : case CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTY_FMTS"; break;
1398 0 : case CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_RESOURCE_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_RESOURCE_PROPERTY_FMTS"; break;
1399 0 : case CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS"; break;
1400 0 : case CLUSCTL_RESOURCE_TYPE_NETNAME_VALIDATE_NETNAME: val = "CLUSCTL_RESOURCE_TYPE_NETNAME_VALIDATE_NETNAME"; break;
1401 0 : case CLUSCTL_RESOURCE_TYPE_VALIDATE_PATH: val = "CLUSCTL_RESOURCE_TYPE_VALIDATE_PATH"; break;
1402 0 : case CLUSCTL_RESOURCE_TYPE_GEN_APP_VALIDATE_DIRECTORY: val = "CLUSCTL_RESOURCE_TYPE_GEN_APP_VALIDATE_DIRECTORY"; break;
1403 0 : case CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DRIVELETTERS: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DRIVELETTERS"; break;
1404 0 : case CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX"; break;
1405 0 : case CLUSCTL_RESOURCE_TYPE_STORAGE_REMAP_DRIVELETTER: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_REMAP_DRIVELETTER"; break;
1406 0 : case CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DISKID: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DISKID"; break;
1407 0 : case CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CLUSTERABLE: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CLUSTERABLE"; break;
1408 0 : case CLUSCTL_RESOURCE_TYPE_STORAGE_RELEASE_OWNERSHIP: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_RELEASE_OWNERSHIP"; break;
1409 0 : case CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CSV_FILE: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CSV_FILE"; break;
1410 0 : case CLUSCTL_RESOURCE_TYPE_CLOUD_WITNESS_VALIDATE_CREDENTIALS: val = "CLUSCTL_RESOURCE_TYPE_CLOUD_WITNESS_VALIDATE_CREDENTIALS"; break;
1411 0 : case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_LOGDISKS: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_LOGDISKS"; break;
1412 0 : case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_TARGET_DATADISKS: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_TARGET_DATADISKS"; break;
1413 0 : case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_SOURCE_DATADISKS: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_SOURCE_DATADISKS"; break;
1414 0 : case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICA_VOLUMES: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICA_VOLUMES"; break;
1415 0 : case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_LOG_VOLUME: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_LOG_VOLUME"; break;
1416 0 : case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICATED_DISKS: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICATED_DISKS"; break;
1417 0 : case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_RESOURCE_GROUP: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_RESOURCE_GROUP"; break;
1418 : }
1419 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1420 0 : }
1421 :
1422 0 : static enum ndr_err_code ndr_push_clusapi_GroupControlCode(struct ndr_push *ndr, int ndr_flags, enum clusapi_GroupControlCode r)
1423 : {
1424 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1425 0 : return NDR_ERR_SUCCESS;
1426 : }
1427 :
1428 0 : static enum ndr_err_code ndr_pull_clusapi_GroupControlCode(struct ndr_pull *ndr, int ndr_flags, enum clusapi_GroupControlCode *r)
1429 : {
1430 : uint32_t v;
1431 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1432 0 : *r = v;
1433 0 : return NDR_ERR_SUCCESS;
1434 : }
1435 :
1436 0 : _PUBLIC_ void ndr_print_clusapi_GroupControlCode(struct ndr_print *ndr, const char *name, enum clusapi_GroupControlCode r)
1437 : {
1438 0 : const char *val = NULL;
1439 :
1440 0 : switch (r) {
1441 0 : case CLUSCTL_GROUP_UNKNOWN: val = "CLUSCTL_GROUP_UNKNOWN"; break;
1442 0 : case CLUSCTL_GROUP_GET_CHARACTERISTICS: val = "CLUSCTL_GROUP_GET_CHARACTERISTICS"; break;
1443 0 : case CLUSCTL_GROUP_GET_FLAGS: val = "CLUSCTL_GROUP_GET_FLAGS"; break;
1444 0 : case CLUSCTL_GROUP_GET_NAME: val = "CLUSCTL_GROUP_GET_NAME"; break;
1445 0 : case CLUSCTL_GROUP_GET_ID: val = "CLUSCTL_GROUP_GET_ID"; break;
1446 0 : case CLUSCTL_GROUP_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_ENUM_COMMON_PROPERTIES"; break;
1447 0 : case CLUSCTL_GROUP_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_GET_RO_COMMON_PROPERTIES"; break;
1448 0 : case CLUSCTL_GROUP_GET_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_GET_COMMON_PROPERTIES"; break;
1449 0 : case CLUSCTL_GROUP_SET_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_SET_COMMON_PROPERTIES"; break;
1450 0 : case CLUSCTL_GROUP_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_VALIDATE_COMMON_PROPERTIES"; break;
1451 0 : case CLUSCTL_GROUP_GET_COMMON_PROPERTY_FMTS: val = "CLUSCTL_GROUP_GET_COMMON_PROPERTY_FMTS"; break;
1452 0 : case CLUSCTL_GROUP_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_ENUM_PRIVATE_PROPERTIES"; break;
1453 0 : case CLUSCTL_GROUP_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_GET_RO_PRIVATE_PROPERTIES"; break;
1454 0 : case CLUSCTL_GROUP_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_GET_PRIVATE_PROPERTIES"; break;
1455 0 : case CLUSCTL_GROUP_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_SET_PRIVATE_PROPERTIES"; break;
1456 0 : case CLUSCTL_GROUP_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_VALIDATE_PRIVATE_PROPERTIES"; break;
1457 : }
1458 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1459 0 : }
1460 :
1461 0 : static enum ndr_err_code ndr_push_clusapi_NodeControlCode(struct ndr_push *ndr, int ndr_flags, enum clusapi_NodeControlCode r)
1462 : {
1463 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1464 0 : return NDR_ERR_SUCCESS;
1465 : }
1466 :
1467 0 : static enum ndr_err_code ndr_pull_clusapi_NodeControlCode(struct ndr_pull *ndr, int ndr_flags, enum clusapi_NodeControlCode *r)
1468 : {
1469 : uint32_t v;
1470 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1471 0 : *r = v;
1472 0 : return NDR_ERR_SUCCESS;
1473 : }
1474 :
1475 0 : _PUBLIC_ void ndr_print_clusapi_NodeControlCode(struct ndr_print *ndr, const char *name, enum clusapi_NodeControlCode r)
1476 : {
1477 0 : const char *val = NULL;
1478 :
1479 0 : switch (r) {
1480 0 : case CLUSCTL_NODE_UNKNOWN: val = "CLUSCTL_NODE_UNKNOWN"; break;
1481 0 : case CLUSCTL_NODE_GET_CHARACTERISTICS: val = "CLUSCTL_NODE_GET_CHARACTERISTICS"; break;
1482 0 : case CLUSCTL_NODE_GET_FLAGS: val = "CLUSCTL_NODE_GET_FLAGS"; break;
1483 0 : case CLUSCTL_NODE_GET_NAME: val = "CLUSCTL_NODE_GET_NAME"; break;
1484 0 : case CLUSCTL_NODE_GET_ID: val = "CLUSCTL_NODE_GET_ID"; break;
1485 0 : case CLUSCTL_NODE_GET_CLUSTER_SERVICE_ACCOUNT_NAME: val = "CLUSCTL_NODE_GET_CLUSTER_SERVICE_ACCOUNT_NAME"; break;
1486 0 : case CLUSCTL_NODE_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_NODE_ENUM_COMMON_PROPERTIES"; break;
1487 0 : case CLUSCTL_NODE_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_NODE_GET_RO_COMMON_PROPERTIES"; break;
1488 0 : case CLUSCTL_NODE_GET_COMMON_PROPERTIES: val = "CLUSCTL_NODE_GET_COMMON_PROPERTIES"; break;
1489 0 : case CLUSCTL_NODE_SET_COMMON_PROPERTIES: val = "CLUSCTL_NODE_SET_COMMON_PROPERTIES"; break;
1490 0 : case CLUSCTL_NODE_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_NODE_VALIDATE_COMMON_PROPERTIES"; break;
1491 0 : case CLUSCTL_NODE_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_ENUM_PRIVATE_PROPERTIES"; break;
1492 0 : case CLUSCTL_NODE_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_GET_RO_PRIVATE_PROPERTIES"; break;
1493 0 : case CLUSCTL_NODE_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_GET_PRIVATE_PROPERTIES"; break;
1494 0 : case CLUSCTL_NODE_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_SET_PRIVATE_PROPERTIES"; break;
1495 0 : case CLUSCTL_NODE_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_VALIDATE_PRIVATE_PROPERTIES"; break;
1496 : }
1497 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1498 0 : }
1499 :
1500 0 : static enum ndr_err_code ndr_push_clusapi_ClusterNetworkState(struct ndr_push *ndr, int ndr_flags, enum clusapi_ClusterNetworkState r)
1501 : {
1502 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1503 0 : return NDR_ERR_SUCCESS;
1504 : }
1505 :
1506 0 : static enum ndr_err_code ndr_pull_clusapi_ClusterNetworkState(struct ndr_pull *ndr, int ndr_flags, enum clusapi_ClusterNetworkState *r)
1507 : {
1508 : uint32_t v;
1509 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1510 0 : *r = v;
1511 0 : return NDR_ERR_SUCCESS;
1512 : }
1513 :
1514 0 : _PUBLIC_ void ndr_print_clusapi_ClusterNetworkState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterNetworkState r)
1515 : {
1516 0 : const char *val = NULL;
1517 :
1518 0 : switch (r) {
1519 0 : case ClusterNetworkUnavailable: val = "ClusterNetworkUnavailable"; break;
1520 0 : case ClusterNetworkDown: val = "ClusterNetworkDown"; break;
1521 0 : case ClusterNetworkPartitioned: val = "ClusterNetworkPartitioned"; break;
1522 0 : case ClusterNetworkUp: val = "ClusterNetworkUp"; break;
1523 0 : case ClusterNetworkStateUnknown: val = "ClusterNetworkStateUnknown"; break;
1524 : }
1525 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1526 0 : }
1527 :
1528 0 : static enum ndr_err_code ndr_push_clusapi_ClusterNetInterfaceState(struct ndr_push *ndr, int ndr_flags, enum clusapi_ClusterNetInterfaceState r)
1529 : {
1530 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1531 0 : return NDR_ERR_SUCCESS;
1532 : }
1533 :
1534 0 : static enum ndr_err_code ndr_pull_clusapi_ClusterNetInterfaceState(struct ndr_pull *ndr, int ndr_flags, enum clusapi_ClusterNetInterfaceState *r)
1535 : {
1536 : uint32_t v;
1537 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1538 0 : *r = v;
1539 0 : return NDR_ERR_SUCCESS;
1540 : }
1541 :
1542 0 : _PUBLIC_ void ndr_print_clusapi_ClusterNetInterfaceState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterNetInterfaceState r)
1543 : {
1544 0 : const char *val = NULL;
1545 :
1546 0 : switch (r) {
1547 0 : case ClusterNetInterfaceFailed: val = "ClusterNetInterfaceFailed"; break;
1548 0 : case ClusterNetInterfaceUnreachable: val = "ClusterNetInterfaceUnreachable"; break;
1549 0 : case ClusterNetInterfaceUnavailable: val = "ClusterNetInterfaceUnavailable"; break;
1550 0 : case ClusterNetInterfaceUp: val = "ClusterNetInterfaceUp"; break;
1551 0 : case ClusterNetInterfaceStateUnknown: val = "ClusterNetInterfaceStateUnknown"; break;
1552 : }
1553 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1554 0 : }
1555 :
1556 0 : static enum ndr_err_code ndr_push_ClusterResTypeEnumType(struct ndr_push *ndr, int ndr_flags, uint32_t r)
1557 : {
1558 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
1559 0 : return NDR_ERR_SUCCESS;
1560 : }
1561 :
1562 0 : static enum ndr_err_code ndr_pull_ClusterResTypeEnumType(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
1563 : {
1564 : uint32_t v;
1565 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
1566 0 : *r = v;
1567 0 : return NDR_ERR_SUCCESS;
1568 : }
1569 :
1570 0 : _PUBLIC_ void ndr_print_ClusterResTypeEnumType(struct ndr_print *ndr, const char *name, uint32_t r)
1571 : {
1572 0 : ndr_print_uint32(ndr, name, r);
1573 0 : ndr->depth++;
1574 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_RESOURCE_TYPE_ENUM_NODES", CLUSTER_RESOURCE_TYPE_ENUM_NODES, r);
1575 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_RESOURCE_TYPE_ENUM_RESOURCES", CLUSTER_RESOURCE_TYPE_ENUM_RESOURCES, r);
1576 0 : ndr->depth--;
1577 0 : }
1578 :
1579 0 : static enum ndr_err_code ndr_push_clusapi_ClusterControlCode(struct ndr_push *ndr, int ndr_flags, enum clusapi_ClusterControlCode r)
1580 : {
1581 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1582 0 : return NDR_ERR_SUCCESS;
1583 : }
1584 :
1585 0 : static enum ndr_err_code ndr_pull_clusapi_ClusterControlCode(struct ndr_pull *ndr, int ndr_flags, enum clusapi_ClusterControlCode *r)
1586 : {
1587 : uint32_t v;
1588 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1589 0 : *r = v;
1590 0 : return NDR_ERR_SUCCESS;
1591 : }
1592 :
1593 0 : _PUBLIC_ void ndr_print_clusapi_ClusterControlCode(struct ndr_print *ndr, const char *name, enum clusapi_ClusterControlCode r)
1594 : {
1595 0 : const char *val = NULL;
1596 :
1597 0 : switch (r) {
1598 0 : case CLUSCTL_CLUSTER_UNKNOWN: val = "CLUSCTL_CLUSTER_UNKNOWN"; break;
1599 0 : case CLUSCTL_CLUSTER_GET_FQDN: val = "CLUSCTL_CLUSTER_GET_FQDN"; break;
1600 0 : case CLUSCTL_CLUSTER_CHECK_VOTER_EVICT: val = "CLUSCTL_CLUSTER_CHECK_VOTER_EVICT"; break;
1601 0 : case CLUSCTL_CLUSTER_CHECK_VOTER_DOWN: val = "CLUSCTL_CLUSTER_CHECK_VOTER_DOWN"; break;
1602 0 : case CLUSCTL_CLUSTER_SHUTDOWN: val = "CLUSCTL_CLUSTER_SHUTDOWN"; break;
1603 0 : case CLUSCTL_CLUSTER_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_ENUM_COMMON_PROPERTIES"; break;
1604 0 : case CLUSCTL_CLUSTER_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_GET_RO_COMMON_PROPERTIES"; break;
1605 0 : case CLUSCTL_CLUSTER_GET_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_GET_COMMON_PROPERTIES"; break;
1606 0 : case CLUSCTL_CLUSTER_SET_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_SET_COMMON_PROPERTIES"; break;
1607 0 : case CLUSCTL_CLUSTER_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_VALIDATE_COMMON_PROPERTIES"; break;
1608 0 : case CLUSCTL_CLUSTER_GET_COMMON_PROPERTY_FMTS: val = "CLUSCTL_CLUSTER_GET_COMMON_PROPERTY_FMTS"; break;
1609 0 : case CLUSCTL_CLUSTER_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_ENUM_PRIVATE_PROPERTIES"; break;
1610 0 : case CLUSCTL_CLUSTER_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_GET_RO_PRIVATE_PROPERTIES"; break;
1611 0 : case CLUSCTL_CLUSTER_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_GET_PRIVATE_PROPERTIES"; break;
1612 0 : case CLUSCTL_CLUSTER_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_SET_PRIVATE_PROPERTIES"; break;
1613 0 : case CLUSCTL_CLUSTER_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_VALIDATE_PRIVATE_PROPERTIES"; break;
1614 0 : case CLUSCTL_CLUSTER_GET_SHARED_VOLUME_ID: val = "CLUSCTL_CLUSTER_GET_SHARED_VOLUME_ID"; break;
1615 0 : case CLUSCTL_CLUSTER_UPGRADE_CLUSTER_VERSION: val = "CLUSCTL_CLUSTER_UPGRADE_CLUSTER_VERSION"; break;
1616 0 : case CLUSCTL_CLUSTER_CLEAR_UPGRADE_IN_PROGRESS: val = "CLUSCTL_CLUSTER_CLEAR_UPGRADE_IN_PROGRESS"; break;
1617 0 : case CLUSCTL_CLUSTER_IS_READY_FOR_UPGRADE: val = "CLUSCTL_CLUSTER_IS_READY_FOR_UPGRADE"; break;
1618 : }
1619 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1620 0 : }
1621 :
1622 0 : static enum ndr_err_code ndr_push_CLUSTER_PROPERTY_SYNTAX(struct ndr_push *ndr, int ndr_flags, enum CLUSTER_PROPERTY_SYNTAX r)
1623 : {
1624 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1625 0 : return NDR_ERR_SUCCESS;
1626 : }
1627 :
1628 0 : static enum ndr_err_code ndr_pull_CLUSTER_PROPERTY_SYNTAX(struct ndr_pull *ndr, int ndr_flags, enum CLUSTER_PROPERTY_SYNTAX *r)
1629 : {
1630 : uint32_t v;
1631 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1632 0 : *r = v;
1633 0 : return NDR_ERR_SUCCESS;
1634 : }
1635 :
1636 0 : _PUBLIC_ void ndr_print_CLUSTER_PROPERTY_SYNTAX(struct ndr_print *ndr, const char *name, enum CLUSTER_PROPERTY_SYNTAX r)
1637 : {
1638 0 : const char *val = NULL;
1639 :
1640 0 : switch (r) {
1641 0 : case CLUSPROP_SYNTAX_ENDMARK: val = "CLUSPROP_SYNTAX_ENDMARK"; break;
1642 0 : case CLUSPROP_SYNTAX_NAME: val = "CLUSPROP_SYNTAX_NAME"; break;
1643 0 : case CLUSPROP_SYNTAX_RESCLASS: val = "CLUSPROP_SYNTAX_RESCLASS"; break;
1644 0 : case CLUSPROP_SYNTAX_LIST_VALUE_SZ: val = "CLUSPROP_SYNTAX_LIST_VALUE_SZ"; break;
1645 0 : case CLUSPROP_SYNTAX_LIST_VALUE_EXPAND_SZ: val = "CLUSPROP_SYNTAX_LIST_VALUE_EXPAND_SZ"; break;
1646 0 : case CLUSPROP_SYNTAX_LIST_VALUE_DWORD: val = "CLUSPROP_SYNTAX_LIST_VALUE_DWORD"; break;
1647 0 : case CLUSPROP_SYNTAX_LIST_VALUE_BINARY: val = "CLUSPROP_SYNTAX_LIST_VALUE_BINARY"; break;
1648 0 : case CLUSPROP_SYNTAX_LIST_VALUE_MULTI_SZ: val = "CLUSPROP_SYNTAX_LIST_VALUE_MULTI_SZ"; break;
1649 0 : case CLUSPROP_SYNTAX_LIST_VALUE_LONG: val = "CLUSPROP_SYNTAX_LIST_VALUE_LONG"; break;
1650 0 : case CLUSPROP_SYNTAX_LIST_VALUE_EXPANDED_SZ: val = "CLUSPROP_SYNTAX_LIST_VALUE_EXPANDED_SZ"; break;
1651 0 : case CLUSPROP_SYNTAX_LIST_VALUE_SECURITY_DESCRIPTOR: val = "CLUSPROP_SYNTAX_LIST_VALUE_SECURITY_DESCRIPTOR"; break;
1652 0 : case CLUSPROP_SYNTAX_LIST_VALUE_LARGE_INTEGER: val = "CLUSPROP_SYNTAX_LIST_VALUE_LARGE_INTEGER"; break;
1653 0 : case CLUSPROP_SYNTAX_LIST_VALUE_ULARGE_INTEGER: val = "CLUSPROP_SYNTAX_LIST_VALUE_ULARGE_INTEGER"; break;
1654 0 : case CLUSPROP_SYNTAX_LIST_VALUE_WORD: val = "CLUSPROP_SYNTAX_LIST_VALUE_WORD"; break;
1655 0 : case CLUSPROP_SYNTAX_LIST_VALUE_FILETIME: val = "CLUSPROP_SYNTAX_LIST_VALUE_FILETIME"; break;
1656 0 : case CLUSPROP_SYNTAX_DISK_SIGNATURE: val = "CLUSPROP_SYNTAX_DISK_SIGNATURE"; break;
1657 0 : case CLUSPROP_SYNTAX_SCSI_ADDRESS: val = "CLUSPROP_SYNTAX_SCSI_ADDRESS"; break;
1658 0 : case CLUSPROP_SYNTAX_DISK_NUMBER: val = "CLUSPROP_SYNTAX_DISK_NUMBER"; break;
1659 0 : case CLUSPROP_SYNTAX_PARTITION_INFO: val = "CLUSPROP_SYNTAX_PARTITION_INFO"; break;
1660 0 : case CLUSPROP_SYNTAX_DISK_SERIALNUMBER: val = "CLUSPROP_SYNTAX_DISK_SERIALNUMBER"; break;
1661 0 : case CLUSPROP_SYNTAX_DISK_GUID: val = "CLUSPROP_SYNTAX_DISK_GUID"; break;
1662 0 : case CLUSPROP_SYNTAX_DISK_SIZE: val = "CLUSPROP_SYNTAX_DISK_SIZE"; break;
1663 0 : case CLUSPROP_SYNTAX_PARTITION_INFO_EX: val = "CLUSPROP_SYNTAX_PARTITION_INFO_EX"; break;
1664 : }
1665 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1666 0 : }
1667 :
1668 0 : static enum ndr_err_code ndr_push_clusapi_propertyValues(struct ndr_push *ndr, int ndr_flags, const struct clusapi_propertyValues *r)
1669 : {
1670 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1671 0 : if (ndr_flags & NDR_SCALARS) {
1672 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1673 0 : NDR_CHECK(ndr_push_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, r->Syntax));
1674 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->Size));
1675 : {
1676 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1677 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1678 : {
1679 : struct ndr_push *_ndr_Buffer;
1680 0 : NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_Buffer, 0, r->Size));
1681 0 : NDR_CHECK(ndr_push_DATA_BLOB(_ndr_Buffer, NDR_SCALARS, r->Buffer));
1682 0 : NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_Buffer, 0, r->Size));
1683 : }
1684 0 : ndr->flags = _flags_save_DATA_BLOB;
1685 : }
1686 : {
1687 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1688 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
1689 0 : NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->Padding));
1690 0 : ndr->flags = _flags_save_DATA_BLOB;
1691 : }
1692 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1693 : }
1694 0 : if (ndr_flags & NDR_BUFFERS) {
1695 : }
1696 0 : return NDR_ERR_SUCCESS;
1697 : }
1698 :
1699 0 : static enum ndr_err_code ndr_pull_clusapi_propertyValues(struct ndr_pull *ndr, int ndr_flags, struct clusapi_propertyValues *r)
1700 : {
1701 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1702 0 : if (ndr_flags & NDR_SCALARS) {
1703 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1704 0 : NDR_CHECK(ndr_pull_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, &r->Syntax));
1705 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Size));
1706 : {
1707 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1708 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1709 : {
1710 : struct ndr_pull *_ndr_Buffer;
1711 0 : NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_Buffer, 0, r->Size));
1712 0 : NDR_CHECK(ndr_pull_DATA_BLOB(_ndr_Buffer, NDR_SCALARS, &r->Buffer));
1713 0 : NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_Buffer, 0, r->Size));
1714 : }
1715 0 : ndr->flags = _flags_save_DATA_BLOB;
1716 : }
1717 : {
1718 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1719 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
1720 0 : NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->Padding));
1721 0 : ndr->flags = _flags_save_DATA_BLOB;
1722 : }
1723 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1724 : }
1725 0 : if (ndr_flags & NDR_BUFFERS) {
1726 : }
1727 0 : return NDR_ERR_SUCCESS;
1728 : }
1729 :
1730 0 : _PUBLIC_ void ndr_print_clusapi_propertyValues(struct ndr_print *ndr, const char *name, const struct clusapi_propertyValues *r)
1731 : {
1732 0 : ndr_print_struct(ndr, name, "clusapi_propertyValues");
1733 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1734 0 : ndr->depth++;
1735 0 : ndr_print_CLUSTER_PROPERTY_SYNTAX(ndr, "Syntax", r->Syntax);
1736 0 : ndr_print_uint32(ndr, "Size", r->Size);
1737 : {
1738 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1739 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
1740 0 : ndr_print_DATA_BLOB(ndr, "Buffer", r->Buffer);
1741 0 : ndr->flags = _flags_save_DATA_BLOB;
1742 : }
1743 : {
1744 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1745 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
1746 0 : ndr_print_DATA_BLOB(ndr, "Padding", r->Padding);
1747 0 : ndr->flags = _flags_save_DATA_BLOB;
1748 : }
1749 0 : ndr->depth--;
1750 : }
1751 :
1752 0 : static enum ndr_err_code ndr_push_clusapi_propertyValue(struct ndr_push *ndr, int ndr_flags, const struct clusapi_propertyValue *r)
1753 : {
1754 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1755 0 : if (ndr_flags & NDR_SCALARS) {
1756 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1757 0 : NDR_CHECK(ndr_push_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, CLUSPROP_SYNTAX_NAME));
1758 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, strlen_m_term(r->buffer) * 2));
1759 : {
1760 0 : uint32_t _flags_save_string = ndr->flags;
1761 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
1762 0 : NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->buffer));
1763 0 : ndr->flags = _flags_save_string;
1764 : }
1765 : {
1766 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1767 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN2);
1768 0 : NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->padding));
1769 0 : ndr->flags = _flags_save_DATA_BLOB;
1770 : }
1771 0 : NDR_CHECK(ndr_push_clusapi_propertyValues(ndr, NDR_SCALARS, &r->PropertyValues));
1772 0 : NDR_CHECK(ndr_push_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, CLUSPROP_SYNTAX_ENDMARK));
1773 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1774 : }
1775 0 : if (ndr_flags & NDR_BUFFERS) {
1776 : }
1777 0 : return NDR_ERR_SUCCESS;
1778 : }
1779 :
1780 0 : static enum ndr_err_code ndr_pull_clusapi_propertyValue(struct ndr_pull *ndr, int ndr_flags, struct clusapi_propertyValue *r)
1781 : {
1782 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1783 0 : if (ndr_flags & NDR_SCALARS) {
1784 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1785 0 : NDR_CHECK(ndr_pull_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, &r->syntax_name));
1786 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->size));
1787 : {
1788 0 : uint32_t _flags_save_string = ndr->flags;
1789 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
1790 0 : NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->buffer));
1791 0 : ndr->flags = _flags_save_string;
1792 : }
1793 : {
1794 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1795 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN2);
1796 0 : NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->padding));
1797 0 : ndr->flags = _flags_save_DATA_BLOB;
1798 : }
1799 0 : NDR_CHECK(ndr_pull_clusapi_propertyValues(ndr, NDR_SCALARS, &r->PropertyValues));
1800 0 : NDR_CHECK(ndr_pull_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, &r->end_mark));
1801 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1802 : }
1803 0 : if (ndr_flags & NDR_BUFFERS) {
1804 : }
1805 0 : return NDR_ERR_SUCCESS;
1806 : }
1807 :
1808 0 : _PUBLIC_ void ndr_print_clusapi_propertyValue(struct ndr_print *ndr, const char *name, const struct clusapi_propertyValue *r)
1809 : {
1810 0 : ndr_print_struct(ndr, name, "clusapi_propertyValue");
1811 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1812 0 : ndr->depth++;
1813 0 : ndr_print_CLUSTER_PROPERTY_SYNTAX(ndr, "syntax_name", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?CLUSPROP_SYNTAX_NAME:r->syntax_name);
1814 0 : ndr_print_uint32(ndr, "size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?strlen_m_term(r->buffer) * 2:r->size);
1815 : {
1816 0 : uint32_t _flags_save_string = ndr->flags;
1817 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
1818 0 : ndr_print_string(ndr, "buffer", r->buffer);
1819 0 : ndr->flags = _flags_save_string;
1820 : }
1821 : {
1822 0 : uint32_t _flags_save_DATA_BLOB = ndr->flags;
1823 0 : ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN2);
1824 0 : ndr_print_DATA_BLOB(ndr, "padding", r->padding);
1825 0 : ndr->flags = _flags_save_DATA_BLOB;
1826 : }
1827 0 : ndr_print_clusapi_propertyValues(ndr, "PropertyValues", &r->PropertyValues);
1828 0 : ndr_print_CLUSTER_PROPERTY_SYNTAX(ndr, "end_mark", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?CLUSPROP_SYNTAX_ENDMARK:r->end_mark);
1829 0 : ndr->depth--;
1830 : }
1831 :
1832 0 : _PUBLIC_ enum ndr_err_code ndr_push_clusapi_PROPERTY_LIST(struct ndr_push *ndr, int ndr_flags, const struct clusapi_PROPERTY_LIST *r)
1833 : {
1834 : uint32_t cntr_propertyValues_0;
1835 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1836 0 : if (ndr_flags & NDR_SCALARS) {
1837 0 : NDR_CHECK(ndr_push_align(ndr, 4));
1838 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->propertyCount));
1839 0 : for (cntr_propertyValues_0 = 0; cntr_propertyValues_0 < (r->propertyCount); cntr_propertyValues_0++) {
1840 0 : NDR_CHECK(ndr_push_clusapi_propertyValue(ndr, NDR_SCALARS, &r->propertyValues[cntr_propertyValues_0]));
1841 : }
1842 0 : NDR_CHECK(ndr_push_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, CLUSPROP_SYNTAX_ENDMARK));
1843 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1844 : }
1845 0 : if (ndr_flags & NDR_BUFFERS) {
1846 : }
1847 0 : return NDR_ERR_SUCCESS;
1848 : }
1849 :
1850 0 : _PUBLIC_ enum ndr_err_code ndr_pull_clusapi_PROPERTY_LIST(struct ndr_pull *ndr, int ndr_flags, struct clusapi_PROPERTY_LIST *r)
1851 : {
1852 0 : uint32_t size_propertyValues_0 = 0;
1853 : uint32_t cntr_propertyValues_0;
1854 0 : TALLOC_CTX *_mem_save_propertyValues_0 = NULL;
1855 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1856 0 : if (ndr_flags & NDR_SCALARS) {
1857 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
1858 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->propertyCount));
1859 0 : size_propertyValues_0 = r->propertyCount;
1860 0 : NDR_PULL_ALLOC_N(ndr, r->propertyValues, size_propertyValues_0);
1861 0 : _mem_save_propertyValues_0 = NDR_PULL_GET_MEM_CTX(ndr);
1862 0 : NDR_PULL_SET_MEM_CTX(ndr, r->propertyValues, 0);
1863 0 : for (cntr_propertyValues_0 = 0; cntr_propertyValues_0 < (size_propertyValues_0); cntr_propertyValues_0++) {
1864 0 : NDR_CHECK(ndr_pull_clusapi_propertyValue(ndr, NDR_SCALARS, &r->propertyValues[cntr_propertyValues_0]));
1865 : }
1866 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_propertyValues_0, 0);
1867 0 : NDR_CHECK(ndr_pull_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, &r->end_mark));
1868 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1869 : }
1870 0 : if (ndr_flags & NDR_BUFFERS) {
1871 : }
1872 0 : return NDR_ERR_SUCCESS;
1873 : }
1874 :
1875 0 : static void ndr_print_flags_clusapi_PROPERTY_LIST(struct ndr_print *ndr, const char *name, int unused, const struct clusapi_PROPERTY_LIST *r)
1876 : {
1877 0 : ndr_print_clusapi_PROPERTY_LIST(ndr, name, r);
1878 0 : }
1879 :
1880 0 : _PUBLIC_ void ndr_print_clusapi_PROPERTY_LIST(struct ndr_print *ndr, const char *name, const struct clusapi_PROPERTY_LIST *r)
1881 : {
1882 : uint32_t cntr_propertyValues_0;
1883 0 : ndr_print_struct(ndr, name, "clusapi_PROPERTY_LIST");
1884 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1885 0 : ndr->depth++;
1886 0 : ndr_print_uint32(ndr, "propertyCount", r->propertyCount);
1887 0 : ndr->print(ndr, "%s: ARRAY(%d)", "propertyValues", (int)r->propertyCount);
1888 0 : ndr->depth++;
1889 0 : for (cntr_propertyValues_0 = 0; cntr_propertyValues_0 < (r->propertyCount); cntr_propertyValues_0++) {
1890 0 : ndr_print_clusapi_propertyValue(ndr, "propertyValues", &r->propertyValues[cntr_propertyValues_0]);
1891 : }
1892 0 : ndr->depth--;
1893 0 : ndr_print_CLUSTER_PROPERTY_SYNTAX(ndr, "end_mark", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?CLUSPROP_SYNTAX_ENDMARK:r->end_mark);
1894 0 : ndr->depth--;
1895 : }
1896 :
1897 0 : static enum ndr_err_code ndr_push_clusapi_DesiredAccessMask(struct ndr_push *ndr, int ndr_flags, uint32_t r)
1898 : {
1899 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
1900 0 : return NDR_ERR_SUCCESS;
1901 : }
1902 :
1903 0 : static enum ndr_err_code ndr_pull_clusapi_DesiredAccessMask(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
1904 : {
1905 : uint32_t v;
1906 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
1907 0 : *r = v;
1908 0 : return NDR_ERR_SUCCESS;
1909 : }
1910 :
1911 0 : _PUBLIC_ void ndr_print_clusapi_DesiredAccessMask(struct ndr_print *ndr, const char *name, uint32_t r)
1912 : {
1913 0 : ndr_print_uint32(ndr, name, r);
1914 0 : ndr->depth++;
1915 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_READ_ACCESS", CLUSAPI_READ_ACCESS, r);
1916 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_CHANGE_ACCESS", CLUSAPI_CHANGE_ACCESS, r);
1917 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_GENERIC_READ", CLUSAPI_GENERIC_READ, r);
1918 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_GENERIC_WRITE", CLUSAPI_GENERIC_WRITE, r);
1919 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_GENERIC_EXECUTE", CLUSAPI_GENERIC_EXECUTE, r);
1920 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_GENERIC_ALL", CLUSAPI_GENERIC_ALL, r);
1921 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_MAXIMUM_ALLOWED", CLUSAPI_MAXIMUM_ALLOWED, r);
1922 0 : ndr->depth--;
1923 0 : }
1924 :
1925 0 : static enum ndr_err_code ndr_push_NOTIFY_FILTER_AND_TYPE_RPC(struct ndr_push *ndr, int ndr_flags, const struct NOTIFY_FILTER_AND_TYPE_RPC *r)
1926 : {
1927 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1928 0 : if (ndr_flags & NDR_SCALARS) {
1929 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1930 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwObjectType));
1931 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->FilterFlags));
1932 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1933 : }
1934 0 : if (ndr_flags & NDR_BUFFERS) {
1935 : }
1936 0 : return NDR_ERR_SUCCESS;
1937 : }
1938 :
1939 0 : static enum ndr_err_code ndr_pull_NOTIFY_FILTER_AND_TYPE_RPC(struct ndr_pull *ndr, int ndr_flags, struct NOTIFY_FILTER_AND_TYPE_RPC *r)
1940 : {
1941 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1942 0 : if (ndr_flags & NDR_SCALARS) {
1943 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1944 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwObjectType));
1945 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->FilterFlags));
1946 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1947 : }
1948 0 : if (ndr_flags & NDR_BUFFERS) {
1949 : }
1950 0 : return NDR_ERR_SUCCESS;
1951 : }
1952 :
1953 0 : _PUBLIC_ void ndr_print_NOTIFY_FILTER_AND_TYPE_RPC(struct ndr_print *ndr, const char *name, const struct NOTIFY_FILTER_AND_TYPE_RPC *r)
1954 : {
1955 0 : ndr_print_struct(ndr, name, "NOTIFY_FILTER_AND_TYPE_RPC");
1956 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1957 0 : ndr->depth++;
1958 0 : ndr_print_uint32(ndr, "dwObjectType", r->dwObjectType);
1959 0 : ndr_print_hyper(ndr, "FilterFlags", r->FilterFlags);
1960 0 : ndr->depth--;
1961 : }
1962 :
1963 0 : static enum ndr_err_code ndr_push_NOTIFICATION_DATA_RPC(struct ndr_push *ndr, int ndr_flags, const struct NOTIFICATION_DATA_RPC *r)
1964 : {
1965 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1966 0 : if (ndr_flags & NDR_SCALARS) {
1967 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1968 0 : NDR_CHECK(ndr_push_NOTIFY_FILTER_AND_TYPE_RPC(ndr, NDR_SCALARS, &r->FilterAndType));
1969 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->buffer));
1970 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwBufferSize));
1971 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->ObjectId));
1972 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->ParentId));
1973 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
1974 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Type));
1975 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1976 : }
1977 0 : if (ndr_flags & NDR_BUFFERS) {
1978 0 : if (r->buffer) {
1979 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->dwBufferSize));
1980 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->buffer, r->dwBufferSize));
1981 : }
1982 0 : if (r->ObjectId) {
1983 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->ObjectId, CH_UTF16)));
1984 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1985 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->ObjectId, CH_UTF16)));
1986 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->ObjectId, ndr_charset_length(r->ObjectId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1987 : }
1988 0 : if (r->ParentId) {
1989 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->ParentId, CH_UTF16)));
1990 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1991 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->ParentId, CH_UTF16)));
1992 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->ParentId, ndr_charset_length(r->ParentId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1993 : }
1994 0 : if (r->Name) {
1995 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
1996 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
1997 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
1998 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
1999 : }
2000 0 : if (r->Type) {
2001 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Type, CH_UTF16)));
2002 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2003 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Type, CH_UTF16)));
2004 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Type, ndr_charset_length(r->Type, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2005 : }
2006 : }
2007 0 : return NDR_ERR_SUCCESS;
2008 : }
2009 :
2010 0 : static enum ndr_err_code ndr_pull_NOTIFICATION_DATA_RPC(struct ndr_pull *ndr, int ndr_flags, struct NOTIFICATION_DATA_RPC *r)
2011 : {
2012 : uint32_t _ptr_buffer;
2013 0 : uint32_t size_buffer_1 = 0;
2014 0 : TALLOC_CTX *_mem_save_buffer_0 = NULL;
2015 : uint32_t _ptr_ObjectId;
2016 0 : uint32_t size_ObjectId_1 = 0;
2017 0 : uint32_t length_ObjectId_1 = 0;
2018 0 : TALLOC_CTX *_mem_save_ObjectId_0 = NULL;
2019 : uint32_t _ptr_ParentId;
2020 0 : uint32_t size_ParentId_1 = 0;
2021 0 : uint32_t length_ParentId_1 = 0;
2022 0 : TALLOC_CTX *_mem_save_ParentId_0 = NULL;
2023 : uint32_t _ptr_Name;
2024 0 : uint32_t size_Name_1 = 0;
2025 0 : uint32_t length_Name_1 = 0;
2026 0 : TALLOC_CTX *_mem_save_Name_0 = NULL;
2027 : uint32_t _ptr_Type;
2028 0 : uint32_t size_Type_1 = 0;
2029 0 : uint32_t length_Type_1 = 0;
2030 0 : TALLOC_CTX *_mem_save_Type_0 = NULL;
2031 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2032 0 : if (ndr_flags & NDR_SCALARS) {
2033 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
2034 0 : NDR_CHECK(ndr_pull_NOTIFY_FILTER_AND_TYPE_RPC(ndr, NDR_SCALARS, &r->FilterAndType));
2035 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_buffer));
2036 0 : if (_ptr_buffer) {
2037 0 : NDR_PULL_ALLOC(ndr, r->buffer);
2038 : } else {
2039 0 : r->buffer = NULL;
2040 : }
2041 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwBufferSize));
2042 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ObjectId));
2043 0 : if (_ptr_ObjectId) {
2044 0 : NDR_PULL_ALLOC(ndr, r->ObjectId);
2045 : } else {
2046 0 : r->ObjectId = NULL;
2047 : }
2048 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ParentId));
2049 0 : if (_ptr_ParentId) {
2050 0 : NDR_PULL_ALLOC(ndr, r->ParentId);
2051 : } else {
2052 0 : r->ParentId = NULL;
2053 : }
2054 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
2055 0 : if (_ptr_Name) {
2056 0 : NDR_PULL_ALLOC(ndr, r->Name);
2057 : } else {
2058 0 : r->Name = NULL;
2059 : }
2060 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Type));
2061 0 : if (_ptr_Type) {
2062 0 : NDR_PULL_ALLOC(ndr, r->Type);
2063 : } else {
2064 0 : r->Type = NULL;
2065 : }
2066 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
2067 : }
2068 0 : if (ndr_flags & NDR_BUFFERS) {
2069 0 : if (r->buffer) {
2070 0 : _mem_save_buffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
2071 0 : NDR_PULL_SET_MEM_CTX(ndr, r->buffer, 0);
2072 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->buffer));
2073 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->buffer, &size_buffer_1));
2074 0 : NDR_PULL_ALLOC_N(ndr, r->buffer, size_buffer_1);
2075 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->buffer, size_buffer_1));
2076 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_buffer_0, 0);
2077 : }
2078 0 : if (r->ObjectId) {
2079 0 : _mem_save_ObjectId_0 = NDR_PULL_GET_MEM_CTX(ndr);
2080 0 : NDR_PULL_SET_MEM_CTX(ndr, r->ObjectId, 0);
2081 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->ObjectId));
2082 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->ObjectId));
2083 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->ObjectId, &size_ObjectId_1));
2084 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->ObjectId, &length_ObjectId_1));
2085 0 : if (length_ObjectId_1 > size_ObjectId_1) {
2086 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_ObjectId_1, length_ObjectId_1);
2087 : }
2088 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_ObjectId_1, sizeof(uint16_t)));
2089 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->ObjectId, length_ObjectId_1, sizeof(uint16_t), CH_UTF16));
2090 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ObjectId_0, 0);
2091 : }
2092 0 : if (r->ParentId) {
2093 0 : _mem_save_ParentId_0 = NDR_PULL_GET_MEM_CTX(ndr);
2094 0 : NDR_PULL_SET_MEM_CTX(ndr, r->ParentId, 0);
2095 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->ParentId));
2096 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->ParentId));
2097 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->ParentId, &size_ParentId_1));
2098 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->ParentId, &length_ParentId_1));
2099 0 : if (length_ParentId_1 > size_ParentId_1) {
2100 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_ParentId_1, length_ParentId_1);
2101 : }
2102 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_ParentId_1, sizeof(uint16_t)));
2103 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->ParentId, length_ParentId_1, sizeof(uint16_t), CH_UTF16));
2104 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ParentId_0, 0);
2105 : }
2106 0 : if (r->Name) {
2107 0 : _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
2108 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
2109 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
2110 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
2111 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
2112 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
2113 0 : if (length_Name_1 > size_Name_1) {
2114 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Name_1, length_Name_1);
2115 : }
2116 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
2117 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
2118 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
2119 : }
2120 0 : if (r->Type) {
2121 0 : _mem_save_Type_0 = NDR_PULL_GET_MEM_CTX(ndr);
2122 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Type, 0);
2123 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Type));
2124 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->Type));
2125 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Type, &size_Type_1));
2126 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Type, &length_Type_1));
2127 0 : if (length_Type_1 > size_Type_1) {
2128 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Type_1, length_Type_1);
2129 : }
2130 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Type_1, sizeof(uint16_t)));
2131 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Type, length_Type_1, sizeof(uint16_t), CH_UTF16));
2132 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Type_0, 0);
2133 : }
2134 0 : if (r->buffer) {
2135 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->buffer, r->dwBufferSize));
2136 : }
2137 : }
2138 0 : return NDR_ERR_SUCCESS;
2139 : }
2140 :
2141 0 : _PUBLIC_ void ndr_print_NOTIFICATION_DATA_RPC(struct ndr_print *ndr, const char *name, const struct NOTIFICATION_DATA_RPC *r)
2142 : {
2143 0 : ndr_print_struct(ndr, name, "NOTIFICATION_DATA_RPC");
2144 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2145 0 : ndr->depth++;
2146 0 : ndr_print_NOTIFY_FILTER_AND_TYPE_RPC(ndr, "FilterAndType", &r->FilterAndType);
2147 0 : ndr_print_ptr(ndr, "buffer", r->buffer);
2148 0 : ndr->depth++;
2149 0 : if (r->buffer) {
2150 0 : ndr_print_array_uint8(ndr, "buffer", r->buffer, r->dwBufferSize);
2151 : }
2152 0 : ndr->depth--;
2153 0 : ndr_print_uint32(ndr, "dwBufferSize", r->dwBufferSize);
2154 0 : ndr_print_ptr(ndr, "ObjectId", r->ObjectId);
2155 0 : ndr->depth++;
2156 0 : if (r->ObjectId) {
2157 0 : ndr_print_string(ndr, "ObjectId", r->ObjectId);
2158 : }
2159 0 : ndr->depth--;
2160 0 : ndr_print_ptr(ndr, "ParentId", r->ParentId);
2161 0 : ndr->depth++;
2162 0 : if (r->ParentId) {
2163 0 : ndr_print_string(ndr, "ParentId", r->ParentId);
2164 : }
2165 0 : ndr->depth--;
2166 0 : ndr_print_ptr(ndr, "Name", r->Name);
2167 0 : ndr->depth++;
2168 0 : if (r->Name) {
2169 0 : ndr_print_string(ndr, "Name", r->Name);
2170 : }
2171 0 : ndr->depth--;
2172 0 : ndr_print_ptr(ndr, "Type", r->Type);
2173 0 : ndr->depth++;
2174 0 : if (r->Type) {
2175 0 : ndr_print_string(ndr, "Type", r->Type);
2176 : }
2177 0 : ndr->depth--;
2178 0 : ndr->depth--;
2179 : }
2180 :
2181 0 : static enum ndr_err_code ndr_push_NOTIFICATION_RPC(struct ndr_push *ndr, int ndr_flags, const struct NOTIFICATION_RPC *r)
2182 : {
2183 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2184 0 : if (ndr_flags & NDR_SCALARS) {
2185 0 : NDR_CHECK(ndr_push_align(ndr, 8));
2186 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->dwNotifyKey));
2187 0 : NDR_CHECK(ndr_push_NOTIFICATION_DATA_RPC(ndr, NDR_SCALARS, &r->NotificationData));
2188 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
2189 : }
2190 0 : if (ndr_flags & NDR_BUFFERS) {
2191 0 : if (r->dwNotifyKey) {
2192 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->dwNotifyKey));
2193 : }
2194 0 : NDR_CHECK(ndr_push_NOTIFICATION_DATA_RPC(ndr, NDR_BUFFERS, &r->NotificationData));
2195 : }
2196 0 : return NDR_ERR_SUCCESS;
2197 : }
2198 :
2199 0 : static enum ndr_err_code ndr_pull_NOTIFICATION_RPC(struct ndr_pull *ndr, int ndr_flags, struct NOTIFICATION_RPC *r)
2200 : {
2201 : uint32_t _ptr_dwNotifyKey;
2202 0 : TALLOC_CTX *_mem_save_dwNotifyKey_0 = NULL;
2203 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2204 0 : if (ndr_flags & NDR_SCALARS) {
2205 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
2206 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_dwNotifyKey));
2207 0 : if (_ptr_dwNotifyKey) {
2208 0 : NDR_PULL_ALLOC(ndr, r->dwNotifyKey);
2209 : } else {
2210 0 : r->dwNotifyKey = NULL;
2211 : }
2212 0 : NDR_CHECK(ndr_pull_NOTIFICATION_DATA_RPC(ndr, NDR_SCALARS, &r->NotificationData));
2213 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
2214 : }
2215 0 : if (ndr_flags & NDR_BUFFERS) {
2216 0 : if (r->dwNotifyKey) {
2217 0 : _mem_save_dwNotifyKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
2218 0 : NDR_PULL_SET_MEM_CTX(ndr, r->dwNotifyKey, 0);
2219 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->dwNotifyKey));
2220 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwNotifyKey_0, 0);
2221 : }
2222 0 : NDR_CHECK(ndr_pull_NOTIFICATION_DATA_RPC(ndr, NDR_BUFFERS, &r->NotificationData));
2223 : }
2224 0 : return NDR_ERR_SUCCESS;
2225 : }
2226 :
2227 0 : _PUBLIC_ void ndr_print_NOTIFICATION_RPC(struct ndr_print *ndr, const char *name, const struct NOTIFICATION_RPC *r)
2228 : {
2229 0 : ndr_print_struct(ndr, name, "NOTIFICATION_RPC");
2230 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2231 0 : ndr->depth++;
2232 0 : ndr_print_ptr(ndr, "dwNotifyKey", r->dwNotifyKey);
2233 0 : ndr->depth++;
2234 0 : if (r->dwNotifyKey) {
2235 0 : ndr_print_uint32(ndr, "dwNotifyKey", *r->dwNotifyKey);
2236 : }
2237 0 : ndr->depth--;
2238 0 : ndr_print_NOTIFICATION_DATA_RPC(ndr, "NotificationData", &r->NotificationData);
2239 0 : ndr->depth--;
2240 : }
2241 :
2242 0 : static enum ndr_err_code ndr_push_CLUSTER_DISKID(struct ndr_push *ndr, int ndr_flags, const struct CLUSTER_DISKID *r)
2243 : {
2244 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2245 0 : if (ndr_flags & NDR_SCALARS) {
2246 0 : NDR_CHECK(ndr_push_align(ndr, 4));
2247 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->DiskIdType));
2248 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->DiskIdBlob, 16));
2249 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
2250 : }
2251 0 : if (ndr_flags & NDR_BUFFERS) {
2252 : }
2253 0 : return NDR_ERR_SUCCESS;
2254 : }
2255 :
2256 0 : static enum ndr_err_code ndr_pull_CLUSTER_DISKID(struct ndr_pull *ndr, int ndr_flags, struct CLUSTER_DISKID *r)
2257 : {
2258 0 : uint32_t size_DiskIdBlob_0 = 0;
2259 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2260 0 : if (ndr_flags & NDR_SCALARS) {
2261 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
2262 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->DiskIdType));
2263 0 : size_DiskIdBlob_0 = 16;
2264 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->DiskIdBlob, size_DiskIdBlob_0));
2265 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
2266 : }
2267 0 : if (ndr_flags & NDR_BUFFERS) {
2268 : }
2269 0 : return NDR_ERR_SUCCESS;
2270 : }
2271 :
2272 0 : _PUBLIC_ void ndr_print_CLUSTER_DISKID(struct ndr_print *ndr, const char *name, const struct CLUSTER_DISKID *r)
2273 : {
2274 0 : ndr_print_struct(ndr, name, "CLUSTER_DISKID");
2275 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2276 0 : ndr->depth++;
2277 0 : ndr_print_uint32(ndr, "DiskIdType", r->DiskIdType);
2278 0 : ndr_print_array_uint8(ndr, "DiskIdBlob", r->DiskIdBlob, 16);
2279 0 : ndr->depth--;
2280 : }
2281 :
2282 0 : static enum ndr_err_code ndr_push_CLUSTER_MRR_NODE_RESPONSE(struct ndr_push *ndr, int ndr_flags, const struct CLUSTER_MRR_NODE_RESPONSE *r)
2283 : {
2284 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2285 0 : if (ndr_flags & NDR_SCALARS) {
2286 0 : NDR_CHECK(ndr_push_align(ndr, 5));
2287 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->pszNodeName));
2288 0 : NDR_CHECK(ndr_push_HRESULT(ndr, NDR_SCALARS, r->ResultCode));
2289 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->ResultSize));
2290 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->pResultData));
2291 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2292 : }
2293 0 : if (ndr_flags & NDR_BUFFERS) {
2294 0 : if (r->pszNodeName) {
2295 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->pszNodeName, CH_UTF16)));
2296 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2297 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->pszNodeName, CH_UTF16)));
2298 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->pszNodeName, ndr_charset_length(r->pszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2299 : }
2300 0 : if (r->pResultData) {
2301 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->ResultSize));
2302 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->pResultData, r->ResultSize));
2303 : }
2304 : }
2305 0 : return NDR_ERR_SUCCESS;
2306 : }
2307 :
2308 0 : static enum ndr_err_code ndr_pull_CLUSTER_MRR_NODE_RESPONSE(struct ndr_pull *ndr, int ndr_flags, struct CLUSTER_MRR_NODE_RESPONSE *r)
2309 : {
2310 : uint32_t _ptr_pszNodeName;
2311 0 : uint32_t size_pszNodeName_1 = 0;
2312 0 : uint32_t length_pszNodeName_1 = 0;
2313 0 : TALLOC_CTX *_mem_save_pszNodeName_0 = NULL;
2314 : uint32_t _ptr_pResultData;
2315 0 : uint32_t size_pResultData_1 = 0;
2316 0 : TALLOC_CTX *_mem_save_pResultData_0 = NULL;
2317 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2318 0 : if (ndr_flags & NDR_SCALARS) {
2319 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
2320 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pszNodeName));
2321 0 : if (_ptr_pszNodeName) {
2322 0 : NDR_PULL_ALLOC(ndr, r->pszNodeName);
2323 : } else {
2324 0 : r->pszNodeName = NULL;
2325 : }
2326 0 : NDR_CHECK(ndr_pull_HRESULT(ndr, NDR_SCALARS, &r->ResultCode));
2327 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->ResultSize));
2328 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pResultData));
2329 0 : if (_ptr_pResultData) {
2330 0 : NDR_PULL_ALLOC(ndr, r->pResultData);
2331 : } else {
2332 0 : r->pResultData = NULL;
2333 : }
2334 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2335 : }
2336 0 : if (ndr_flags & NDR_BUFFERS) {
2337 0 : if (r->pszNodeName) {
2338 0 : _mem_save_pszNodeName_0 = NDR_PULL_GET_MEM_CTX(ndr);
2339 0 : NDR_PULL_SET_MEM_CTX(ndr, r->pszNodeName, 0);
2340 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->pszNodeName));
2341 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->pszNodeName));
2342 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->pszNodeName, &size_pszNodeName_1));
2343 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->pszNodeName, &length_pszNodeName_1));
2344 0 : if (length_pszNodeName_1 > size_pszNodeName_1) {
2345 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_pszNodeName_1, length_pszNodeName_1);
2346 : }
2347 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_pszNodeName_1, sizeof(uint16_t)));
2348 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->pszNodeName, length_pszNodeName_1, sizeof(uint16_t), CH_UTF16));
2349 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pszNodeName_0, 0);
2350 : }
2351 0 : if (r->pResultData) {
2352 0 : _mem_save_pResultData_0 = NDR_PULL_GET_MEM_CTX(ndr);
2353 0 : NDR_PULL_SET_MEM_CTX(ndr, r->pResultData, 0);
2354 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->pResultData));
2355 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->pResultData, &size_pResultData_1));
2356 0 : NDR_PULL_ALLOC_N(ndr, r->pResultData, size_pResultData_1);
2357 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->pResultData, size_pResultData_1));
2358 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResultData_0, 0);
2359 : }
2360 0 : if (r->pResultData) {
2361 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->pResultData, r->ResultSize));
2362 : }
2363 : }
2364 0 : return NDR_ERR_SUCCESS;
2365 : }
2366 :
2367 0 : _PUBLIC_ void ndr_print_CLUSTER_MRR_NODE_RESPONSE(struct ndr_print *ndr, const char *name, const struct CLUSTER_MRR_NODE_RESPONSE *r)
2368 : {
2369 0 : ndr_print_struct(ndr, name, "CLUSTER_MRR_NODE_RESPONSE");
2370 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2371 0 : ndr->depth++;
2372 0 : ndr_print_ptr(ndr, "pszNodeName", r->pszNodeName);
2373 0 : ndr->depth++;
2374 0 : if (r->pszNodeName) {
2375 0 : ndr_print_string(ndr, "pszNodeName", r->pszNodeName);
2376 : }
2377 0 : ndr->depth--;
2378 0 : ndr_print_HRESULT(ndr, "ResultCode", r->ResultCode);
2379 0 : ndr_print_uint32(ndr, "ResultSize", r->ResultSize);
2380 0 : ndr_print_ptr(ndr, "pResultData", r->pResultData);
2381 0 : ndr->depth++;
2382 0 : if (r->pResultData) {
2383 0 : ndr_print_array_uint8(ndr, "pResultData", r->pResultData, r->ResultSize);
2384 : }
2385 0 : ndr->depth--;
2386 0 : ndr->depth--;
2387 : }
2388 :
2389 0 : static enum ndr_err_code ndr_push_CLUSTER_MRR_RESPONSE(struct ndr_push *ndr, int ndr_flags, const struct CLUSTER_MRR_RESPONSE *r)
2390 : {
2391 : uint32_t cntr_pNodes_1;
2392 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2393 0 : if (ndr_flags & NDR_SCALARS) {
2394 0 : NDR_CHECK(ndr_push_align(ndr, 5));
2395 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->NodeCount));
2396 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->pNodes));
2397 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2398 : }
2399 0 : if (ndr_flags & NDR_BUFFERS) {
2400 0 : if (r->pNodes) {
2401 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->NodeCount));
2402 0 : for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (r->NodeCount); cntr_pNodes_1++) {
2403 0 : NDR_CHECK(ndr_push_CLUSTER_MRR_NODE_RESPONSE(ndr, NDR_SCALARS, &r->pNodes[cntr_pNodes_1]));
2404 : }
2405 0 : for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (r->NodeCount); cntr_pNodes_1++) {
2406 0 : NDR_CHECK(ndr_push_CLUSTER_MRR_NODE_RESPONSE(ndr, NDR_BUFFERS, &r->pNodes[cntr_pNodes_1]));
2407 : }
2408 : }
2409 : }
2410 0 : return NDR_ERR_SUCCESS;
2411 : }
2412 :
2413 0 : static enum ndr_err_code ndr_pull_CLUSTER_MRR_RESPONSE(struct ndr_pull *ndr, int ndr_flags, struct CLUSTER_MRR_RESPONSE *r)
2414 : {
2415 : uint32_t _ptr_pNodes;
2416 0 : uint32_t size_pNodes_1 = 0;
2417 : uint32_t cntr_pNodes_1;
2418 0 : TALLOC_CTX *_mem_save_pNodes_0 = NULL;
2419 0 : TALLOC_CTX *_mem_save_pNodes_1 = NULL;
2420 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2421 0 : if (ndr_flags & NDR_SCALARS) {
2422 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
2423 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->NodeCount));
2424 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pNodes));
2425 0 : if (_ptr_pNodes) {
2426 0 : NDR_PULL_ALLOC(ndr, r->pNodes);
2427 : } else {
2428 0 : r->pNodes = NULL;
2429 : }
2430 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2431 : }
2432 0 : if (ndr_flags & NDR_BUFFERS) {
2433 0 : if (r->pNodes) {
2434 0 : _mem_save_pNodes_0 = NDR_PULL_GET_MEM_CTX(ndr);
2435 0 : NDR_PULL_SET_MEM_CTX(ndr, r->pNodes, 0);
2436 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->pNodes));
2437 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->pNodes, &size_pNodes_1));
2438 0 : NDR_PULL_ALLOC_N(ndr, r->pNodes, size_pNodes_1);
2439 0 : _mem_save_pNodes_1 = NDR_PULL_GET_MEM_CTX(ndr);
2440 0 : NDR_PULL_SET_MEM_CTX(ndr, r->pNodes, 0);
2441 0 : for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (size_pNodes_1); cntr_pNodes_1++) {
2442 0 : NDR_CHECK(ndr_pull_CLUSTER_MRR_NODE_RESPONSE(ndr, NDR_SCALARS, &r->pNodes[cntr_pNodes_1]));
2443 : }
2444 0 : for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (size_pNodes_1); cntr_pNodes_1++) {
2445 0 : NDR_CHECK(ndr_pull_CLUSTER_MRR_NODE_RESPONSE(ndr, NDR_BUFFERS, &r->pNodes[cntr_pNodes_1]));
2446 : }
2447 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pNodes_1, 0);
2448 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pNodes_0, 0);
2449 : }
2450 0 : if (r->pNodes) {
2451 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->pNodes, r->NodeCount));
2452 : }
2453 0 : for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (size_pNodes_1); cntr_pNodes_1++) {
2454 : }
2455 : }
2456 0 : return NDR_ERR_SUCCESS;
2457 : }
2458 :
2459 0 : _PUBLIC_ void ndr_print_CLUSTER_MRR_RESPONSE(struct ndr_print *ndr, const char *name, const struct CLUSTER_MRR_RESPONSE *r)
2460 : {
2461 : uint32_t cntr_pNodes_1;
2462 0 : ndr_print_struct(ndr, name, "CLUSTER_MRR_RESPONSE");
2463 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2464 0 : ndr->depth++;
2465 0 : ndr_print_uint32(ndr, "NodeCount", r->NodeCount);
2466 0 : ndr_print_ptr(ndr, "pNodes", r->pNodes);
2467 0 : ndr->depth++;
2468 0 : if (r->pNodes) {
2469 0 : ndr->print(ndr, "%s: ARRAY(%d)", "pNodes", (int)r->NodeCount);
2470 0 : ndr->depth++;
2471 0 : for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (r->NodeCount); cntr_pNodes_1++) {
2472 0 : ndr_print_CLUSTER_MRR_NODE_RESPONSE(ndr, "pNodes", &r->pNodes[cntr_pNodes_1]);
2473 : }
2474 0 : ndr->depth--;
2475 : }
2476 0 : ndr->depth--;
2477 0 : ndr->depth--;
2478 : }
2479 :
2480 0 : static enum ndr_err_code ndr_push_NOTIFICATION_DATA_ASYNC_RPC(struct ndr_push *ndr, int ndr_flags, const struct NOTIFICATION_DATA_ASYNC_RPC *r)
2481 : {
2482 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2483 0 : if (ndr_flags & NDR_SCALARS) {
2484 0 : NDR_CHECK(ndr_push_align(ndr, 5));
2485 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwNotifyKey));
2486 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwFilter));
2487 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
2488 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2489 : }
2490 0 : if (ndr_flags & NDR_BUFFERS) {
2491 0 : if (r->Name) {
2492 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
2493 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2494 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
2495 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2496 : }
2497 : }
2498 0 : return NDR_ERR_SUCCESS;
2499 : }
2500 :
2501 0 : static enum ndr_err_code ndr_pull_NOTIFICATION_DATA_ASYNC_RPC(struct ndr_pull *ndr, int ndr_flags, struct NOTIFICATION_DATA_ASYNC_RPC *r)
2502 : {
2503 : uint32_t _ptr_Name;
2504 0 : uint32_t size_Name_1 = 0;
2505 0 : uint32_t length_Name_1 = 0;
2506 0 : TALLOC_CTX *_mem_save_Name_0 = NULL;
2507 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2508 0 : if (ndr_flags & NDR_SCALARS) {
2509 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
2510 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwNotifyKey));
2511 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwFilter));
2512 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
2513 0 : if (_ptr_Name) {
2514 0 : NDR_PULL_ALLOC(ndr, r->Name);
2515 : } else {
2516 0 : r->Name = NULL;
2517 : }
2518 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2519 : }
2520 0 : if (ndr_flags & NDR_BUFFERS) {
2521 0 : if (r->Name) {
2522 0 : _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
2523 0 : NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
2524 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
2525 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
2526 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
2527 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
2528 0 : if (length_Name_1 > size_Name_1) {
2529 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Name_1, length_Name_1);
2530 : }
2531 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
2532 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
2533 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
2534 : }
2535 : }
2536 0 : return NDR_ERR_SUCCESS;
2537 : }
2538 :
2539 0 : _PUBLIC_ void ndr_print_NOTIFICATION_DATA_ASYNC_RPC(struct ndr_print *ndr, const char *name, const struct NOTIFICATION_DATA_ASYNC_RPC *r)
2540 : {
2541 0 : ndr_print_struct(ndr, name, "NOTIFICATION_DATA_ASYNC_RPC");
2542 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2543 0 : ndr->depth++;
2544 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->dwNotifyKey);
2545 0 : ndr_print_uint32(ndr, "dwFilter", r->dwFilter);
2546 0 : ndr_print_ptr(ndr, "Name", r->Name);
2547 0 : ndr->depth++;
2548 0 : if (r->Name) {
2549 0 : ndr_print_string(ndr, "Name", r->Name);
2550 : }
2551 0 : ndr->depth--;
2552 0 : ndr->depth--;
2553 : }
2554 :
2555 0 : static enum ndr_err_code ndr_push_clusapi_GroupSetControlCode(struct ndr_push *ndr, int ndr_flags, enum clusapi_GroupSetControlCode r)
2556 : {
2557 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
2558 0 : return NDR_ERR_SUCCESS;
2559 : }
2560 :
2561 0 : static enum ndr_err_code ndr_pull_clusapi_GroupSetControlCode(struct ndr_pull *ndr, int ndr_flags, enum clusapi_GroupSetControlCode *r)
2562 : {
2563 : uint32_t v;
2564 0 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
2565 0 : *r = v;
2566 0 : return NDR_ERR_SUCCESS;
2567 : }
2568 :
2569 0 : _PUBLIC_ void ndr_print_clusapi_GroupSetControlCode(struct ndr_print *ndr, const char *name, enum clusapi_GroupSetControlCode r)
2570 : {
2571 0 : const char *val = NULL;
2572 :
2573 0 : switch (r) {
2574 0 : case CLUSCTL_GROUPSET_GET_ID: val = "CLUSCTL_GROUPSET_GET_ID"; break;
2575 0 : case CLUSCTL_GROUPSET_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_GROUPSET_GET_RO_COMMON_PROPERTIES"; break;
2576 0 : case CLUSCTL_GROUPSET_GET_COMMON_PROPERTIES: val = "CLUSCTL_GROUPSET_GET_COMMON_PROPERTIES"; break;
2577 0 : case CLUSCTL_GROUPSET_GET_GROUPS: val = "CLUSCTL_GROUPSET_GET_GROUPS"; break;
2578 0 : case CLUSCTL_GROUPSET_GET_PROVIDER_GROUPS: val = "CLUSCTL_GROUPSET_GET_PROVIDER_GROUPS"; break;
2579 0 : case CLUSCTL_GROUPSET_GET_PROVIDER_GROUPSETS: val = "CLUSCTL_GROUPSET_GET_PROVIDER_GROUPSETS"; break;
2580 0 : case CLUSCTL_GROUPSET_SET_COMMON_PROPERTIES: val = "CLUSCTL_GROUPSET_SET_COMMON_PROPERTIES"; break;
2581 : }
2582 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
2583 0 : }
2584 :
2585 0 : static enum ndr_err_code ndr_push_clusapi_OpenCluster(struct ndr_push *ndr, int flags, const struct clusapi_OpenCluster *r)
2586 : {
2587 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2588 0 : if (flags & NDR_IN) {
2589 : }
2590 0 : if (flags & NDR_OUT) {
2591 0 : if (r->out.Status == NULL) {
2592 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2593 : }
2594 0 : if (r->out.Cluster == NULL) {
2595 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2596 : }
2597 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
2598 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Cluster));
2599 : }
2600 0 : return NDR_ERR_SUCCESS;
2601 : }
2602 :
2603 0 : static enum ndr_err_code ndr_pull_clusapi_OpenCluster(struct ndr_pull *ndr, int flags, struct clusapi_OpenCluster *r)
2604 : {
2605 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
2606 0 : TALLOC_CTX *_mem_save_Cluster_0 = NULL;
2607 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2608 0 : if (flags & NDR_IN) {
2609 0 : NDR_ZERO_STRUCT(r->out);
2610 :
2611 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
2612 0 : NDR_ZERO_STRUCTP(r->out.Status);
2613 0 : NDR_PULL_ALLOC(ndr, r->out.Cluster);
2614 0 : NDR_ZERO_STRUCTP(r->out.Cluster);
2615 : }
2616 0 : if (flags & NDR_OUT) {
2617 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2618 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2619 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2620 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
2621 : }
2622 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
2623 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
2624 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
2625 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
2626 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2627 0 : NDR_PULL_ALLOC(ndr, r->out.Cluster);
2628 : }
2629 0 : _mem_save_Cluster_0 = NDR_PULL_GET_MEM_CTX(ndr);
2630 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Cluster, LIBNDR_FLAG_REF_ALLOC);
2631 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Cluster));
2632 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Cluster_0, LIBNDR_FLAG_REF_ALLOC);
2633 : }
2634 0 : return NDR_ERR_SUCCESS;
2635 : }
2636 :
2637 0 : _PUBLIC_ void ndr_print_clusapi_OpenCluster(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenCluster *r)
2638 : {
2639 0 : ndr_print_struct(ndr, name, "clusapi_OpenCluster");
2640 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2641 0 : ndr->depth++;
2642 0 : if (flags & NDR_SET_VALUES) {
2643 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2644 : }
2645 0 : if (flags & NDR_IN) {
2646 0 : ndr_print_struct(ndr, "in", "clusapi_OpenCluster");
2647 0 : ndr->depth++;
2648 0 : ndr->depth--;
2649 : }
2650 0 : if (flags & NDR_OUT) {
2651 0 : ndr_print_struct(ndr, "out", "clusapi_OpenCluster");
2652 0 : ndr->depth++;
2653 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
2654 0 : ndr->depth++;
2655 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
2656 0 : ndr->depth--;
2657 0 : ndr_print_ptr(ndr, "Cluster", r->out.Cluster);
2658 0 : ndr->depth++;
2659 0 : ndr_print_policy_handle(ndr, "Cluster", r->out.Cluster);
2660 0 : ndr->depth--;
2661 0 : ndr->depth--;
2662 : }
2663 0 : ndr->depth--;
2664 : }
2665 :
2666 0 : static enum ndr_err_code ndr_push_clusapi_CloseCluster(struct ndr_push *ndr, int flags, const struct clusapi_CloseCluster *r)
2667 : {
2668 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2669 0 : if (flags & NDR_IN) {
2670 0 : if (r->in.Cluster == NULL) {
2671 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2672 : }
2673 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Cluster));
2674 : }
2675 0 : if (flags & NDR_OUT) {
2676 0 : if (r->out.Cluster == NULL) {
2677 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2678 : }
2679 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Cluster));
2680 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2681 : }
2682 0 : return NDR_ERR_SUCCESS;
2683 : }
2684 :
2685 0 : static enum ndr_err_code ndr_pull_clusapi_CloseCluster(struct ndr_pull *ndr, int flags, struct clusapi_CloseCluster *r)
2686 : {
2687 0 : TALLOC_CTX *_mem_save_Cluster_0 = NULL;
2688 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2689 0 : if (flags & NDR_IN) {
2690 0 : NDR_ZERO_STRUCT(r->out);
2691 :
2692 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2693 0 : NDR_PULL_ALLOC(ndr, r->in.Cluster);
2694 : }
2695 0 : _mem_save_Cluster_0 = NDR_PULL_GET_MEM_CTX(ndr);
2696 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.Cluster, LIBNDR_FLAG_REF_ALLOC);
2697 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Cluster));
2698 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Cluster_0, LIBNDR_FLAG_REF_ALLOC);
2699 0 : NDR_PULL_ALLOC(ndr, r->out.Cluster);
2700 0 : *r->out.Cluster = *r->in.Cluster;
2701 : }
2702 0 : if (flags & NDR_OUT) {
2703 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2704 : if (r->in.Cluster == NULL) {
2705 : NDR_PULL_ALLOC(ndr, r->in.Cluster);
2706 : NDR_ZERO_STRUCTP(r->in.Cluster);
2707 : }
2708 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2709 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2710 0 : NDR_PULL_ALLOC(ndr, r->out.Cluster);
2711 : }
2712 0 : _mem_save_Cluster_0 = NDR_PULL_GET_MEM_CTX(ndr);
2713 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Cluster, LIBNDR_FLAG_REF_ALLOC);
2714 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Cluster));
2715 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Cluster_0, LIBNDR_FLAG_REF_ALLOC);
2716 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2717 : }
2718 0 : return NDR_ERR_SUCCESS;
2719 : }
2720 :
2721 0 : _PUBLIC_ void ndr_print_clusapi_CloseCluster(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseCluster *r)
2722 : {
2723 0 : ndr_print_struct(ndr, name, "clusapi_CloseCluster");
2724 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2725 0 : ndr->depth++;
2726 0 : if (flags & NDR_SET_VALUES) {
2727 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2728 : }
2729 0 : if (flags & NDR_IN) {
2730 0 : ndr_print_struct(ndr, "in", "clusapi_CloseCluster");
2731 0 : ndr->depth++;
2732 0 : ndr_print_ptr(ndr, "Cluster", r->in.Cluster);
2733 0 : ndr->depth++;
2734 0 : ndr_print_policy_handle(ndr, "Cluster", r->in.Cluster);
2735 0 : ndr->depth--;
2736 0 : ndr->depth--;
2737 : }
2738 0 : if (flags & NDR_OUT) {
2739 0 : ndr_print_struct(ndr, "out", "clusapi_CloseCluster");
2740 0 : ndr->depth++;
2741 0 : ndr_print_ptr(ndr, "Cluster", r->out.Cluster);
2742 0 : ndr->depth++;
2743 0 : ndr_print_policy_handle(ndr, "Cluster", r->out.Cluster);
2744 0 : ndr->depth--;
2745 0 : ndr_print_WERROR(ndr, "result", r->out.result);
2746 0 : ndr->depth--;
2747 : }
2748 0 : ndr->depth--;
2749 : }
2750 :
2751 0 : static enum ndr_err_code ndr_push_clusapi_SetClusterName(struct ndr_push *ndr, int flags, const struct clusapi_SetClusterName *r)
2752 : {
2753 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2754 0 : if (flags & NDR_IN) {
2755 0 : if (r->in.NewClusterName == NULL) {
2756 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2757 : }
2758 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.NewClusterName, CH_UTF16)));
2759 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2760 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.NewClusterName, CH_UTF16)));
2761 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.NewClusterName, ndr_charset_length(r->in.NewClusterName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2762 : }
2763 0 : if (flags & NDR_OUT) {
2764 0 : if (r->out.rpc_status == NULL) {
2765 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2766 : }
2767 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
2768 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2769 : }
2770 0 : return NDR_ERR_SUCCESS;
2771 : }
2772 :
2773 0 : static enum ndr_err_code ndr_pull_clusapi_SetClusterName(struct ndr_pull *ndr, int flags, struct clusapi_SetClusterName *r)
2774 : {
2775 0 : uint32_t size_NewClusterName_1 = 0;
2776 0 : uint32_t length_NewClusterName_1 = 0;
2777 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
2778 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2779 0 : if (flags & NDR_IN) {
2780 0 : NDR_ZERO_STRUCT(r->out);
2781 :
2782 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.NewClusterName));
2783 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.NewClusterName));
2784 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.NewClusterName, &size_NewClusterName_1));
2785 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.NewClusterName, &length_NewClusterName_1));
2786 0 : if (length_NewClusterName_1 > size_NewClusterName_1) {
2787 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_NewClusterName_1, length_NewClusterName_1);
2788 : }
2789 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_NewClusterName_1, sizeof(uint16_t)));
2790 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.NewClusterName, length_NewClusterName_1, sizeof(uint16_t), CH_UTF16));
2791 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
2792 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
2793 : }
2794 0 : if (flags & NDR_OUT) {
2795 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2796 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2797 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2798 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
2799 : }
2800 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
2801 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
2802 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
2803 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
2804 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2805 : }
2806 0 : return NDR_ERR_SUCCESS;
2807 : }
2808 :
2809 0 : _PUBLIC_ void ndr_print_clusapi_SetClusterName(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetClusterName *r)
2810 : {
2811 0 : ndr_print_struct(ndr, name, "clusapi_SetClusterName");
2812 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2813 0 : ndr->depth++;
2814 0 : if (flags & NDR_SET_VALUES) {
2815 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2816 : }
2817 0 : if (flags & NDR_IN) {
2818 0 : ndr_print_struct(ndr, "in", "clusapi_SetClusterName");
2819 0 : ndr->depth++;
2820 0 : ndr_print_ptr(ndr, "NewClusterName", r->in.NewClusterName);
2821 0 : ndr->depth++;
2822 0 : ndr_print_string(ndr, "NewClusterName", r->in.NewClusterName);
2823 0 : ndr->depth--;
2824 0 : ndr->depth--;
2825 : }
2826 0 : if (flags & NDR_OUT) {
2827 0 : ndr_print_struct(ndr, "out", "clusapi_SetClusterName");
2828 0 : ndr->depth++;
2829 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
2830 0 : ndr->depth++;
2831 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
2832 0 : ndr->depth--;
2833 0 : ndr_print_WERROR(ndr, "result", r->out.result);
2834 0 : ndr->depth--;
2835 : }
2836 0 : ndr->depth--;
2837 : }
2838 :
2839 0 : static enum ndr_err_code ndr_push_clusapi_GetClusterName(struct ndr_push *ndr, int flags, const struct clusapi_GetClusterName *r)
2840 : {
2841 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2842 0 : if (flags & NDR_IN) {
2843 : }
2844 0 : if (flags & NDR_OUT) {
2845 0 : if (r->out.ClusterName == NULL) {
2846 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2847 : }
2848 0 : if (r->out.NodeName == NULL) {
2849 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2850 : }
2851 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ClusterName));
2852 0 : if (*r->out.ClusterName) {
2853 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.ClusterName, CH_UTF16)));
2854 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2855 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.ClusterName, CH_UTF16)));
2856 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.ClusterName, ndr_charset_length(*r->out.ClusterName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2857 : }
2858 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.NodeName));
2859 0 : if (*r->out.NodeName) {
2860 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
2861 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2862 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
2863 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.NodeName, ndr_charset_length(*r->out.NodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
2864 : }
2865 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2866 : }
2867 0 : return NDR_ERR_SUCCESS;
2868 : }
2869 :
2870 0 : static enum ndr_err_code ndr_pull_clusapi_GetClusterName(struct ndr_pull *ndr, int flags, struct clusapi_GetClusterName *r)
2871 : {
2872 : uint32_t _ptr_ClusterName;
2873 0 : uint32_t size_ClusterName_2 = 0;
2874 0 : uint32_t length_ClusterName_2 = 0;
2875 : uint32_t _ptr_NodeName;
2876 0 : uint32_t size_NodeName_2 = 0;
2877 0 : uint32_t length_NodeName_2 = 0;
2878 0 : TALLOC_CTX *_mem_save_ClusterName_0 = NULL;
2879 0 : TALLOC_CTX *_mem_save_ClusterName_1 = NULL;
2880 0 : TALLOC_CTX *_mem_save_NodeName_0 = NULL;
2881 0 : TALLOC_CTX *_mem_save_NodeName_1 = NULL;
2882 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
2883 0 : if (flags & NDR_IN) {
2884 0 : NDR_ZERO_STRUCT(r->out);
2885 :
2886 0 : NDR_PULL_ALLOC(ndr, r->out.ClusterName);
2887 0 : NDR_ZERO_STRUCTP(r->out.ClusterName);
2888 0 : NDR_PULL_ALLOC(ndr, r->out.NodeName);
2889 0 : NDR_ZERO_STRUCTP(r->out.NodeName);
2890 : }
2891 0 : if (flags & NDR_OUT) {
2892 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2893 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
2894 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2895 0 : NDR_PULL_ALLOC(ndr, r->out.ClusterName);
2896 : }
2897 0 : _mem_save_ClusterName_0 = NDR_PULL_GET_MEM_CTX(ndr);
2898 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ClusterName, LIBNDR_FLAG_REF_ALLOC);
2899 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ClusterName));
2900 0 : if (_ptr_ClusterName) {
2901 0 : NDR_PULL_ALLOC(ndr, *r->out.ClusterName);
2902 : } else {
2903 0 : *r->out.ClusterName = NULL;
2904 : }
2905 0 : if (*r->out.ClusterName) {
2906 0 : _mem_save_ClusterName_1 = NDR_PULL_GET_MEM_CTX(ndr);
2907 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ClusterName, 0);
2908 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.ClusterName));
2909 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.ClusterName));
2910 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.ClusterName, &size_ClusterName_2));
2911 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.ClusterName, &length_ClusterName_2));
2912 0 : if (length_ClusterName_2 > size_ClusterName_2) {
2913 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_ClusterName_2, length_ClusterName_2);
2914 : }
2915 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_ClusterName_2, sizeof(uint16_t)));
2916 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.ClusterName, length_ClusterName_2, sizeof(uint16_t), CH_UTF16));
2917 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ClusterName_1, 0);
2918 : }
2919 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ClusterName_0, LIBNDR_FLAG_REF_ALLOC);
2920 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2921 0 : NDR_PULL_ALLOC(ndr, r->out.NodeName);
2922 : }
2923 0 : _mem_save_NodeName_0 = NDR_PULL_GET_MEM_CTX(ndr);
2924 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.NodeName, LIBNDR_FLAG_REF_ALLOC);
2925 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_NodeName));
2926 0 : if (_ptr_NodeName) {
2927 0 : NDR_PULL_ALLOC(ndr, *r->out.NodeName);
2928 : } else {
2929 0 : *r->out.NodeName = NULL;
2930 : }
2931 0 : if (*r->out.NodeName) {
2932 0 : _mem_save_NodeName_1 = NDR_PULL_GET_MEM_CTX(ndr);
2933 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.NodeName, 0);
2934 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.NodeName));
2935 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.NodeName));
2936 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.NodeName, &size_NodeName_2));
2937 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.NodeName, &length_NodeName_2));
2938 0 : if (length_NodeName_2 > size_NodeName_2) {
2939 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_NodeName_2, length_NodeName_2);
2940 : }
2941 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_NodeName_2, sizeof(uint16_t)));
2942 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.NodeName, length_NodeName_2, sizeof(uint16_t), CH_UTF16));
2943 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_1, 0);
2944 : }
2945 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_0, LIBNDR_FLAG_REF_ALLOC);
2946 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2947 : }
2948 0 : return NDR_ERR_SUCCESS;
2949 : }
2950 :
2951 0 : _PUBLIC_ void ndr_print_clusapi_GetClusterName(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetClusterName *r)
2952 : {
2953 0 : ndr_print_struct(ndr, name, "clusapi_GetClusterName");
2954 0 : if (r == NULL) { ndr_print_null(ndr); return; }
2955 0 : ndr->depth++;
2956 0 : if (flags & NDR_SET_VALUES) {
2957 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2958 : }
2959 0 : if (flags & NDR_IN) {
2960 0 : ndr_print_struct(ndr, "in", "clusapi_GetClusterName");
2961 0 : ndr->depth++;
2962 0 : ndr->depth--;
2963 : }
2964 0 : if (flags & NDR_OUT) {
2965 0 : ndr_print_struct(ndr, "out", "clusapi_GetClusterName");
2966 0 : ndr->depth++;
2967 0 : ndr_print_ptr(ndr, "ClusterName", r->out.ClusterName);
2968 0 : ndr->depth++;
2969 0 : ndr_print_ptr(ndr, "ClusterName", *r->out.ClusterName);
2970 0 : ndr->depth++;
2971 0 : if (*r->out.ClusterName) {
2972 0 : ndr_print_string(ndr, "ClusterName", *r->out.ClusterName);
2973 : }
2974 0 : ndr->depth--;
2975 0 : ndr->depth--;
2976 0 : ndr_print_ptr(ndr, "NodeName", r->out.NodeName);
2977 0 : ndr->depth++;
2978 0 : ndr_print_ptr(ndr, "NodeName", *r->out.NodeName);
2979 0 : ndr->depth++;
2980 0 : if (*r->out.NodeName) {
2981 0 : ndr_print_string(ndr, "NodeName", *r->out.NodeName);
2982 : }
2983 0 : ndr->depth--;
2984 0 : ndr->depth--;
2985 0 : ndr_print_WERROR(ndr, "result", r->out.result);
2986 0 : ndr->depth--;
2987 : }
2988 0 : ndr->depth--;
2989 : }
2990 :
2991 0 : static enum ndr_err_code ndr_push_clusapi_GetClusterVersion(struct ndr_push *ndr, int flags, const struct clusapi_GetClusterVersion *r)
2992 : {
2993 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
2994 0 : if (flags & NDR_IN) {
2995 : }
2996 0 : if (flags & NDR_OUT) {
2997 0 : if (r->out.lpwMajorVersion == NULL) {
2998 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2999 : }
3000 0 : if (r->out.lpwMinorVersion == NULL) {
3001 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3002 : }
3003 0 : if (r->out.lpwBuildNumber == NULL) {
3004 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3005 : }
3006 0 : if (r->out.lpszVendorId == NULL) {
3007 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3008 : }
3009 0 : if (r->out.lpszCSDVersion == NULL) {
3010 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3011 : }
3012 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwMajorVersion));
3013 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwMinorVersion));
3014 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwBuildNumber));
3015 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszVendorId));
3016 0 : if (*r->out.lpszVendorId) {
3017 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16)));
3018 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3019 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16)));
3020 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszVendorId, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3021 : }
3022 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszCSDVersion));
3023 0 : if (*r->out.lpszCSDVersion) {
3024 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16)));
3025 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3026 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16)));
3027 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszCSDVersion, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3028 : }
3029 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3030 : }
3031 0 : return NDR_ERR_SUCCESS;
3032 : }
3033 :
3034 0 : static enum ndr_err_code ndr_pull_clusapi_GetClusterVersion(struct ndr_pull *ndr, int flags, struct clusapi_GetClusterVersion *r)
3035 : {
3036 : uint32_t _ptr_lpszVendorId;
3037 0 : uint32_t size_lpszVendorId_2 = 0;
3038 0 : uint32_t length_lpszVendorId_2 = 0;
3039 : uint32_t _ptr_lpszCSDVersion;
3040 0 : uint32_t size_lpszCSDVersion_2 = 0;
3041 0 : uint32_t length_lpszCSDVersion_2 = 0;
3042 0 : TALLOC_CTX *_mem_save_lpwMajorVersion_0 = NULL;
3043 0 : TALLOC_CTX *_mem_save_lpwMinorVersion_0 = NULL;
3044 0 : TALLOC_CTX *_mem_save_lpwBuildNumber_0 = NULL;
3045 0 : TALLOC_CTX *_mem_save_lpszVendorId_0 = NULL;
3046 0 : TALLOC_CTX *_mem_save_lpszVendorId_1 = NULL;
3047 0 : TALLOC_CTX *_mem_save_lpszCSDVersion_0 = NULL;
3048 0 : TALLOC_CTX *_mem_save_lpszCSDVersion_1 = NULL;
3049 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3050 0 : if (flags & NDR_IN) {
3051 0 : NDR_ZERO_STRUCT(r->out);
3052 :
3053 0 : NDR_PULL_ALLOC(ndr, r->out.lpwMajorVersion);
3054 0 : NDR_ZERO_STRUCTP(r->out.lpwMajorVersion);
3055 0 : NDR_PULL_ALLOC(ndr, r->out.lpwMinorVersion);
3056 0 : NDR_ZERO_STRUCTP(r->out.lpwMinorVersion);
3057 0 : NDR_PULL_ALLOC(ndr, r->out.lpwBuildNumber);
3058 0 : NDR_ZERO_STRUCTP(r->out.lpwBuildNumber);
3059 0 : NDR_PULL_ALLOC(ndr, r->out.lpszVendorId);
3060 0 : NDR_ZERO_STRUCTP(r->out.lpszVendorId);
3061 0 : NDR_PULL_ALLOC(ndr, r->out.lpszCSDVersion);
3062 0 : NDR_ZERO_STRUCTP(r->out.lpszCSDVersion);
3063 : }
3064 0 : if (flags & NDR_OUT) {
3065 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3066 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3067 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3068 0 : NDR_PULL_ALLOC(ndr, r->out.lpwMajorVersion);
3069 : }
3070 0 : _mem_save_lpwMajorVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
3071 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwMajorVersion, LIBNDR_FLAG_REF_ALLOC);
3072 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwMajorVersion));
3073 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwMajorVersion_0, LIBNDR_FLAG_REF_ALLOC);
3074 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3075 0 : NDR_PULL_ALLOC(ndr, r->out.lpwMinorVersion);
3076 : }
3077 0 : _mem_save_lpwMinorVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
3078 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwMinorVersion, LIBNDR_FLAG_REF_ALLOC);
3079 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwMinorVersion));
3080 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwMinorVersion_0, LIBNDR_FLAG_REF_ALLOC);
3081 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3082 0 : NDR_PULL_ALLOC(ndr, r->out.lpwBuildNumber);
3083 : }
3084 0 : _mem_save_lpwBuildNumber_0 = NDR_PULL_GET_MEM_CTX(ndr);
3085 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwBuildNumber, LIBNDR_FLAG_REF_ALLOC);
3086 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwBuildNumber));
3087 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwBuildNumber_0, LIBNDR_FLAG_REF_ALLOC);
3088 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3089 0 : NDR_PULL_ALLOC(ndr, r->out.lpszVendorId);
3090 : }
3091 0 : _mem_save_lpszVendorId_0 = NDR_PULL_GET_MEM_CTX(ndr);
3092 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszVendorId, LIBNDR_FLAG_REF_ALLOC);
3093 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszVendorId));
3094 0 : if (_ptr_lpszVendorId) {
3095 0 : NDR_PULL_ALLOC(ndr, *r->out.lpszVendorId);
3096 : } else {
3097 0 : *r->out.lpszVendorId = NULL;
3098 : }
3099 0 : if (*r->out.lpszVendorId) {
3100 0 : _mem_save_lpszVendorId_1 = NDR_PULL_GET_MEM_CTX(ndr);
3101 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszVendorId, 0);
3102 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszVendorId));
3103 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszVendorId));
3104 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszVendorId, &size_lpszVendorId_2));
3105 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszVendorId, &length_lpszVendorId_2));
3106 0 : if (length_lpszVendorId_2 > size_lpszVendorId_2) {
3107 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszVendorId_2, length_lpszVendorId_2);
3108 : }
3109 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszVendorId_2, sizeof(uint16_t)));
3110 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszVendorId, length_lpszVendorId_2, sizeof(uint16_t), CH_UTF16));
3111 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszVendorId_1, 0);
3112 : }
3113 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszVendorId_0, LIBNDR_FLAG_REF_ALLOC);
3114 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3115 0 : NDR_PULL_ALLOC(ndr, r->out.lpszCSDVersion);
3116 : }
3117 0 : _mem_save_lpszCSDVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
3118 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszCSDVersion, LIBNDR_FLAG_REF_ALLOC);
3119 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszCSDVersion));
3120 0 : if (_ptr_lpszCSDVersion) {
3121 0 : NDR_PULL_ALLOC(ndr, *r->out.lpszCSDVersion);
3122 : } else {
3123 0 : *r->out.lpszCSDVersion = NULL;
3124 : }
3125 0 : if (*r->out.lpszCSDVersion) {
3126 0 : _mem_save_lpszCSDVersion_1 = NDR_PULL_GET_MEM_CTX(ndr);
3127 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszCSDVersion, 0);
3128 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszCSDVersion));
3129 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszCSDVersion));
3130 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszCSDVersion, &size_lpszCSDVersion_2));
3131 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszCSDVersion, &length_lpszCSDVersion_2));
3132 0 : if (length_lpszCSDVersion_2 > size_lpszCSDVersion_2) {
3133 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszCSDVersion_2, length_lpszCSDVersion_2);
3134 : }
3135 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszCSDVersion_2, sizeof(uint16_t)));
3136 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszCSDVersion, length_lpszCSDVersion_2, sizeof(uint16_t), CH_UTF16));
3137 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszCSDVersion_1, 0);
3138 : }
3139 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszCSDVersion_0, LIBNDR_FLAG_REF_ALLOC);
3140 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3141 : }
3142 0 : return NDR_ERR_SUCCESS;
3143 : }
3144 :
3145 0 : _PUBLIC_ void ndr_print_clusapi_GetClusterVersion(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetClusterVersion *r)
3146 : {
3147 0 : ndr_print_struct(ndr, name, "clusapi_GetClusterVersion");
3148 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3149 0 : ndr->depth++;
3150 0 : if (flags & NDR_SET_VALUES) {
3151 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3152 : }
3153 0 : if (flags & NDR_IN) {
3154 0 : ndr_print_struct(ndr, "in", "clusapi_GetClusterVersion");
3155 0 : ndr->depth++;
3156 0 : ndr->depth--;
3157 : }
3158 0 : if (flags & NDR_OUT) {
3159 0 : ndr_print_struct(ndr, "out", "clusapi_GetClusterVersion");
3160 0 : ndr->depth++;
3161 0 : ndr_print_ptr(ndr, "lpwMajorVersion", r->out.lpwMajorVersion);
3162 0 : ndr->depth++;
3163 0 : ndr_print_uint16(ndr, "lpwMajorVersion", *r->out.lpwMajorVersion);
3164 0 : ndr->depth--;
3165 0 : ndr_print_ptr(ndr, "lpwMinorVersion", r->out.lpwMinorVersion);
3166 0 : ndr->depth++;
3167 0 : ndr_print_uint16(ndr, "lpwMinorVersion", *r->out.lpwMinorVersion);
3168 0 : ndr->depth--;
3169 0 : ndr_print_ptr(ndr, "lpwBuildNumber", r->out.lpwBuildNumber);
3170 0 : ndr->depth++;
3171 0 : ndr_print_uint16(ndr, "lpwBuildNumber", *r->out.lpwBuildNumber);
3172 0 : ndr->depth--;
3173 0 : ndr_print_ptr(ndr, "lpszVendorId", r->out.lpszVendorId);
3174 0 : ndr->depth++;
3175 0 : ndr_print_ptr(ndr, "lpszVendorId", *r->out.lpszVendorId);
3176 0 : ndr->depth++;
3177 0 : if (*r->out.lpszVendorId) {
3178 0 : ndr_print_string(ndr, "lpszVendorId", *r->out.lpszVendorId);
3179 : }
3180 0 : ndr->depth--;
3181 0 : ndr->depth--;
3182 0 : ndr_print_ptr(ndr, "lpszCSDVersion", r->out.lpszCSDVersion);
3183 0 : ndr->depth++;
3184 0 : ndr_print_ptr(ndr, "lpszCSDVersion", *r->out.lpszCSDVersion);
3185 0 : ndr->depth++;
3186 0 : if (*r->out.lpszCSDVersion) {
3187 0 : ndr_print_string(ndr, "lpszCSDVersion", *r->out.lpszCSDVersion);
3188 : }
3189 0 : ndr->depth--;
3190 0 : ndr->depth--;
3191 0 : ndr_print_WERROR(ndr, "result", r->out.result);
3192 0 : ndr->depth--;
3193 : }
3194 0 : ndr->depth--;
3195 : }
3196 :
3197 0 : static enum ndr_err_code ndr_push_clusapi_GetQuorumResource(struct ndr_push *ndr, int flags, const struct clusapi_GetQuorumResource *r)
3198 : {
3199 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3200 0 : if (flags & NDR_IN) {
3201 : }
3202 0 : if (flags & NDR_OUT) {
3203 0 : if (r->out.lpszResourceName == NULL) {
3204 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3205 : }
3206 0 : if (r->out.lpszDeviceName == NULL) {
3207 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3208 : }
3209 0 : if (r->out.pdwMaxQuorumLogSize == NULL) {
3210 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3211 : }
3212 0 : if (r->out.rpc_status == NULL) {
3213 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3214 : }
3215 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszResourceName));
3216 0 : if (*r->out.lpszResourceName) {
3217 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszResourceName, CH_UTF16)));
3218 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3219 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszResourceName, CH_UTF16)));
3220 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszResourceName, ndr_charset_length(*r->out.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3221 : }
3222 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszDeviceName));
3223 0 : if (*r->out.lpszDeviceName) {
3224 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszDeviceName, CH_UTF16)));
3225 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3226 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszDeviceName, CH_UTF16)));
3227 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszDeviceName, ndr_charset_length(*r->out.lpszDeviceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3228 : }
3229 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.pdwMaxQuorumLogSize));
3230 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
3231 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3232 : }
3233 0 : return NDR_ERR_SUCCESS;
3234 : }
3235 :
3236 0 : static enum ndr_err_code ndr_pull_clusapi_GetQuorumResource(struct ndr_pull *ndr, int flags, struct clusapi_GetQuorumResource *r)
3237 : {
3238 : uint32_t _ptr_lpszResourceName;
3239 0 : uint32_t size_lpszResourceName_2 = 0;
3240 0 : uint32_t length_lpszResourceName_2 = 0;
3241 : uint32_t _ptr_lpszDeviceName;
3242 0 : uint32_t size_lpszDeviceName_2 = 0;
3243 0 : uint32_t length_lpszDeviceName_2 = 0;
3244 0 : TALLOC_CTX *_mem_save_lpszResourceName_0 = NULL;
3245 0 : TALLOC_CTX *_mem_save_lpszResourceName_1 = NULL;
3246 0 : TALLOC_CTX *_mem_save_lpszDeviceName_0 = NULL;
3247 0 : TALLOC_CTX *_mem_save_lpszDeviceName_1 = NULL;
3248 0 : TALLOC_CTX *_mem_save_pdwMaxQuorumLogSize_0 = NULL;
3249 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
3250 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3251 0 : if (flags & NDR_IN) {
3252 0 : NDR_ZERO_STRUCT(r->out);
3253 :
3254 0 : NDR_PULL_ALLOC(ndr, r->out.lpszResourceName);
3255 0 : NDR_ZERO_STRUCTP(r->out.lpszResourceName);
3256 0 : NDR_PULL_ALLOC(ndr, r->out.lpszDeviceName);
3257 0 : NDR_ZERO_STRUCTP(r->out.lpszDeviceName);
3258 0 : NDR_PULL_ALLOC(ndr, r->out.pdwMaxQuorumLogSize);
3259 0 : NDR_ZERO_STRUCTP(r->out.pdwMaxQuorumLogSize);
3260 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3261 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
3262 : }
3263 0 : if (flags & NDR_OUT) {
3264 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3265 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3266 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3267 0 : NDR_PULL_ALLOC(ndr, r->out.lpszResourceName);
3268 : }
3269 0 : _mem_save_lpszResourceName_0 = NDR_PULL_GET_MEM_CTX(ndr);
3270 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszResourceName, LIBNDR_FLAG_REF_ALLOC);
3271 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszResourceName));
3272 0 : if (_ptr_lpszResourceName) {
3273 0 : NDR_PULL_ALLOC(ndr, *r->out.lpszResourceName);
3274 : } else {
3275 0 : *r->out.lpszResourceName = NULL;
3276 : }
3277 0 : if (*r->out.lpszResourceName) {
3278 0 : _mem_save_lpszResourceName_1 = NDR_PULL_GET_MEM_CTX(ndr);
3279 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszResourceName, 0);
3280 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszResourceName));
3281 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszResourceName));
3282 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszResourceName, &size_lpszResourceName_2));
3283 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszResourceName, &length_lpszResourceName_2));
3284 0 : if (length_lpszResourceName_2 > size_lpszResourceName_2) {
3285 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszResourceName_2, length_lpszResourceName_2);
3286 : }
3287 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_2, sizeof(uint16_t)));
3288 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszResourceName, length_lpszResourceName_2, sizeof(uint16_t), CH_UTF16));
3289 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszResourceName_1, 0);
3290 : }
3291 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszResourceName_0, LIBNDR_FLAG_REF_ALLOC);
3292 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3293 0 : NDR_PULL_ALLOC(ndr, r->out.lpszDeviceName);
3294 : }
3295 0 : _mem_save_lpszDeviceName_0 = NDR_PULL_GET_MEM_CTX(ndr);
3296 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszDeviceName, LIBNDR_FLAG_REF_ALLOC);
3297 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszDeviceName));
3298 0 : if (_ptr_lpszDeviceName) {
3299 0 : NDR_PULL_ALLOC(ndr, *r->out.lpszDeviceName);
3300 : } else {
3301 0 : *r->out.lpszDeviceName = NULL;
3302 : }
3303 0 : if (*r->out.lpszDeviceName) {
3304 0 : _mem_save_lpszDeviceName_1 = NDR_PULL_GET_MEM_CTX(ndr);
3305 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszDeviceName, 0);
3306 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszDeviceName));
3307 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszDeviceName));
3308 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszDeviceName, &size_lpszDeviceName_2));
3309 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszDeviceName, &length_lpszDeviceName_2));
3310 0 : if (length_lpszDeviceName_2 > size_lpszDeviceName_2) {
3311 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszDeviceName_2, length_lpszDeviceName_2);
3312 : }
3313 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDeviceName_2, sizeof(uint16_t)));
3314 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszDeviceName, length_lpszDeviceName_2, sizeof(uint16_t), CH_UTF16));
3315 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDeviceName_1, 0);
3316 : }
3317 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDeviceName_0, LIBNDR_FLAG_REF_ALLOC);
3318 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3319 0 : NDR_PULL_ALLOC(ndr, r->out.pdwMaxQuorumLogSize);
3320 : }
3321 0 : _mem_save_pdwMaxQuorumLogSize_0 = NDR_PULL_GET_MEM_CTX(ndr);
3322 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pdwMaxQuorumLogSize, LIBNDR_FLAG_REF_ALLOC);
3323 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.pdwMaxQuorumLogSize));
3324 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pdwMaxQuorumLogSize_0, LIBNDR_FLAG_REF_ALLOC);
3325 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3326 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3327 : }
3328 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
3329 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
3330 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
3331 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
3332 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3333 : }
3334 0 : return NDR_ERR_SUCCESS;
3335 : }
3336 :
3337 0 : _PUBLIC_ void ndr_print_clusapi_GetQuorumResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetQuorumResource *r)
3338 : {
3339 0 : ndr_print_struct(ndr, name, "clusapi_GetQuorumResource");
3340 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3341 0 : ndr->depth++;
3342 0 : if (flags & NDR_SET_VALUES) {
3343 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3344 : }
3345 0 : if (flags & NDR_IN) {
3346 0 : ndr_print_struct(ndr, "in", "clusapi_GetQuorumResource");
3347 0 : ndr->depth++;
3348 0 : ndr->depth--;
3349 : }
3350 0 : if (flags & NDR_OUT) {
3351 0 : ndr_print_struct(ndr, "out", "clusapi_GetQuorumResource");
3352 0 : ndr->depth++;
3353 0 : ndr_print_ptr(ndr, "lpszResourceName", r->out.lpszResourceName);
3354 0 : ndr->depth++;
3355 0 : ndr_print_ptr(ndr, "lpszResourceName", *r->out.lpszResourceName);
3356 0 : ndr->depth++;
3357 0 : if (*r->out.lpszResourceName) {
3358 0 : ndr_print_string(ndr, "lpszResourceName", *r->out.lpszResourceName);
3359 : }
3360 0 : ndr->depth--;
3361 0 : ndr->depth--;
3362 0 : ndr_print_ptr(ndr, "lpszDeviceName", r->out.lpszDeviceName);
3363 0 : ndr->depth++;
3364 0 : ndr_print_ptr(ndr, "lpszDeviceName", *r->out.lpszDeviceName);
3365 0 : ndr->depth++;
3366 0 : if (*r->out.lpszDeviceName) {
3367 0 : ndr_print_string(ndr, "lpszDeviceName", *r->out.lpszDeviceName);
3368 : }
3369 0 : ndr->depth--;
3370 0 : ndr->depth--;
3371 0 : ndr_print_ptr(ndr, "pdwMaxQuorumLogSize", r->out.pdwMaxQuorumLogSize);
3372 0 : ndr->depth++;
3373 0 : ndr_print_uint32(ndr, "pdwMaxQuorumLogSize", *r->out.pdwMaxQuorumLogSize);
3374 0 : ndr->depth--;
3375 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
3376 0 : ndr->depth++;
3377 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
3378 0 : ndr->depth--;
3379 0 : ndr_print_WERROR(ndr, "result", r->out.result);
3380 0 : ndr->depth--;
3381 : }
3382 0 : ndr->depth--;
3383 : }
3384 :
3385 0 : static enum ndr_err_code ndr_push_clusapi_SetQuorumResource(struct ndr_push *ndr, int flags, const struct clusapi_SetQuorumResource *r)
3386 : {
3387 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3388 0 : if (flags & NDR_IN) {
3389 0 : if (r->in.lpszDeviceName == NULL) {
3390 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3391 : }
3392 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
3393 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDeviceName, CH_UTF16)));
3394 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3395 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDeviceName, CH_UTF16)));
3396 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDeviceName, ndr_charset_length(r->in.lpszDeviceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3397 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwMaxQuorumLogSize));
3398 : }
3399 0 : if (flags & NDR_OUT) {
3400 0 : if (r->out.rpc_status == NULL) {
3401 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3402 : }
3403 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
3404 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3405 : }
3406 0 : return NDR_ERR_SUCCESS;
3407 : }
3408 :
3409 0 : static enum ndr_err_code ndr_pull_clusapi_SetQuorumResource(struct ndr_pull *ndr, int flags, struct clusapi_SetQuorumResource *r)
3410 : {
3411 0 : uint32_t size_lpszDeviceName_1 = 0;
3412 0 : uint32_t length_lpszDeviceName_1 = 0;
3413 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
3414 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3415 0 : if (flags & NDR_IN) {
3416 0 : NDR_ZERO_STRUCT(r->out);
3417 :
3418 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
3419 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDeviceName));
3420 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDeviceName));
3421 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDeviceName, &size_lpszDeviceName_1));
3422 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDeviceName, &length_lpszDeviceName_1));
3423 0 : if (length_lpszDeviceName_1 > size_lpszDeviceName_1) {
3424 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszDeviceName_1, length_lpszDeviceName_1);
3425 : }
3426 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDeviceName_1, sizeof(uint16_t)));
3427 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDeviceName, length_lpszDeviceName_1, sizeof(uint16_t), CH_UTF16));
3428 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwMaxQuorumLogSize));
3429 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3430 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
3431 : }
3432 0 : if (flags & NDR_OUT) {
3433 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3434 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3435 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3436 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3437 : }
3438 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
3439 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
3440 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
3441 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
3442 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3443 : }
3444 0 : return NDR_ERR_SUCCESS;
3445 : }
3446 :
3447 0 : _PUBLIC_ void ndr_print_clusapi_SetQuorumResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetQuorumResource *r)
3448 : {
3449 0 : ndr_print_struct(ndr, name, "clusapi_SetQuorumResource");
3450 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3451 0 : ndr->depth++;
3452 0 : if (flags & NDR_SET_VALUES) {
3453 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3454 : }
3455 0 : if (flags & NDR_IN) {
3456 0 : ndr_print_struct(ndr, "in", "clusapi_SetQuorumResource");
3457 0 : ndr->depth++;
3458 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
3459 0 : ndr_print_ptr(ndr, "lpszDeviceName", r->in.lpszDeviceName);
3460 0 : ndr->depth++;
3461 0 : ndr_print_string(ndr, "lpszDeviceName", r->in.lpszDeviceName);
3462 0 : ndr->depth--;
3463 0 : ndr_print_uint32(ndr, "dwMaxQuorumLogSize", r->in.dwMaxQuorumLogSize);
3464 0 : ndr->depth--;
3465 : }
3466 0 : if (flags & NDR_OUT) {
3467 0 : ndr_print_struct(ndr, "out", "clusapi_SetQuorumResource");
3468 0 : ndr->depth++;
3469 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
3470 0 : ndr->depth++;
3471 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
3472 0 : ndr->depth--;
3473 0 : ndr_print_WERROR(ndr, "result", r->out.result);
3474 0 : ndr->depth--;
3475 : }
3476 0 : ndr->depth--;
3477 : }
3478 :
3479 0 : static enum ndr_err_code ndr_push_clusapi_CreateEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateEnum *r)
3480 : {
3481 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3482 0 : if (flags & NDR_IN) {
3483 0 : NDR_CHECK(ndr_push_ClusterEnumType(ndr, NDR_SCALARS, r->in.dwType));
3484 : }
3485 0 : if (flags & NDR_OUT) {
3486 0 : if (r->out.ReturnEnum == NULL) {
3487 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3488 : }
3489 0 : if (r->out.rpc_status == NULL) {
3490 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3491 : }
3492 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
3493 0 : if (*r->out.ReturnEnum) {
3494 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
3495 : }
3496 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
3497 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3498 : }
3499 0 : return NDR_ERR_SUCCESS;
3500 : }
3501 :
3502 0 : static enum ndr_err_code ndr_pull_clusapi_CreateEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateEnum *r)
3503 : {
3504 : uint32_t _ptr_ReturnEnum;
3505 0 : TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
3506 0 : TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
3507 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
3508 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3509 0 : if (flags & NDR_IN) {
3510 0 : NDR_ZERO_STRUCT(r->out);
3511 :
3512 0 : NDR_CHECK(ndr_pull_ClusterEnumType(ndr, NDR_SCALARS, &r->in.dwType));
3513 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
3514 0 : NDR_ZERO_STRUCTP(r->out.ReturnEnum);
3515 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3516 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
3517 : }
3518 0 : if (flags & NDR_OUT) {
3519 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3520 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3521 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3522 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
3523 : }
3524 0 : _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
3525 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
3526 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
3527 0 : if (_ptr_ReturnEnum) {
3528 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
3529 : } else {
3530 0 : *r->out.ReturnEnum = NULL;
3531 : }
3532 0 : if (*r->out.ReturnEnum) {
3533 0 : _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
3534 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
3535 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
3536 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
3537 : }
3538 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
3539 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3540 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3541 : }
3542 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
3543 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
3544 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
3545 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
3546 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3547 : }
3548 0 : return NDR_ERR_SUCCESS;
3549 : }
3550 :
3551 0 : _PUBLIC_ void ndr_print_clusapi_CreateEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateEnum *r)
3552 : {
3553 0 : ndr_print_struct(ndr, name, "clusapi_CreateEnum");
3554 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3555 0 : ndr->depth++;
3556 0 : if (flags & NDR_SET_VALUES) {
3557 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3558 : }
3559 0 : if (flags & NDR_IN) {
3560 0 : ndr_print_struct(ndr, "in", "clusapi_CreateEnum");
3561 0 : ndr->depth++;
3562 0 : ndr_print_ClusterEnumType(ndr, "dwType", r->in.dwType);
3563 0 : ndr->depth--;
3564 : }
3565 0 : if (flags & NDR_OUT) {
3566 0 : ndr_print_struct(ndr, "out", "clusapi_CreateEnum");
3567 0 : ndr->depth++;
3568 0 : ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
3569 0 : ndr->depth++;
3570 0 : ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
3571 0 : ndr->depth++;
3572 0 : if (*r->out.ReturnEnum) {
3573 0 : ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
3574 : }
3575 0 : ndr->depth--;
3576 0 : ndr->depth--;
3577 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
3578 0 : ndr->depth++;
3579 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
3580 0 : ndr->depth--;
3581 0 : ndr_print_WERROR(ndr, "result", r->out.result);
3582 0 : ndr->depth--;
3583 : }
3584 0 : ndr->depth--;
3585 : }
3586 :
3587 0 : static enum ndr_err_code ndr_push_clusapi_OpenResource(struct ndr_push *ndr, int flags, const struct clusapi_OpenResource *r)
3588 : {
3589 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3590 0 : if (flags & NDR_IN) {
3591 0 : if (r->in.lpszResourceName == NULL) {
3592 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3593 : }
3594 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
3595 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3596 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
3597 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceName, ndr_charset_length(r->in.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3598 : }
3599 0 : if (flags & NDR_OUT) {
3600 0 : if (r->out.Status == NULL) {
3601 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3602 : }
3603 0 : if (r->out.rpc_status == NULL) {
3604 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3605 : }
3606 0 : if (r->out.hResource == NULL) {
3607 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3608 : }
3609 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
3610 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
3611 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
3612 : }
3613 0 : return NDR_ERR_SUCCESS;
3614 : }
3615 :
3616 0 : static enum ndr_err_code ndr_pull_clusapi_OpenResource(struct ndr_pull *ndr, int flags, struct clusapi_OpenResource *r)
3617 : {
3618 0 : uint32_t size_lpszResourceName_1 = 0;
3619 0 : uint32_t length_lpszResourceName_1 = 0;
3620 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
3621 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
3622 0 : TALLOC_CTX *_mem_save_hResource_0 = NULL;
3623 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3624 0 : if (flags & NDR_IN) {
3625 0 : NDR_ZERO_STRUCT(r->out);
3626 :
3627 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceName));
3628 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceName));
3629 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceName, &size_lpszResourceName_1));
3630 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceName, &length_lpszResourceName_1));
3631 0 : if (length_lpszResourceName_1 > size_lpszResourceName_1) {
3632 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszResourceName_1, length_lpszResourceName_1);
3633 : }
3634 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_1, sizeof(uint16_t)));
3635 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceName, length_lpszResourceName_1, sizeof(uint16_t), CH_UTF16));
3636 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
3637 0 : NDR_ZERO_STRUCTP(r->out.Status);
3638 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3639 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
3640 0 : NDR_PULL_ALLOC(ndr, r->out.hResource);
3641 0 : NDR_ZERO_STRUCTP(r->out.hResource);
3642 : }
3643 0 : if (flags & NDR_OUT) {
3644 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3645 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3646 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3647 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
3648 : }
3649 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
3650 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
3651 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
3652 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
3653 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3654 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3655 : }
3656 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
3657 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
3658 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
3659 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
3660 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3661 0 : NDR_PULL_ALLOC(ndr, r->out.hResource);
3662 : }
3663 0 : _mem_save_hResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
3664 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hResource, LIBNDR_FLAG_REF_ALLOC);
3665 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
3666 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hResource_0, LIBNDR_FLAG_REF_ALLOC);
3667 : }
3668 0 : return NDR_ERR_SUCCESS;
3669 : }
3670 :
3671 0 : _PUBLIC_ void ndr_print_clusapi_OpenResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenResource *r)
3672 : {
3673 0 : ndr_print_struct(ndr, name, "clusapi_OpenResource");
3674 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3675 0 : ndr->depth++;
3676 0 : if (flags & NDR_SET_VALUES) {
3677 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3678 : }
3679 0 : if (flags & NDR_IN) {
3680 0 : ndr_print_struct(ndr, "in", "clusapi_OpenResource");
3681 0 : ndr->depth++;
3682 0 : ndr_print_ptr(ndr, "lpszResourceName", r->in.lpszResourceName);
3683 0 : ndr->depth++;
3684 0 : ndr_print_string(ndr, "lpszResourceName", r->in.lpszResourceName);
3685 0 : ndr->depth--;
3686 0 : ndr->depth--;
3687 : }
3688 0 : if (flags & NDR_OUT) {
3689 0 : ndr_print_struct(ndr, "out", "clusapi_OpenResource");
3690 0 : ndr->depth++;
3691 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
3692 0 : ndr->depth++;
3693 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
3694 0 : ndr->depth--;
3695 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
3696 0 : ndr->depth++;
3697 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
3698 0 : ndr->depth--;
3699 0 : ndr_print_ptr(ndr, "hResource", r->out.hResource);
3700 0 : ndr->depth++;
3701 0 : ndr_print_policy_handle(ndr, "hResource", r->out.hResource);
3702 0 : ndr->depth--;
3703 0 : ndr->depth--;
3704 : }
3705 0 : ndr->depth--;
3706 : }
3707 :
3708 0 : static enum ndr_err_code ndr_push_clusapi_CreateResource(struct ndr_push *ndr, int flags, const struct clusapi_CreateResource *r)
3709 : {
3710 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3711 0 : if (flags & NDR_IN) {
3712 0 : if (r->in.lpszResourceName == NULL) {
3713 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3714 : }
3715 0 : if (r->in.lpszResourceType == NULL) {
3716 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3717 : }
3718 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
3719 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
3720 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3721 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
3722 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceName, ndr_charset_length(r->in.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3723 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceType, CH_UTF16)));
3724 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
3725 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceType, CH_UTF16)));
3726 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceType, ndr_charset_length(r->in.lpszResourceType, CH_UTF16), sizeof(uint16_t), CH_UTF16));
3727 0 : NDR_CHECK(ndr_push_clusapi_CreateResourceFlags(ndr, NDR_SCALARS, r->in.dwFlags));
3728 : }
3729 0 : if (flags & NDR_OUT) {
3730 0 : if (r->out.Status == NULL) {
3731 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3732 : }
3733 0 : if (r->out.rpc_status == NULL) {
3734 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3735 : }
3736 0 : if (r->out.hResource == NULL) {
3737 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3738 : }
3739 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
3740 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
3741 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
3742 : }
3743 0 : return NDR_ERR_SUCCESS;
3744 : }
3745 :
3746 0 : static enum ndr_err_code ndr_pull_clusapi_CreateResource(struct ndr_pull *ndr, int flags, struct clusapi_CreateResource *r)
3747 : {
3748 0 : uint32_t size_lpszResourceName_1 = 0;
3749 0 : uint32_t length_lpszResourceName_1 = 0;
3750 0 : uint32_t size_lpszResourceType_1 = 0;
3751 0 : uint32_t length_lpszResourceType_1 = 0;
3752 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
3753 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
3754 0 : TALLOC_CTX *_mem_save_hResource_0 = NULL;
3755 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3756 0 : if (flags & NDR_IN) {
3757 0 : NDR_ZERO_STRUCT(r->out);
3758 :
3759 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
3760 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceName));
3761 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceName));
3762 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceName, &size_lpszResourceName_1));
3763 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceName, &length_lpszResourceName_1));
3764 0 : if (length_lpszResourceName_1 > size_lpszResourceName_1) {
3765 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszResourceName_1, length_lpszResourceName_1);
3766 : }
3767 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_1, sizeof(uint16_t)));
3768 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceName, length_lpszResourceName_1, sizeof(uint16_t), CH_UTF16));
3769 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceType));
3770 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceType));
3771 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceType, &size_lpszResourceType_1));
3772 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceType, &length_lpszResourceType_1));
3773 0 : if (length_lpszResourceType_1 > size_lpszResourceType_1) {
3774 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszResourceType_1, length_lpszResourceType_1);
3775 : }
3776 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceType_1, sizeof(uint16_t)));
3777 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceType, length_lpszResourceType_1, sizeof(uint16_t), CH_UTF16));
3778 0 : NDR_CHECK(ndr_pull_clusapi_CreateResourceFlags(ndr, NDR_SCALARS, &r->in.dwFlags));
3779 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
3780 0 : NDR_ZERO_STRUCTP(r->out.Status);
3781 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3782 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
3783 0 : NDR_PULL_ALLOC(ndr, r->out.hResource);
3784 0 : NDR_ZERO_STRUCTP(r->out.hResource);
3785 : }
3786 0 : if (flags & NDR_OUT) {
3787 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3788 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3789 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3790 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
3791 : }
3792 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
3793 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
3794 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
3795 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
3796 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3797 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3798 : }
3799 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
3800 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
3801 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
3802 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
3803 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3804 0 : NDR_PULL_ALLOC(ndr, r->out.hResource);
3805 : }
3806 0 : _mem_save_hResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
3807 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hResource, LIBNDR_FLAG_REF_ALLOC);
3808 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
3809 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hResource_0, LIBNDR_FLAG_REF_ALLOC);
3810 : }
3811 0 : return NDR_ERR_SUCCESS;
3812 : }
3813 :
3814 0 : _PUBLIC_ void ndr_print_clusapi_CreateResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateResource *r)
3815 : {
3816 0 : ndr_print_struct(ndr, name, "clusapi_CreateResource");
3817 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3818 0 : ndr->depth++;
3819 0 : if (flags & NDR_SET_VALUES) {
3820 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3821 : }
3822 0 : if (flags & NDR_IN) {
3823 0 : ndr_print_struct(ndr, "in", "clusapi_CreateResource");
3824 0 : ndr->depth++;
3825 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
3826 0 : ndr_print_ptr(ndr, "lpszResourceName", r->in.lpszResourceName);
3827 0 : ndr->depth++;
3828 0 : ndr_print_string(ndr, "lpszResourceName", r->in.lpszResourceName);
3829 0 : ndr->depth--;
3830 0 : ndr_print_ptr(ndr, "lpszResourceType", r->in.lpszResourceType);
3831 0 : ndr->depth++;
3832 0 : ndr_print_string(ndr, "lpszResourceType", r->in.lpszResourceType);
3833 0 : ndr->depth--;
3834 0 : ndr_print_clusapi_CreateResourceFlags(ndr, "dwFlags", r->in.dwFlags);
3835 0 : ndr->depth--;
3836 : }
3837 0 : if (flags & NDR_OUT) {
3838 0 : ndr_print_struct(ndr, "out", "clusapi_CreateResource");
3839 0 : ndr->depth++;
3840 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
3841 0 : ndr->depth++;
3842 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
3843 0 : ndr->depth--;
3844 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
3845 0 : ndr->depth++;
3846 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
3847 0 : ndr->depth--;
3848 0 : ndr_print_ptr(ndr, "hResource", r->out.hResource);
3849 0 : ndr->depth++;
3850 0 : ndr_print_policy_handle(ndr, "hResource", r->out.hResource);
3851 0 : ndr->depth--;
3852 0 : ndr->depth--;
3853 : }
3854 0 : ndr->depth--;
3855 : }
3856 :
3857 0 : static enum ndr_err_code ndr_push_clusapi_DeleteResource(struct ndr_push *ndr, int flags, const struct clusapi_DeleteResource *r)
3858 : {
3859 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3860 0 : if (flags & NDR_IN) {
3861 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
3862 : }
3863 0 : if (flags & NDR_OUT) {
3864 0 : if (r->out.rpc_status == NULL) {
3865 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3866 : }
3867 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
3868 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3869 : }
3870 0 : return NDR_ERR_SUCCESS;
3871 : }
3872 :
3873 0 : static enum ndr_err_code ndr_pull_clusapi_DeleteResource(struct ndr_pull *ndr, int flags, struct clusapi_DeleteResource *r)
3874 : {
3875 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
3876 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3877 0 : if (flags & NDR_IN) {
3878 0 : NDR_ZERO_STRUCT(r->out);
3879 :
3880 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
3881 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3882 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
3883 : }
3884 0 : if (flags & NDR_OUT) {
3885 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3886 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3887 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3888 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
3889 : }
3890 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
3891 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
3892 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
3893 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
3894 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3895 : }
3896 0 : return NDR_ERR_SUCCESS;
3897 : }
3898 :
3899 0 : _PUBLIC_ void ndr_print_clusapi_DeleteResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_DeleteResource *r)
3900 : {
3901 0 : ndr_print_struct(ndr, name, "clusapi_DeleteResource");
3902 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3903 0 : ndr->depth++;
3904 0 : if (flags & NDR_SET_VALUES) {
3905 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3906 : }
3907 0 : if (flags & NDR_IN) {
3908 0 : ndr_print_struct(ndr, "in", "clusapi_DeleteResource");
3909 0 : ndr->depth++;
3910 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
3911 0 : ndr->depth--;
3912 : }
3913 0 : if (flags & NDR_OUT) {
3914 0 : ndr_print_struct(ndr, "out", "clusapi_DeleteResource");
3915 0 : ndr->depth++;
3916 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
3917 0 : ndr->depth++;
3918 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
3919 0 : ndr->depth--;
3920 0 : ndr_print_WERROR(ndr, "result", r->out.result);
3921 0 : ndr->depth--;
3922 : }
3923 0 : ndr->depth--;
3924 : }
3925 :
3926 0 : static enum ndr_err_code ndr_push_clusapi_CloseResource(struct ndr_push *ndr, int flags, const struct clusapi_CloseResource *r)
3927 : {
3928 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
3929 0 : if (flags & NDR_IN) {
3930 0 : if (r->in.Resource == NULL) {
3931 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3932 : }
3933 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Resource));
3934 : }
3935 0 : if (flags & NDR_OUT) {
3936 0 : if (r->out.Resource == NULL) {
3937 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3938 : }
3939 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Resource));
3940 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3941 : }
3942 0 : return NDR_ERR_SUCCESS;
3943 : }
3944 :
3945 0 : static enum ndr_err_code ndr_pull_clusapi_CloseResource(struct ndr_pull *ndr, int flags, struct clusapi_CloseResource *r)
3946 : {
3947 0 : TALLOC_CTX *_mem_save_Resource_0 = NULL;
3948 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
3949 0 : if (flags & NDR_IN) {
3950 0 : NDR_ZERO_STRUCT(r->out);
3951 :
3952 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3953 0 : NDR_PULL_ALLOC(ndr, r->in.Resource);
3954 : }
3955 0 : _mem_save_Resource_0 = NDR_PULL_GET_MEM_CTX(ndr);
3956 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.Resource, LIBNDR_FLAG_REF_ALLOC);
3957 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Resource));
3958 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Resource_0, LIBNDR_FLAG_REF_ALLOC);
3959 0 : NDR_PULL_ALLOC(ndr, r->out.Resource);
3960 0 : *r->out.Resource = *r->in.Resource;
3961 : }
3962 0 : if (flags & NDR_OUT) {
3963 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3964 : if (r->in.Resource == NULL) {
3965 : NDR_PULL_ALLOC(ndr, r->in.Resource);
3966 : NDR_ZERO_STRUCTP(r->in.Resource);
3967 : }
3968 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
3969 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3970 0 : NDR_PULL_ALLOC(ndr, r->out.Resource);
3971 : }
3972 0 : _mem_save_Resource_0 = NDR_PULL_GET_MEM_CTX(ndr);
3973 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Resource, LIBNDR_FLAG_REF_ALLOC);
3974 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Resource));
3975 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Resource_0, LIBNDR_FLAG_REF_ALLOC);
3976 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3977 : }
3978 0 : return NDR_ERR_SUCCESS;
3979 : }
3980 :
3981 0 : _PUBLIC_ void ndr_print_clusapi_CloseResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseResource *r)
3982 : {
3983 0 : ndr_print_struct(ndr, name, "clusapi_CloseResource");
3984 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3985 0 : ndr->depth++;
3986 0 : if (flags & NDR_SET_VALUES) {
3987 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3988 : }
3989 0 : if (flags & NDR_IN) {
3990 0 : ndr_print_struct(ndr, "in", "clusapi_CloseResource");
3991 0 : ndr->depth++;
3992 0 : ndr_print_ptr(ndr, "Resource", r->in.Resource);
3993 0 : ndr->depth++;
3994 0 : ndr_print_policy_handle(ndr, "Resource", r->in.Resource);
3995 0 : ndr->depth--;
3996 0 : ndr->depth--;
3997 : }
3998 0 : if (flags & NDR_OUT) {
3999 0 : ndr_print_struct(ndr, "out", "clusapi_CloseResource");
4000 0 : ndr->depth++;
4001 0 : ndr_print_ptr(ndr, "Resource", r->out.Resource);
4002 0 : ndr->depth++;
4003 0 : ndr_print_policy_handle(ndr, "Resource", r->out.Resource);
4004 0 : ndr->depth--;
4005 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4006 0 : ndr->depth--;
4007 : }
4008 0 : ndr->depth--;
4009 : }
4010 :
4011 0 : static enum ndr_err_code ndr_push_clusapi_GetResourceState(struct ndr_push *ndr, int flags, const struct clusapi_GetResourceState *r)
4012 : {
4013 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4014 0 : if (flags & NDR_IN) {
4015 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4016 : }
4017 0 : if (flags & NDR_OUT) {
4018 0 : if (r->out.State == NULL) {
4019 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4020 : }
4021 0 : if (r->out.NodeName == NULL) {
4022 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4023 : }
4024 0 : if (r->out.GroupName == NULL) {
4025 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4026 : }
4027 0 : if (r->out.rpc_status == NULL) {
4028 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4029 : }
4030 0 : NDR_CHECK(ndr_push_clusapi_ClusterResourceState(ndr, NDR_SCALARS, *r->out.State));
4031 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.NodeName));
4032 0 : if (*r->out.NodeName) {
4033 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
4034 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4035 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
4036 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.NodeName, ndr_charset_length(*r->out.NodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4037 : }
4038 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.GroupName));
4039 0 : if (*r->out.GroupName) {
4040 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.GroupName, CH_UTF16)));
4041 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4042 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.GroupName, CH_UTF16)));
4043 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.GroupName, ndr_charset_length(*r->out.GroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4044 : }
4045 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4046 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4047 : }
4048 0 : return NDR_ERR_SUCCESS;
4049 : }
4050 :
4051 0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceState(struct ndr_pull *ndr, int flags, struct clusapi_GetResourceState *r)
4052 : {
4053 : uint32_t _ptr_NodeName;
4054 0 : uint32_t size_NodeName_2 = 0;
4055 0 : uint32_t length_NodeName_2 = 0;
4056 : uint32_t _ptr_GroupName;
4057 0 : uint32_t size_GroupName_2 = 0;
4058 0 : uint32_t length_GroupName_2 = 0;
4059 0 : TALLOC_CTX *_mem_save_State_0 = NULL;
4060 0 : TALLOC_CTX *_mem_save_NodeName_0 = NULL;
4061 0 : TALLOC_CTX *_mem_save_NodeName_1 = NULL;
4062 0 : TALLOC_CTX *_mem_save_GroupName_0 = NULL;
4063 0 : TALLOC_CTX *_mem_save_GroupName_1 = NULL;
4064 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4065 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4066 0 : if (flags & NDR_IN) {
4067 0 : NDR_ZERO_STRUCT(r->out);
4068 :
4069 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4070 0 : NDR_PULL_ALLOC(ndr, r->out.State);
4071 0 : NDR_ZERO_STRUCTP(r->out.State);
4072 0 : NDR_PULL_ALLOC(ndr, r->out.NodeName);
4073 0 : NDR_ZERO_STRUCTP(r->out.NodeName);
4074 0 : NDR_PULL_ALLOC(ndr, r->out.GroupName);
4075 0 : NDR_ZERO_STRUCTP(r->out.GroupName);
4076 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4077 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4078 : }
4079 0 : if (flags & NDR_OUT) {
4080 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4081 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4082 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4083 0 : NDR_PULL_ALLOC(ndr, r->out.State);
4084 : }
4085 0 : _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
4086 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
4087 0 : NDR_CHECK(ndr_pull_clusapi_ClusterResourceState(ndr, NDR_SCALARS, r->out.State));
4088 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
4089 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4090 0 : NDR_PULL_ALLOC(ndr, r->out.NodeName);
4091 : }
4092 0 : _mem_save_NodeName_0 = NDR_PULL_GET_MEM_CTX(ndr);
4093 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.NodeName, LIBNDR_FLAG_REF_ALLOC);
4094 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_NodeName));
4095 0 : if (_ptr_NodeName) {
4096 0 : NDR_PULL_ALLOC(ndr, *r->out.NodeName);
4097 : } else {
4098 0 : *r->out.NodeName = NULL;
4099 : }
4100 0 : if (*r->out.NodeName) {
4101 0 : _mem_save_NodeName_1 = NDR_PULL_GET_MEM_CTX(ndr);
4102 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.NodeName, 0);
4103 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.NodeName));
4104 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.NodeName));
4105 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.NodeName, &size_NodeName_2));
4106 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.NodeName, &length_NodeName_2));
4107 0 : if (length_NodeName_2 > size_NodeName_2) {
4108 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_NodeName_2, length_NodeName_2);
4109 : }
4110 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_NodeName_2, sizeof(uint16_t)));
4111 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.NodeName, length_NodeName_2, sizeof(uint16_t), CH_UTF16));
4112 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_1, 0);
4113 : }
4114 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_0, LIBNDR_FLAG_REF_ALLOC);
4115 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4116 0 : NDR_PULL_ALLOC(ndr, r->out.GroupName);
4117 : }
4118 0 : _mem_save_GroupName_0 = NDR_PULL_GET_MEM_CTX(ndr);
4119 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.GroupName, LIBNDR_FLAG_REF_ALLOC);
4120 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_GroupName));
4121 0 : if (_ptr_GroupName) {
4122 0 : NDR_PULL_ALLOC(ndr, *r->out.GroupName);
4123 : } else {
4124 0 : *r->out.GroupName = NULL;
4125 : }
4126 0 : if (*r->out.GroupName) {
4127 0 : _mem_save_GroupName_1 = NDR_PULL_GET_MEM_CTX(ndr);
4128 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.GroupName, 0);
4129 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.GroupName));
4130 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.GroupName));
4131 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.GroupName, &size_GroupName_2));
4132 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.GroupName, &length_GroupName_2));
4133 0 : if (length_GroupName_2 > size_GroupName_2) {
4134 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_GroupName_2, length_GroupName_2);
4135 : }
4136 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_GroupName_2, sizeof(uint16_t)));
4137 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.GroupName, length_GroupName_2, sizeof(uint16_t), CH_UTF16));
4138 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_GroupName_1, 0);
4139 : }
4140 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_GroupName_0, LIBNDR_FLAG_REF_ALLOC);
4141 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4142 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4143 : }
4144 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4145 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4146 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4147 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4148 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4149 : }
4150 0 : return NDR_ERR_SUCCESS;
4151 : }
4152 :
4153 0 : _PUBLIC_ void ndr_print_clusapi_GetResourceState(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetResourceState *r)
4154 : {
4155 0 : ndr_print_struct(ndr, name, "clusapi_GetResourceState");
4156 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4157 0 : ndr->depth++;
4158 0 : if (flags & NDR_SET_VALUES) {
4159 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4160 : }
4161 0 : if (flags & NDR_IN) {
4162 0 : ndr_print_struct(ndr, "in", "clusapi_GetResourceState");
4163 0 : ndr->depth++;
4164 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4165 0 : ndr->depth--;
4166 : }
4167 0 : if (flags & NDR_OUT) {
4168 0 : ndr_print_struct(ndr, "out", "clusapi_GetResourceState");
4169 0 : ndr->depth++;
4170 0 : ndr_print_ptr(ndr, "State", r->out.State);
4171 0 : ndr->depth++;
4172 0 : ndr_print_clusapi_ClusterResourceState(ndr, "State", *r->out.State);
4173 0 : ndr->depth--;
4174 0 : ndr_print_ptr(ndr, "NodeName", r->out.NodeName);
4175 0 : ndr->depth++;
4176 0 : ndr_print_ptr(ndr, "NodeName", *r->out.NodeName);
4177 0 : ndr->depth++;
4178 0 : if (*r->out.NodeName) {
4179 0 : ndr_print_string(ndr, "NodeName", *r->out.NodeName);
4180 : }
4181 0 : ndr->depth--;
4182 0 : ndr->depth--;
4183 0 : ndr_print_ptr(ndr, "GroupName", r->out.GroupName);
4184 0 : ndr->depth++;
4185 0 : ndr_print_ptr(ndr, "GroupName", *r->out.GroupName);
4186 0 : ndr->depth++;
4187 0 : if (*r->out.GroupName) {
4188 0 : ndr_print_string(ndr, "GroupName", *r->out.GroupName);
4189 : }
4190 0 : ndr->depth--;
4191 0 : ndr->depth--;
4192 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4193 0 : ndr->depth++;
4194 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4195 0 : ndr->depth--;
4196 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4197 0 : ndr->depth--;
4198 : }
4199 0 : ndr->depth--;
4200 : }
4201 :
4202 0 : static enum ndr_err_code ndr_push_clusapi_SetResourceName(struct ndr_push *ndr, int flags, const struct clusapi_SetResourceName *r)
4203 : {
4204 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4205 0 : if (flags & NDR_IN) {
4206 0 : if (r->in.lpszResourceName == NULL) {
4207 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4208 : }
4209 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4210 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
4211 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4212 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
4213 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceName, ndr_charset_length(r->in.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4214 : }
4215 0 : if (flags & NDR_OUT) {
4216 0 : if (r->out.rpc_status == NULL) {
4217 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4218 : }
4219 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4220 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4221 : }
4222 0 : return NDR_ERR_SUCCESS;
4223 : }
4224 :
4225 0 : static enum ndr_err_code ndr_pull_clusapi_SetResourceName(struct ndr_pull *ndr, int flags, struct clusapi_SetResourceName *r)
4226 : {
4227 0 : uint32_t size_lpszResourceName_1 = 0;
4228 0 : uint32_t length_lpszResourceName_1 = 0;
4229 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4230 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4231 0 : if (flags & NDR_IN) {
4232 0 : NDR_ZERO_STRUCT(r->out);
4233 :
4234 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4235 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceName));
4236 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceName));
4237 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceName, &size_lpszResourceName_1));
4238 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceName, &length_lpszResourceName_1));
4239 0 : if (length_lpszResourceName_1 > size_lpszResourceName_1) {
4240 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszResourceName_1, length_lpszResourceName_1);
4241 : }
4242 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_1, sizeof(uint16_t)));
4243 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceName, length_lpszResourceName_1, sizeof(uint16_t), CH_UTF16));
4244 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4245 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4246 : }
4247 0 : if (flags & NDR_OUT) {
4248 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4249 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4250 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4251 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4252 : }
4253 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4254 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4255 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4256 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4257 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4258 : }
4259 0 : return NDR_ERR_SUCCESS;
4260 : }
4261 :
4262 0 : _PUBLIC_ void ndr_print_clusapi_SetResourceName(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetResourceName *r)
4263 : {
4264 0 : ndr_print_struct(ndr, name, "clusapi_SetResourceName");
4265 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4266 0 : ndr->depth++;
4267 0 : if (flags & NDR_SET_VALUES) {
4268 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4269 : }
4270 0 : if (flags & NDR_IN) {
4271 0 : ndr_print_struct(ndr, "in", "clusapi_SetResourceName");
4272 0 : ndr->depth++;
4273 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4274 0 : ndr_print_ptr(ndr, "lpszResourceName", r->in.lpszResourceName);
4275 0 : ndr->depth++;
4276 0 : ndr_print_string(ndr, "lpszResourceName", r->in.lpszResourceName);
4277 0 : ndr->depth--;
4278 0 : ndr->depth--;
4279 : }
4280 0 : if (flags & NDR_OUT) {
4281 0 : ndr_print_struct(ndr, "out", "clusapi_SetResourceName");
4282 0 : ndr->depth++;
4283 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4284 0 : ndr->depth++;
4285 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4286 0 : ndr->depth--;
4287 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4288 0 : ndr->depth--;
4289 : }
4290 0 : ndr->depth--;
4291 : }
4292 :
4293 0 : static enum ndr_err_code ndr_push_clusapi_GetResourceId(struct ndr_push *ndr, int flags, const struct clusapi_GetResourceId *r)
4294 : {
4295 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4296 0 : if (flags & NDR_IN) {
4297 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4298 : }
4299 0 : if (flags & NDR_OUT) {
4300 0 : if (r->out.pGuid == NULL) {
4301 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4302 : }
4303 0 : if (r->out.rpc_status == NULL) {
4304 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4305 : }
4306 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
4307 0 : if (*r->out.pGuid) {
4308 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
4309 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4310 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
4311 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4312 : }
4313 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4314 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4315 : }
4316 0 : return NDR_ERR_SUCCESS;
4317 : }
4318 :
4319 0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceId(struct ndr_pull *ndr, int flags, struct clusapi_GetResourceId *r)
4320 : {
4321 : uint32_t _ptr_pGuid;
4322 0 : uint32_t size_pGuid_2 = 0;
4323 0 : uint32_t length_pGuid_2 = 0;
4324 0 : TALLOC_CTX *_mem_save_pGuid_0 = NULL;
4325 0 : TALLOC_CTX *_mem_save_pGuid_1 = NULL;
4326 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4327 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4328 0 : if (flags & NDR_IN) {
4329 0 : NDR_ZERO_STRUCT(r->out);
4330 :
4331 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4332 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
4333 0 : NDR_ZERO_STRUCTP(r->out.pGuid);
4334 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4335 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4336 : }
4337 0 : if (flags & NDR_OUT) {
4338 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4339 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4340 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4341 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
4342 : }
4343 0 : _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
4344 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
4345 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
4346 0 : if (_ptr_pGuid) {
4347 0 : NDR_PULL_ALLOC(ndr, *r->out.pGuid);
4348 : } else {
4349 0 : *r->out.pGuid = NULL;
4350 : }
4351 0 : if (*r->out.pGuid) {
4352 0 : _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
4353 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
4354 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
4355 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
4356 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
4357 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
4358 0 : if (length_pGuid_2 > size_pGuid_2) {
4359 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_pGuid_2, length_pGuid_2);
4360 : }
4361 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
4362 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
4363 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
4364 : }
4365 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
4366 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4367 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4368 : }
4369 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4370 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4371 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4372 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4373 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4374 : }
4375 0 : return NDR_ERR_SUCCESS;
4376 : }
4377 :
4378 0 : _PUBLIC_ void ndr_print_clusapi_GetResourceId(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetResourceId *r)
4379 : {
4380 0 : ndr_print_struct(ndr, name, "clusapi_GetResourceId");
4381 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4382 0 : ndr->depth++;
4383 0 : if (flags & NDR_SET_VALUES) {
4384 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4385 : }
4386 0 : if (flags & NDR_IN) {
4387 0 : ndr_print_struct(ndr, "in", "clusapi_GetResourceId");
4388 0 : ndr->depth++;
4389 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4390 0 : ndr->depth--;
4391 : }
4392 0 : if (flags & NDR_OUT) {
4393 0 : ndr_print_struct(ndr, "out", "clusapi_GetResourceId");
4394 0 : ndr->depth++;
4395 0 : ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
4396 0 : ndr->depth++;
4397 0 : ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
4398 0 : ndr->depth++;
4399 0 : if (*r->out.pGuid) {
4400 0 : ndr_print_string(ndr, "pGuid", *r->out.pGuid);
4401 : }
4402 0 : ndr->depth--;
4403 0 : ndr->depth--;
4404 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4405 0 : ndr->depth++;
4406 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4407 0 : ndr->depth--;
4408 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4409 0 : ndr->depth--;
4410 : }
4411 0 : ndr->depth--;
4412 : }
4413 :
4414 0 : static enum ndr_err_code ndr_push_clusapi_GetResourceType(struct ndr_push *ndr, int flags, const struct clusapi_GetResourceType *r)
4415 : {
4416 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4417 0 : if (flags & NDR_IN) {
4418 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4419 : }
4420 0 : if (flags & NDR_OUT) {
4421 0 : if (r->out.lpszResourceType == NULL) {
4422 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4423 : }
4424 0 : if (r->out.rpc_status == NULL) {
4425 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4426 : }
4427 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszResourceType));
4428 0 : if (*r->out.lpszResourceType) {
4429 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszResourceType, CH_UTF16)));
4430 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4431 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszResourceType, CH_UTF16)));
4432 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszResourceType, ndr_charset_length(*r->out.lpszResourceType, CH_UTF16), sizeof(uint16_t), CH_UTF16));
4433 : }
4434 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4435 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4436 : }
4437 0 : return NDR_ERR_SUCCESS;
4438 : }
4439 :
4440 0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceType(struct ndr_pull *ndr, int flags, struct clusapi_GetResourceType *r)
4441 : {
4442 : uint32_t _ptr_lpszResourceType;
4443 0 : uint32_t size_lpszResourceType_2 = 0;
4444 0 : uint32_t length_lpszResourceType_2 = 0;
4445 0 : TALLOC_CTX *_mem_save_lpszResourceType_0 = NULL;
4446 0 : TALLOC_CTX *_mem_save_lpszResourceType_1 = NULL;
4447 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4448 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4449 0 : if (flags & NDR_IN) {
4450 0 : NDR_ZERO_STRUCT(r->out);
4451 :
4452 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4453 0 : NDR_PULL_ALLOC(ndr, r->out.lpszResourceType);
4454 0 : NDR_ZERO_STRUCTP(r->out.lpszResourceType);
4455 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4456 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4457 : }
4458 0 : if (flags & NDR_OUT) {
4459 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4460 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4461 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4462 0 : NDR_PULL_ALLOC(ndr, r->out.lpszResourceType);
4463 : }
4464 0 : _mem_save_lpszResourceType_0 = NDR_PULL_GET_MEM_CTX(ndr);
4465 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszResourceType, LIBNDR_FLAG_REF_ALLOC);
4466 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszResourceType));
4467 0 : if (_ptr_lpszResourceType) {
4468 0 : NDR_PULL_ALLOC(ndr, *r->out.lpszResourceType);
4469 : } else {
4470 0 : *r->out.lpszResourceType = NULL;
4471 : }
4472 0 : if (*r->out.lpszResourceType) {
4473 0 : _mem_save_lpszResourceType_1 = NDR_PULL_GET_MEM_CTX(ndr);
4474 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszResourceType, 0);
4475 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszResourceType));
4476 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszResourceType));
4477 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszResourceType, &size_lpszResourceType_2));
4478 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszResourceType, &length_lpszResourceType_2));
4479 0 : if (length_lpszResourceType_2 > size_lpszResourceType_2) {
4480 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszResourceType_2, length_lpszResourceType_2);
4481 : }
4482 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceType_2, sizeof(uint16_t)));
4483 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszResourceType, length_lpszResourceType_2, sizeof(uint16_t), CH_UTF16));
4484 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszResourceType_1, 0);
4485 : }
4486 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszResourceType_0, LIBNDR_FLAG_REF_ALLOC);
4487 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4488 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4489 : }
4490 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4491 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4492 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4493 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4494 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4495 : }
4496 0 : return NDR_ERR_SUCCESS;
4497 : }
4498 :
4499 0 : _PUBLIC_ void ndr_print_clusapi_GetResourceType(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetResourceType *r)
4500 : {
4501 0 : ndr_print_struct(ndr, name, "clusapi_GetResourceType");
4502 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4503 0 : ndr->depth++;
4504 0 : if (flags & NDR_SET_VALUES) {
4505 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4506 : }
4507 0 : if (flags & NDR_IN) {
4508 0 : ndr_print_struct(ndr, "in", "clusapi_GetResourceType");
4509 0 : ndr->depth++;
4510 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4511 0 : ndr->depth--;
4512 : }
4513 0 : if (flags & NDR_OUT) {
4514 0 : ndr_print_struct(ndr, "out", "clusapi_GetResourceType");
4515 0 : ndr->depth++;
4516 0 : ndr_print_ptr(ndr, "lpszResourceType", r->out.lpszResourceType);
4517 0 : ndr->depth++;
4518 0 : ndr_print_ptr(ndr, "lpszResourceType", *r->out.lpszResourceType);
4519 0 : ndr->depth++;
4520 0 : if (*r->out.lpszResourceType) {
4521 0 : ndr_print_string(ndr, "lpszResourceType", *r->out.lpszResourceType);
4522 : }
4523 0 : ndr->depth--;
4524 0 : ndr->depth--;
4525 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4526 0 : ndr->depth++;
4527 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4528 0 : ndr->depth--;
4529 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4530 0 : ndr->depth--;
4531 : }
4532 0 : ndr->depth--;
4533 : }
4534 :
4535 0 : static enum ndr_err_code ndr_push_clusapi_FailResource(struct ndr_push *ndr, int flags, const struct clusapi_FailResource *r)
4536 : {
4537 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4538 0 : if (flags & NDR_IN) {
4539 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4540 : }
4541 0 : if (flags & NDR_OUT) {
4542 0 : if (r->out.rpc_status == NULL) {
4543 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4544 : }
4545 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4546 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4547 : }
4548 0 : return NDR_ERR_SUCCESS;
4549 : }
4550 :
4551 0 : static enum ndr_err_code ndr_pull_clusapi_FailResource(struct ndr_pull *ndr, int flags, struct clusapi_FailResource *r)
4552 : {
4553 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4554 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4555 0 : if (flags & NDR_IN) {
4556 0 : NDR_ZERO_STRUCT(r->out);
4557 :
4558 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4559 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4560 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4561 : }
4562 0 : if (flags & NDR_OUT) {
4563 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4564 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4565 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4566 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4567 : }
4568 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4569 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4570 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4571 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4572 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4573 : }
4574 0 : return NDR_ERR_SUCCESS;
4575 : }
4576 :
4577 0 : _PUBLIC_ void ndr_print_clusapi_FailResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_FailResource *r)
4578 : {
4579 0 : ndr_print_struct(ndr, name, "clusapi_FailResource");
4580 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4581 0 : ndr->depth++;
4582 0 : if (flags & NDR_SET_VALUES) {
4583 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4584 : }
4585 0 : if (flags & NDR_IN) {
4586 0 : ndr_print_struct(ndr, "in", "clusapi_FailResource");
4587 0 : ndr->depth++;
4588 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4589 0 : ndr->depth--;
4590 : }
4591 0 : if (flags & NDR_OUT) {
4592 0 : ndr_print_struct(ndr, "out", "clusapi_FailResource");
4593 0 : ndr->depth++;
4594 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4595 0 : ndr->depth++;
4596 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4597 0 : ndr->depth--;
4598 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4599 0 : ndr->depth--;
4600 : }
4601 0 : ndr->depth--;
4602 : }
4603 :
4604 0 : static enum ndr_err_code ndr_push_clusapi_OnlineResource(struct ndr_push *ndr, int flags, const struct clusapi_OnlineResource *r)
4605 : {
4606 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4607 0 : if (flags & NDR_IN) {
4608 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4609 : }
4610 0 : if (flags & NDR_OUT) {
4611 0 : if (r->out.rpc_status == NULL) {
4612 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4613 : }
4614 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4615 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4616 : }
4617 0 : return NDR_ERR_SUCCESS;
4618 : }
4619 :
4620 0 : static enum ndr_err_code ndr_pull_clusapi_OnlineResource(struct ndr_pull *ndr, int flags, struct clusapi_OnlineResource *r)
4621 : {
4622 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4623 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4624 0 : if (flags & NDR_IN) {
4625 0 : NDR_ZERO_STRUCT(r->out);
4626 :
4627 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4628 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4629 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4630 : }
4631 0 : if (flags & NDR_OUT) {
4632 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4633 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4634 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4635 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4636 : }
4637 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4638 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4639 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4640 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4641 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4642 : }
4643 0 : return NDR_ERR_SUCCESS;
4644 : }
4645 :
4646 0 : _PUBLIC_ void ndr_print_clusapi_OnlineResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OnlineResource *r)
4647 : {
4648 0 : ndr_print_struct(ndr, name, "clusapi_OnlineResource");
4649 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4650 0 : ndr->depth++;
4651 0 : if (flags & NDR_SET_VALUES) {
4652 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4653 : }
4654 0 : if (flags & NDR_IN) {
4655 0 : ndr_print_struct(ndr, "in", "clusapi_OnlineResource");
4656 0 : ndr->depth++;
4657 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4658 0 : ndr->depth--;
4659 : }
4660 0 : if (flags & NDR_OUT) {
4661 0 : ndr_print_struct(ndr, "out", "clusapi_OnlineResource");
4662 0 : ndr->depth++;
4663 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4664 0 : ndr->depth++;
4665 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4666 0 : ndr->depth--;
4667 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4668 0 : ndr->depth--;
4669 : }
4670 0 : ndr->depth--;
4671 : }
4672 :
4673 0 : static enum ndr_err_code ndr_push_clusapi_OfflineResource(struct ndr_push *ndr, int flags, const struct clusapi_OfflineResource *r)
4674 : {
4675 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4676 0 : if (flags & NDR_IN) {
4677 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4678 : }
4679 0 : if (flags & NDR_OUT) {
4680 0 : if (r->out.rpc_status == NULL) {
4681 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4682 : }
4683 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4684 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4685 : }
4686 0 : return NDR_ERR_SUCCESS;
4687 : }
4688 :
4689 0 : static enum ndr_err_code ndr_pull_clusapi_OfflineResource(struct ndr_pull *ndr, int flags, struct clusapi_OfflineResource *r)
4690 : {
4691 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4692 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4693 0 : if (flags & NDR_IN) {
4694 0 : NDR_ZERO_STRUCT(r->out);
4695 :
4696 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4697 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4698 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4699 : }
4700 0 : if (flags & NDR_OUT) {
4701 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4702 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4703 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4704 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4705 : }
4706 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4707 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4708 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4709 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4710 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4711 : }
4712 0 : return NDR_ERR_SUCCESS;
4713 : }
4714 :
4715 0 : _PUBLIC_ void ndr_print_clusapi_OfflineResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OfflineResource *r)
4716 : {
4717 0 : ndr_print_struct(ndr, name, "clusapi_OfflineResource");
4718 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4719 0 : ndr->depth++;
4720 0 : if (flags & NDR_SET_VALUES) {
4721 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4722 : }
4723 0 : if (flags & NDR_IN) {
4724 0 : ndr_print_struct(ndr, "in", "clusapi_OfflineResource");
4725 0 : ndr->depth++;
4726 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4727 0 : ndr->depth--;
4728 : }
4729 0 : if (flags & NDR_OUT) {
4730 0 : ndr_print_struct(ndr, "out", "clusapi_OfflineResource");
4731 0 : ndr->depth++;
4732 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4733 0 : ndr->depth++;
4734 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4735 0 : ndr->depth--;
4736 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4737 0 : ndr->depth--;
4738 : }
4739 0 : ndr->depth--;
4740 : }
4741 :
4742 0 : static enum ndr_err_code ndr_push_clusapi_AddResourceDependency(struct ndr_push *ndr, int flags, const struct clusapi_AddResourceDependency *r)
4743 : {
4744 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4745 0 : if (flags & NDR_IN) {
4746 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4747 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
4748 : }
4749 0 : if (flags & NDR_OUT) {
4750 0 : if (r->out.rpc_status == NULL) {
4751 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4752 : }
4753 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4754 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4755 : }
4756 0 : return NDR_ERR_SUCCESS;
4757 : }
4758 :
4759 0 : static enum ndr_err_code ndr_pull_clusapi_AddResourceDependency(struct ndr_pull *ndr, int flags, struct clusapi_AddResourceDependency *r)
4760 : {
4761 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4762 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4763 0 : if (flags & NDR_IN) {
4764 0 : NDR_ZERO_STRUCT(r->out);
4765 :
4766 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4767 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
4768 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4769 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4770 : }
4771 0 : if (flags & NDR_OUT) {
4772 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4773 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4774 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4775 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4776 : }
4777 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4778 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4779 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4780 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4781 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4782 : }
4783 0 : return NDR_ERR_SUCCESS;
4784 : }
4785 :
4786 0 : _PUBLIC_ void ndr_print_clusapi_AddResourceDependency(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddResourceDependency *r)
4787 : {
4788 0 : ndr_print_struct(ndr, name, "clusapi_AddResourceDependency");
4789 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4790 0 : ndr->depth++;
4791 0 : if (flags & NDR_SET_VALUES) {
4792 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4793 : }
4794 0 : if (flags & NDR_IN) {
4795 0 : ndr_print_struct(ndr, "in", "clusapi_AddResourceDependency");
4796 0 : ndr->depth++;
4797 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4798 0 : ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
4799 0 : ndr->depth--;
4800 : }
4801 0 : if (flags & NDR_OUT) {
4802 0 : ndr_print_struct(ndr, "out", "clusapi_AddResourceDependency");
4803 0 : ndr->depth++;
4804 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4805 0 : ndr->depth++;
4806 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4807 0 : ndr->depth--;
4808 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4809 0 : ndr->depth--;
4810 : }
4811 0 : ndr->depth--;
4812 : }
4813 :
4814 0 : static enum ndr_err_code ndr_push_clusapi_RemoveResourceDependency(struct ndr_push *ndr, int flags, const struct clusapi_RemoveResourceDependency *r)
4815 : {
4816 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4817 0 : if (flags & NDR_IN) {
4818 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4819 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
4820 : }
4821 0 : if (flags & NDR_OUT) {
4822 0 : if (r->out.rpc_status == NULL) {
4823 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4824 : }
4825 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4826 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4827 : }
4828 0 : return NDR_ERR_SUCCESS;
4829 : }
4830 :
4831 0 : static enum ndr_err_code ndr_pull_clusapi_RemoveResourceDependency(struct ndr_pull *ndr, int flags, struct clusapi_RemoveResourceDependency *r)
4832 : {
4833 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4834 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4835 0 : if (flags & NDR_IN) {
4836 0 : NDR_ZERO_STRUCT(r->out);
4837 :
4838 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4839 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
4840 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4841 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4842 : }
4843 0 : if (flags & NDR_OUT) {
4844 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4845 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4846 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4847 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4848 : }
4849 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4850 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4851 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4852 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4853 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4854 : }
4855 0 : return NDR_ERR_SUCCESS;
4856 : }
4857 :
4858 0 : _PUBLIC_ void ndr_print_clusapi_RemoveResourceDependency(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_RemoveResourceDependency *r)
4859 : {
4860 0 : ndr_print_struct(ndr, name, "clusapi_RemoveResourceDependency");
4861 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4862 0 : ndr->depth++;
4863 0 : if (flags & NDR_SET_VALUES) {
4864 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4865 : }
4866 0 : if (flags & NDR_IN) {
4867 0 : ndr_print_struct(ndr, "in", "clusapi_RemoveResourceDependency");
4868 0 : ndr->depth++;
4869 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4870 0 : ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
4871 0 : ndr->depth--;
4872 : }
4873 0 : if (flags & NDR_OUT) {
4874 0 : ndr_print_struct(ndr, "out", "clusapi_RemoveResourceDependency");
4875 0 : ndr->depth++;
4876 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4877 0 : ndr->depth++;
4878 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4879 0 : ndr->depth--;
4880 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4881 0 : ndr->depth--;
4882 : }
4883 0 : ndr->depth--;
4884 : }
4885 :
4886 0 : static enum ndr_err_code ndr_push_clusapi_CanResourceBeDependent(struct ndr_push *ndr, int flags, const struct clusapi_CanResourceBeDependent *r)
4887 : {
4888 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4889 0 : if (flags & NDR_IN) {
4890 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4891 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResourceDependent));
4892 : }
4893 0 : if (flags & NDR_OUT) {
4894 0 : if (r->out.rpc_status == NULL) {
4895 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4896 : }
4897 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4898 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4899 : }
4900 0 : return NDR_ERR_SUCCESS;
4901 : }
4902 :
4903 0 : static enum ndr_err_code ndr_pull_clusapi_CanResourceBeDependent(struct ndr_pull *ndr, int flags, struct clusapi_CanResourceBeDependent *r)
4904 : {
4905 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4906 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4907 0 : if (flags & NDR_IN) {
4908 0 : NDR_ZERO_STRUCT(r->out);
4909 :
4910 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4911 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResourceDependent));
4912 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4913 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4914 : }
4915 0 : if (flags & NDR_OUT) {
4916 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
4917 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
4918 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4919 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4920 : }
4921 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
4922 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
4923 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
4924 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
4925 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4926 : }
4927 0 : return NDR_ERR_SUCCESS;
4928 : }
4929 :
4930 0 : _PUBLIC_ void ndr_print_clusapi_CanResourceBeDependent(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CanResourceBeDependent *r)
4931 : {
4932 0 : ndr_print_struct(ndr, name, "clusapi_CanResourceBeDependent");
4933 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4934 0 : ndr->depth++;
4935 0 : if (flags & NDR_SET_VALUES) {
4936 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4937 : }
4938 0 : if (flags & NDR_IN) {
4939 0 : ndr_print_struct(ndr, "in", "clusapi_CanResourceBeDependent");
4940 0 : ndr->depth++;
4941 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
4942 0 : ndr_print_policy_handle(ndr, "hResourceDependent", &r->in.hResourceDependent);
4943 0 : ndr->depth--;
4944 : }
4945 0 : if (flags & NDR_OUT) {
4946 0 : ndr_print_struct(ndr, "out", "clusapi_CanResourceBeDependent");
4947 0 : ndr->depth++;
4948 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
4949 0 : ndr->depth++;
4950 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
4951 0 : ndr->depth--;
4952 0 : ndr_print_WERROR(ndr, "result", r->out.result);
4953 0 : ndr->depth--;
4954 : }
4955 0 : ndr->depth--;
4956 : }
4957 :
4958 0 : static enum ndr_err_code ndr_push_clusapi_CreateResEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateResEnum *r)
4959 : {
4960 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
4961 0 : if (flags & NDR_IN) {
4962 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4963 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwType));
4964 : }
4965 0 : if (flags & NDR_OUT) {
4966 0 : if (r->out.ReturnEnum == NULL) {
4967 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4968 : }
4969 0 : if (r->out.rpc_status == NULL) {
4970 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4971 : }
4972 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
4973 0 : if (*r->out.ReturnEnum) {
4974 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
4975 : }
4976 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
4977 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4978 : }
4979 0 : return NDR_ERR_SUCCESS;
4980 : }
4981 :
4982 0 : static enum ndr_err_code ndr_pull_clusapi_CreateResEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateResEnum *r)
4983 : {
4984 : uint32_t _ptr_ReturnEnum;
4985 0 : TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
4986 0 : TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
4987 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
4988 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
4989 0 : if (flags & NDR_IN) {
4990 0 : NDR_ZERO_STRUCT(r->out);
4991 :
4992 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
4993 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwType));
4994 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
4995 0 : NDR_ZERO_STRUCTP(r->out.ReturnEnum);
4996 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
4997 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
4998 : }
4999 0 : if (flags & NDR_OUT) {
5000 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5001 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5002 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5003 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
5004 : }
5005 0 : _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
5006 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
5007 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
5008 0 : if (_ptr_ReturnEnum) {
5009 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
5010 : } else {
5011 0 : *r->out.ReturnEnum = NULL;
5012 : }
5013 0 : if (*r->out.ReturnEnum) {
5014 0 : _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
5015 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
5016 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
5017 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
5018 : }
5019 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
5020 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5021 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5022 : }
5023 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5024 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
5025 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
5026 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
5027 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5028 : }
5029 0 : return NDR_ERR_SUCCESS;
5030 : }
5031 :
5032 0 : _PUBLIC_ void ndr_print_clusapi_CreateResEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateResEnum *r)
5033 : {
5034 0 : ndr_print_struct(ndr, name, "clusapi_CreateResEnum");
5035 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5036 0 : ndr->depth++;
5037 0 : if (flags & NDR_SET_VALUES) {
5038 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5039 : }
5040 0 : if (flags & NDR_IN) {
5041 0 : ndr_print_struct(ndr, "in", "clusapi_CreateResEnum");
5042 0 : ndr->depth++;
5043 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
5044 0 : ndr_print_uint32(ndr, "dwType", r->in.dwType);
5045 0 : ndr->depth--;
5046 : }
5047 0 : if (flags & NDR_OUT) {
5048 0 : ndr_print_struct(ndr, "out", "clusapi_CreateResEnum");
5049 0 : ndr->depth++;
5050 0 : ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
5051 0 : ndr->depth++;
5052 0 : ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
5053 0 : ndr->depth++;
5054 0 : if (*r->out.ReturnEnum) {
5055 0 : ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
5056 : }
5057 0 : ndr->depth--;
5058 0 : ndr->depth--;
5059 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
5060 0 : ndr->depth++;
5061 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
5062 0 : ndr->depth--;
5063 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5064 0 : ndr->depth--;
5065 : }
5066 0 : ndr->depth--;
5067 : }
5068 :
5069 0 : static enum ndr_err_code ndr_push_clusapi_AddResourceNode(struct ndr_push *ndr, int flags, const struct clusapi_AddResourceNode *r)
5070 : {
5071 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5072 0 : if (flags & NDR_IN) {
5073 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
5074 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
5075 : }
5076 0 : if (flags & NDR_OUT) {
5077 0 : if (r->out.rpc_status == NULL) {
5078 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5079 : }
5080 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
5081 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5082 : }
5083 0 : return NDR_ERR_SUCCESS;
5084 : }
5085 :
5086 0 : static enum ndr_err_code ndr_pull_clusapi_AddResourceNode(struct ndr_pull *ndr, int flags, struct clusapi_AddResourceNode *r)
5087 : {
5088 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
5089 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5090 0 : if (flags & NDR_IN) {
5091 0 : NDR_ZERO_STRUCT(r->out);
5092 :
5093 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
5094 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
5095 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5096 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
5097 : }
5098 0 : if (flags & NDR_OUT) {
5099 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5100 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5101 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5102 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5103 : }
5104 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5105 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
5106 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
5107 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
5108 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5109 : }
5110 0 : return NDR_ERR_SUCCESS;
5111 : }
5112 :
5113 0 : _PUBLIC_ void ndr_print_clusapi_AddResourceNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddResourceNode *r)
5114 : {
5115 0 : ndr_print_struct(ndr, name, "clusapi_AddResourceNode");
5116 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5117 0 : ndr->depth++;
5118 0 : if (flags & NDR_SET_VALUES) {
5119 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5120 : }
5121 0 : if (flags & NDR_IN) {
5122 0 : ndr_print_struct(ndr, "in", "clusapi_AddResourceNode");
5123 0 : ndr->depth++;
5124 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
5125 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
5126 0 : ndr->depth--;
5127 : }
5128 0 : if (flags & NDR_OUT) {
5129 0 : ndr_print_struct(ndr, "out", "clusapi_AddResourceNode");
5130 0 : ndr->depth++;
5131 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
5132 0 : ndr->depth++;
5133 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
5134 0 : ndr->depth--;
5135 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5136 0 : ndr->depth--;
5137 : }
5138 0 : ndr->depth--;
5139 : }
5140 :
5141 0 : static enum ndr_err_code ndr_push_clusapi_RemoveResourceNode(struct ndr_push *ndr, int flags, const struct clusapi_RemoveResourceNode *r)
5142 : {
5143 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5144 0 : if (flags & NDR_IN) {
5145 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
5146 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
5147 : }
5148 0 : if (flags & NDR_OUT) {
5149 0 : if (r->out.rpc_status == NULL) {
5150 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5151 : }
5152 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
5153 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5154 : }
5155 0 : return NDR_ERR_SUCCESS;
5156 : }
5157 :
5158 0 : static enum ndr_err_code ndr_pull_clusapi_RemoveResourceNode(struct ndr_pull *ndr, int flags, struct clusapi_RemoveResourceNode *r)
5159 : {
5160 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
5161 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5162 0 : if (flags & NDR_IN) {
5163 0 : NDR_ZERO_STRUCT(r->out);
5164 :
5165 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
5166 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
5167 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5168 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
5169 : }
5170 0 : if (flags & NDR_OUT) {
5171 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5172 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5173 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5174 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5175 : }
5176 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5177 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
5178 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
5179 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
5180 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5181 : }
5182 0 : return NDR_ERR_SUCCESS;
5183 : }
5184 :
5185 0 : _PUBLIC_ void ndr_print_clusapi_RemoveResourceNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_RemoveResourceNode *r)
5186 : {
5187 0 : ndr_print_struct(ndr, name, "clusapi_RemoveResourceNode");
5188 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5189 0 : ndr->depth++;
5190 0 : if (flags & NDR_SET_VALUES) {
5191 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5192 : }
5193 0 : if (flags & NDR_IN) {
5194 0 : ndr_print_struct(ndr, "in", "clusapi_RemoveResourceNode");
5195 0 : ndr->depth++;
5196 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
5197 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
5198 0 : ndr->depth--;
5199 : }
5200 0 : if (flags & NDR_OUT) {
5201 0 : ndr_print_struct(ndr, "out", "clusapi_RemoveResourceNode");
5202 0 : ndr->depth++;
5203 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
5204 0 : ndr->depth++;
5205 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
5206 0 : ndr->depth--;
5207 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5208 0 : ndr->depth--;
5209 : }
5210 0 : ndr->depth--;
5211 : }
5212 :
5213 0 : static enum ndr_err_code ndr_push_clusapi_ChangeResourceGroup(struct ndr_push *ndr, int flags, const struct clusapi_ChangeResourceGroup *r)
5214 : {
5215 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5216 0 : if (flags & NDR_IN) {
5217 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
5218 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
5219 : }
5220 0 : if (flags & NDR_OUT) {
5221 0 : if (r->out.rpc_status == NULL) {
5222 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5223 : }
5224 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
5225 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5226 : }
5227 0 : return NDR_ERR_SUCCESS;
5228 : }
5229 :
5230 0 : static enum ndr_err_code ndr_pull_clusapi_ChangeResourceGroup(struct ndr_pull *ndr, int flags, struct clusapi_ChangeResourceGroup *r)
5231 : {
5232 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
5233 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5234 0 : if (flags & NDR_IN) {
5235 0 : NDR_ZERO_STRUCT(r->out);
5236 :
5237 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
5238 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
5239 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5240 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
5241 : }
5242 0 : if (flags & NDR_OUT) {
5243 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5244 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5245 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5246 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5247 : }
5248 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5249 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
5250 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
5251 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
5252 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5253 : }
5254 0 : return NDR_ERR_SUCCESS;
5255 : }
5256 :
5257 0 : _PUBLIC_ void ndr_print_clusapi_ChangeResourceGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ChangeResourceGroup *r)
5258 : {
5259 0 : ndr_print_struct(ndr, name, "clusapi_ChangeResourceGroup");
5260 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5261 0 : ndr->depth++;
5262 0 : if (flags & NDR_SET_VALUES) {
5263 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5264 : }
5265 0 : if (flags & NDR_IN) {
5266 0 : ndr_print_struct(ndr, "in", "clusapi_ChangeResourceGroup");
5267 0 : ndr->depth++;
5268 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
5269 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
5270 0 : ndr->depth--;
5271 : }
5272 0 : if (flags & NDR_OUT) {
5273 0 : ndr_print_struct(ndr, "out", "clusapi_ChangeResourceGroup");
5274 0 : ndr->depth++;
5275 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
5276 0 : ndr->depth++;
5277 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
5278 0 : ndr->depth--;
5279 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5280 0 : ndr->depth--;
5281 : }
5282 0 : ndr->depth--;
5283 : }
5284 :
5285 0 : static enum ndr_err_code ndr_push_clusapi_CreateResourceType(struct ndr_push *ndr, int flags, const struct clusapi_CreateResourceType *r)
5286 : {
5287 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5288 0 : if (flags & NDR_IN) {
5289 0 : if (r->in.lpszTypeName == NULL) {
5290 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5291 : }
5292 0 : if (r->in.lpszDisplayName == NULL) {
5293 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5294 : }
5295 0 : if (r->in.lpszDllName == NULL) {
5296 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5297 : }
5298 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
5299 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5300 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
5301 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszTypeName, ndr_charset_length(r->in.lpszTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5302 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDisplayName, CH_UTF16)));
5303 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5304 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDisplayName, CH_UTF16)));
5305 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDisplayName, ndr_charset_length(r->in.lpszDisplayName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5306 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDllName, CH_UTF16)));
5307 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5308 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDllName, CH_UTF16)));
5309 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDllName, ndr_charset_length(r->in.lpszDllName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5310 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwLooksAlive));
5311 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwIsAlive));
5312 : }
5313 0 : if (flags & NDR_OUT) {
5314 0 : if (r->out.rpc_status == NULL) {
5315 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5316 : }
5317 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
5318 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5319 : }
5320 0 : return NDR_ERR_SUCCESS;
5321 : }
5322 :
5323 0 : static enum ndr_err_code ndr_pull_clusapi_CreateResourceType(struct ndr_pull *ndr, int flags, struct clusapi_CreateResourceType *r)
5324 : {
5325 0 : uint32_t size_lpszTypeName_1 = 0;
5326 0 : uint32_t length_lpszTypeName_1 = 0;
5327 0 : uint32_t size_lpszDisplayName_1 = 0;
5328 0 : uint32_t length_lpszDisplayName_1 = 0;
5329 0 : uint32_t size_lpszDllName_1 = 0;
5330 0 : uint32_t length_lpszDllName_1 = 0;
5331 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
5332 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5333 0 : if (flags & NDR_IN) {
5334 0 : NDR_ZERO_STRUCT(r->out);
5335 :
5336 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszTypeName));
5337 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszTypeName));
5338 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszTypeName, &size_lpszTypeName_1));
5339 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszTypeName, &length_lpszTypeName_1));
5340 0 : if (length_lpszTypeName_1 > size_lpszTypeName_1) {
5341 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszTypeName_1, length_lpszTypeName_1);
5342 : }
5343 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszTypeName_1, sizeof(uint16_t)));
5344 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszTypeName, length_lpszTypeName_1, sizeof(uint16_t), CH_UTF16));
5345 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDisplayName));
5346 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDisplayName));
5347 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDisplayName, &size_lpszDisplayName_1));
5348 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDisplayName, &length_lpszDisplayName_1));
5349 0 : if (length_lpszDisplayName_1 > size_lpszDisplayName_1) {
5350 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszDisplayName_1, length_lpszDisplayName_1);
5351 : }
5352 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDisplayName_1, sizeof(uint16_t)));
5353 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDisplayName, length_lpszDisplayName_1, sizeof(uint16_t), CH_UTF16));
5354 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDllName));
5355 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDllName));
5356 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDllName, &size_lpszDllName_1));
5357 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDllName, &length_lpszDllName_1));
5358 0 : if (length_lpszDllName_1 > size_lpszDllName_1) {
5359 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszDllName_1, length_lpszDllName_1);
5360 : }
5361 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDllName_1, sizeof(uint16_t)));
5362 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDllName, length_lpszDllName_1, sizeof(uint16_t), CH_UTF16));
5363 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwLooksAlive));
5364 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwIsAlive));
5365 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5366 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
5367 : }
5368 0 : if (flags & NDR_OUT) {
5369 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5370 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5371 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5372 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5373 : }
5374 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5375 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
5376 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
5377 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
5378 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5379 : }
5380 0 : return NDR_ERR_SUCCESS;
5381 : }
5382 :
5383 0 : _PUBLIC_ void ndr_print_clusapi_CreateResourceType(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateResourceType *r)
5384 : {
5385 0 : ndr_print_struct(ndr, name, "clusapi_CreateResourceType");
5386 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5387 0 : ndr->depth++;
5388 0 : if (flags & NDR_SET_VALUES) {
5389 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5390 : }
5391 0 : if (flags & NDR_IN) {
5392 0 : ndr_print_struct(ndr, "in", "clusapi_CreateResourceType");
5393 0 : ndr->depth++;
5394 0 : ndr_print_ptr(ndr, "lpszTypeName", r->in.lpszTypeName);
5395 0 : ndr->depth++;
5396 0 : ndr_print_string(ndr, "lpszTypeName", r->in.lpszTypeName);
5397 0 : ndr->depth--;
5398 0 : ndr_print_ptr(ndr, "lpszDisplayName", r->in.lpszDisplayName);
5399 0 : ndr->depth++;
5400 0 : ndr_print_string(ndr, "lpszDisplayName", r->in.lpszDisplayName);
5401 0 : ndr->depth--;
5402 0 : ndr_print_ptr(ndr, "lpszDllName", r->in.lpszDllName);
5403 0 : ndr->depth++;
5404 0 : ndr_print_string(ndr, "lpszDllName", r->in.lpszDllName);
5405 0 : ndr->depth--;
5406 0 : ndr_print_uint32(ndr, "dwLooksAlive", r->in.dwLooksAlive);
5407 0 : ndr_print_uint32(ndr, "dwIsAlive", r->in.dwIsAlive);
5408 0 : ndr->depth--;
5409 : }
5410 0 : if (flags & NDR_OUT) {
5411 0 : ndr_print_struct(ndr, "out", "clusapi_CreateResourceType");
5412 0 : ndr->depth++;
5413 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
5414 0 : ndr->depth++;
5415 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
5416 0 : ndr->depth--;
5417 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5418 0 : ndr->depth--;
5419 : }
5420 0 : ndr->depth--;
5421 : }
5422 :
5423 0 : static enum ndr_err_code ndr_push_clusapi_DeleteResourceType(struct ndr_push *ndr, int flags, const struct clusapi_DeleteResourceType *r)
5424 : {
5425 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5426 0 : if (flags & NDR_IN) {
5427 0 : if (r->in.lpszTypeName == NULL) {
5428 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5429 : }
5430 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
5431 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5432 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
5433 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszTypeName, ndr_charset_length(r->in.lpszTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5434 : }
5435 0 : if (flags & NDR_OUT) {
5436 0 : if (r->out.rpc_status == NULL) {
5437 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5438 : }
5439 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
5440 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5441 : }
5442 0 : return NDR_ERR_SUCCESS;
5443 : }
5444 :
5445 0 : static enum ndr_err_code ndr_pull_clusapi_DeleteResourceType(struct ndr_pull *ndr, int flags, struct clusapi_DeleteResourceType *r)
5446 : {
5447 0 : uint32_t size_lpszTypeName_1 = 0;
5448 0 : uint32_t length_lpszTypeName_1 = 0;
5449 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
5450 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5451 0 : if (flags & NDR_IN) {
5452 0 : NDR_ZERO_STRUCT(r->out);
5453 :
5454 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszTypeName));
5455 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszTypeName));
5456 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszTypeName, &size_lpszTypeName_1));
5457 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszTypeName, &length_lpszTypeName_1));
5458 0 : if (length_lpszTypeName_1 > size_lpszTypeName_1) {
5459 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszTypeName_1, length_lpszTypeName_1);
5460 : }
5461 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszTypeName_1, sizeof(uint16_t)));
5462 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszTypeName, length_lpszTypeName_1, sizeof(uint16_t), CH_UTF16));
5463 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5464 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
5465 : }
5466 0 : if (flags & NDR_OUT) {
5467 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5468 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5469 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5470 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5471 : }
5472 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5473 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
5474 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
5475 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
5476 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5477 : }
5478 0 : return NDR_ERR_SUCCESS;
5479 : }
5480 :
5481 0 : _PUBLIC_ void ndr_print_clusapi_DeleteResourceType(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_DeleteResourceType *r)
5482 : {
5483 0 : ndr_print_struct(ndr, name, "clusapi_DeleteResourceType");
5484 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5485 0 : ndr->depth++;
5486 0 : if (flags & NDR_SET_VALUES) {
5487 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5488 : }
5489 0 : if (flags & NDR_IN) {
5490 0 : ndr_print_struct(ndr, "in", "clusapi_DeleteResourceType");
5491 0 : ndr->depth++;
5492 0 : ndr_print_ptr(ndr, "lpszTypeName", r->in.lpszTypeName);
5493 0 : ndr->depth++;
5494 0 : ndr_print_string(ndr, "lpszTypeName", r->in.lpszTypeName);
5495 0 : ndr->depth--;
5496 0 : ndr->depth--;
5497 : }
5498 0 : if (flags & NDR_OUT) {
5499 0 : ndr_print_struct(ndr, "out", "clusapi_DeleteResourceType");
5500 0 : ndr->depth++;
5501 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
5502 0 : ndr->depth++;
5503 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
5504 0 : ndr->depth--;
5505 0 : ndr_print_WERROR(ndr, "result", r->out.result);
5506 0 : ndr->depth--;
5507 : }
5508 0 : ndr->depth--;
5509 : }
5510 :
5511 0 : static enum ndr_err_code ndr_push_clusapi_GetRootKey(struct ndr_push *ndr, int flags, const struct clusapi_GetRootKey *r)
5512 : {
5513 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5514 0 : if (flags & NDR_IN) {
5515 0 : NDR_CHECK(ndr_push_winreg_AccessMask(ndr, NDR_SCALARS, r->in.samDesired));
5516 : }
5517 0 : if (flags & NDR_OUT) {
5518 0 : if (r->out.Status == NULL) {
5519 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5520 : }
5521 0 : if (r->out.rpc_status == NULL) {
5522 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5523 : }
5524 0 : if (r->out.phKey == NULL) {
5525 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5526 : }
5527 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
5528 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
5529 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
5530 : }
5531 0 : return NDR_ERR_SUCCESS;
5532 : }
5533 :
5534 0 : static enum ndr_err_code ndr_pull_clusapi_GetRootKey(struct ndr_pull *ndr, int flags, struct clusapi_GetRootKey *r)
5535 : {
5536 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
5537 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
5538 0 : TALLOC_CTX *_mem_save_phKey_0 = NULL;
5539 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5540 0 : if (flags & NDR_IN) {
5541 0 : NDR_ZERO_STRUCT(r->out);
5542 :
5543 0 : NDR_CHECK(ndr_pull_winreg_AccessMask(ndr, NDR_SCALARS, &r->in.samDesired));
5544 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
5545 0 : NDR_ZERO_STRUCTP(r->out.Status);
5546 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5547 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
5548 0 : NDR_PULL_ALLOC(ndr, r->out.phKey);
5549 0 : NDR_ZERO_STRUCTP(r->out.phKey);
5550 : }
5551 0 : if (flags & NDR_OUT) {
5552 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5553 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5554 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5555 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
5556 : }
5557 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5558 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
5559 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
5560 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
5561 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5562 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5563 : }
5564 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5565 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
5566 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
5567 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
5568 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5569 0 : NDR_PULL_ALLOC(ndr, r->out.phKey);
5570 : }
5571 0 : _mem_save_phKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
5572 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.phKey, LIBNDR_FLAG_REF_ALLOC);
5573 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
5574 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phKey_0, LIBNDR_FLAG_REF_ALLOC);
5575 : }
5576 0 : return NDR_ERR_SUCCESS;
5577 : }
5578 :
5579 0 : _PUBLIC_ void ndr_print_clusapi_GetRootKey(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetRootKey *r)
5580 : {
5581 0 : ndr_print_struct(ndr, name, "clusapi_GetRootKey");
5582 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5583 0 : ndr->depth++;
5584 0 : if (flags & NDR_SET_VALUES) {
5585 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5586 : }
5587 0 : if (flags & NDR_IN) {
5588 0 : ndr_print_struct(ndr, "in", "clusapi_GetRootKey");
5589 0 : ndr->depth++;
5590 0 : ndr_print_winreg_AccessMask(ndr, "samDesired", r->in.samDesired);
5591 0 : ndr->depth--;
5592 : }
5593 0 : if (flags & NDR_OUT) {
5594 0 : ndr_print_struct(ndr, "out", "clusapi_GetRootKey");
5595 0 : ndr->depth++;
5596 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
5597 0 : ndr->depth++;
5598 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
5599 0 : ndr->depth--;
5600 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
5601 0 : ndr->depth++;
5602 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
5603 0 : ndr->depth--;
5604 0 : ndr_print_ptr(ndr, "phKey", r->out.phKey);
5605 0 : ndr->depth++;
5606 0 : ndr_print_policy_handle(ndr, "phKey", r->out.phKey);
5607 0 : ndr->depth--;
5608 0 : ndr->depth--;
5609 : }
5610 0 : ndr->depth--;
5611 : }
5612 :
5613 0 : static enum ndr_err_code ndr_push_clusapi_CreateKey(struct ndr_push *ndr, int flags, const struct clusapi_CreateKey *r)
5614 : {
5615 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5616 0 : if (flags & NDR_IN) {
5617 0 : if (r->in.lpSubKey == NULL) {
5618 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5619 : }
5620 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
5621 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
5622 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5623 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
5624 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpSubKey, ndr_charset_length(r->in.lpSubKey, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5625 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOptions));
5626 0 : NDR_CHECK(ndr_push_winreg_AccessMask(ndr, NDR_SCALARS, r->in.samDesired));
5627 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpSecurityAttributes));
5628 0 : if (r->in.lpSecurityAttributes) {
5629 0 : NDR_CHECK(ndr_push_RPC_SECURITY_ATTRIBUTES(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.lpSecurityAttributes));
5630 : }
5631 : }
5632 0 : if (flags & NDR_OUT) {
5633 0 : if (r->out.lpdwDisposition == NULL) {
5634 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5635 : }
5636 0 : if (r->out.Status == NULL) {
5637 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5638 : }
5639 0 : if (r->out.rpc_status == NULL) {
5640 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5641 : }
5642 0 : if (r->out.phKey == NULL) {
5643 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5644 : }
5645 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwDisposition));
5646 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
5647 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
5648 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
5649 : }
5650 0 : return NDR_ERR_SUCCESS;
5651 : }
5652 :
5653 0 : static enum ndr_err_code ndr_pull_clusapi_CreateKey(struct ndr_pull *ndr, int flags, struct clusapi_CreateKey *r)
5654 : {
5655 0 : uint32_t size_lpSubKey_1 = 0;
5656 0 : uint32_t length_lpSubKey_1 = 0;
5657 : uint32_t _ptr_lpSecurityAttributes;
5658 0 : TALLOC_CTX *_mem_save_lpSecurityAttributes_0 = NULL;
5659 0 : TALLOC_CTX *_mem_save_lpdwDisposition_0 = NULL;
5660 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
5661 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
5662 0 : TALLOC_CTX *_mem_save_phKey_0 = NULL;
5663 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5664 0 : if (flags & NDR_IN) {
5665 0 : NDR_ZERO_STRUCT(r->out);
5666 :
5667 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
5668 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpSubKey));
5669 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpSubKey));
5670 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpSubKey, &size_lpSubKey_1));
5671 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpSubKey, &length_lpSubKey_1));
5672 0 : if (length_lpSubKey_1 > size_lpSubKey_1) {
5673 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpSubKey_1, length_lpSubKey_1);
5674 : }
5675 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpSubKey_1, sizeof(uint16_t)));
5676 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpSubKey, length_lpSubKey_1, sizeof(uint16_t), CH_UTF16));
5677 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOptions));
5678 0 : NDR_CHECK(ndr_pull_winreg_AccessMask(ndr, NDR_SCALARS, &r->in.samDesired));
5679 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpSecurityAttributes));
5680 0 : if (_ptr_lpSecurityAttributes) {
5681 0 : NDR_PULL_ALLOC(ndr, r->in.lpSecurityAttributes);
5682 : } else {
5683 0 : r->in.lpSecurityAttributes = NULL;
5684 : }
5685 0 : if (r->in.lpSecurityAttributes) {
5686 0 : _mem_save_lpSecurityAttributes_0 = NDR_PULL_GET_MEM_CTX(ndr);
5687 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpSecurityAttributes, 0);
5688 0 : NDR_CHECK(ndr_pull_RPC_SECURITY_ATTRIBUTES(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.lpSecurityAttributes));
5689 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpSecurityAttributes_0, 0);
5690 : }
5691 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwDisposition);
5692 0 : NDR_ZERO_STRUCTP(r->out.lpdwDisposition);
5693 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
5694 0 : NDR_ZERO_STRUCTP(r->out.Status);
5695 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5696 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
5697 0 : NDR_PULL_ALLOC(ndr, r->out.phKey);
5698 0 : NDR_ZERO_STRUCTP(r->out.phKey);
5699 : }
5700 0 : if (flags & NDR_OUT) {
5701 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5702 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5703 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5704 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwDisposition);
5705 : }
5706 0 : _mem_save_lpdwDisposition_0 = NDR_PULL_GET_MEM_CTX(ndr);
5707 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwDisposition, LIBNDR_FLAG_REF_ALLOC);
5708 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwDisposition));
5709 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwDisposition_0, LIBNDR_FLAG_REF_ALLOC);
5710 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5711 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
5712 : }
5713 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5714 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
5715 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
5716 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
5717 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5718 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5719 : }
5720 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5721 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
5722 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
5723 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
5724 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5725 0 : NDR_PULL_ALLOC(ndr, r->out.phKey);
5726 : }
5727 0 : _mem_save_phKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
5728 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.phKey, LIBNDR_FLAG_REF_ALLOC);
5729 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
5730 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phKey_0, LIBNDR_FLAG_REF_ALLOC);
5731 : }
5732 0 : return NDR_ERR_SUCCESS;
5733 : }
5734 :
5735 0 : _PUBLIC_ void ndr_print_clusapi_CreateKey(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateKey *r)
5736 : {
5737 0 : ndr_print_struct(ndr, name, "clusapi_CreateKey");
5738 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5739 0 : ndr->depth++;
5740 0 : if (flags & NDR_SET_VALUES) {
5741 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5742 : }
5743 0 : if (flags & NDR_IN) {
5744 0 : ndr_print_struct(ndr, "in", "clusapi_CreateKey");
5745 0 : ndr->depth++;
5746 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
5747 0 : ndr_print_ptr(ndr, "lpSubKey", r->in.lpSubKey);
5748 0 : ndr->depth++;
5749 0 : ndr_print_string(ndr, "lpSubKey", r->in.lpSubKey);
5750 0 : ndr->depth--;
5751 0 : ndr_print_uint32(ndr, "dwOptions", r->in.dwOptions);
5752 0 : ndr_print_winreg_AccessMask(ndr, "samDesired", r->in.samDesired);
5753 0 : ndr_print_ptr(ndr, "lpSecurityAttributes", r->in.lpSecurityAttributes);
5754 0 : ndr->depth++;
5755 0 : if (r->in.lpSecurityAttributes) {
5756 0 : ndr_print_RPC_SECURITY_ATTRIBUTES(ndr, "lpSecurityAttributes", r->in.lpSecurityAttributes);
5757 : }
5758 0 : ndr->depth--;
5759 0 : ndr->depth--;
5760 : }
5761 0 : if (flags & NDR_OUT) {
5762 0 : ndr_print_struct(ndr, "out", "clusapi_CreateKey");
5763 0 : ndr->depth++;
5764 0 : ndr_print_ptr(ndr, "lpdwDisposition", r->out.lpdwDisposition);
5765 0 : ndr->depth++;
5766 0 : ndr_print_uint32(ndr, "lpdwDisposition", *r->out.lpdwDisposition);
5767 0 : ndr->depth--;
5768 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
5769 0 : ndr->depth++;
5770 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
5771 0 : ndr->depth--;
5772 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
5773 0 : ndr->depth++;
5774 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
5775 0 : ndr->depth--;
5776 0 : ndr_print_ptr(ndr, "phKey", r->out.phKey);
5777 0 : ndr->depth++;
5778 0 : ndr_print_policy_handle(ndr, "phKey", r->out.phKey);
5779 0 : ndr->depth--;
5780 0 : ndr->depth--;
5781 : }
5782 0 : ndr->depth--;
5783 : }
5784 :
5785 0 : static enum ndr_err_code ndr_push_clusapi_OpenKey(struct ndr_push *ndr, int flags, const struct clusapi_OpenKey *r)
5786 : {
5787 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5788 0 : if (flags & NDR_IN) {
5789 0 : if (r->in.lpSubKey == NULL) {
5790 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5791 : }
5792 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
5793 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
5794 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5795 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
5796 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpSubKey, ndr_charset_length(r->in.lpSubKey, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5797 0 : NDR_CHECK(ndr_push_winreg_AccessMask(ndr, NDR_SCALARS, r->in.samDesired));
5798 : }
5799 0 : if (flags & NDR_OUT) {
5800 0 : if (r->out.Status == NULL) {
5801 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5802 : }
5803 0 : if (r->out.rpc_status == NULL) {
5804 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5805 : }
5806 0 : if (r->out.phKey == NULL) {
5807 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5808 : }
5809 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
5810 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
5811 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
5812 : }
5813 0 : return NDR_ERR_SUCCESS;
5814 : }
5815 :
5816 0 : static enum ndr_err_code ndr_pull_clusapi_OpenKey(struct ndr_pull *ndr, int flags, struct clusapi_OpenKey *r)
5817 : {
5818 0 : uint32_t size_lpSubKey_1 = 0;
5819 0 : uint32_t length_lpSubKey_1 = 0;
5820 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
5821 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
5822 0 : TALLOC_CTX *_mem_save_phKey_0 = NULL;
5823 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5824 0 : if (flags & NDR_IN) {
5825 0 : NDR_ZERO_STRUCT(r->out);
5826 :
5827 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
5828 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpSubKey));
5829 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpSubKey));
5830 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpSubKey, &size_lpSubKey_1));
5831 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpSubKey, &length_lpSubKey_1));
5832 0 : if (length_lpSubKey_1 > size_lpSubKey_1) {
5833 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpSubKey_1, length_lpSubKey_1);
5834 : }
5835 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpSubKey_1, sizeof(uint16_t)));
5836 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpSubKey, length_lpSubKey_1, sizeof(uint16_t), CH_UTF16));
5837 0 : NDR_CHECK(ndr_pull_winreg_AccessMask(ndr, NDR_SCALARS, &r->in.samDesired));
5838 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
5839 0 : NDR_ZERO_STRUCTP(r->out.Status);
5840 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5841 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
5842 0 : NDR_PULL_ALLOC(ndr, r->out.phKey);
5843 0 : NDR_ZERO_STRUCTP(r->out.phKey);
5844 : }
5845 0 : if (flags & NDR_OUT) {
5846 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5847 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5848 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5849 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
5850 : }
5851 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5852 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
5853 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
5854 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
5855 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5856 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5857 : }
5858 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
5859 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
5860 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
5861 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
5862 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5863 0 : NDR_PULL_ALLOC(ndr, r->out.phKey);
5864 : }
5865 0 : _mem_save_phKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
5866 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.phKey, LIBNDR_FLAG_REF_ALLOC);
5867 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
5868 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phKey_0, LIBNDR_FLAG_REF_ALLOC);
5869 : }
5870 0 : return NDR_ERR_SUCCESS;
5871 : }
5872 :
5873 0 : _PUBLIC_ void ndr_print_clusapi_OpenKey(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenKey *r)
5874 : {
5875 0 : ndr_print_struct(ndr, name, "clusapi_OpenKey");
5876 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5877 0 : ndr->depth++;
5878 0 : if (flags & NDR_SET_VALUES) {
5879 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5880 : }
5881 0 : if (flags & NDR_IN) {
5882 0 : ndr_print_struct(ndr, "in", "clusapi_OpenKey");
5883 0 : ndr->depth++;
5884 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
5885 0 : ndr_print_ptr(ndr, "lpSubKey", r->in.lpSubKey);
5886 0 : ndr->depth++;
5887 0 : ndr_print_string(ndr, "lpSubKey", r->in.lpSubKey);
5888 0 : ndr->depth--;
5889 0 : ndr_print_winreg_AccessMask(ndr, "samDesired", r->in.samDesired);
5890 0 : ndr->depth--;
5891 : }
5892 0 : if (flags & NDR_OUT) {
5893 0 : ndr_print_struct(ndr, "out", "clusapi_OpenKey");
5894 0 : ndr->depth++;
5895 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
5896 0 : ndr->depth++;
5897 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
5898 0 : ndr->depth--;
5899 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
5900 0 : ndr->depth++;
5901 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
5902 0 : ndr->depth--;
5903 0 : ndr_print_ptr(ndr, "phKey", r->out.phKey);
5904 0 : ndr->depth++;
5905 0 : ndr_print_policy_handle(ndr, "phKey", r->out.phKey);
5906 0 : ndr->depth--;
5907 0 : ndr->depth--;
5908 : }
5909 0 : ndr->depth--;
5910 : }
5911 :
5912 0 : static enum ndr_err_code ndr_push_clusapi_EnumKey(struct ndr_push *ndr, int flags, const struct clusapi_EnumKey *r)
5913 : {
5914 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
5915 0 : if (flags & NDR_IN) {
5916 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
5917 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwIndex));
5918 : }
5919 0 : if (flags & NDR_OUT) {
5920 0 : if (r->out.KeyName == NULL) {
5921 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5922 : }
5923 0 : if (r->out.lpftLastWriteTime == NULL) {
5924 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5925 : }
5926 0 : if (r->out.rpc_status == NULL) {
5927 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5928 : }
5929 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.KeyName));
5930 0 : if (*r->out.KeyName) {
5931 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.KeyName, CH_UTF16)));
5932 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5933 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.KeyName, CH_UTF16)));
5934 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.KeyName, ndr_charset_length(*r->out.KeyName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5935 : }
5936 0 : NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, *r->out.lpftLastWriteTime));
5937 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
5938 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5939 : }
5940 0 : return NDR_ERR_SUCCESS;
5941 : }
5942 :
5943 0 : static enum ndr_err_code ndr_pull_clusapi_EnumKey(struct ndr_pull *ndr, int flags, struct clusapi_EnumKey *r)
5944 : {
5945 : uint32_t _ptr_KeyName;
5946 0 : uint32_t size_KeyName_2 = 0;
5947 0 : uint32_t length_KeyName_2 = 0;
5948 0 : TALLOC_CTX *_mem_save_KeyName_0 = NULL;
5949 0 : TALLOC_CTX *_mem_save_KeyName_1 = NULL;
5950 0 : TALLOC_CTX *_mem_save_lpftLastWriteTime_0 = NULL;
5951 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
5952 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
5953 0 : if (flags & NDR_IN) {
5954 0 : NDR_ZERO_STRUCT(r->out);
5955 :
5956 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
5957 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwIndex));
5958 0 : NDR_PULL_ALLOC(ndr, r->out.KeyName);
5959 0 : NDR_ZERO_STRUCTP(r->out.KeyName);
5960 0 : NDR_PULL_ALLOC(ndr, r->out.lpftLastWriteTime);
5961 0 : NDR_ZERO_STRUCTP(r->out.lpftLastWriteTime);
5962 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
5963 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
5964 : }
5965 0 : if (flags & NDR_OUT) {
5966 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
5967 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
5968 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5969 0 : NDR_PULL_ALLOC(ndr, r->out.KeyName);
5970 : }
5971 0 : _mem_save_KeyName_0 = NDR_PULL_GET_MEM_CTX(ndr);
5972 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.KeyName, LIBNDR_FLAG_REF_ALLOC);
5973 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_KeyName));
5974 0 : if (_ptr_KeyName) {
5975 0 : NDR_PULL_ALLOC(ndr, *r->out.KeyName);
5976 : } else {
5977 0 : *r->out.KeyName = NULL;
5978 : }
5979 0 : if (*r->out.KeyName) {
5980 0 : _mem_save_KeyName_1 = NDR_PULL_GET_MEM_CTX(ndr);
5981 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.KeyName, 0);
5982 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.KeyName));
5983 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.KeyName));
5984 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.KeyName, &size_KeyName_2));
5985 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.KeyName, &length_KeyName_2));
5986 0 : if (length_KeyName_2 > size_KeyName_2) {
5987 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_KeyName_2, length_KeyName_2);
5988 : }
5989 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_KeyName_2, sizeof(uint16_t)));
5990 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.KeyName, length_KeyName_2, sizeof(uint16_t), CH_UTF16));
5991 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_KeyName_1, 0);
5992 : }
5993 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_KeyName_0, LIBNDR_FLAG_REF_ALLOC);
5994 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5995 0 : NDR_PULL_ALLOC(ndr, r->out.lpftLastWriteTime);
5996 : }
5997 0 : _mem_save_lpftLastWriteTime_0 = NDR_PULL_GET_MEM_CTX(ndr);
5998 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpftLastWriteTime, LIBNDR_FLAG_REF_ALLOC);
5999 0 : NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, r->out.lpftLastWriteTime));
6000 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpftLastWriteTime_0, LIBNDR_FLAG_REF_ALLOC);
6001 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6002 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6003 : }
6004 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
6005 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
6006 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
6007 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
6008 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6009 : }
6010 0 : return NDR_ERR_SUCCESS;
6011 : }
6012 :
6013 0 : _PUBLIC_ void ndr_print_clusapi_EnumKey(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_EnumKey *r)
6014 : {
6015 0 : ndr_print_struct(ndr, name, "clusapi_EnumKey");
6016 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6017 0 : ndr->depth++;
6018 0 : if (flags & NDR_SET_VALUES) {
6019 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6020 : }
6021 0 : if (flags & NDR_IN) {
6022 0 : ndr_print_struct(ndr, "in", "clusapi_EnumKey");
6023 0 : ndr->depth++;
6024 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
6025 0 : ndr_print_uint32(ndr, "dwIndex", r->in.dwIndex);
6026 0 : ndr->depth--;
6027 : }
6028 0 : if (flags & NDR_OUT) {
6029 0 : ndr_print_struct(ndr, "out", "clusapi_EnumKey");
6030 0 : ndr->depth++;
6031 0 : ndr_print_ptr(ndr, "KeyName", r->out.KeyName);
6032 0 : ndr->depth++;
6033 0 : ndr_print_ptr(ndr, "KeyName", *r->out.KeyName);
6034 0 : ndr->depth++;
6035 0 : if (*r->out.KeyName) {
6036 0 : ndr_print_string(ndr, "KeyName", *r->out.KeyName);
6037 : }
6038 0 : ndr->depth--;
6039 0 : ndr->depth--;
6040 0 : ndr_print_ptr(ndr, "lpftLastWriteTime", r->out.lpftLastWriteTime);
6041 0 : ndr->depth++;
6042 0 : ndr_print_NTTIME(ndr, "lpftLastWriteTime", *r->out.lpftLastWriteTime);
6043 0 : ndr->depth--;
6044 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
6045 0 : ndr->depth++;
6046 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
6047 0 : ndr->depth--;
6048 0 : ndr_print_WERROR(ndr, "result", r->out.result);
6049 0 : ndr->depth--;
6050 : }
6051 0 : ndr->depth--;
6052 : }
6053 :
6054 0 : static enum ndr_err_code ndr_push_clusapi_SetValue(struct ndr_push *ndr, int flags, const struct clusapi_SetValue *r)
6055 : {
6056 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6057 0 : if (flags & NDR_IN) {
6058 0 : if (r->in.lpValueName == NULL) {
6059 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6060 : }
6061 0 : if (r->in.lpData == NULL) {
6062 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6063 : }
6064 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6065 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
6066 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
6067 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
6068 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpValueName, ndr_charset_length(r->in.lpValueName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
6069 0 : NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, r->in.dwType));
6070 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbData));
6071 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpData, r->in.cbData));
6072 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbData));
6073 : }
6074 0 : if (flags & NDR_OUT) {
6075 0 : if (r->out.rpc_status == NULL) {
6076 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6077 : }
6078 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
6079 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6080 : }
6081 0 : return NDR_ERR_SUCCESS;
6082 : }
6083 :
6084 0 : static enum ndr_err_code ndr_pull_clusapi_SetValue(struct ndr_pull *ndr, int flags, struct clusapi_SetValue *r)
6085 : {
6086 0 : uint32_t size_lpValueName_1 = 0;
6087 0 : uint32_t length_lpValueName_1 = 0;
6088 0 : uint32_t size_lpData_1 = 0;
6089 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
6090 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6091 0 : if (flags & NDR_IN) {
6092 0 : NDR_ZERO_STRUCT(r->out);
6093 :
6094 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6095 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpValueName));
6096 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpValueName));
6097 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpValueName, &size_lpValueName_1));
6098 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpValueName, &length_lpValueName_1));
6099 0 : if (length_lpValueName_1 > size_lpValueName_1) {
6100 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpValueName_1, length_lpValueName_1);
6101 : }
6102 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpValueName_1, sizeof(uint16_t)));
6103 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpValueName, length_lpValueName_1, sizeof(uint16_t), CH_UTF16));
6104 0 : NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, &r->in.dwType));
6105 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpData));
6106 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpData, &size_lpData_1));
6107 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6108 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpData, size_lpData_1);
6109 : }
6110 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpData, size_lpData_1));
6111 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbData));
6112 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6113 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
6114 0 : if (r->in.lpData) {
6115 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpData, r->in.cbData));
6116 : }
6117 : }
6118 0 : if (flags & NDR_OUT) {
6119 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6120 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6121 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6122 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6123 : }
6124 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
6125 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
6126 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
6127 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
6128 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6129 : }
6130 0 : return NDR_ERR_SUCCESS;
6131 : }
6132 :
6133 0 : _PUBLIC_ void ndr_print_clusapi_SetValue(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetValue *r)
6134 : {
6135 0 : ndr_print_struct(ndr, name, "clusapi_SetValue");
6136 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6137 0 : ndr->depth++;
6138 0 : if (flags & NDR_SET_VALUES) {
6139 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6140 : }
6141 0 : if (flags & NDR_IN) {
6142 0 : ndr_print_struct(ndr, "in", "clusapi_SetValue");
6143 0 : ndr->depth++;
6144 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
6145 0 : ndr_print_ptr(ndr, "lpValueName", r->in.lpValueName);
6146 0 : ndr->depth++;
6147 0 : ndr_print_string(ndr, "lpValueName", r->in.lpValueName);
6148 0 : ndr->depth--;
6149 0 : ndr_print_winreg_Type(ndr, "dwType", r->in.dwType);
6150 0 : ndr_print_ptr(ndr, "lpData", r->in.lpData);
6151 0 : ndr->depth++;
6152 0 : ndr_print_array_uint8(ndr, "lpData", r->in.lpData, r->in.cbData);
6153 0 : ndr->depth--;
6154 0 : ndr_print_uint32(ndr, "cbData", r->in.cbData);
6155 0 : ndr->depth--;
6156 : }
6157 0 : if (flags & NDR_OUT) {
6158 0 : ndr_print_struct(ndr, "out", "clusapi_SetValue");
6159 0 : ndr->depth++;
6160 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
6161 0 : ndr->depth++;
6162 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
6163 0 : ndr->depth--;
6164 0 : ndr_print_WERROR(ndr, "result", r->out.result);
6165 0 : ndr->depth--;
6166 : }
6167 0 : ndr->depth--;
6168 : }
6169 :
6170 0 : static enum ndr_err_code ndr_push_clusapi_DeleteValue(struct ndr_push *ndr, int flags, const struct clusapi_DeleteValue *r)
6171 : {
6172 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6173 0 : if (flags & NDR_IN) {
6174 0 : if (r->in.lpValueName == NULL) {
6175 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6176 : }
6177 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6178 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
6179 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
6180 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
6181 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpValueName, ndr_charset_length(r->in.lpValueName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
6182 : }
6183 0 : if (flags & NDR_OUT) {
6184 0 : if (r->out.rpc_status == NULL) {
6185 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6186 : }
6187 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
6188 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6189 : }
6190 0 : return NDR_ERR_SUCCESS;
6191 : }
6192 :
6193 0 : static enum ndr_err_code ndr_pull_clusapi_DeleteValue(struct ndr_pull *ndr, int flags, struct clusapi_DeleteValue *r)
6194 : {
6195 0 : uint32_t size_lpValueName_1 = 0;
6196 0 : uint32_t length_lpValueName_1 = 0;
6197 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
6198 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6199 0 : if (flags & NDR_IN) {
6200 0 : NDR_ZERO_STRUCT(r->out);
6201 :
6202 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6203 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpValueName));
6204 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpValueName));
6205 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpValueName, &size_lpValueName_1));
6206 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpValueName, &length_lpValueName_1));
6207 0 : if (length_lpValueName_1 > size_lpValueName_1) {
6208 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpValueName_1, length_lpValueName_1);
6209 : }
6210 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpValueName_1, sizeof(uint16_t)));
6211 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpValueName, length_lpValueName_1, sizeof(uint16_t), CH_UTF16));
6212 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6213 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
6214 : }
6215 0 : if (flags & NDR_OUT) {
6216 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6217 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6218 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6219 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6220 : }
6221 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
6222 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
6223 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
6224 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
6225 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6226 : }
6227 0 : return NDR_ERR_SUCCESS;
6228 : }
6229 :
6230 0 : _PUBLIC_ void ndr_print_clusapi_DeleteValue(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_DeleteValue *r)
6231 : {
6232 0 : ndr_print_struct(ndr, name, "clusapi_DeleteValue");
6233 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6234 0 : ndr->depth++;
6235 0 : if (flags & NDR_SET_VALUES) {
6236 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6237 : }
6238 0 : if (flags & NDR_IN) {
6239 0 : ndr_print_struct(ndr, "in", "clusapi_DeleteValue");
6240 0 : ndr->depth++;
6241 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
6242 0 : ndr_print_ptr(ndr, "lpValueName", r->in.lpValueName);
6243 0 : ndr->depth++;
6244 0 : ndr_print_string(ndr, "lpValueName", r->in.lpValueName);
6245 0 : ndr->depth--;
6246 0 : ndr->depth--;
6247 : }
6248 0 : if (flags & NDR_OUT) {
6249 0 : ndr_print_struct(ndr, "out", "clusapi_DeleteValue");
6250 0 : ndr->depth++;
6251 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
6252 0 : ndr->depth++;
6253 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
6254 0 : ndr->depth--;
6255 0 : ndr_print_WERROR(ndr, "result", r->out.result);
6256 0 : ndr->depth--;
6257 : }
6258 0 : ndr->depth--;
6259 : }
6260 :
6261 0 : static enum ndr_err_code ndr_push_clusapi_QueryValue(struct ndr_push *ndr, int flags, const struct clusapi_QueryValue *r)
6262 : {
6263 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6264 0 : if (flags & NDR_IN) {
6265 0 : if (r->in.lpValueName == NULL) {
6266 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6267 : }
6268 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6269 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
6270 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
6271 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
6272 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpValueName, ndr_charset_length(r->in.lpValueName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
6273 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbData));
6274 : }
6275 0 : if (flags & NDR_OUT) {
6276 0 : if (r->out.lpValueType == NULL) {
6277 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6278 : }
6279 0 : if (r->out.lpData == NULL) {
6280 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6281 : }
6282 0 : if (r->out.lpcbRequired == NULL) {
6283 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6284 : }
6285 0 : if (r->out.rpc_status == NULL) {
6286 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6287 : }
6288 0 : NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, *r->out.lpValueType));
6289 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbData));
6290 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpData, r->in.cbData));
6291 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
6292 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
6293 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6294 : }
6295 0 : return NDR_ERR_SUCCESS;
6296 : }
6297 :
6298 0 : static enum ndr_err_code ndr_pull_clusapi_QueryValue(struct ndr_pull *ndr, int flags, struct clusapi_QueryValue *r)
6299 : {
6300 0 : uint32_t size_lpValueName_1 = 0;
6301 0 : uint32_t length_lpValueName_1 = 0;
6302 0 : uint32_t size_lpData_1 = 0;
6303 0 : TALLOC_CTX *_mem_save_lpValueType_0 = NULL;
6304 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
6305 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
6306 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6307 0 : if (flags & NDR_IN) {
6308 0 : NDR_ZERO_STRUCT(r->out);
6309 :
6310 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6311 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpValueName));
6312 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpValueName));
6313 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpValueName, &size_lpValueName_1));
6314 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpValueName, &length_lpValueName_1));
6315 0 : if (length_lpValueName_1 > size_lpValueName_1) {
6316 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpValueName_1, length_lpValueName_1);
6317 : }
6318 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpValueName_1, sizeof(uint16_t)));
6319 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpValueName, length_lpValueName_1, sizeof(uint16_t), CH_UTF16));
6320 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbData));
6321 0 : NDR_PULL_ALLOC(ndr, r->out.lpValueType);
6322 0 : NDR_ZERO_STRUCTP(r->out.lpValueType);
6323 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpData, r->in.cbData);
6324 0 : memset(r->out.lpData, 0, (r->in.cbData) * sizeof(*r->out.lpData));
6325 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
6326 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
6327 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6328 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
6329 : }
6330 0 : if (flags & NDR_OUT) {
6331 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6332 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6333 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6334 0 : NDR_PULL_ALLOC(ndr, r->out.lpValueType);
6335 : }
6336 0 : _mem_save_lpValueType_0 = NDR_PULL_GET_MEM_CTX(ndr);
6337 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpValueType, LIBNDR_FLAG_REF_ALLOC);
6338 0 : NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, r->out.lpValueType));
6339 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpValueType_0, LIBNDR_FLAG_REF_ALLOC);
6340 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpData));
6341 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpData, &size_lpData_1));
6342 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6343 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpData, size_lpData_1);
6344 : }
6345 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpData, size_lpData_1));
6346 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6347 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
6348 : }
6349 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
6350 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
6351 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
6352 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
6353 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6354 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6355 : }
6356 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
6357 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
6358 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
6359 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
6360 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6361 0 : if (r->out.lpData) {
6362 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpData, r->in.cbData));
6363 : }
6364 : }
6365 0 : return NDR_ERR_SUCCESS;
6366 : }
6367 :
6368 0 : _PUBLIC_ void ndr_print_clusapi_QueryValue(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_QueryValue *r)
6369 : {
6370 0 : ndr_print_struct(ndr, name, "clusapi_QueryValue");
6371 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6372 0 : ndr->depth++;
6373 0 : if (flags & NDR_SET_VALUES) {
6374 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6375 : }
6376 0 : if (flags & NDR_IN) {
6377 0 : ndr_print_struct(ndr, "in", "clusapi_QueryValue");
6378 0 : ndr->depth++;
6379 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
6380 0 : ndr_print_ptr(ndr, "lpValueName", r->in.lpValueName);
6381 0 : ndr->depth++;
6382 0 : ndr_print_string(ndr, "lpValueName", r->in.lpValueName);
6383 0 : ndr->depth--;
6384 0 : ndr_print_uint32(ndr, "cbData", r->in.cbData);
6385 0 : ndr->depth--;
6386 : }
6387 0 : if (flags & NDR_OUT) {
6388 0 : ndr_print_struct(ndr, "out", "clusapi_QueryValue");
6389 0 : ndr->depth++;
6390 0 : ndr_print_ptr(ndr, "lpValueType", r->out.lpValueType);
6391 0 : ndr->depth++;
6392 0 : ndr_print_winreg_Type(ndr, "lpValueType", *r->out.lpValueType);
6393 0 : ndr->depth--;
6394 0 : ndr_print_ptr(ndr, "lpData", r->out.lpData);
6395 0 : ndr->depth++;
6396 0 : ndr_print_array_uint8(ndr, "lpData", r->out.lpData, r->in.cbData);
6397 0 : ndr->depth--;
6398 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
6399 0 : ndr->depth++;
6400 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
6401 0 : ndr->depth--;
6402 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
6403 0 : ndr->depth++;
6404 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
6405 0 : ndr->depth--;
6406 0 : ndr_print_WERROR(ndr, "result", r->out.result);
6407 0 : ndr->depth--;
6408 : }
6409 0 : ndr->depth--;
6410 : }
6411 :
6412 0 : static enum ndr_err_code ndr_push_clusapi_DeleteKey(struct ndr_push *ndr, int flags, const struct clusapi_DeleteKey *r)
6413 : {
6414 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6415 0 : if (flags & NDR_IN) {
6416 0 : if (r->in.lpSubKey == NULL) {
6417 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6418 : }
6419 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6420 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
6421 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
6422 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
6423 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpSubKey, ndr_charset_length(r->in.lpSubKey, CH_UTF16), sizeof(uint16_t), CH_UTF16));
6424 : }
6425 0 : if (flags & NDR_OUT) {
6426 0 : if (r->out.rpc_status == NULL) {
6427 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6428 : }
6429 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
6430 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6431 : }
6432 0 : return NDR_ERR_SUCCESS;
6433 : }
6434 :
6435 0 : static enum ndr_err_code ndr_pull_clusapi_DeleteKey(struct ndr_pull *ndr, int flags, struct clusapi_DeleteKey *r)
6436 : {
6437 0 : uint32_t size_lpSubKey_1 = 0;
6438 0 : uint32_t length_lpSubKey_1 = 0;
6439 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
6440 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6441 0 : if (flags & NDR_IN) {
6442 0 : NDR_ZERO_STRUCT(r->out);
6443 :
6444 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6445 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpSubKey));
6446 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpSubKey));
6447 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpSubKey, &size_lpSubKey_1));
6448 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpSubKey, &length_lpSubKey_1));
6449 0 : if (length_lpSubKey_1 > size_lpSubKey_1) {
6450 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpSubKey_1, length_lpSubKey_1);
6451 : }
6452 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpSubKey_1, sizeof(uint16_t)));
6453 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpSubKey, length_lpSubKey_1, sizeof(uint16_t), CH_UTF16));
6454 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6455 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
6456 : }
6457 0 : if (flags & NDR_OUT) {
6458 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6459 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6460 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6461 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6462 : }
6463 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
6464 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
6465 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
6466 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
6467 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6468 : }
6469 0 : return NDR_ERR_SUCCESS;
6470 : }
6471 :
6472 0 : _PUBLIC_ void ndr_print_clusapi_DeleteKey(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_DeleteKey *r)
6473 : {
6474 0 : ndr_print_struct(ndr, name, "clusapi_DeleteKey");
6475 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6476 0 : ndr->depth++;
6477 0 : if (flags & NDR_SET_VALUES) {
6478 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6479 : }
6480 0 : if (flags & NDR_IN) {
6481 0 : ndr_print_struct(ndr, "in", "clusapi_DeleteKey");
6482 0 : ndr->depth++;
6483 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
6484 0 : ndr_print_ptr(ndr, "lpSubKey", r->in.lpSubKey);
6485 0 : ndr->depth++;
6486 0 : ndr_print_string(ndr, "lpSubKey", r->in.lpSubKey);
6487 0 : ndr->depth--;
6488 0 : ndr->depth--;
6489 : }
6490 0 : if (flags & NDR_OUT) {
6491 0 : ndr_print_struct(ndr, "out", "clusapi_DeleteKey");
6492 0 : ndr->depth++;
6493 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
6494 0 : ndr->depth++;
6495 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
6496 0 : ndr->depth--;
6497 0 : ndr_print_WERROR(ndr, "result", r->out.result);
6498 0 : ndr->depth--;
6499 : }
6500 0 : ndr->depth--;
6501 : }
6502 :
6503 0 : static enum ndr_err_code ndr_push_clusapi_EnumValue(struct ndr_push *ndr, int flags, const struct clusapi_EnumValue *r)
6504 : {
6505 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6506 0 : if (flags & NDR_IN) {
6507 0 : if (r->in.lpcbData == NULL) {
6508 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6509 : }
6510 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6511 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwIndex));
6512 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.lpcbData));
6513 : }
6514 0 : if (flags & NDR_OUT) {
6515 0 : if (r->out.lpValueName == NULL) {
6516 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6517 : }
6518 0 : if (r->out.lpType == NULL) {
6519 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6520 : }
6521 0 : if (r->out.lpData == NULL) {
6522 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6523 : }
6524 0 : if (r->out.lpcbData == NULL) {
6525 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6526 : }
6527 0 : if (r->out.TotalSize == NULL) {
6528 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6529 : }
6530 0 : if (r->out.rpc_status == NULL) {
6531 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6532 : }
6533 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpValueName));
6534 0 : if (*r->out.lpValueName) {
6535 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpValueName, CH_UTF16)));
6536 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
6537 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpValueName, CH_UTF16)));
6538 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpValueName, ndr_charset_length(*r->out.lpValueName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
6539 : }
6540 0 : NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, *r->out.lpType));
6541 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpcbData));
6542 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpData, *r->out.lpcbData));
6543 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbData));
6544 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.TotalSize));
6545 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
6546 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6547 : }
6548 0 : return NDR_ERR_SUCCESS;
6549 : }
6550 :
6551 0 : static enum ndr_err_code ndr_pull_clusapi_EnumValue(struct ndr_pull *ndr, int flags, struct clusapi_EnumValue *r)
6552 : {
6553 : uint32_t _ptr_lpValueName;
6554 0 : uint32_t size_lpValueName_2 = 0;
6555 0 : uint32_t length_lpValueName_2 = 0;
6556 0 : uint32_t size_lpData_1 = 0;
6557 0 : TALLOC_CTX *_mem_save_lpValueName_0 = NULL;
6558 0 : TALLOC_CTX *_mem_save_lpValueName_1 = NULL;
6559 0 : TALLOC_CTX *_mem_save_lpType_0 = NULL;
6560 0 : TALLOC_CTX *_mem_save_lpcbData_0 = NULL;
6561 0 : TALLOC_CTX *_mem_save_TotalSize_0 = NULL;
6562 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
6563 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6564 0 : if (flags & NDR_IN) {
6565 0 : NDR_ZERO_STRUCT(r->out);
6566 :
6567 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6568 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwIndex));
6569 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6570 0 : NDR_PULL_ALLOC(ndr, r->in.lpcbData);
6571 : }
6572 0 : _mem_save_lpcbData_0 = NDR_PULL_GET_MEM_CTX(ndr);
6573 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpcbData, LIBNDR_FLAG_REF_ALLOC);
6574 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.lpcbData));
6575 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbData_0, LIBNDR_FLAG_REF_ALLOC);
6576 0 : NDR_PULL_ALLOC(ndr, r->out.lpValueName);
6577 0 : NDR_ZERO_STRUCTP(r->out.lpValueName);
6578 0 : NDR_PULL_ALLOC(ndr, r->out.lpType);
6579 0 : NDR_ZERO_STRUCTP(r->out.lpType);
6580 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpData, *r->in.lpcbData);
6581 0 : memset(r->out.lpData, 0, (*r->in.lpcbData) * sizeof(*r->out.lpData));
6582 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbData);
6583 0 : *r->out.lpcbData = *r->in.lpcbData;
6584 0 : NDR_PULL_ALLOC(ndr, r->out.TotalSize);
6585 0 : NDR_ZERO_STRUCTP(r->out.TotalSize);
6586 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6587 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
6588 : }
6589 0 : if (flags & NDR_OUT) {
6590 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6591 : if (r->in.lpcbData == NULL) {
6592 : NDR_PULL_ALLOC(ndr, r->in.lpcbData);
6593 : NDR_ZERO_STRUCTP(r->in.lpcbData);
6594 : }
6595 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6596 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6597 0 : NDR_PULL_ALLOC(ndr, r->out.lpValueName);
6598 : }
6599 0 : _mem_save_lpValueName_0 = NDR_PULL_GET_MEM_CTX(ndr);
6600 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpValueName, LIBNDR_FLAG_REF_ALLOC);
6601 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpValueName));
6602 0 : if (_ptr_lpValueName) {
6603 0 : NDR_PULL_ALLOC(ndr, *r->out.lpValueName);
6604 : } else {
6605 0 : *r->out.lpValueName = NULL;
6606 : }
6607 0 : if (*r->out.lpValueName) {
6608 0 : _mem_save_lpValueName_1 = NDR_PULL_GET_MEM_CTX(ndr);
6609 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpValueName, 0);
6610 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpValueName));
6611 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpValueName));
6612 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpValueName, &size_lpValueName_2));
6613 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpValueName, &length_lpValueName_2));
6614 0 : if (length_lpValueName_2 > size_lpValueName_2) {
6615 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpValueName_2, length_lpValueName_2);
6616 : }
6617 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpValueName_2, sizeof(uint16_t)));
6618 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpValueName, length_lpValueName_2, sizeof(uint16_t), CH_UTF16));
6619 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpValueName_1, 0);
6620 : }
6621 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpValueName_0, LIBNDR_FLAG_REF_ALLOC);
6622 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6623 0 : NDR_PULL_ALLOC(ndr, r->out.lpType);
6624 : }
6625 0 : _mem_save_lpType_0 = NDR_PULL_GET_MEM_CTX(ndr);
6626 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpType, LIBNDR_FLAG_REF_ALLOC);
6627 0 : NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, r->out.lpType));
6628 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpType_0, LIBNDR_FLAG_REF_ALLOC);
6629 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpData));
6630 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpData, &size_lpData_1));
6631 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6632 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpData, size_lpData_1);
6633 : }
6634 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpData, size_lpData_1));
6635 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6636 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbData);
6637 : }
6638 0 : _mem_save_lpcbData_0 = NDR_PULL_GET_MEM_CTX(ndr);
6639 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbData, LIBNDR_FLAG_REF_ALLOC);
6640 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbData));
6641 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbData_0, LIBNDR_FLAG_REF_ALLOC);
6642 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6643 0 : NDR_PULL_ALLOC(ndr, r->out.TotalSize);
6644 : }
6645 0 : _mem_save_TotalSize_0 = NDR_PULL_GET_MEM_CTX(ndr);
6646 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.TotalSize, LIBNDR_FLAG_REF_ALLOC);
6647 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.TotalSize));
6648 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_TotalSize_0, LIBNDR_FLAG_REF_ALLOC);
6649 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6650 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6651 : }
6652 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
6653 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
6654 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
6655 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
6656 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6657 0 : if (r->out.lpData) {
6658 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpData, *r->out.lpcbData));
6659 : }
6660 : }
6661 0 : return NDR_ERR_SUCCESS;
6662 : }
6663 :
6664 0 : _PUBLIC_ void ndr_print_clusapi_EnumValue(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_EnumValue *r)
6665 : {
6666 0 : ndr_print_struct(ndr, name, "clusapi_EnumValue");
6667 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6668 0 : ndr->depth++;
6669 0 : if (flags & NDR_SET_VALUES) {
6670 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6671 : }
6672 0 : if (flags & NDR_IN) {
6673 0 : ndr_print_struct(ndr, "in", "clusapi_EnumValue");
6674 0 : ndr->depth++;
6675 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
6676 0 : ndr_print_uint32(ndr, "dwIndex", r->in.dwIndex);
6677 0 : ndr_print_ptr(ndr, "lpcbData", r->in.lpcbData);
6678 0 : ndr->depth++;
6679 0 : ndr_print_uint32(ndr, "lpcbData", *r->in.lpcbData);
6680 0 : ndr->depth--;
6681 0 : ndr->depth--;
6682 : }
6683 0 : if (flags & NDR_OUT) {
6684 0 : ndr_print_struct(ndr, "out", "clusapi_EnumValue");
6685 0 : ndr->depth++;
6686 0 : ndr_print_ptr(ndr, "lpValueName", r->out.lpValueName);
6687 0 : ndr->depth++;
6688 0 : ndr_print_ptr(ndr, "lpValueName", *r->out.lpValueName);
6689 0 : ndr->depth++;
6690 0 : if (*r->out.lpValueName) {
6691 0 : ndr_print_string(ndr, "lpValueName", *r->out.lpValueName);
6692 : }
6693 0 : ndr->depth--;
6694 0 : ndr->depth--;
6695 0 : ndr_print_ptr(ndr, "lpType", r->out.lpType);
6696 0 : ndr->depth++;
6697 0 : ndr_print_winreg_Type(ndr, "lpType", *r->out.lpType);
6698 0 : ndr->depth--;
6699 0 : ndr_print_ptr(ndr, "lpData", r->out.lpData);
6700 0 : ndr->depth++;
6701 0 : ndr_print_array_uint8(ndr, "lpData", r->out.lpData, *r->out.lpcbData);
6702 0 : ndr->depth--;
6703 0 : ndr_print_ptr(ndr, "lpcbData", r->out.lpcbData);
6704 0 : ndr->depth++;
6705 0 : ndr_print_uint32(ndr, "lpcbData", *r->out.lpcbData);
6706 0 : ndr->depth--;
6707 0 : ndr_print_ptr(ndr, "TotalSize", r->out.TotalSize);
6708 0 : ndr->depth++;
6709 0 : ndr_print_uint32(ndr, "TotalSize", *r->out.TotalSize);
6710 0 : ndr->depth--;
6711 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
6712 0 : ndr->depth++;
6713 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
6714 0 : ndr->depth--;
6715 0 : ndr_print_WERROR(ndr, "result", r->out.result);
6716 0 : ndr->depth--;
6717 : }
6718 0 : ndr->depth--;
6719 : }
6720 :
6721 0 : static enum ndr_err_code ndr_push_clusapi_CloseKey(struct ndr_push *ndr, int flags, const struct clusapi_CloseKey *r)
6722 : {
6723 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6724 0 : if (flags & NDR_IN) {
6725 0 : if (r->in.pKey == NULL) {
6726 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6727 : }
6728 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.pKey));
6729 : }
6730 0 : if (flags & NDR_OUT) {
6731 0 : if (r->out.pKey == NULL) {
6732 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6733 : }
6734 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.pKey));
6735 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6736 : }
6737 0 : return NDR_ERR_SUCCESS;
6738 : }
6739 :
6740 0 : static enum ndr_err_code ndr_pull_clusapi_CloseKey(struct ndr_pull *ndr, int flags, struct clusapi_CloseKey *r)
6741 : {
6742 0 : TALLOC_CTX *_mem_save_pKey_0 = NULL;
6743 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6744 0 : if (flags & NDR_IN) {
6745 0 : NDR_ZERO_STRUCT(r->out);
6746 :
6747 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6748 0 : NDR_PULL_ALLOC(ndr, r->in.pKey);
6749 : }
6750 0 : _mem_save_pKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
6751 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pKey, LIBNDR_FLAG_REF_ALLOC);
6752 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.pKey));
6753 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pKey_0, LIBNDR_FLAG_REF_ALLOC);
6754 0 : NDR_PULL_ALLOC(ndr, r->out.pKey);
6755 0 : *r->out.pKey = *r->in.pKey;
6756 : }
6757 0 : if (flags & NDR_OUT) {
6758 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6759 : if (r->in.pKey == NULL) {
6760 : NDR_PULL_ALLOC(ndr, r->in.pKey);
6761 : NDR_ZERO_STRUCTP(r->in.pKey);
6762 : }
6763 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6764 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6765 0 : NDR_PULL_ALLOC(ndr, r->out.pKey);
6766 : }
6767 0 : _mem_save_pKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
6768 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pKey, LIBNDR_FLAG_REF_ALLOC);
6769 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.pKey));
6770 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pKey_0, LIBNDR_FLAG_REF_ALLOC);
6771 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6772 : }
6773 0 : return NDR_ERR_SUCCESS;
6774 : }
6775 :
6776 0 : _PUBLIC_ void ndr_print_clusapi_CloseKey(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseKey *r)
6777 : {
6778 0 : ndr_print_struct(ndr, name, "clusapi_CloseKey");
6779 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6780 0 : ndr->depth++;
6781 0 : if (flags & NDR_SET_VALUES) {
6782 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6783 : }
6784 0 : if (flags & NDR_IN) {
6785 0 : ndr_print_struct(ndr, "in", "clusapi_CloseKey");
6786 0 : ndr->depth++;
6787 0 : ndr_print_ptr(ndr, "pKey", r->in.pKey);
6788 0 : ndr->depth++;
6789 0 : ndr_print_policy_handle(ndr, "pKey", r->in.pKey);
6790 0 : ndr->depth--;
6791 0 : ndr->depth--;
6792 : }
6793 0 : if (flags & NDR_OUT) {
6794 0 : ndr_print_struct(ndr, "out", "clusapi_CloseKey");
6795 0 : ndr->depth++;
6796 0 : ndr_print_ptr(ndr, "pKey", r->out.pKey);
6797 0 : ndr->depth++;
6798 0 : ndr_print_policy_handle(ndr, "pKey", r->out.pKey);
6799 0 : ndr->depth--;
6800 0 : ndr_print_WERROR(ndr, "result", r->out.result);
6801 0 : ndr->depth--;
6802 : }
6803 0 : ndr->depth--;
6804 : }
6805 :
6806 0 : static enum ndr_err_code ndr_push_clusapi_QueryInfoKey(struct ndr_push *ndr, int flags, const struct clusapi_QueryInfoKey *r)
6807 : {
6808 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6809 0 : if (flags & NDR_IN) {
6810 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6811 : }
6812 0 : if (flags & NDR_OUT) {
6813 0 : if (r->out.lpcSubKeys == NULL) {
6814 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6815 : }
6816 0 : if (r->out.lpcbMaxSubKeyLen == NULL) {
6817 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6818 : }
6819 0 : if (r->out.lpcValues == NULL) {
6820 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6821 : }
6822 0 : if (r->out.lpcbMaxValueNameLen == NULL) {
6823 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6824 : }
6825 0 : if (r->out.lpcbMaxValueLen == NULL) {
6826 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6827 : }
6828 0 : if (r->out.lpcbSecurityDescriptor == NULL) {
6829 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6830 : }
6831 0 : if (r->out.lpftLastWriteTime == NULL) {
6832 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6833 : }
6834 0 : if (r->out.rpc_status == NULL) {
6835 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6836 : }
6837 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcSubKeys));
6838 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbMaxSubKeyLen));
6839 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcValues));
6840 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbMaxValueNameLen));
6841 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbMaxValueLen));
6842 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbSecurityDescriptor));
6843 0 : NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, *r->out.lpftLastWriteTime));
6844 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
6845 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6846 : }
6847 0 : return NDR_ERR_SUCCESS;
6848 : }
6849 :
6850 0 : static enum ndr_err_code ndr_pull_clusapi_QueryInfoKey(struct ndr_pull *ndr, int flags, struct clusapi_QueryInfoKey *r)
6851 : {
6852 0 : TALLOC_CTX *_mem_save_lpcSubKeys_0 = NULL;
6853 0 : TALLOC_CTX *_mem_save_lpcbMaxSubKeyLen_0 = NULL;
6854 0 : TALLOC_CTX *_mem_save_lpcValues_0 = NULL;
6855 0 : TALLOC_CTX *_mem_save_lpcbMaxValueNameLen_0 = NULL;
6856 0 : TALLOC_CTX *_mem_save_lpcbMaxValueLen_0 = NULL;
6857 0 : TALLOC_CTX *_mem_save_lpcbSecurityDescriptor_0 = NULL;
6858 0 : TALLOC_CTX *_mem_save_lpftLastWriteTime_0 = NULL;
6859 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
6860 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6861 0 : if (flags & NDR_IN) {
6862 0 : NDR_ZERO_STRUCT(r->out);
6863 :
6864 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
6865 0 : NDR_PULL_ALLOC(ndr, r->out.lpcSubKeys);
6866 0 : NDR_ZERO_STRUCTP(r->out.lpcSubKeys);
6867 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbMaxSubKeyLen);
6868 0 : NDR_ZERO_STRUCTP(r->out.lpcbMaxSubKeyLen);
6869 0 : NDR_PULL_ALLOC(ndr, r->out.lpcValues);
6870 0 : NDR_ZERO_STRUCTP(r->out.lpcValues);
6871 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbMaxValueNameLen);
6872 0 : NDR_ZERO_STRUCTP(r->out.lpcbMaxValueNameLen);
6873 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbMaxValueLen);
6874 0 : NDR_ZERO_STRUCTP(r->out.lpcbMaxValueLen);
6875 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbSecurityDescriptor);
6876 0 : NDR_ZERO_STRUCTP(r->out.lpcbSecurityDescriptor);
6877 0 : NDR_PULL_ALLOC(ndr, r->out.lpftLastWriteTime);
6878 0 : NDR_ZERO_STRUCTP(r->out.lpftLastWriteTime);
6879 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6880 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
6881 : }
6882 0 : if (flags & NDR_OUT) {
6883 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6884 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6885 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6886 0 : NDR_PULL_ALLOC(ndr, r->out.lpcSubKeys);
6887 : }
6888 0 : _mem_save_lpcSubKeys_0 = NDR_PULL_GET_MEM_CTX(ndr);
6889 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcSubKeys, LIBNDR_FLAG_REF_ALLOC);
6890 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcSubKeys));
6891 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcSubKeys_0, LIBNDR_FLAG_REF_ALLOC);
6892 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6893 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbMaxSubKeyLen);
6894 : }
6895 0 : _mem_save_lpcbMaxSubKeyLen_0 = NDR_PULL_GET_MEM_CTX(ndr);
6896 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbMaxSubKeyLen, LIBNDR_FLAG_REF_ALLOC);
6897 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbMaxSubKeyLen));
6898 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbMaxSubKeyLen_0, LIBNDR_FLAG_REF_ALLOC);
6899 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6900 0 : NDR_PULL_ALLOC(ndr, r->out.lpcValues);
6901 : }
6902 0 : _mem_save_lpcValues_0 = NDR_PULL_GET_MEM_CTX(ndr);
6903 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcValues, LIBNDR_FLAG_REF_ALLOC);
6904 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcValues));
6905 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcValues_0, LIBNDR_FLAG_REF_ALLOC);
6906 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6907 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbMaxValueNameLen);
6908 : }
6909 0 : _mem_save_lpcbMaxValueNameLen_0 = NDR_PULL_GET_MEM_CTX(ndr);
6910 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbMaxValueNameLen, LIBNDR_FLAG_REF_ALLOC);
6911 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbMaxValueNameLen));
6912 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbMaxValueNameLen_0, LIBNDR_FLAG_REF_ALLOC);
6913 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6914 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbMaxValueLen);
6915 : }
6916 0 : _mem_save_lpcbMaxValueLen_0 = NDR_PULL_GET_MEM_CTX(ndr);
6917 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbMaxValueLen, LIBNDR_FLAG_REF_ALLOC);
6918 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbMaxValueLen));
6919 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbMaxValueLen_0, LIBNDR_FLAG_REF_ALLOC);
6920 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6921 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbSecurityDescriptor);
6922 : }
6923 0 : _mem_save_lpcbSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
6924 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbSecurityDescriptor, LIBNDR_FLAG_REF_ALLOC);
6925 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbSecurityDescriptor));
6926 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbSecurityDescriptor_0, LIBNDR_FLAG_REF_ALLOC);
6927 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6928 0 : NDR_PULL_ALLOC(ndr, r->out.lpftLastWriteTime);
6929 : }
6930 0 : _mem_save_lpftLastWriteTime_0 = NDR_PULL_GET_MEM_CTX(ndr);
6931 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpftLastWriteTime, LIBNDR_FLAG_REF_ALLOC);
6932 0 : NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, r->out.lpftLastWriteTime));
6933 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpftLastWriteTime_0, LIBNDR_FLAG_REF_ALLOC);
6934 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6935 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
6936 : }
6937 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
6938 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
6939 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
6940 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
6941 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6942 : }
6943 0 : return NDR_ERR_SUCCESS;
6944 : }
6945 :
6946 0 : _PUBLIC_ void ndr_print_clusapi_QueryInfoKey(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_QueryInfoKey *r)
6947 : {
6948 0 : ndr_print_struct(ndr, name, "clusapi_QueryInfoKey");
6949 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6950 0 : ndr->depth++;
6951 0 : if (flags & NDR_SET_VALUES) {
6952 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6953 : }
6954 0 : if (flags & NDR_IN) {
6955 0 : ndr_print_struct(ndr, "in", "clusapi_QueryInfoKey");
6956 0 : ndr->depth++;
6957 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
6958 0 : ndr->depth--;
6959 : }
6960 0 : if (flags & NDR_OUT) {
6961 0 : ndr_print_struct(ndr, "out", "clusapi_QueryInfoKey");
6962 0 : ndr->depth++;
6963 0 : ndr_print_ptr(ndr, "lpcSubKeys", r->out.lpcSubKeys);
6964 0 : ndr->depth++;
6965 0 : ndr_print_uint32(ndr, "lpcSubKeys", *r->out.lpcSubKeys);
6966 0 : ndr->depth--;
6967 0 : ndr_print_ptr(ndr, "lpcbMaxSubKeyLen", r->out.lpcbMaxSubKeyLen);
6968 0 : ndr->depth++;
6969 0 : ndr_print_uint32(ndr, "lpcbMaxSubKeyLen", *r->out.lpcbMaxSubKeyLen);
6970 0 : ndr->depth--;
6971 0 : ndr_print_ptr(ndr, "lpcValues", r->out.lpcValues);
6972 0 : ndr->depth++;
6973 0 : ndr_print_uint32(ndr, "lpcValues", *r->out.lpcValues);
6974 0 : ndr->depth--;
6975 0 : ndr_print_ptr(ndr, "lpcbMaxValueNameLen", r->out.lpcbMaxValueNameLen);
6976 0 : ndr->depth++;
6977 0 : ndr_print_uint32(ndr, "lpcbMaxValueNameLen", *r->out.lpcbMaxValueNameLen);
6978 0 : ndr->depth--;
6979 0 : ndr_print_ptr(ndr, "lpcbMaxValueLen", r->out.lpcbMaxValueLen);
6980 0 : ndr->depth++;
6981 0 : ndr_print_uint32(ndr, "lpcbMaxValueLen", *r->out.lpcbMaxValueLen);
6982 0 : ndr->depth--;
6983 0 : ndr_print_ptr(ndr, "lpcbSecurityDescriptor", r->out.lpcbSecurityDescriptor);
6984 0 : ndr->depth++;
6985 0 : ndr_print_uint32(ndr, "lpcbSecurityDescriptor", *r->out.lpcbSecurityDescriptor);
6986 0 : ndr->depth--;
6987 0 : ndr_print_ptr(ndr, "lpftLastWriteTime", r->out.lpftLastWriteTime);
6988 0 : ndr->depth++;
6989 0 : ndr_print_NTTIME(ndr, "lpftLastWriteTime", *r->out.lpftLastWriteTime);
6990 0 : ndr->depth--;
6991 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
6992 0 : ndr->depth++;
6993 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
6994 0 : ndr->depth--;
6995 0 : ndr_print_WERROR(ndr, "result", r->out.result);
6996 0 : ndr->depth--;
6997 : }
6998 0 : ndr->depth--;
6999 : }
7000 :
7001 0 : static enum ndr_err_code ndr_push_clusapi_SetKeySecurity(struct ndr_push *ndr, int flags, const struct clusapi_SetKeySecurity *r)
7002 : {
7003 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7004 0 : if (flags & NDR_IN) {
7005 0 : if (r->in.pRpcSecurityDescriptor == NULL) {
7006 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7007 : }
7008 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
7009 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.SecurityInformation));
7010 0 : NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pRpcSecurityDescriptor));
7011 : }
7012 0 : if (flags & NDR_OUT) {
7013 0 : if (r->out.rpc_status == NULL) {
7014 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7015 : }
7016 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
7017 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
7018 : }
7019 0 : return NDR_ERR_SUCCESS;
7020 : }
7021 :
7022 0 : static enum ndr_err_code ndr_pull_clusapi_SetKeySecurity(struct ndr_pull *ndr, int flags, struct clusapi_SetKeySecurity *r)
7023 : {
7024 0 : TALLOC_CTX *_mem_save_pRpcSecurityDescriptor_0 = NULL;
7025 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
7026 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7027 0 : if (flags & NDR_IN) {
7028 0 : NDR_ZERO_STRUCT(r->out);
7029 :
7030 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
7031 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.SecurityInformation));
7032 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7033 0 : NDR_PULL_ALLOC(ndr, r->in.pRpcSecurityDescriptor);
7034 : }
7035 0 : _mem_save_pRpcSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
7036 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pRpcSecurityDescriptor, LIBNDR_FLAG_REF_ALLOC);
7037 0 : NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pRpcSecurityDescriptor));
7038 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRpcSecurityDescriptor_0, LIBNDR_FLAG_REF_ALLOC);
7039 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7040 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
7041 : }
7042 0 : if (flags & NDR_OUT) {
7043 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7044 : if (r->in.pRpcSecurityDescriptor == NULL) {
7045 : NDR_PULL_ALLOC(ndr, r->in.pRpcSecurityDescriptor);
7046 : NDR_ZERO_STRUCTP(r->in.pRpcSecurityDescriptor);
7047 : }
7048 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7049 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7050 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7051 : }
7052 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7053 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
7054 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
7055 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
7056 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
7057 : }
7058 0 : return NDR_ERR_SUCCESS;
7059 : }
7060 :
7061 0 : _PUBLIC_ void ndr_print_clusapi_SetKeySecurity(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetKeySecurity *r)
7062 : {
7063 0 : ndr_print_struct(ndr, name, "clusapi_SetKeySecurity");
7064 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7065 0 : ndr->depth++;
7066 0 : if (flags & NDR_SET_VALUES) {
7067 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7068 : }
7069 0 : if (flags & NDR_IN) {
7070 0 : ndr_print_struct(ndr, "in", "clusapi_SetKeySecurity");
7071 0 : ndr->depth++;
7072 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
7073 0 : ndr_print_uint32(ndr, "SecurityInformation", r->in.SecurityInformation);
7074 0 : ndr_print_ptr(ndr, "pRpcSecurityDescriptor", r->in.pRpcSecurityDescriptor);
7075 0 : ndr->depth++;
7076 0 : ndr_print_RPC_SECURITY_DESCRIPTOR(ndr, "pRpcSecurityDescriptor", r->in.pRpcSecurityDescriptor);
7077 0 : ndr->depth--;
7078 0 : ndr->depth--;
7079 : }
7080 0 : if (flags & NDR_OUT) {
7081 0 : ndr_print_struct(ndr, "out", "clusapi_SetKeySecurity");
7082 0 : ndr->depth++;
7083 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
7084 0 : ndr->depth++;
7085 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
7086 0 : ndr->depth--;
7087 0 : ndr_print_WERROR(ndr, "result", r->out.result);
7088 0 : ndr->depth--;
7089 : }
7090 0 : ndr->depth--;
7091 : }
7092 :
7093 0 : static enum ndr_err_code ndr_push_clusapi_GetKeySecurity(struct ndr_push *ndr, int flags, const struct clusapi_GetKeySecurity *r)
7094 : {
7095 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7096 0 : if (flags & NDR_IN) {
7097 0 : if (r->in.pRpcSecurityDescriptor == NULL) {
7098 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7099 : }
7100 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
7101 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.SecurityInformation));
7102 0 : NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pRpcSecurityDescriptor));
7103 : }
7104 0 : if (flags & NDR_OUT) {
7105 0 : if (r->out.pRpcSecurityDescriptor == NULL) {
7106 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7107 : }
7108 0 : if (r->out.rpc_status == NULL) {
7109 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7110 : }
7111 0 : NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.pRpcSecurityDescriptor));
7112 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
7113 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
7114 : }
7115 0 : return NDR_ERR_SUCCESS;
7116 : }
7117 :
7118 0 : static enum ndr_err_code ndr_pull_clusapi_GetKeySecurity(struct ndr_pull *ndr, int flags, struct clusapi_GetKeySecurity *r)
7119 : {
7120 0 : TALLOC_CTX *_mem_save_pRpcSecurityDescriptor_0 = NULL;
7121 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
7122 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7123 0 : if (flags & NDR_IN) {
7124 0 : NDR_ZERO_STRUCT(r->out);
7125 :
7126 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
7127 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.SecurityInformation));
7128 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7129 0 : NDR_PULL_ALLOC(ndr, r->in.pRpcSecurityDescriptor);
7130 : }
7131 0 : _mem_save_pRpcSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
7132 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pRpcSecurityDescriptor, LIBNDR_FLAG_REF_ALLOC);
7133 0 : NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pRpcSecurityDescriptor));
7134 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRpcSecurityDescriptor_0, LIBNDR_FLAG_REF_ALLOC);
7135 0 : NDR_PULL_ALLOC(ndr, r->out.pRpcSecurityDescriptor);
7136 0 : *r->out.pRpcSecurityDescriptor = *r->in.pRpcSecurityDescriptor;
7137 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7138 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
7139 : }
7140 0 : if (flags & NDR_OUT) {
7141 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7142 : if (r->in.pRpcSecurityDescriptor == NULL) {
7143 : NDR_PULL_ALLOC(ndr, r->in.pRpcSecurityDescriptor);
7144 : NDR_ZERO_STRUCTP(r->in.pRpcSecurityDescriptor);
7145 : }
7146 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7147 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7148 0 : NDR_PULL_ALLOC(ndr, r->out.pRpcSecurityDescriptor);
7149 : }
7150 0 : _mem_save_pRpcSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
7151 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pRpcSecurityDescriptor, LIBNDR_FLAG_REF_ALLOC);
7152 0 : NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.pRpcSecurityDescriptor));
7153 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRpcSecurityDescriptor_0, LIBNDR_FLAG_REF_ALLOC);
7154 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7155 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7156 : }
7157 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7158 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
7159 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
7160 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
7161 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
7162 : }
7163 0 : return NDR_ERR_SUCCESS;
7164 : }
7165 :
7166 0 : _PUBLIC_ void ndr_print_clusapi_GetKeySecurity(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetKeySecurity *r)
7167 : {
7168 0 : ndr_print_struct(ndr, name, "clusapi_GetKeySecurity");
7169 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7170 0 : ndr->depth++;
7171 0 : if (flags & NDR_SET_VALUES) {
7172 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7173 : }
7174 0 : if (flags & NDR_IN) {
7175 0 : ndr_print_struct(ndr, "in", "clusapi_GetKeySecurity");
7176 0 : ndr->depth++;
7177 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
7178 0 : ndr_print_uint32(ndr, "SecurityInformation", r->in.SecurityInformation);
7179 0 : ndr_print_ptr(ndr, "pRpcSecurityDescriptor", r->in.pRpcSecurityDescriptor);
7180 0 : ndr->depth++;
7181 0 : ndr_print_RPC_SECURITY_DESCRIPTOR(ndr, "pRpcSecurityDescriptor", r->in.pRpcSecurityDescriptor);
7182 0 : ndr->depth--;
7183 0 : ndr->depth--;
7184 : }
7185 0 : if (flags & NDR_OUT) {
7186 0 : ndr_print_struct(ndr, "out", "clusapi_GetKeySecurity");
7187 0 : ndr->depth++;
7188 0 : ndr_print_ptr(ndr, "pRpcSecurityDescriptor", r->out.pRpcSecurityDescriptor);
7189 0 : ndr->depth++;
7190 0 : ndr_print_RPC_SECURITY_DESCRIPTOR(ndr, "pRpcSecurityDescriptor", r->out.pRpcSecurityDescriptor);
7191 0 : ndr->depth--;
7192 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
7193 0 : ndr->depth++;
7194 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
7195 0 : ndr->depth--;
7196 0 : ndr_print_WERROR(ndr, "result", r->out.result);
7197 0 : ndr->depth--;
7198 : }
7199 0 : ndr->depth--;
7200 : }
7201 :
7202 0 : static enum ndr_err_code ndr_push_clusapi_OpenGroup(struct ndr_push *ndr, int flags, const struct clusapi_OpenGroup *r)
7203 : {
7204 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7205 0 : if (flags & NDR_IN) {
7206 0 : if (r->in.lpszGroupName == NULL) {
7207 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7208 : }
7209 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
7210 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
7211 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
7212 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
7213 : }
7214 0 : if (flags & NDR_OUT) {
7215 0 : if (r->out.Status == NULL) {
7216 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7217 : }
7218 0 : if (r->out.rpc_status == NULL) {
7219 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7220 : }
7221 0 : if (r->out.hGroup == NULL) {
7222 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7223 : }
7224 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
7225 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
7226 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
7227 : }
7228 0 : return NDR_ERR_SUCCESS;
7229 : }
7230 :
7231 0 : static enum ndr_err_code ndr_pull_clusapi_OpenGroup(struct ndr_pull *ndr, int flags, struct clusapi_OpenGroup *r)
7232 : {
7233 0 : uint32_t size_lpszGroupName_1 = 0;
7234 0 : uint32_t length_lpszGroupName_1 = 0;
7235 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
7236 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
7237 0 : TALLOC_CTX *_mem_save_hGroup_0 = NULL;
7238 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7239 0 : if (flags & NDR_IN) {
7240 0 : NDR_ZERO_STRUCT(r->out);
7241 :
7242 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
7243 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
7244 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
7245 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
7246 0 : if (length_lpszGroupName_1 > size_lpszGroupName_1) {
7247 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszGroupName_1, length_lpszGroupName_1);
7248 : }
7249 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
7250 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
7251 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
7252 0 : NDR_ZERO_STRUCTP(r->out.Status);
7253 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7254 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
7255 0 : NDR_PULL_ALLOC(ndr, r->out.hGroup);
7256 0 : NDR_ZERO_STRUCTP(r->out.hGroup);
7257 : }
7258 0 : if (flags & NDR_OUT) {
7259 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7260 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7261 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7262 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
7263 : }
7264 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7265 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
7266 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
7267 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
7268 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7269 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7270 : }
7271 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7272 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
7273 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
7274 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
7275 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7276 0 : NDR_PULL_ALLOC(ndr, r->out.hGroup);
7277 : }
7278 0 : _mem_save_hGroup_0 = NDR_PULL_GET_MEM_CTX(ndr);
7279 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroup, LIBNDR_FLAG_REF_ALLOC);
7280 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
7281 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroup_0, LIBNDR_FLAG_REF_ALLOC);
7282 : }
7283 0 : return NDR_ERR_SUCCESS;
7284 : }
7285 :
7286 0 : _PUBLIC_ void ndr_print_clusapi_OpenGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenGroup *r)
7287 : {
7288 0 : ndr_print_struct(ndr, name, "clusapi_OpenGroup");
7289 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7290 0 : ndr->depth++;
7291 0 : if (flags & NDR_SET_VALUES) {
7292 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7293 : }
7294 0 : if (flags & NDR_IN) {
7295 0 : ndr_print_struct(ndr, "in", "clusapi_OpenGroup");
7296 0 : ndr->depth++;
7297 0 : ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
7298 0 : ndr->depth++;
7299 0 : ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
7300 0 : ndr->depth--;
7301 0 : ndr->depth--;
7302 : }
7303 0 : if (flags & NDR_OUT) {
7304 0 : ndr_print_struct(ndr, "out", "clusapi_OpenGroup");
7305 0 : ndr->depth++;
7306 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
7307 0 : ndr->depth++;
7308 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
7309 0 : ndr->depth--;
7310 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
7311 0 : ndr->depth++;
7312 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
7313 0 : ndr->depth--;
7314 0 : ndr_print_ptr(ndr, "hGroup", r->out.hGroup);
7315 0 : ndr->depth++;
7316 0 : ndr_print_policy_handle(ndr, "hGroup", r->out.hGroup);
7317 0 : ndr->depth--;
7318 0 : ndr->depth--;
7319 : }
7320 0 : ndr->depth--;
7321 : }
7322 :
7323 0 : static enum ndr_err_code ndr_push_clusapi_CreateGroup(struct ndr_push *ndr, int flags, const struct clusapi_CreateGroup *r)
7324 : {
7325 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7326 0 : if (flags & NDR_IN) {
7327 0 : if (r->in.lpszGroupName == NULL) {
7328 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7329 : }
7330 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
7331 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
7332 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
7333 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
7334 : }
7335 0 : if (flags & NDR_OUT) {
7336 0 : if (r->out.Status == NULL) {
7337 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7338 : }
7339 0 : if (r->out.rpc_status == NULL) {
7340 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7341 : }
7342 0 : if (r->out.hGroup == NULL) {
7343 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7344 : }
7345 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
7346 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
7347 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
7348 : }
7349 0 : return NDR_ERR_SUCCESS;
7350 : }
7351 :
7352 0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroup(struct ndr_pull *ndr, int flags, struct clusapi_CreateGroup *r)
7353 : {
7354 0 : uint32_t size_lpszGroupName_1 = 0;
7355 0 : uint32_t length_lpszGroupName_1 = 0;
7356 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
7357 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
7358 0 : TALLOC_CTX *_mem_save_hGroup_0 = NULL;
7359 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7360 0 : if (flags & NDR_IN) {
7361 0 : NDR_ZERO_STRUCT(r->out);
7362 :
7363 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
7364 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
7365 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
7366 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
7367 0 : if (length_lpszGroupName_1 > size_lpszGroupName_1) {
7368 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszGroupName_1, length_lpszGroupName_1);
7369 : }
7370 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
7371 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
7372 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
7373 0 : NDR_ZERO_STRUCTP(r->out.Status);
7374 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7375 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
7376 0 : NDR_PULL_ALLOC(ndr, r->out.hGroup);
7377 0 : NDR_ZERO_STRUCTP(r->out.hGroup);
7378 : }
7379 0 : if (flags & NDR_OUT) {
7380 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7381 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7382 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7383 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
7384 : }
7385 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7386 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
7387 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
7388 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
7389 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7390 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7391 : }
7392 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7393 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
7394 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
7395 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
7396 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7397 0 : NDR_PULL_ALLOC(ndr, r->out.hGroup);
7398 : }
7399 0 : _mem_save_hGroup_0 = NDR_PULL_GET_MEM_CTX(ndr);
7400 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroup, LIBNDR_FLAG_REF_ALLOC);
7401 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
7402 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroup_0, LIBNDR_FLAG_REF_ALLOC);
7403 : }
7404 0 : return NDR_ERR_SUCCESS;
7405 : }
7406 :
7407 0 : _PUBLIC_ void ndr_print_clusapi_CreateGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateGroup *r)
7408 : {
7409 0 : ndr_print_struct(ndr, name, "clusapi_CreateGroup");
7410 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7411 0 : ndr->depth++;
7412 0 : if (flags & NDR_SET_VALUES) {
7413 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7414 : }
7415 0 : if (flags & NDR_IN) {
7416 0 : ndr_print_struct(ndr, "in", "clusapi_CreateGroup");
7417 0 : ndr->depth++;
7418 0 : ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
7419 0 : ndr->depth++;
7420 0 : ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
7421 0 : ndr->depth--;
7422 0 : ndr->depth--;
7423 : }
7424 0 : if (flags & NDR_OUT) {
7425 0 : ndr_print_struct(ndr, "out", "clusapi_CreateGroup");
7426 0 : ndr->depth++;
7427 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
7428 0 : ndr->depth++;
7429 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
7430 0 : ndr->depth--;
7431 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
7432 0 : ndr->depth++;
7433 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
7434 0 : ndr->depth--;
7435 0 : ndr_print_ptr(ndr, "hGroup", r->out.hGroup);
7436 0 : ndr->depth++;
7437 0 : ndr_print_policy_handle(ndr, "hGroup", r->out.hGroup);
7438 0 : ndr->depth--;
7439 0 : ndr->depth--;
7440 : }
7441 0 : ndr->depth--;
7442 : }
7443 :
7444 0 : static enum ndr_err_code ndr_push_clusapi_DeleteGroup(struct ndr_push *ndr, int flags, const struct clusapi_DeleteGroup *r)
7445 : {
7446 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7447 0 : if (flags & NDR_IN) {
7448 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
7449 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.force));
7450 : }
7451 0 : if (flags & NDR_OUT) {
7452 0 : if (r->out.rpc_status == NULL) {
7453 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7454 : }
7455 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
7456 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
7457 : }
7458 0 : return NDR_ERR_SUCCESS;
7459 : }
7460 :
7461 0 : static enum ndr_err_code ndr_pull_clusapi_DeleteGroup(struct ndr_pull *ndr, int flags, struct clusapi_DeleteGroup *r)
7462 : {
7463 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
7464 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7465 0 : if (flags & NDR_IN) {
7466 0 : NDR_ZERO_STRUCT(r->out);
7467 :
7468 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
7469 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.force));
7470 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7471 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
7472 : }
7473 0 : if (flags & NDR_OUT) {
7474 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7475 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7476 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7477 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7478 : }
7479 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7480 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
7481 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
7482 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
7483 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
7484 : }
7485 0 : return NDR_ERR_SUCCESS;
7486 : }
7487 :
7488 0 : _PUBLIC_ void ndr_print_clusapi_DeleteGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_DeleteGroup *r)
7489 : {
7490 0 : ndr_print_struct(ndr, name, "clusapi_DeleteGroup");
7491 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7492 0 : ndr->depth++;
7493 0 : if (flags & NDR_SET_VALUES) {
7494 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7495 : }
7496 0 : if (flags & NDR_IN) {
7497 0 : ndr_print_struct(ndr, "in", "clusapi_DeleteGroup");
7498 0 : ndr->depth++;
7499 0 : ndr_print_policy_handle(ndr, "Group", &r->in.Group);
7500 0 : ndr_print_uint8(ndr, "force", r->in.force);
7501 0 : ndr->depth--;
7502 : }
7503 0 : if (flags & NDR_OUT) {
7504 0 : ndr_print_struct(ndr, "out", "clusapi_DeleteGroup");
7505 0 : ndr->depth++;
7506 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
7507 0 : ndr->depth++;
7508 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
7509 0 : ndr->depth--;
7510 0 : ndr_print_WERROR(ndr, "result", r->out.result);
7511 0 : ndr->depth--;
7512 : }
7513 0 : ndr->depth--;
7514 : }
7515 :
7516 0 : static enum ndr_err_code ndr_push_clusapi_CloseGroup(struct ndr_push *ndr, int flags, const struct clusapi_CloseGroup *r)
7517 : {
7518 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7519 0 : if (flags & NDR_IN) {
7520 0 : if (r->in.Group == NULL) {
7521 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7522 : }
7523 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Group));
7524 : }
7525 0 : if (flags & NDR_OUT) {
7526 0 : if (r->out.Group == NULL) {
7527 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7528 : }
7529 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Group));
7530 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
7531 : }
7532 0 : return NDR_ERR_SUCCESS;
7533 : }
7534 :
7535 0 : static enum ndr_err_code ndr_pull_clusapi_CloseGroup(struct ndr_pull *ndr, int flags, struct clusapi_CloseGroup *r)
7536 : {
7537 0 : TALLOC_CTX *_mem_save_Group_0 = NULL;
7538 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7539 0 : if (flags & NDR_IN) {
7540 0 : NDR_ZERO_STRUCT(r->out);
7541 :
7542 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7543 0 : NDR_PULL_ALLOC(ndr, r->in.Group);
7544 : }
7545 0 : _mem_save_Group_0 = NDR_PULL_GET_MEM_CTX(ndr);
7546 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.Group, LIBNDR_FLAG_REF_ALLOC);
7547 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Group));
7548 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Group_0, LIBNDR_FLAG_REF_ALLOC);
7549 0 : NDR_PULL_ALLOC(ndr, r->out.Group);
7550 0 : *r->out.Group = *r->in.Group;
7551 : }
7552 0 : if (flags & NDR_OUT) {
7553 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7554 : if (r->in.Group == NULL) {
7555 : NDR_PULL_ALLOC(ndr, r->in.Group);
7556 : NDR_ZERO_STRUCTP(r->in.Group);
7557 : }
7558 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7559 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7560 0 : NDR_PULL_ALLOC(ndr, r->out.Group);
7561 : }
7562 0 : _mem_save_Group_0 = NDR_PULL_GET_MEM_CTX(ndr);
7563 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Group, LIBNDR_FLAG_REF_ALLOC);
7564 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Group));
7565 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Group_0, LIBNDR_FLAG_REF_ALLOC);
7566 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
7567 : }
7568 0 : return NDR_ERR_SUCCESS;
7569 : }
7570 :
7571 0 : _PUBLIC_ void ndr_print_clusapi_CloseGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseGroup *r)
7572 : {
7573 0 : ndr_print_struct(ndr, name, "clusapi_CloseGroup");
7574 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7575 0 : ndr->depth++;
7576 0 : if (flags & NDR_SET_VALUES) {
7577 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7578 : }
7579 0 : if (flags & NDR_IN) {
7580 0 : ndr_print_struct(ndr, "in", "clusapi_CloseGroup");
7581 0 : ndr->depth++;
7582 0 : ndr_print_ptr(ndr, "Group", r->in.Group);
7583 0 : ndr->depth++;
7584 0 : ndr_print_policy_handle(ndr, "Group", r->in.Group);
7585 0 : ndr->depth--;
7586 0 : ndr->depth--;
7587 : }
7588 0 : if (flags & NDR_OUT) {
7589 0 : ndr_print_struct(ndr, "out", "clusapi_CloseGroup");
7590 0 : ndr->depth++;
7591 0 : ndr_print_ptr(ndr, "Group", r->out.Group);
7592 0 : ndr->depth++;
7593 0 : ndr_print_policy_handle(ndr, "Group", r->out.Group);
7594 0 : ndr->depth--;
7595 0 : ndr_print_WERROR(ndr, "result", r->out.result);
7596 0 : ndr->depth--;
7597 : }
7598 0 : ndr->depth--;
7599 : }
7600 :
7601 0 : static enum ndr_err_code ndr_push_clusapi_GetGroupState(struct ndr_push *ndr, int flags, const struct clusapi_GetGroupState *r)
7602 : {
7603 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7604 0 : if (flags & NDR_IN) {
7605 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
7606 : }
7607 0 : if (flags & NDR_OUT) {
7608 0 : if (r->out.State == NULL) {
7609 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7610 : }
7611 0 : if (r->out.NodeName == NULL) {
7612 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7613 : }
7614 0 : if (r->out.rpc_status == NULL) {
7615 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7616 : }
7617 0 : NDR_CHECK(ndr_push_clusapi_ClusterGroupState(ndr, NDR_SCALARS, *r->out.State));
7618 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.NodeName));
7619 0 : if (*r->out.NodeName) {
7620 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
7621 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
7622 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
7623 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.NodeName, ndr_charset_length(*r->out.NodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
7624 : }
7625 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
7626 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
7627 : }
7628 0 : return NDR_ERR_SUCCESS;
7629 : }
7630 :
7631 0 : static enum ndr_err_code ndr_pull_clusapi_GetGroupState(struct ndr_pull *ndr, int flags, struct clusapi_GetGroupState *r)
7632 : {
7633 : uint32_t _ptr_NodeName;
7634 0 : uint32_t size_NodeName_2 = 0;
7635 0 : uint32_t length_NodeName_2 = 0;
7636 0 : TALLOC_CTX *_mem_save_State_0 = NULL;
7637 0 : TALLOC_CTX *_mem_save_NodeName_0 = NULL;
7638 0 : TALLOC_CTX *_mem_save_NodeName_1 = NULL;
7639 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
7640 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7641 0 : if (flags & NDR_IN) {
7642 0 : NDR_ZERO_STRUCT(r->out);
7643 :
7644 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
7645 0 : NDR_PULL_ALLOC(ndr, r->out.State);
7646 0 : NDR_ZERO_STRUCTP(r->out.State);
7647 0 : NDR_PULL_ALLOC(ndr, r->out.NodeName);
7648 0 : NDR_ZERO_STRUCTP(r->out.NodeName);
7649 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7650 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
7651 : }
7652 0 : if (flags & NDR_OUT) {
7653 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7654 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7655 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7656 0 : NDR_PULL_ALLOC(ndr, r->out.State);
7657 : }
7658 0 : _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
7659 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
7660 0 : NDR_CHECK(ndr_pull_clusapi_ClusterGroupState(ndr, NDR_SCALARS, r->out.State));
7661 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
7662 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7663 0 : NDR_PULL_ALLOC(ndr, r->out.NodeName);
7664 : }
7665 0 : _mem_save_NodeName_0 = NDR_PULL_GET_MEM_CTX(ndr);
7666 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.NodeName, LIBNDR_FLAG_REF_ALLOC);
7667 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_NodeName));
7668 0 : if (_ptr_NodeName) {
7669 0 : NDR_PULL_ALLOC(ndr, *r->out.NodeName);
7670 : } else {
7671 0 : *r->out.NodeName = NULL;
7672 : }
7673 0 : if (*r->out.NodeName) {
7674 0 : _mem_save_NodeName_1 = NDR_PULL_GET_MEM_CTX(ndr);
7675 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.NodeName, 0);
7676 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.NodeName));
7677 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.NodeName));
7678 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.NodeName, &size_NodeName_2));
7679 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.NodeName, &length_NodeName_2));
7680 0 : if (length_NodeName_2 > size_NodeName_2) {
7681 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_NodeName_2, length_NodeName_2);
7682 : }
7683 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_NodeName_2, sizeof(uint16_t)));
7684 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.NodeName, length_NodeName_2, sizeof(uint16_t), CH_UTF16));
7685 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_1, 0);
7686 : }
7687 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_0, LIBNDR_FLAG_REF_ALLOC);
7688 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7689 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7690 : }
7691 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7692 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
7693 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
7694 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
7695 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
7696 : }
7697 0 : return NDR_ERR_SUCCESS;
7698 : }
7699 :
7700 0 : _PUBLIC_ void ndr_print_clusapi_GetGroupState(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetGroupState *r)
7701 : {
7702 0 : ndr_print_struct(ndr, name, "clusapi_GetGroupState");
7703 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7704 0 : ndr->depth++;
7705 0 : if (flags & NDR_SET_VALUES) {
7706 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7707 : }
7708 0 : if (flags & NDR_IN) {
7709 0 : ndr_print_struct(ndr, "in", "clusapi_GetGroupState");
7710 0 : ndr->depth++;
7711 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
7712 0 : ndr->depth--;
7713 : }
7714 0 : if (flags & NDR_OUT) {
7715 0 : ndr_print_struct(ndr, "out", "clusapi_GetGroupState");
7716 0 : ndr->depth++;
7717 0 : ndr_print_ptr(ndr, "State", r->out.State);
7718 0 : ndr->depth++;
7719 0 : ndr_print_clusapi_ClusterGroupState(ndr, "State", *r->out.State);
7720 0 : ndr->depth--;
7721 0 : ndr_print_ptr(ndr, "NodeName", r->out.NodeName);
7722 0 : ndr->depth++;
7723 0 : ndr_print_ptr(ndr, "NodeName", *r->out.NodeName);
7724 0 : ndr->depth++;
7725 0 : if (*r->out.NodeName) {
7726 0 : ndr_print_string(ndr, "NodeName", *r->out.NodeName);
7727 : }
7728 0 : ndr->depth--;
7729 0 : ndr->depth--;
7730 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
7731 0 : ndr->depth++;
7732 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
7733 0 : ndr->depth--;
7734 0 : ndr_print_WERROR(ndr, "result", r->out.result);
7735 0 : ndr->depth--;
7736 : }
7737 0 : ndr->depth--;
7738 : }
7739 :
7740 0 : static enum ndr_err_code ndr_push_clusapi_SetGroupName(struct ndr_push *ndr, int flags, const struct clusapi_SetGroupName *r)
7741 : {
7742 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7743 0 : if (flags & NDR_IN) {
7744 0 : if (r->in.lpszGroupName == NULL) {
7745 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7746 : }
7747 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
7748 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
7749 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
7750 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
7751 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
7752 : }
7753 0 : if (flags & NDR_OUT) {
7754 0 : if (r->out.rpc_status == NULL) {
7755 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7756 : }
7757 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
7758 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
7759 : }
7760 0 : return NDR_ERR_SUCCESS;
7761 : }
7762 :
7763 0 : static enum ndr_err_code ndr_pull_clusapi_SetGroupName(struct ndr_pull *ndr, int flags, struct clusapi_SetGroupName *r)
7764 : {
7765 0 : uint32_t size_lpszGroupName_1 = 0;
7766 0 : uint32_t length_lpszGroupName_1 = 0;
7767 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
7768 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7769 0 : if (flags & NDR_IN) {
7770 0 : NDR_ZERO_STRUCT(r->out);
7771 :
7772 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
7773 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
7774 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
7775 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
7776 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
7777 0 : if (length_lpszGroupName_1 > size_lpszGroupName_1) {
7778 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszGroupName_1, length_lpszGroupName_1);
7779 : }
7780 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
7781 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
7782 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7783 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
7784 : }
7785 0 : if (flags & NDR_OUT) {
7786 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7787 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7788 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7789 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7790 : }
7791 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7792 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
7793 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
7794 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
7795 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
7796 : }
7797 0 : return NDR_ERR_SUCCESS;
7798 : }
7799 :
7800 0 : _PUBLIC_ void ndr_print_clusapi_SetGroupName(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetGroupName *r)
7801 : {
7802 0 : ndr_print_struct(ndr, name, "clusapi_SetGroupName");
7803 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7804 0 : ndr->depth++;
7805 0 : if (flags & NDR_SET_VALUES) {
7806 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7807 : }
7808 0 : if (flags & NDR_IN) {
7809 0 : ndr_print_struct(ndr, "in", "clusapi_SetGroupName");
7810 0 : ndr->depth++;
7811 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
7812 0 : ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
7813 0 : ndr->depth++;
7814 0 : ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
7815 0 : ndr->depth--;
7816 0 : ndr->depth--;
7817 : }
7818 0 : if (flags & NDR_OUT) {
7819 0 : ndr_print_struct(ndr, "out", "clusapi_SetGroupName");
7820 0 : ndr->depth++;
7821 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
7822 0 : ndr->depth++;
7823 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
7824 0 : ndr->depth--;
7825 0 : ndr_print_WERROR(ndr, "result", r->out.result);
7826 0 : ndr->depth--;
7827 : }
7828 0 : ndr->depth--;
7829 : }
7830 :
7831 0 : static enum ndr_err_code ndr_push_clusapi_GetGroupId(struct ndr_push *ndr, int flags, const struct clusapi_GetGroupId *r)
7832 : {
7833 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7834 0 : if (flags & NDR_IN) {
7835 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
7836 : }
7837 0 : if (flags & NDR_OUT) {
7838 0 : if (r->out.pGuid == NULL) {
7839 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7840 : }
7841 0 : if (r->out.rpc_status == NULL) {
7842 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7843 : }
7844 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
7845 0 : if (*r->out.pGuid) {
7846 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
7847 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
7848 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
7849 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
7850 : }
7851 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
7852 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
7853 : }
7854 0 : return NDR_ERR_SUCCESS;
7855 : }
7856 :
7857 0 : static enum ndr_err_code ndr_pull_clusapi_GetGroupId(struct ndr_pull *ndr, int flags, struct clusapi_GetGroupId *r)
7858 : {
7859 : uint32_t _ptr_pGuid;
7860 0 : uint32_t size_pGuid_2 = 0;
7861 0 : uint32_t length_pGuid_2 = 0;
7862 0 : TALLOC_CTX *_mem_save_pGuid_0 = NULL;
7863 0 : TALLOC_CTX *_mem_save_pGuid_1 = NULL;
7864 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
7865 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7866 0 : if (flags & NDR_IN) {
7867 0 : NDR_ZERO_STRUCT(r->out);
7868 :
7869 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
7870 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
7871 0 : NDR_ZERO_STRUCTP(r->out.pGuid);
7872 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7873 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
7874 : }
7875 0 : if (flags & NDR_OUT) {
7876 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7877 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7878 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7879 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
7880 : }
7881 0 : _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
7882 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
7883 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
7884 0 : if (_ptr_pGuid) {
7885 0 : NDR_PULL_ALLOC(ndr, *r->out.pGuid);
7886 : } else {
7887 0 : *r->out.pGuid = NULL;
7888 : }
7889 0 : if (*r->out.pGuid) {
7890 0 : _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
7891 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
7892 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
7893 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
7894 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
7895 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
7896 0 : if (length_pGuid_2 > size_pGuid_2) {
7897 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_pGuid_2, length_pGuid_2);
7898 : }
7899 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
7900 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
7901 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
7902 : }
7903 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
7904 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7905 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7906 : }
7907 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
7908 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
7909 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
7910 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
7911 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
7912 : }
7913 0 : return NDR_ERR_SUCCESS;
7914 : }
7915 :
7916 0 : _PUBLIC_ void ndr_print_clusapi_GetGroupId(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetGroupId *r)
7917 : {
7918 0 : ndr_print_struct(ndr, name, "clusapi_GetGroupId");
7919 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7920 0 : ndr->depth++;
7921 0 : if (flags & NDR_SET_VALUES) {
7922 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7923 : }
7924 0 : if (flags & NDR_IN) {
7925 0 : ndr_print_struct(ndr, "in", "clusapi_GetGroupId");
7926 0 : ndr->depth++;
7927 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
7928 0 : ndr->depth--;
7929 : }
7930 0 : if (flags & NDR_OUT) {
7931 0 : ndr_print_struct(ndr, "out", "clusapi_GetGroupId");
7932 0 : ndr->depth++;
7933 0 : ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
7934 0 : ndr->depth++;
7935 0 : ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
7936 0 : ndr->depth++;
7937 0 : if (*r->out.pGuid) {
7938 0 : ndr_print_string(ndr, "pGuid", *r->out.pGuid);
7939 : }
7940 0 : ndr->depth--;
7941 0 : ndr->depth--;
7942 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
7943 0 : ndr->depth++;
7944 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
7945 0 : ndr->depth--;
7946 0 : ndr_print_WERROR(ndr, "result", r->out.result);
7947 0 : ndr->depth--;
7948 : }
7949 0 : ndr->depth--;
7950 : }
7951 :
7952 0 : static enum ndr_err_code ndr_push_clusapi_GetNodeId(struct ndr_push *ndr, int flags, const struct clusapi_GetNodeId *r)
7953 : {
7954 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7955 0 : if (flags & NDR_IN) {
7956 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
7957 : }
7958 0 : if (flags & NDR_OUT) {
7959 0 : if (r->out.pGuid == NULL) {
7960 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7961 : }
7962 0 : if (r->out.rpc_status == NULL) {
7963 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7964 : }
7965 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
7966 0 : if (*r->out.pGuid) {
7967 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
7968 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
7969 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
7970 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
7971 : }
7972 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
7973 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
7974 : }
7975 0 : return NDR_ERR_SUCCESS;
7976 : }
7977 :
7978 0 : static enum ndr_err_code ndr_pull_clusapi_GetNodeId(struct ndr_pull *ndr, int flags, struct clusapi_GetNodeId *r)
7979 : {
7980 : uint32_t _ptr_pGuid;
7981 0 : uint32_t size_pGuid_2 = 0;
7982 0 : uint32_t length_pGuid_2 = 0;
7983 0 : TALLOC_CTX *_mem_save_pGuid_0 = NULL;
7984 0 : TALLOC_CTX *_mem_save_pGuid_1 = NULL;
7985 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
7986 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7987 0 : if (flags & NDR_IN) {
7988 0 : NDR_ZERO_STRUCT(r->out);
7989 :
7990 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
7991 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
7992 0 : NDR_ZERO_STRUCTP(r->out.pGuid);
7993 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
7994 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
7995 : }
7996 0 : if (flags & NDR_OUT) {
7997 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7998 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7999 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8000 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
8001 : }
8002 0 : _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
8003 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
8004 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
8005 0 : if (_ptr_pGuid) {
8006 0 : NDR_PULL_ALLOC(ndr, *r->out.pGuid);
8007 : } else {
8008 0 : *r->out.pGuid = NULL;
8009 : }
8010 0 : if (*r->out.pGuid) {
8011 0 : _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
8012 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
8013 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
8014 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
8015 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
8016 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
8017 0 : if (length_pGuid_2 > size_pGuid_2) {
8018 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_pGuid_2, length_pGuid_2);
8019 : }
8020 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
8021 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
8022 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
8023 : }
8024 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
8025 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8026 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8027 : }
8028 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8029 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8030 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8031 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8032 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8033 : }
8034 0 : return NDR_ERR_SUCCESS;
8035 : }
8036 :
8037 0 : _PUBLIC_ void ndr_print_clusapi_GetNodeId(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNodeId *r)
8038 : {
8039 0 : ndr_print_struct(ndr, name, "clusapi_GetNodeId");
8040 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8041 0 : ndr->depth++;
8042 0 : if (flags & NDR_SET_VALUES) {
8043 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8044 : }
8045 0 : if (flags & NDR_IN) {
8046 0 : ndr_print_struct(ndr, "in", "clusapi_GetNodeId");
8047 0 : ndr->depth++;
8048 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
8049 0 : ndr->depth--;
8050 : }
8051 0 : if (flags & NDR_OUT) {
8052 0 : ndr_print_struct(ndr, "out", "clusapi_GetNodeId");
8053 0 : ndr->depth++;
8054 0 : ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
8055 0 : ndr->depth++;
8056 0 : ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
8057 0 : ndr->depth++;
8058 0 : if (*r->out.pGuid) {
8059 0 : ndr_print_string(ndr, "pGuid", *r->out.pGuid);
8060 : }
8061 0 : ndr->depth--;
8062 0 : ndr->depth--;
8063 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8064 0 : ndr->depth++;
8065 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8066 0 : ndr->depth--;
8067 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8068 0 : ndr->depth--;
8069 : }
8070 0 : ndr->depth--;
8071 : }
8072 :
8073 0 : static enum ndr_err_code ndr_push_clusapi_OnlineGroup(struct ndr_push *ndr, int flags, const struct clusapi_OnlineGroup *r)
8074 : {
8075 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8076 0 : if (flags & NDR_IN) {
8077 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8078 : }
8079 0 : if (flags & NDR_OUT) {
8080 0 : if (r->out.rpc_status == NULL) {
8081 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8082 : }
8083 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8084 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8085 : }
8086 0 : return NDR_ERR_SUCCESS;
8087 : }
8088 :
8089 0 : static enum ndr_err_code ndr_pull_clusapi_OnlineGroup(struct ndr_pull *ndr, int flags, struct clusapi_OnlineGroup *r)
8090 : {
8091 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8092 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8093 0 : if (flags & NDR_IN) {
8094 0 : NDR_ZERO_STRUCT(r->out);
8095 :
8096 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8097 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8098 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8099 : }
8100 0 : if (flags & NDR_OUT) {
8101 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8102 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8103 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8104 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8105 : }
8106 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8107 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8108 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8109 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8110 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8111 : }
8112 0 : return NDR_ERR_SUCCESS;
8113 : }
8114 :
8115 0 : _PUBLIC_ void ndr_print_clusapi_OnlineGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OnlineGroup *r)
8116 : {
8117 0 : ndr_print_struct(ndr, name, "clusapi_OnlineGroup");
8118 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8119 0 : ndr->depth++;
8120 0 : if (flags & NDR_SET_VALUES) {
8121 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8122 : }
8123 0 : if (flags & NDR_IN) {
8124 0 : ndr_print_struct(ndr, "in", "clusapi_OnlineGroup");
8125 0 : ndr->depth++;
8126 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
8127 0 : ndr->depth--;
8128 : }
8129 0 : if (flags & NDR_OUT) {
8130 0 : ndr_print_struct(ndr, "out", "clusapi_OnlineGroup");
8131 0 : ndr->depth++;
8132 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8133 0 : ndr->depth++;
8134 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8135 0 : ndr->depth--;
8136 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8137 0 : ndr->depth--;
8138 : }
8139 0 : ndr->depth--;
8140 : }
8141 :
8142 0 : static enum ndr_err_code ndr_push_clusapi_OfflineGroup(struct ndr_push *ndr, int flags, const struct clusapi_OfflineGroup *r)
8143 : {
8144 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8145 0 : if (flags & NDR_IN) {
8146 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8147 : }
8148 0 : if (flags & NDR_OUT) {
8149 0 : if (r->out.rpc_status == NULL) {
8150 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8151 : }
8152 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8153 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8154 : }
8155 0 : return NDR_ERR_SUCCESS;
8156 : }
8157 :
8158 0 : static enum ndr_err_code ndr_pull_clusapi_OfflineGroup(struct ndr_pull *ndr, int flags, struct clusapi_OfflineGroup *r)
8159 : {
8160 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8161 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8162 0 : if (flags & NDR_IN) {
8163 0 : NDR_ZERO_STRUCT(r->out);
8164 :
8165 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8166 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8167 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8168 : }
8169 0 : if (flags & NDR_OUT) {
8170 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8171 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8172 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8173 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8174 : }
8175 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8176 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8177 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8178 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8179 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8180 : }
8181 0 : return NDR_ERR_SUCCESS;
8182 : }
8183 :
8184 0 : _PUBLIC_ void ndr_print_clusapi_OfflineGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OfflineGroup *r)
8185 : {
8186 0 : ndr_print_struct(ndr, name, "clusapi_OfflineGroup");
8187 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8188 0 : ndr->depth++;
8189 0 : if (flags & NDR_SET_VALUES) {
8190 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8191 : }
8192 0 : if (flags & NDR_IN) {
8193 0 : ndr_print_struct(ndr, "in", "clusapi_OfflineGroup");
8194 0 : ndr->depth++;
8195 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
8196 0 : ndr->depth--;
8197 : }
8198 0 : if (flags & NDR_OUT) {
8199 0 : ndr_print_struct(ndr, "out", "clusapi_OfflineGroup");
8200 0 : ndr->depth++;
8201 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8202 0 : ndr->depth++;
8203 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8204 0 : ndr->depth--;
8205 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8206 0 : ndr->depth--;
8207 : }
8208 0 : ndr->depth--;
8209 : }
8210 :
8211 0 : static enum ndr_err_code ndr_push_clusapi_MoveGroup(struct ndr_push *ndr, int flags, const struct clusapi_MoveGroup *r)
8212 : {
8213 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8214 0 : if (flags & NDR_IN) {
8215 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8216 : }
8217 0 : if (flags & NDR_OUT) {
8218 0 : if (r->out.rpc_status == NULL) {
8219 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8220 : }
8221 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8222 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8223 : }
8224 0 : return NDR_ERR_SUCCESS;
8225 : }
8226 :
8227 0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroup(struct ndr_pull *ndr, int flags, struct clusapi_MoveGroup *r)
8228 : {
8229 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8230 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8231 0 : if (flags & NDR_IN) {
8232 0 : NDR_ZERO_STRUCT(r->out);
8233 :
8234 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8235 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8236 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8237 : }
8238 0 : if (flags & NDR_OUT) {
8239 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8240 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8241 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8242 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8243 : }
8244 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8245 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8246 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8247 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8248 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8249 : }
8250 0 : return NDR_ERR_SUCCESS;
8251 : }
8252 :
8253 0 : _PUBLIC_ void ndr_print_clusapi_MoveGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_MoveGroup *r)
8254 : {
8255 0 : ndr_print_struct(ndr, name, "clusapi_MoveGroup");
8256 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8257 0 : ndr->depth++;
8258 0 : if (flags & NDR_SET_VALUES) {
8259 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8260 : }
8261 0 : if (flags & NDR_IN) {
8262 0 : ndr_print_struct(ndr, "in", "clusapi_MoveGroup");
8263 0 : ndr->depth++;
8264 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
8265 0 : ndr->depth--;
8266 : }
8267 0 : if (flags & NDR_OUT) {
8268 0 : ndr_print_struct(ndr, "out", "clusapi_MoveGroup");
8269 0 : ndr->depth++;
8270 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8271 0 : ndr->depth++;
8272 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8273 0 : ndr->depth--;
8274 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8275 0 : ndr->depth--;
8276 : }
8277 0 : ndr->depth--;
8278 : }
8279 :
8280 0 : static enum ndr_err_code ndr_push_clusapi_MoveGroupToNode(struct ndr_push *ndr, int flags, const struct clusapi_MoveGroupToNode *r)
8281 : {
8282 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8283 0 : if (flags & NDR_IN) {
8284 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8285 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
8286 : }
8287 0 : if (flags & NDR_OUT) {
8288 0 : if (r->out.rpc_status == NULL) {
8289 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8290 : }
8291 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8292 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8293 : }
8294 0 : return NDR_ERR_SUCCESS;
8295 : }
8296 :
8297 0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroupToNode(struct ndr_pull *ndr, int flags, struct clusapi_MoveGroupToNode *r)
8298 : {
8299 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8300 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8301 0 : if (flags & NDR_IN) {
8302 0 : NDR_ZERO_STRUCT(r->out);
8303 :
8304 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8305 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
8306 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8307 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8308 : }
8309 0 : if (flags & NDR_OUT) {
8310 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8311 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8312 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8313 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8314 : }
8315 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8316 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8317 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8318 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8319 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8320 : }
8321 0 : return NDR_ERR_SUCCESS;
8322 : }
8323 :
8324 0 : _PUBLIC_ void ndr_print_clusapi_MoveGroupToNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_MoveGroupToNode *r)
8325 : {
8326 0 : ndr_print_struct(ndr, name, "clusapi_MoveGroupToNode");
8327 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8328 0 : ndr->depth++;
8329 0 : if (flags & NDR_SET_VALUES) {
8330 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8331 : }
8332 0 : if (flags & NDR_IN) {
8333 0 : ndr_print_struct(ndr, "in", "clusapi_MoveGroupToNode");
8334 0 : ndr->depth++;
8335 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
8336 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
8337 0 : ndr->depth--;
8338 : }
8339 0 : if (flags & NDR_OUT) {
8340 0 : ndr_print_struct(ndr, "out", "clusapi_MoveGroupToNode");
8341 0 : ndr->depth++;
8342 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8343 0 : ndr->depth++;
8344 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8345 0 : ndr->depth--;
8346 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8347 0 : ndr->depth--;
8348 : }
8349 0 : ndr->depth--;
8350 : }
8351 :
8352 0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupResourceEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateGroupResourceEnum *r)
8353 : {
8354 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8355 0 : if (flags & NDR_IN) {
8356 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8357 0 : NDR_CHECK(ndr_push_ClusterGroupEnumType(ndr, NDR_SCALARS, r->in.dwType));
8358 : }
8359 0 : if (flags & NDR_OUT) {
8360 0 : if (r->out.ReturnEnum == NULL) {
8361 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8362 : }
8363 0 : if (r->out.rpc_status == NULL) {
8364 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8365 : }
8366 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
8367 0 : if (*r->out.ReturnEnum) {
8368 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
8369 : }
8370 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8371 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8372 : }
8373 0 : return NDR_ERR_SUCCESS;
8374 : }
8375 :
8376 0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupResourceEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateGroupResourceEnum *r)
8377 : {
8378 : uint32_t _ptr_ReturnEnum;
8379 0 : TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
8380 0 : TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
8381 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8382 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8383 0 : if (flags & NDR_IN) {
8384 0 : NDR_ZERO_STRUCT(r->out);
8385 :
8386 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8387 0 : NDR_CHECK(ndr_pull_ClusterGroupEnumType(ndr, NDR_SCALARS, &r->in.dwType));
8388 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
8389 0 : NDR_ZERO_STRUCTP(r->out.ReturnEnum);
8390 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8391 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8392 : }
8393 0 : if (flags & NDR_OUT) {
8394 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8395 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8396 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8397 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
8398 : }
8399 0 : _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
8400 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
8401 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
8402 0 : if (_ptr_ReturnEnum) {
8403 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
8404 : } else {
8405 0 : *r->out.ReturnEnum = NULL;
8406 : }
8407 0 : if (*r->out.ReturnEnum) {
8408 0 : _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
8409 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
8410 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
8411 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
8412 : }
8413 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
8414 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8415 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8416 : }
8417 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8418 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8419 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8420 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8421 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8422 : }
8423 0 : return NDR_ERR_SUCCESS;
8424 : }
8425 :
8426 0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupResourceEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateGroupResourceEnum *r)
8427 : {
8428 0 : ndr_print_struct(ndr, name, "clusapi_CreateGroupResourceEnum");
8429 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8430 0 : ndr->depth++;
8431 0 : if (flags & NDR_SET_VALUES) {
8432 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8433 : }
8434 0 : if (flags & NDR_IN) {
8435 0 : ndr_print_struct(ndr, "in", "clusapi_CreateGroupResourceEnum");
8436 0 : ndr->depth++;
8437 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
8438 0 : ndr_print_ClusterGroupEnumType(ndr, "dwType", r->in.dwType);
8439 0 : ndr->depth--;
8440 : }
8441 0 : if (flags & NDR_OUT) {
8442 0 : ndr_print_struct(ndr, "out", "clusapi_CreateGroupResourceEnum");
8443 0 : ndr->depth++;
8444 0 : ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
8445 0 : ndr->depth++;
8446 0 : ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
8447 0 : ndr->depth++;
8448 0 : if (*r->out.ReturnEnum) {
8449 0 : ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
8450 : }
8451 0 : ndr->depth--;
8452 0 : ndr->depth--;
8453 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8454 0 : ndr->depth++;
8455 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8456 0 : ndr->depth--;
8457 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8458 0 : ndr->depth--;
8459 : }
8460 0 : ndr->depth--;
8461 : }
8462 :
8463 0 : static enum ndr_err_code ndr_push_clusapi_SetGroupNodeList(struct ndr_push *ndr, int flags, const struct clusapi_SetGroupNodeList *r)
8464 : {
8465 : uint32_t cntr_multiSzNodeList_1;
8466 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8467 0 : if (flags & NDR_IN) {
8468 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8469 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.multiSzNodeList));
8470 0 : if (r->in.multiSzNodeList) {
8471 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cchListSize));
8472 0 : for (cntr_multiSzNodeList_1 = 0; cntr_multiSzNodeList_1 < (r->in.cchListSize); cntr_multiSzNodeList_1++) {
8473 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.multiSzNodeList[cntr_multiSzNodeList_1]));
8474 : }
8475 : }
8476 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cchListSize));
8477 : }
8478 0 : if (flags & NDR_OUT) {
8479 0 : if (r->out.rpc_status == NULL) {
8480 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8481 : }
8482 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8483 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8484 : }
8485 0 : return NDR_ERR_SUCCESS;
8486 : }
8487 :
8488 0 : static enum ndr_err_code ndr_pull_clusapi_SetGroupNodeList(struct ndr_pull *ndr, int flags, struct clusapi_SetGroupNodeList *r)
8489 : {
8490 : uint32_t _ptr_multiSzNodeList;
8491 0 : uint32_t size_multiSzNodeList_1 = 0;
8492 : uint32_t cntr_multiSzNodeList_1;
8493 0 : TALLOC_CTX *_mem_save_multiSzNodeList_0 = NULL;
8494 0 : TALLOC_CTX *_mem_save_multiSzNodeList_1 = NULL;
8495 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8496 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8497 0 : if (flags & NDR_IN) {
8498 0 : NDR_ZERO_STRUCT(r->out);
8499 :
8500 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8501 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_multiSzNodeList));
8502 0 : if (_ptr_multiSzNodeList) {
8503 0 : NDR_PULL_ALLOC(ndr, r->in.multiSzNodeList);
8504 : } else {
8505 0 : r->in.multiSzNodeList = NULL;
8506 : }
8507 0 : if (r->in.multiSzNodeList) {
8508 0 : _mem_save_multiSzNodeList_0 = NDR_PULL_GET_MEM_CTX(ndr);
8509 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.multiSzNodeList, 0);
8510 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.multiSzNodeList));
8511 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.multiSzNodeList, &size_multiSzNodeList_1));
8512 0 : NDR_PULL_ALLOC_N(ndr, r->in.multiSzNodeList, size_multiSzNodeList_1);
8513 0 : _mem_save_multiSzNodeList_1 = NDR_PULL_GET_MEM_CTX(ndr);
8514 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.multiSzNodeList, 0);
8515 0 : for (cntr_multiSzNodeList_1 = 0; cntr_multiSzNodeList_1 < (size_multiSzNodeList_1); cntr_multiSzNodeList_1++) {
8516 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.multiSzNodeList[cntr_multiSzNodeList_1]));
8517 : }
8518 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_multiSzNodeList_1, 0);
8519 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_multiSzNodeList_0, 0);
8520 : }
8521 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cchListSize));
8522 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8523 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8524 0 : if (r->in.multiSzNodeList) {
8525 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.multiSzNodeList, r->in.cchListSize));
8526 : }
8527 : }
8528 0 : if (flags & NDR_OUT) {
8529 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8530 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8531 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8532 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8533 : }
8534 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8535 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8536 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8537 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8538 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8539 : }
8540 0 : return NDR_ERR_SUCCESS;
8541 : }
8542 :
8543 0 : _PUBLIC_ void ndr_print_clusapi_SetGroupNodeList(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetGroupNodeList *r)
8544 : {
8545 : uint32_t cntr_multiSzNodeList_1;
8546 0 : ndr_print_struct(ndr, name, "clusapi_SetGroupNodeList");
8547 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8548 0 : ndr->depth++;
8549 0 : if (flags & NDR_SET_VALUES) {
8550 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8551 : }
8552 0 : if (flags & NDR_IN) {
8553 0 : ndr_print_struct(ndr, "in", "clusapi_SetGroupNodeList");
8554 0 : ndr->depth++;
8555 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
8556 0 : ndr_print_ptr(ndr, "multiSzNodeList", r->in.multiSzNodeList);
8557 0 : ndr->depth++;
8558 0 : if (r->in.multiSzNodeList) {
8559 0 : ndr->print(ndr, "%s: ARRAY(%d)", "multiSzNodeList", (int)r->in.cchListSize);
8560 0 : ndr->depth++;
8561 0 : for (cntr_multiSzNodeList_1 = 0; cntr_multiSzNodeList_1 < (r->in.cchListSize); cntr_multiSzNodeList_1++) {
8562 0 : ndr_print_uint16(ndr, "multiSzNodeList", r->in.multiSzNodeList[cntr_multiSzNodeList_1]);
8563 : }
8564 0 : ndr->depth--;
8565 : }
8566 0 : ndr->depth--;
8567 0 : ndr_print_uint32(ndr, "cchListSize", r->in.cchListSize);
8568 0 : ndr->depth--;
8569 : }
8570 0 : if (flags & NDR_OUT) {
8571 0 : ndr_print_struct(ndr, "out", "clusapi_SetGroupNodeList");
8572 0 : ndr->depth++;
8573 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8574 0 : ndr->depth++;
8575 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8576 0 : ndr->depth--;
8577 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8578 0 : ndr->depth--;
8579 : }
8580 0 : ndr->depth--;
8581 : }
8582 :
8583 0 : static enum ndr_err_code ndr_push_clusapi_CreateNotify(struct ndr_push *ndr, int flags, const struct clusapi_CreateNotify *r)
8584 : {
8585 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8586 0 : if (flags & NDR_IN) {
8587 : }
8588 0 : if (flags & NDR_OUT) {
8589 0 : if (r->out.Status == NULL) {
8590 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8591 : }
8592 0 : if (r->out.rpc_status == NULL) {
8593 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8594 : }
8595 0 : if (r->out.hNotify == NULL) {
8596 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8597 : }
8598 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
8599 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8600 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNotify));
8601 : }
8602 0 : return NDR_ERR_SUCCESS;
8603 : }
8604 :
8605 0 : static enum ndr_err_code ndr_pull_clusapi_CreateNotify(struct ndr_pull *ndr, int flags, struct clusapi_CreateNotify *r)
8606 : {
8607 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
8608 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8609 0 : TALLOC_CTX *_mem_save_hNotify_0 = NULL;
8610 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8611 0 : if (flags & NDR_IN) {
8612 0 : NDR_ZERO_STRUCT(r->out);
8613 :
8614 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
8615 0 : NDR_ZERO_STRUCTP(r->out.Status);
8616 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8617 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8618 0 : NDR_PULL_ALLOC(ndr, r->out.hNotify);
8619 0 : NDR_ZERO_STRUCTP(r->out.hNotify);
8620 : }
8621 0 : if (flags & NDR_OUT) {
8622 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8623 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8624 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8625 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
8626 : }
8627 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8628 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
8629 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
8630 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
8631 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8632 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8633 : }
8634 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8635 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8636 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8637 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8638 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8639 0 : NDR_PULL_ALLOC(ndr, r->out.hNotify);
8640 : }
8641 0 : _mem_save_hNotify_0 = NDR_PULL_GET_MEM_CTX(ndr);
8642 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hNotify, LIBNDR_FLAG_REF_ALLOC);
8643 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNotify));
8644 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNotify_0, LIBNDR_FLAG_REF_ALLOC);
8645 : }
8646 0 : return NDR_ERR_SUCCESS;
8647 : }
8648 :
8649 0 : _PUBLIC_ void ndr_print_clusapi_CreateNotify(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateNotify *r)
8650 : {
8651 0 : ndr_print_struct(ndr, name, "clusapi_CreateNotify");
8652 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8653 0 : ndr->depth++;
8654 0 : if (flags & NDR_SET_VALUES) {
8655 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8656 : }
8657 0 : if (flags & NDR_IN) {
8658 0 : ndr_print_struct(ndr, "in", "clusapi_CreateNotify");
8659 0 : ndr->depth++;
8660 0 : ndr->depth--;
8661 : }
8662 0 : if (flags & NDR_OUT) {
8663 0 : ndr_print_struct(ndr, "out", "clusapi_CreateNotify");
8664 0 : ndr->depth++;
8665 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
8666 0 : ndr->depth++;
8667 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
8668 0 : ndr->depth--;
8669 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8670 0 : ndr->depth++;
8671 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8672 0 : ndr->depth--;
8673 0 : ndr_print_ptr(ndr, "hNotify", r->out.hNotify);
8674 0 : ndr->depth++;
8675 0 : ndr_print_policy_handle(ndr, "hNotify", r->out.hNotify);
8676 0 : ndr->depth--;
8677 0 : ndr->depth--;
8678 : }
8679 0 : ndr->depth--;
8680 : }
8681 :
8682 0 : static enum ndr_err_code ndr_push_clusapi_CloseNotify(struct ndr_push *ndr, int flags, const struct clusapi_CloseNotify *r)
8683 : {
8684 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8685 0 : if (flags & NDR_IN) {
8686 0 : if (r->in.Notify == NULL) {
8687 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8688 : }
8689 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Notify));
8690 : }
8691 0 : if (flags & NDR_OUT) {
8692 0 : if (r->out.Notify == NULL) {
8693 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8694 : }
8695 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Notify));
8696 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8697 : }
8698 0 : return NDR_ERR_SUCCESS;
8699 : }
8700 :
8701 0 : static enum ndr_err_code ndr_pull_clusapi_CloseNotify(struct ndr_pull *ndr, int flags, struct clusapi_CloseNotify *r)
8702 : {
8703 0 : TALLOC_CTX *_mem_save_Notify_0 = NULL;
8704 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8705 0 : if (flags & NDR_IN) {
8706 0 : NDR_ZERO_STRUCT(r->out);
8707 :
8708 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8709 0 : NDR_PULL_ALLOC(ndr, r->in.Notify);
8710 : }
8711 0 : _mem_save_Notify_0 = NDR_PULL_GET_MEM_CTX(ndr);
8712 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.Notify, LIBNDR_FLAG_REF_ALLOC);
8713 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Notify));
8714 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notify_0, LIBNDR_FLAG_REF_ALLOC);
8715 0 : NDR_PULL_ALLOC(ndr, r->out.Notify);
8716 0 : *r->out.Notify = *r->in.Notify;
8717 : }
8718 0 : if (flags & NDR_OUT) {
8719 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8720 : if (r->in.Notify == NULL) {
8721 : NDR_PULL_ALLOC(ndr, r->in.Notify);
8722 : NDR_ZERO_STRUCTP(r->in.Notify);
8723 : }
8724 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8725 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8726 0 : NDR_PULL_ALLOC(ndr, r->out.Notify);
8727 : }
8728 0 : _mem_save_Notify_0 = NDR_PULL_GET_MEM_CTX(ndr);
8729 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Notify, LIBNDR_FLAG_REF_ALLOC);
8730 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Notify));
8731 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notify_0, LIBNDR_FLAG_REF_ALLOC);
8732 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8733 : }
8734 0 : return NDR_ERR_SUCCESS;
8735 : }
8736 :
8737 0 : _PUBLIC_ void ndr_print_clusapi_CloseNotify(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseNotify *r)
8738 : {
8739 0 : ndr_print_struct(ndr, name, "clusapi_CloseNotify");
8740 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8741 0 : ndr->depth++;
8742 0 : if (flags & NDR_SET_VALUES) {
8743 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8744 : }
8745 0 : if (flags & NDR_IN) {
8746 0 : ndr_print_struct(ndr, "in", "clusapi_CloseNotify");
8747 0 : ndr->depth++;
8748 0 : ndr_print_ptr(ndr, "Notify", r->in.Notify);
8749 0 : ndr->depth++;
8750 0 : ndr_print_policy_handle(ndr, "Notify", r->in.Notify);
8751 0 : ndr->depth--;
8752 0 : ndr->depth--;
8753 : }
8754 0 : if (flags & NDR_OUT) {
8755 0 : ndr_print_struct(ndr, "out", "clusapi_CloseNotify");
8756 0 : ndr->depth++;
8757 0 : ndr_print_ptr(ndr, "Notify", r->out.Notify);
8758 0 : ndr->depth++;
8759 0 : ndr_print_policy_handle(ndr, "Notify", r->out.Notify);
8760 0 : ndr->depth--;
8761 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8762 0 : ndr->depth--;
8763 : }
8764 0 : ndr->depth--;
8765 : }
8766 :
8767 0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyCluster(struct ndr_push *ndr, int flags, const struct clusapi_AddNotifyCluster *r)
8768 : {
8769 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8770 0 : if (flags & NDR_IN) {
8771 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
8772 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
8773 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
8774 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
8775 : }
8776 0 : if (flags & NDR_OUT) {
8777 0 : if (r->out.rpc_status == NULL) {
8778 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8779 : }
8780 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8781 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8782 : }
8783 0 : return NDR_ERR_SUCCESS;
8784 : }
8785 :
8786 0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyCluster(struct ndr_pull *ndr, int flags, struct clusapi_AddNotifyCluster *r)
8787 : {
8788 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8789 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8790 0 : if (flags & NDR_IN) {
8791 0 : NDR_ZERO_STRUCT(r->out);
8792 :
8793 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
8794 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
8795 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
8796 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
8797 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8798 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8799 : }
8800 0 : if (flags & NDR_OUT) {
8801 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8802 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8803 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8804 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8805 : }
8806 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8807 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8808 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8809 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8810 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8811 : }
8812 0 : return NDR_ERR_SUCCESS;
8813 : }
8814 :
8815 0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyCluster(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddNotifyCluster *r)
8816 : {
8817 0 : ndr_print_struct(ndr, name, "clusapi_AddNotifyCluster");
8818 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8819 0 : ndr->depth++;
8820 0 : if (flags & NDR_SET_VALUES) {
8821 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8822 : }
8823 0 : if (flags & NDR_IN) {
8824 0 : ndr_print_struct(ndr, "in", "clusapi_AddNotifyCluster");
8825 0 : ndr->depth++;
8826 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
8827 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
8828 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
8829 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
8830 0 : ndr->depth--;
8831 : }
8832 0 : if (flags & NDR_OUT) {
8833 0 : ndr_print_struct(ndr, "out", "clusapi_AddNotifyCluster");
8834 0 : ndr->depth++;
8835 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8836 0 : ndr->depth++;
8837 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8838 0 : ndr->depth--;
8839 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8840 0 : ndr->depth--;
8841 : }
8842 0 : ndr->depth--;
8843 : }
8844 :
8845 0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyNode(struct ndr_push *ndr, int flags, const struct clusapi_AddNotifyNode *r)
8846 : {
8847 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8848 0 : if (flags & NDR_IN) {
8849 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
8850 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
8851 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
8852 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
8853 : }
8854 0 : if (flags & NDR_OUT) {
8855 0 : if (r->out.dwStateSequence == NULL) {
8856 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8857 : }
8858 0 : if (r->out.rpc_status == NULL) {
8859 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8860 : }
8861 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
8862 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8863 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8864 : }
8865 0 : return NDR_ERR_SUCCESS;
8866 : }
8867 :
8868 0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyNode(struct ndr_pull *ndr, int flags, struct clusapi_AddNotifyNode *r)
8869 : {
8870 0 : TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
8871 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8872 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8873 0 : if (flags & NDR_IN) {
8874 0 : NDR_ZERO_STRUCT(r->out);
8875 :
8876 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
8877 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
8878 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
8879 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
8880 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
8881 0 : NDR_ZERO_STRUCTP(r->out.dwStateSequence);
8882 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8883 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8884 : }
8885 0 : if (flags & NDR_OUT) {
8886 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8887 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8888 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8889 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
8890 : }
8891 0 : _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
8892 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
8893 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
8894 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
8895 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8896 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8897 : }
8898 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8899 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8900 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8901 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8902 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8903 : }
8904 0 : return NDR_ERR_SUCCESS;
8905 : }
8906 :
8907 0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddNotifyNode *r)
8908 : {
8909 0 : ndr_print_struct(ndr, name, "clusapi_AddNotifyNode");
8910 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8911 0 : ndr->depth++;
8912 0 : if (flags & NDR_SET_VALUES) {
8913 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8914 : }
8915 0 : if (flags & NDR_IN) {
8916 0 : ndr_print_struct(ndr, "in", "clusapi_AddNotifyNode");
8917 0 : ndr->depth++;
8918 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
8919 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
8920 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
8921 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
8922 0 : ndr->depth--;
8923 : }
8924 0 : if (flags & NDR_OUT) {
8925 0 : ndr_print_struct(ndr, "out", "clusapi_AddNotifyNode");
8926 0 : ndr->depth++;
8927 0 : ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
8928 0 : ndr->depth++;
8929 0 : ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
8930 0 : ndr->depth--;
8931 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
8932 0 : ndr->depth++;
8933 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
8934 0 : ndr->depth--;
8935 0 : ndr_print_WERROR(ndr, "result", r->out.result);
8936 0 : ndr->depth--;
8937 : }
8938 0 : ndr->depth--;
8939 : }
8940 :
8941 0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyGroup(struct ndr_push *ndr, int flags, const struct clusapi_AddNotifyGroup *r)
8942 : {
8943 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8944 0 : if (flags & NDR_IN) {
8945 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
8946 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8947 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
8948 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
8949 : }
8950 0 : if (flags & NDR_OUT) {
8951 0 : if (r->out.dwStateSequence == NULL) {
8952 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8953 : }
8954 0 : if (r->out.rpc_status == NULL) {
8955 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8956 : }
8957 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
8958 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
8959 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
8960 : }
8961 0 : return NDR_ERR_SUCCESS;
8962 : }
8963 :
8964 0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyGroup(struct ndr_pull *ndr, int flags, struct clusapi_AddNotifyGroup *r)
8965 : {
8966 0 : TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
8967 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
8968 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8969 0 : if (flags & NDR_IN) {
8970 0 : NDR_ZERO_STRUCT(r->out);
8971 :
8972 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
8973 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
8974 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
8975 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
8976 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
8977 0 : NDR_ZERO_STRUCTP(r->out.dwStateSequence);
8978 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8979 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
8980 : }
8981 0 : if (flags & NDR_OUT) {
8982 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8983 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8984 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8985 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
8986 : }
8987 0 : _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
8988 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
8989 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
8990 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
8991 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8992 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
8993 : }
8994 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
8995 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
8996 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
8997 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
8998 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
8999 : }
9000 0 : return NDR_ERR_SUCCESS;
9001 : }
9002 :
9003 0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddNotifyGroup *r)
9004 : {
9005 0 : ndr_print_struct(ndr, name, "clusapi_AddNotifyGroup");
9006 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9007 0 : ndr->depth++;
9008 0 : if (flags & NDR_SET_VALUES) {
9009 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9010 : }
9011 0 : if (flags & NDR_IN) {
9012 0 : ndr_print_struct(ndr, "in", "clusapi_AddNotifyGroup");
9013 0 : ndr->depth++;
9014 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
9015 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
9016 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
9017 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
9018 0 : ndr->depth--;
9019 : }
9020 0 : if (flags & NDR_OUT) {
9021 0 : ndr_print_struct(ndr, "out", "clusapi_AddNotifyGroup");
9022 0 : ndr->depth++;
9023 0 : ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
9024 0 : ndr->depth++;
9025 0 : ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
9026 0 : ndr->depth--;
9027 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9028 0 : ndr->depth++;
9029 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9030 0 : ndr->depth--;
9031 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9032 0 : ndr->depth--;
9033 : }
9034 0 : ndr->depth--;
9035 : }
9036 :
9037 0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyResource(struct ndr_push *ndr, int flags, const struct clusapi_AddNotifyResource *r)
9038 : {
9039 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9040 0 : if (flags & NDR_IN) {
9041 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9042 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
9043 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
9044 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
9045 : }
9046 0 : if (flags & NDR_OUT) {
9047 0 : if (r->out.dwStateSequence == NULL) {
9048 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9049 : }
9050 0 : if (r->out.rpc_status == NULL) {
9051 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9052 : }
9053 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
9054 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
9055 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
9056 : }
9057 0 : return NDR_ERR_SUCCESS;
9058 : }
9059 :
9060 0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyResource(struct ndr_pull *ndr, int flags, struct clusapi_AddNotifyResource *r)
9061 : {
9062 0 : TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
9063 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
9064 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9065 0 : if (flags & NDR_IN) {
9066 0 : NDR_ZERO_STRUCT(r->out);
9067 :
9068 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9069 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
9070 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
9071 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
9072 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
9073 0 : NDR_ZERO_STRUCTP(r->out.dwStateSequence);
9074 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9075 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
9076 : }
9077 0 : if (flags & NDR_OUT) {
9078 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9079 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9080 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9081 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
9082 : }
9083 0 : _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
9084 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
9085 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
9086 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
9087 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9088 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9089 : }
9090 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9091 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
9092 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
9093 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
9094 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
9095 : }
9096 0 : return NDR_ERR_SUCCESS;
9097 : }
9098 :
9099 0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddNotifyResource *r)
9100 : {
9101 0 : ndr_print_struct(ndr, name, "clusapi_AddNotifyResource");
9102 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9103 0 : ndr->depth++;
9104 0 : if (flags & NDR_SET_VALUES) {
9105 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9106 : }
9107 0 : if (flags & NDR_IN) {
9108 0 : ndr_print_struct(ndr, "in", "clusapi_AddNotifyResource");
9109 0 : ndr->depth++;
9110 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
9111 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
9112 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
9113 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
9114 0 : ndr->depth--;
9115 : }
9116 0 : if (flags & NDR_OUT) {
9117 0 : ndr_print_struct(ndr, "out", "clusapi_AddNotifyResource");
9118 0 : ndr->depth++;
9119 0 : ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
9120 0 : ndr->depth++;
9121 0 : ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
9122 0 : ndr->depth--;
9123 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9124 0 : ndr->depth++;
9125 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9126 0 : ndr->depth--;
9127 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9128 0 : ndr->depth--;
9129 : }
9130 0 : ndr->depth--;
9131 : }
9132 :
9133 0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyKey(struct ndr_push *ndr, int flags, const struct clusapi_AddNotifyKey *r)
9134 : {
9135 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9136 0 : if (flags & NDR_IN) {
9137 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9138 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
9139 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
9140 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.Filter));
9141 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.WatchSubTree));
9142 : }
9143 0 : if (flags & NDR_OUT) {
9144 0 : if (r->out.rpc_status == NULL) {
9145 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9146 : }
9147 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
9148 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
9149 : }
9150 0 : return NDR_ERR_SUCCESS;
9151 : }
9152 :
9153 0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyKey(struct ndr_pull *ndr, int flags, struct clusapi_AddNotifyKey *r)
9154 : {
9155 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
9156 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9157 0 : if (flags & NDR_IN) {
9158 0 : NDR_ZERO_STRUCT(r->out);
9159 :
9160 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9161 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
9162 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
9163 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.Filter));
9164 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.WatchSubTree));
9165 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9166 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
9167 : }
9168 0 : if (flags & NDR_OUT) {
9169 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9170 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9171 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9172 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9173 : }
9174 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9175 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
9176 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
9177 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
9178 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
9179 : }
9180 0 : return NDR_ERR_SUCCESS;
9181 : }
9182 :
9183 0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyKey(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddNotifyKey *r)
9184 : {
9185 0 : ndr_print_struct(ndr, name, "clusapi_AddNotifyKey");
9186 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9187 0 : ndr->depth++;
9188 0 : if (flags & NDR_SET_VALUES) {
9189 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9190 : }
9191 0 : if (flags & NDR_IN) {
9192 0 : ndr_print_struct(ndr, "in", "clusapi_AddNotifyKey");
9193 0 : ndr->depth++;
9194 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
9195 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
9196 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
9197 0 : ndr_print_uint32(ndr, "Filter", r->in.Filter);
9198 0 : ndr_print_uint8(ndr, "WatchSubTree", r->in.WatchSubTree);
9199 0 : ndr->depth--;
9200 : }
9201 0 : if (flags & NDR_OUT) {
9202 0 : ndr_print_struct(ndr, "out", "clusapi_AddNotifyKey");
9203 0 : ndr->depth++;
9204 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9205 0 : ndr->depth++;
9206 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9207 0 : ndr->depth--;
9208 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9209 0 : ndr->depth--;
9210 : }
9211 0 : ndr->depth--;
9212 : }
9213 :
9214 0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyNode(struct ndr_push *ndr, int flags, const struct clusapi_ReAddNotifyNode *r)
9215 : {
9216 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9217 0 : if (flags & NDR_IN) {
9218 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9219 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
9220 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
9221 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
9222 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
9223 : }
9224 0 : if (flags & NDR_OUT) {
9225 0 : if (r->out.rpc_status == NULL) {
9226 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9227 : }
9228 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
9229 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
9230 : }
9231 0 : return NDR_ERR_SUCCESS;
9232 : }
9233 :
9234 0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyNode(struct ndr_pull *ndr, int flags, struct clusapi_ReAddNotifyNode *r)
9235 : {
9236 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
9237 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9238 0 : if (flags & NDR_IN) {
9239 0 : NDR_ZERO_STRUCT(r->out);
9240 :
9241 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9242 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
9243 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
9244 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
9245 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
9246 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9247 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
9248 : }
9249 0 : if (flags & NDR_OUT) {
9250 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9251 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9252 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9253 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9254 : }
9255 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9256 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
9257 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
9258 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
9259 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
9260 : }
9261 0 : return NDR_ERR_SUCCESS;
9262 : }
9263 :
9264 0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ReAddNotifyNode *r)
9265 : {
9266 0 : ndr_print_struct(ndr, name, "clusapi_ReAddNotifyNode");
9267 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9268 0 : ndr->depth++;
9269 0 : if (flags & NDR_SET_VALUES) {
9270 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9271 : }
9272 0 : if (flags & NDR_IN) {
9273 0 : ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyNode");
9274 0 : ndr->depth++;
9275 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
9276 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
9277 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
9278 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
9279 0 : ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
9280 0 : ndr->depth--;
9281 : }
9282 0 : if (flags & NDR_OUT) {
9283 0 : ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyNode");
9284 0 : ndr->depth++;
9285 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9286 0 : ndr->depth++;
9287 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9288 0 : ndr->depth--;
9289 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9290 0 : ndr->depth--;
9291 : }
9292 0 : ndr->depth--;
9293 : }
9294 :
9295 0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyGroup(struct ndr_push *ndr, int flags, const struct clusapi_ReAddNotifyGroup *r)
9296 : {
9297 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9298 0 : if (flags & NDR_IN) {
9299 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9300 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
9301 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
9302 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
9303 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
9304 : }
9305 0 : if (flags & NDR_OUT) {
9306 0 : if (r->out.rpc_status == NULL) {
9307 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9308 : }
9309 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
9310 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
9311 : }
9312 0 : return NDR_ERR_SUCCESS;
9313 : }
9314 :
9315 0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyGroup(struct ndr_pull *ndr, int flags, struct clusapi_ReAddNotifyGroup *r)
9316 : {
9317 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
9318 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9319 0 : if (flags & NDR_IN) {
9320 0 : NDR_ZERO_STRUCT(r->out);
9321 :
9322 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9323 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
9324 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
9325 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
9326 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
9327 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9328 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
9329 : }
9330 0 : if (flags & NDR_OUT) {
9331 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9332 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9333 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9334 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9335 : }
9336 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9337 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
9338 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
9339 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
9340 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
9341 : }
9342 0 : return NDR_ERR_SUCCESS;
9343 : }
9344 :
9345 0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyGroup(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ReAddNotifyGroup *r)
9346 : {
9347 0 : ndr_print_struct(ndr, name, "clusapi_ReAddNotifyGroup");
9348 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9349 0 : ndr->depth++;
9350 0 : if (flags & NDR_SET_VALUES) {
9351 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9352 : }
9353 0 : if (flags & NDR_IN) {
9354 0 : ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyGroup");
9355 0 : ndr->depth++;
9356 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
9357 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
9358 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
9359 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
9360 0 : ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
9361 0 : ndr->depth--;
9362 : }
9363 0 : if (flags & NDR_OUT) {
9364 0 : ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyGroup");
9365 0 : ndr->depth++;
9366 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9367 0 : ndr->depth++;
9368 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9369 0 : ndr->depth--;
9370 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9371 0 : ndr->depth--;
9372 : }
9373 0 : ndr->depth--;
9374 : }
9375 :
9376 0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyResource(struct ndr_push *ndr, int flags, const struct clusapi_ReAddNotifyResource *r)
9377 : {
9378 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9379 0 : if (flags & NDR_IN) {
9380 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9381 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
9382 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
9383 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
9384 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
9385 : }
9386 0 : if (flags & NDR_OUT) {
9387 0 : if (r->out.rpc_status == NULL) {
9388 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9389 : }
9390 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
9391 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
9392 : }
9393 0 : return NDR_ERR_SUCCESS;
9394 : }
9395 :
9396 0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyResource(struct ndr_pull *ndr, int flags, struct clusapi_ReAddNotifyResource *r)
9397 : {
9398 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
9399 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9400 0 : if (flags & NDR_IN) {
9401 0 : NDR_ZERO_STRUCT(r->out);
9402 :
9403 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9404 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
9405 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
9406 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
9407 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
9408 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9409 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
9410 : }
9411 0 : if (flags & NDR_OUT) {
9412 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9413 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9414 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9415 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9416 : }
9417 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9418 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
9419 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
9420 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
9421 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
9422 : }
9423 0 : return NDR_ERR_SUCCESS;
9424 : }
9425 :
9426 0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ReAddNotifyResource *r)
9427 : {
9428 0 : ndr_print_struct(ndr, name, "clusapi_ReAddNotifyResource");
9429 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9430 0 : ndr->depth++;
9431 0 : if (flags & NDR_SET_VALUES) {
9432 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9433 : }
9434 0 : if (flags & NDR_IN) {
9435 0 : ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyResource");
9436 0 : ndr->depth++;
9437 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
9438 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
9439 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
9440 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
9441 0 : ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
9442 0 : ndr->depth--;
9443 : }
9444 0 : if (flags & NDR_OUT) {
9445 0 : ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyResource");
9446 0 : ndr->depth++;
9447 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9448 0 : ndr->depth++;
9449 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9450 0 : ndr->depth--;
9451 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9452 0 : ndr->depth--;
9453 : }
9454 0 : ndr->depth--;
9455 : }
9456 :
9457 0 : static enum ndr_err_code ndr_push_clusapi_GetNotify(struct ndr_push *ndr, int flags, const struct clusapi_GetNotify *r)
9458 : {
9459 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9460 0 : if (flags & NDR_IN) {
9461 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9462 : }
9463 0 : if (flags & NDR_OUT) {
9464 0 : if (r->out.dwNotifyKey == NULL) {
9465 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9466 : }
9467 0 : if (r->out.dwFilter == NULL) {
9468 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9469 : }
9470 0 : if (r->out.dwStateSequence == NULL) {
9471 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9472 : }
9473 0 : if (r->out.Name == NULL) {
9474 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9475 : }
9476 0 : if (r->out.rpc_status == NULL) {
9477 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9478 : }
9479 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwNotifyKey));
9480 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwFilter));
9481 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
9482 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.Name));
9483 0 : if (*r->out.Name) {
9484 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.Name, CH_UTF16)));
9485 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
9486 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.Name, CH_UTF16)));
9487 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.Name, ndr_charset_length(*r->out.Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
9488 : }
9489 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
9490 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
9491 : }
9492 0 : return NDR_ERR_SUCCESS;
9493 : }
9494 :
9495 0 : static enum ndr_err_code ndr_pull_clusapi_GetNotify(struct ndr_pull *ndr, int flags, struct clusapi_GetNotify *r)
9496 : {
9497 : uint32_t _ptr_Name;
9498 0 : uint32_t size_Name_2 = 0;
9499 0 : uint32_t length_Name_2 = 0;
9500 0 : TALLOC_CTX *_mem_save_dwNotifyKey_0 = NULL;
9501 0 : TALLOC_CTX *_mem_save_dwFilter_0 = NULL;
9502 0 : TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
9503 0 : TALLOC_CTX *_mem_save_Name_0 = NULL;
9504 0 : TALLOC_CTX *_mem_save_Name_1 = NULL;
9505 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
9506 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9507 0 : if (flags & NDR_IN) {
9508 0 : NDR_ZERO_STRUCT(r->out);
9509 :
9510 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
9511 0 : NDR_PULL_ALLOC(ndr, r->out.dwNotifyKey);
9512 0 : NDR_ZERO_STRUCTP(r->out.dwNotifyKey);
9513 0 : NDR_PULL_ALLOC(ndr, r->out.dwFilter);
9514 0 : NDR_ZERO_STRUCTP(r->out.dwFilter);
9515 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
9516 0 : NDR_ZERO_STRUCTP(r->out.dwStateSequence);
9517 0 : NDR_PULL_ALLOC(ndr, r->out.Name);
9518 0 : NDR_ZERO_STRUCTP(r->out.Name);
9519 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9520 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
9521 : }
9522 0 : if (flags & NDR_OUT) {
9523 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9524 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9525 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9526 0 : NDR_PULL_ALLOC(ndr, r->out.dwNotifyKey);
9527 : }
9528 0 : _mem_save_dwNotifyKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
9529 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwNotifyKey, LIBNDR_FLAG_REF_ALLOC);
9530 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwNotifyKey));
9531 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwNotifyKey_0, LIBNDR_FLAG_REF_ALLOC);
9532 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9533 0 : NDR_PULL_ALLOC(ndr, r->out.dwFilter);
9534 : }
9535 0 : _mem_save_dwFilter_0 = NDR_PULL_GET_MEM_CTX(ndr);
9536 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwFilter, LIBNDR_FLAG_REF_ALLOC);
9537 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwFilter));
9538 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwFilter_0, LIBNDR_FLAG_REF_ALLOC);
9539 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9540 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
9541 : }
9542 0 : _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
9543 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
9544 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
9545 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
9546 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9547 0 : NDR_PULL_ALLOC(ndr, r->out.Name);
9548 : }
9549 0 : _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
9550 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Name, LIBNDR_FLAG_REF_ALLOC);
9551 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
9552 0 : if (_ptr_Name) {
9553 0 : NDR_PULL_ALLOC(ndr, *r->out.Name);
9554 : } else {
9555 0 : *r->out.Name = NULL;
9556 : }
9557 0 : if (*r->out.Name) {
9558 0 : _mem_save_Name_1 = NDR_PULL_GET_MEM_CTX(ndr);
9559 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.Name, 0);
9560 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.Name));
9561 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.Name));
9562 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.Name, &size_Name_2));
9563 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.Name, &length_Name_2));
9564 0 : if (length_Name_2 > size_Name_2) {
9565 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Name_2, length_Name_2);
9566 : }
9567 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_2, sizeof(uint16_t)));
9568 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.Name, length_Name_2, sizeof(uint16_t), CH_UTF16));
9569 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_1, 0);
9570 : }
9571 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, LIBNDR_FLAG_REF_ALLOC);
9572 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9573 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9574 : }
9575 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9576 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
9577 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
9578 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
9579 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
9580 : }
9581 0 : return NDR_ERR_SUCCESS;
9582 : }
9583 :
9584 0 : _PUBLIC_ void ndr_print_clusapi_GetNotify(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNotify *r)
9585 : {
9586 0 : ndr_print_struct(ndr, name, "clusapi_GetNotify");
9587 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9588 0 : ndr->depth++;
9589 0 : if (flags & NDR_SET_VALUES) {
9590 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9591 : }
9592 0 : if (flags & NDR_IN) {
9593 0 : ndr_print_struct(ndr, "in", "clusapi_GetNotify");
9594 0 : ndr->depth++;
9595 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
9596 0 : ndr->depth--;
9597 : }
9598 0 : if (flags & NDR_OUT) {
9599 0 : ndr_print_struct(ndr, "out", "clusapi_GetNotify");
9600 0 : ndr->depth++;
9601 0 : ndr_print_ptr(ndr, "dwNotifyKey", r->out.dwNotifyKey);
9602 0 : ndr->depth++;
9603 0 : ndr_print_uint32(ndr, "dwNotifyKey", *r->out.dwNotifyKey);
9604 0 : ndr->depth--;
9605 0 : ndr_print_ptr(ndr, "dwFilter", r->out.dwFilter);
9606 0 : ndr->depth++;
9607 0 : ndr_print_uint32(ndr, "dwFilter", *r->out.dwFilter);
9608 0 : ndr->depth--;
9609 0 : ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
9610 0 : ndr->depth++;
9611 0 : ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
9612 0 : ndr->depth--;
9613 0 : ndr_print_ptr(ndr, "Name", r->out.Name);
9614 0 : ndr->depth++;
9615 0 : ndr_print_ptr(ndr, "Name", *r->out.Name);
9616 0 : ndr->depth++;
9617 0 : if (*r->out.Name) {
9618 0 : ndr_print_string(ndr, "Name", *r->out.Name);
9619 : }
9620 0 : ndr->depth--;
9621 0 : ndr->depth--;
9622 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9623 0 : ndr->depth++;
9624 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9625 0 : ndr->depth--;
9626 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9627 0 : ndr->depth--;
9628 : }
9629 0 : ndr->depth--;
9630 : }
9631 :
9632 0 : static enum ndr_err_code ndr_push_clusapi_OpenNode(struct ndr_push *ndr, int flags, const struct clusapi_OpenNode *r)
9633 : {
9634 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9635 0 : if (flags & NDR_IN) {
9636 0 : if (r->in.lpszNodeName == NULL) {
9637 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9638 : }
9639 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
9640 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
9641 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
9642 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNodeName, ndr_charset_length(r->in.lpszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
9643 : }
9644 0 : if (flags & NDR_OUT) {
9645 0 : if (r->out.Status == NULL) {
9646 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9647 : }
9648 0 : if (r->out.rpc_status == NULL) {
9649 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9650 : }
9651 0 : if (r->out.hNode == NULL) {
9652 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9653 : }
9654 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
9655 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
9656 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNode));
9657 : }
9658 0 : return NDR_ERR_SUCCESS;
9659 : }
9660 :
9661 0 : static enum ndr_err_code ndr_pull_clusapi_OpenNode(struct ndr_pull *ndr, int flags, struct clusapi_OpenNode *r)
9662 : {
9663 0 : uint32_t size_lpszNodeName_1 = 0;
9664 0 : uint32_t length_lpszNodeName_1 = 0;
9665 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
9666 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
9667 0 : TALLOC_CTX *_mem_save_hNode_0 = NULL;
9668 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9669 0 : if (flags & NDR_IN) {
9670 0 : NDR_ZERO_STRUCT(r->out);
9671 :
9672 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNodeName));
9673 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNodeName));
9674 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNodeName, &size_lpszNodeName_1));
9675 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNodeName, &length_lpszNodeName_1));
9676 0 : if (length_lpszNodeName_1 > size_lpszNodeName_1) {
9677 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNodeName_1, length_lpszNodeName_1);
9678 : }
9679 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNodeName_1, sizeof(uint16_t)));
9680 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNodeName, length_lpszNodeName_1, sizeof(uint16_t), CH_UTF16));
9681 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
9682 0 : NDR_ZERO_STRUCTP(r->out.Status);
9683 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9684 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
9685 0 : NDR_PULL_ALLOC(ndr, r->out.hNode);
9686 0 : NDR_ZERO_STRUCTP(r->out.hNode);
9687 : }
9688 0 : if (flags & NDR_OUT) {
9689 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9690 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9691 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9692 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
9693 : }
9694 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9695 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
9696 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
9697 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
9698 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9699 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9700 : }
9701 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9702 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
9703 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
9704 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
9705 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9706 0 : NDR_PULL_ALLOC(ndr, r->out.hNode);
9707 : }
9708 0 : _mem_save_hNode_0 = NDR_PULL_GET_MEM_CTX(ndr);
9709 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hNode, LIBNDR_FLAG_REF_ALLOC);
9710 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNode));
9711 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNode_0, LIBNDR_FLAG_REF_ALLOC);
9712 : }
9713 0 : return NDR_ERR_SUCCESS;
9714 : }
9715 :
9716 0 : _PUBLIC_ void ndr_print_clusapi_OpenNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenNode *r)
9717 : {
9718 0 : ndr_print_struct(ndr, name, "clusapi_OpenNode");
9719 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9720 0 : ndr->depth++;
9721 0 : if (flags & NDR_SET_VALUES) {
9722 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9723 : }
9724 0 : if (flags & NDR_IN) {
9725 0 : ndr_print_struct(ndr, "in", "clusapi_OpenNode");
9726 0 : ndr->depth++;
9727 0 : ndr_print_ptr(ndr, "lpszNodeName", r->in.lpszNodeName);
9728 0 : ndr->depth++;
9729 0 : ndr_print_string(ndr, "lpszNodeName", r->in.lpszNodeName);
9730 0 : ndr->depth--;
9731 0 : ndr->depth--;
9732 : }
9733 0 : if (flags & NDR_OUT) {
9734 0 : ndr_print_struct(ndr, "out", "clusapi_OpenNode");
9735 0 : ndr->depth++;
9736 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
9737 0 : ndr->depth++;
9738 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
9739 0 : ndr->depth--;
9740 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9741 0 : ndr->depth++;
9742 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9743 0 : ndr->depth--;
9744 0 : ndr_print_ptr(ndr, "hNode", r->out.hNode);
9745 0 : ndr->depth++;
9746 0 : ndr_print_policy_handle(ndr, "hNode", r->out.hNode);
9747 0 : ndr->depth--;
9748 0 : ndr->depth--;
9749 : }
9750 0 : ndr->depth--;
9751 : }
9752 :
9753 0 : static enum ndr_err_code ndr_push_clusapi_CloseNode(struct ndr_push *ndr, int flags, const struct clusapi_CloseNode *r)
9754 : {
9755 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9756 0 : if (flags & NDR_IN) {
9757 0 : if (r->in.Node == NULL) {
9758 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9759 : }
9760 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Node));
9761 : }
9762 0 : if (flags & NDR_OUT) {
9763 0 : if (r->out.Node == NULL) {
9764 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9765 : }
9766 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Node));
9767 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
9768 : }
9769 0 : return NDR_ERR_SUCCESS;
9770 : }
9771 :
9772 0 : static enum ndr_err_code ndr_pull_clusapi_CloseNode(struct ndr_pull *ndr, int flags, struct clusapi_CloseNode *r)
9773 : {
9774 0 : TALLOC_CTX *_mem_save_Node_0 = NULL;
9775 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9776 0 : if (flags & NDR_IN) {
9777 0 : NDR_ZERO_STRUCT(r->out);
9778 :
9779 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9780 0 : NDR_PULL_ALLOC(ndr, r->in.Node);
9781 : }
9782 0 : _mem_save_Node_0 = NDR_PULL_GET_MEM_CTX(ndr);
9783 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.Node, LIBNDR_FLAG_REF_ALLOC);
9784 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Node));
9785 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Node_0, LIBNDR_FLAG_REF_ALLOC);
9786 0 : NDR_PULL_ALLOC(ndr, r->out.Node);
9787 0 : *r->out.Node = *r->in.Node;
9788 : }
9789 0 : if (flags & NDR_OUT) {
9790 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9791 : if (r->in.Node == NULL) {
9792 : NDR_PULL_ALLOC(ndr, r->in.Node);
9793 : NDR_ZERO_STRUCTP(r->in.Node);
9794 : }
9795 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9796 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9797 0 : NDR_PULL_ALLOC(ndr, r->out.Node);
9798 : }
9799 0 : _mem_save_Node_0 = NDR_PULL_GET_MEM_CTX(ndr);
9800 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Node, LIBNDR_FLAG_REF_ALLOC);
9801 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Node));
9802 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Node_0, LIBNDR_FLAG_REF_ALLOC);
9803 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
9804 : }
9805 0 : return NDR_ERR_SUCCESS;
9806 : }
9807 :
9808 0 : _PUBLIC_ void ndr_print_clusapi_CloseNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseNode *r)
9809 : {
9810 0 : ndr_print_struct(ndr, name, "clusapi_CloseNode");
9811 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9812 0 : ndr->depth++;
9813 0 : if (flags & NDR_SET_VALUES) {
9814 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9815 : }
9816 0 : if (flags & NDR_IN) {
9817 0 : ndr_print_struct(ndr, "in", "clusapi_CloseNode");
9818 0 : ndr->depth++;
9819 0 : ndr_print_ptr(ndr, "Node", r->in.Node);
9820 0 : ndr->depth++;
9821 0 : ndr_print_policy_handle(ndr, "Node", r->in.Node);
9822 0 : ndr->depth--;
9823 0 : ndr->depth--;
9824 : }
9825 0 : if (flags & NDR_OUT) {
9826 0 : ndr_print_struct(ndr, "out", "clusapi_CloseNode");
9827 0 : ndr->depth++;
9828 0 : ndr_print_ptr(ndr, "Node", r->out.Node);
9829 0 : ndr->depth++;
9830 0 : ndr_print_policy_handle(ndr, "Node", r->out.Node);
9831 0 : ndr->depth--;
9832 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9833 0 : ndr->depth--;
9834 : }
9835 0 : ndr->depth--;
9836 : }
9837 :
9838 0 : static enum ndr_err_code ndr_push_clusapi_GetNodeState(struct ndr_push *ndr, int flags, const struct clusapi_GetNodeState *r)
9839 : {
9840 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9841 0 : if (flags & NDR_IN) {
9842 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
9843 : }
9844 0 : if (flags & NDR_OUT) {
9845 0 : if (r->out.State == NULL) {
9846 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9847 : }
9848 0 : if (r->out.rpc_status == NULL) {
9849 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9850 : }
9851 0 : NDR_CHECK(ndr_push_clusapi_ClusterNodeState(ndr, NDR_SCALARS, *r->out.State));
9852 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
9853 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
9854 : }
9855 0 : return NDR_ERR_SUCCESS;
9856 : }
9857 :
9858 0 : static enum ndr_err_code ndr_pull_clusapi_GetNodeState(struct ndr_pull *ndr, int flags, struct clusapi_GetNodeState *r)
9859 : {
9860 0 : TALLOC_CTX *_mem_save_State_0 = NULL;
9861 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
9862 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9863 0 : if (flags & NDR_IN) {
9864 0 : NDR_ZERO_STRUCT(r->out);
9865 :
9866 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
9867 0 : NDR_PULL_ALLOC(ndr, r->out.State);
9868 0 : NDR_ZERO_STRUCTP(r->out.State);
9869 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9870 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
9871 : }
9872 0 : if (flags & NDR_OUT) {
9873 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9874 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9875 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9876 0 : NDR_PULL_ALLOC(ndr, r->out.State);
9877 : }
9878 0 : _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
9879 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
9880 0 : NDR_CHECK(ndr_pull_clusapi_ClusterNodeState(ndr, NDR_SCALARS, r->out.State));
9881 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
9882 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9883 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9884 : }
9885 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9886 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
9887 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
9888 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
9889 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
9890 : }
9891 0 : return NDR_ERR_SUCCESS;
9892 : }
9893 :
9894 0 : _PUBLIC_ void ndr_print_clusapi_GetNodeState(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNodeState *r)
9895 : {
9896 0 : ndr_print_struct(ndr, name, "clusapi_GetNodeState");
9897 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9898 0 : ndr->depth++;
9899 0 : if (flags & NDR_SET_VALUES) {
9900 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9901 : }
9902 0 : if (flags & NDR_IN) {
9903 0 : ndr_print_struct(ndr, "in", "clusapi_GetNodeState");
9904 0 : ndr->depth++;
9905 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
9906 0 : ndr->depth--;
9907 : }
9908 0 : if (flags & NDR_OUT) {
9909 0 : ndr_print_struct(ndr, "out", "clusapi_GetNodeState");
9910 0 : ndr->depth++;
9911 0 : ndr_print_ptr(ndr, "State", r->out.State);
9912 0 : ndr->depth++;
9913 0 : ndr_print_clusapi_ClusterNodeState(ndr, "State", *r->out.State);
9914 0 : ndr->depth--;
9915 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9916 0 : ndr->depth++;
9917 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9918 0 : ndr->depth--;
9919 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9920 0 : ndr->depth--;
9921 : }
9922 0 : ndr->depth--;
9923 : }
9924 :
9925 0 : static enum ndr_err_code ndr_push_clusapi_PauseNode(struct ndr_push *ndr, int flags, const struct clusapi_PauseNode *r)
9926 : {
9927 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9928 0 : if (flags & NDR_IN) {
9929 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
9930 : }
9931 0 : if (flags & NDR_OUT) {
9932 0 : if (r->out.rpc_status == NULL) {
9933 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9934 : }
9935 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
9936 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
9937 : }
9938 0 : return NDR_ERR_SUCCESS;
9939 : }
9940 :
9941 0 : static enum ndr_err_code ndr_pull_clusapi_PauseNode(struct ndr_pull *ndr, int flags, struct clusapi_PauseNode *r)
9942 : {
9943 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
9944 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9945 0 : if (flags & NDR_IN) {
9946 0 : NDR_ZERO_STRUCT(r->out);
9947 :
9948 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
9949 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9950 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
9951 : }
9952 0 : if (flags & NDR_OUT) {
9953 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9954 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9955 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9956 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
9957 : }
9958 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
9959 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
9960 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
9961 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
9962 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
9963 : }
9964 0 : return NDR_ERR_SUCCESS;
9965 : }
9966 :
9967 0 : _PUBLIC_ void ndr_print_clusapi_PauseNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_PauseNode *r)
9968 : {
9969 0 : ndr_print_struct(ndr, name, "clusapi_PauseNode");
9970 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9971 0 : ndr->depth++;
9972 0 : if (flags & NDR_SET_VALUES) {
9973 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9974 : }
9975 0 : if (flags & NDR_IN) {
9976 0 : ndr_print_struct(ndr, "in", "clusapi_PauseNode");
9977 0 : ndr->depth++;
9978 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
9979 0 : ndr->depth--;
9980 : }
9981 0 : if (flags & NDR_OUT) {
9982 0 : ndr_print_struct(ndr, "out", "clusapi_PauseNode");
9983 0 : ndr->depth++;
9984 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
9985 0 : ndr->depth++;
9986 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
9987 0 : ndr->depth--;
9988 0 : ndr_print_WERROR(ndr, "result", r->out.result);
9989 0 : ndr->depth--;
9990 : }
9991 0 : ndr->depth--;
9992 : }
9993 :
9994 0 : static enum ndr_err_code ndr_push_clusapi_ResumeNode(struct ndr_push *ndr, int flags, const struct clusapi_ResumeNode *r)
9995 : {
9996 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9997 0 : if (flags & NDR_IN) {
9998 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
9999 : }
10000 0 : if (flags & NDR_OUT) {
10001 0 : if (r->out.rpc_status == NULL) {
10002 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10003 : }
10004 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
10005 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
10006 : }
10007 0 : return NDR_ERR_SUCCESS;
10008 : }
10009 :
10010 0 : static enum ndr_err_code ndr_pull_clusapi_ResumeNode(struct ndr_pull *ndr, int flags, struct clusapi_ResumeNode *r)
10011 : {
10012 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
10013 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10014 0 : if (flags & NDR_IN) {
10015 0 : NDR_ZERO_STRUCT(r->out);
10016 :
10017 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
10018 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10019 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
10020 : }
10021 0 : if (flags & NDR_OUT) {
10022 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10023 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10024 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10025 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10026 : }
10027 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
10028 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
10029 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
10030 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
10031 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
10032 : }
10033 0 : return NDR_ERR_SUCCESS;
10034 : }
10035 :
10036 0 : _PUBLIC_ void ndr_print_clusapi_ResumeNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ResumeNode *r)
10037 : {
10038 0 : ndr_print_struct(ndr, name, "clusapi_ResumeNode");
10039 0 : if (r == NULL) { ndr_print_null(ndr); return; }
10040 0 : ndr->depth++;
10041 0 : if (flags & NDR_SET_VALUES) {
10042 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10043 : }
10044 0 : if (flags & NDR_IN) {
10045 0 : ndr_print_struct(ndr, "in", "clusapi_ResumeNode");
10046 0 : ndr->depth++;
10047 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
10048 0 : ndr->depth--;
10049 : }
10050 0 : if (flags & NDR_OUT) {
10051 0 : ndr_print_struct(ndr, "out", "clusapi_ResumeNode");
10052 0 : ndr->depth++;
10053 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
10054 0 : ndr->depth++;
10055 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
10056 0 : ndr->depth--;
10057 0 : ndr_print_WERROR(ndr, "result", r->out.result);
10058 0 : ndr->depth--;
10059 : }
10060 0 : ndr->depth--;
10061 : }
10062 :
10063 0 : static enum ndr_err_code ndr_push_clusapi_EvictNode(struct ndr_push *ndr, int flags, const struct clusapi_EvictNode *r)
10064 : {
10065 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10066 0 : if (flags & NDR_IN) {
10067 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
10068 : }
10069 0 : if (flags & NDR_OUT) {
10070 0 : if (r->out.rpc_status == NULL) {
10071 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10072 : }
10073 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
10074 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
10075 : }
10076 0 : return NDR_ERR_SUCCESS;
10077 : }
10078 :
10079 0 : static enum ndr_err_code ndr_pull_clusapi_EvictNode(struct ndr_pull *ndr, int flags, struct clusapi_EvictNode *r)
10080 : {
10081 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
10082 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10083 0 : if (flags & NDR_IN) {
10084 0 : NDR_ZERO_STRUCT(r->out);
10085 :
10086 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
10087 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10088 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
10089 : }
10090 0 : if (flags & NDR_OUT) {
10091 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10092 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10093 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10094 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10095 : }
10096 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
10097 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
10098 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
10099 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
10100 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
10101 : }
10102 0 : return NDR_ERR_SUCCESS;
10103 : }
10104 :
10105 0 : _PUBLIC_ void ndr_print_clusapi_EvictNode(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_EvictNode *r)
10106 : {
10107 0 : ndr_print_struct(ndr, name, "clusapi_EvictNode");
10108 0 : if (r == NULL) { ndr_print_null(ndr); return; }
10109 0 : ndr->depth++;
10110 0 : if (flags & NDR_SET_VALUES) {
10111 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10112 : }
10113 0 : if (flags & NDR_IN) {
10114 0 : ndr_print_struct(ndr, "in", "clusapi_EvictNode");
10115 0 : ndr->depth++;
10116 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
10117 0 : ndr->depth--;
10118 : }
10119 0 : if (flags & NDR_OUT) {
10120 0 : ndr_print_struct(ndr, "out", "clusapi_EvictNode");
10121 0 : ndr->depth++;
10122 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
10123 0 : ndr->depth++;
10124 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
10125 0 : ndr->depth--;
10126 0 : ndr_print_WERROR(ndr, "result", r->out.result);
10127 0 : ndr->depth--;
10128 : }
10129 0 : ndr->depth--;
10130 : }
10131 :
10132 0 : static enum ndr_err_code ndr_push_clusapi_NodeResourceControl(struct ndr_push *ndr, int flags, const struct clusapi_NodeResourceControl *r)
10133 : {
10134 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10135 0 : if (flags & NDR_IN) {
10136 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
10137 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
10138 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
10139 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
10140 0 : if (r->in.lpInBuffer) {
10141 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
10142 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
10143 : }
10144 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
10145 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10146 : }
10147 0 : if (flags & NDR_OUT) {
10148 0 : if (r->out.lpOutBuffer == NULL) {
10149 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10150 : }
10151 0 : if (r->out.lpBytesReturned == NULL) {
10152 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10153 : }
10154 0 : if (r->out.lpcbRequired == NULL) {
10155 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10156 : }
10157 0 : if (r->out.rpc_status == NULL) {
10158 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10159 : }
10160 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10161 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
10162 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10163 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
10164 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10165 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
10166 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
10167 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
10168 : }
10169 0 : return NDR_ERR_SUCCESS;
10170 : }
10171 :
10172 0 : static enum ndr_err_code ndr_pull_clusapi_NodeResourceControl(struct ndr_pull *ndr, int flags, struct clusapi_NodeResourceControl *r)
10173 : {
10174 : uint32_t _ptr_lpInBuffer;
10175 0 : uint32_t size_lpInBuffer_1 = 0;
10176 0 : uint32_t size_lpOutBuffer_1 = 0;
10177 0 : uint32_t length_lpOutBuffer_1 = 0;
10178 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
10179 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
10180 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
10181 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
10182 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10183 0 : if (flags & NDR_IN) {
10184 0 : NDR_ZERO_STRUCT(r->out);
10185 :
10186 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
10187 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
10188 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
10189 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
10190 0 : if (_ptr_lpInBuffer) {
10191 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
10192 : } else {
10193 0 : r->in.lpInBuffer = NULL;
10194 : }
10195 0 : if (r->in.lpInBuffer) {
10196 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
10197 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
10198 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
10199 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
10200 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
10201 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
10202 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
10203 : }
10204 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
10205 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
10206 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
10207 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
10208 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10209 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
10210 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
10211 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
10212 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10213 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
10214 0 : if (r->in.lpInBuffer) {
10215 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
10216 : }
10217 : }
10218 0 : if (flags & NDR_OUT) {
10219 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10220 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10221 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
10222 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
10223 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
10224 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
10225 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
10226 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
10227 : }
10228 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10229 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
10230 : }
10231 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
10232 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10233 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10234 : }
10235 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
10236 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
10237 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
10238 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
10239 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10240 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
10241 : }
10242 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
10243 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
10244 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
10245 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
10246 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10247 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10248 : }
10249 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
10250 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
10251 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
10252 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
10253 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
10254 0 : if (r->out.lpOutBuffer) {
10255 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
10256 : }
10257 0 : if (r->out.lpOutBuffer) {
10258 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
10259 : }
10260 : }
10261 0 : return NDR_ERR_SUCCESS;
10262 : }
10263 :
10264 0 : _PUBLIC_ void ndr_print_clusapi_NodeResourceControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NodeResourceControl *r)
10265 : {
10266 0 : ndr_print_struct(ndr, name, "clusapi_NodeResourceControl");
10267 0 : if (r == NULL) { ndr_print_null(ndr); return; }
10268 0 : ndr->depth++;
10269 0 : if (flags & NDR_SET_VALUES) {
10270 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10271 : }
10272 0 : if (flags & NDR_IN) {
10273 0 : ndr_print_struct(ndr, "in", "clusapi_NodeResourceControl");
10274 0 : ndr->depth++;
10275 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
10276 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
10277 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
10278 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
10279 0 : ndr->depth++;
10280 0 : if (r->in.lpInBuffer) {
10281 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
10282 : }
10283 0 : ndr->depth--;
10284 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
10285 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
10286 0 : ndr->depth--;
10287 : }
10288 0 : if (flags & NDR_OUT) {
10289 0 : ndr_print_struct(ndr, "out", "clusapi_NodeResourceControl");
10290 0 : ndr->depth++;
10291 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
10292 0 : ndr->depth++;
10293 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
10294 0 : ndr->depth--;
10295 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
10296 0 : ndr->depth++;
10297 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
10298 0 : ndr->depth--;
10299 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
10300 0 : ndr->depth++;
10301 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
10302 0 : ndr->depth--;
10303 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
10304 0 : ndr->depth++;
10305 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
10306 0 : ndr->depth--;
10307 0 : ndr_print_WERROR(ndr, "result", r->out.result);
10308 0 : ndr->depth--;
10309 : }
10310 0 : ndr->depth--;
10311 : }
10312 :
10313 0 : static enum ndr_err_code ndr_push_clusapi_ResourceControl(struct ndr_push *ndr, int flags, const struct clusapi_ResourceControl *r)
10314 : {
10315 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10316 0 : if (flags & NDR_IN) {
10317 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
10318 0 : NDR_CHECK(ndr_push_clusapi_ResourceControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
10319 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
10320 0 : if (r->in.lpInBuffer) {
10321 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
10322 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
10323 : }
10324 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
10325 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10326 : }
10327 0 : if (flags & NDR_OUT) {
10328 0 : if (r->out.lpOutBuffer == NULL) {
10329 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10330 : }
10331 0 : if (r->out.lpBytesReturned == NULL) {
10332 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10333 : }
10334 0 : if (r->out.lpcbRequired == NULL) {
10335 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10336 : }
10337 0 : if (r->out.rpc_status == NULL) {
10338 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10339 : }
10340 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10341 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
10342 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10343 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
10344 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10345 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
10346 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
10347 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
10348 : }
10349 0 : return NDR_ERR_SUCCESS;
10350 : }
10351 :
10352 0 : static enum ndr_err_code ndr_pull_clusapi_ResourceControl(struct ndr_pull *ndr, int flags, struct clusapi_ResourceControl *r)
10353 : {
10354 : uint32_t _ptr_lpInBuffer;
10355 0 : uint32_t size_lpInBuffer_1 = 0;
10356 0 : uint32_t size_lpOutBuffer_1 = 0;
10357 0 : uint32_t length_lpOutBuffer_1 = 0;
10358 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
10359 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
10360 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
10361 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
10362 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10363 0 : if (flags & NDR_IN) {
10364 0 : NDR_ZERO_STRUCT(r->out);
10365 :
10366 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
10367 0 : NDR_CHECK(ndr_pull_clusapi_ResourceControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
10368 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
10369 0 : if (_ptr_lpInBuffer) {
10370 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
10371 : } else {
10372 0 : r->in.lpInBuffer = NULL;
10373 : }
10374 0 : if (r->in.lpInBuffer) {
10375 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
10376 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
10377 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
10378 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
10379 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
10380 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
10381 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
10382 : }
10383 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
10384 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
10385 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
10386 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
10387 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10388 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
10389 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
10390 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
10391 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10392 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
10393 0 : if (r->in.lpInBuffer) {
10394 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
10395 : }
10396 : }
10397 0 : if (flags & NDR_OUT) {
10398 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10399 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10400 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
10401 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
10402 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
10403 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
10404 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
10405 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
10406 : }
10407 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10408 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
10409 : }
10410 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
10411 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10412 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10413 : }
10414 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
10415 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
10416 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
10417 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
10418 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10419 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
10420 : }
10421 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
10422 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
10423 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
10424 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
10425 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10426 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10427 : }
10428 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
10429 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
10430 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
10431 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
10432 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
10433 0 : if (r->out.lpOutBuffer) {
10434 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
10435 : }
10436 0 : if (r->out.lpOutBuffer) {
10437 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
10438 : }
10439 : }
10440 0 : return NDR_ERR_SUCCESS;
10441 : }
10442 :
10443 0 : _PUBLIC_ void ndr_print_clusapi_ResourceControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ResourceControl *r)
10444 : {
10445 0 : ndr_print_struct(ndr, name, "clusapi_ResourceControl");
10446 0 : if (r == NULL) { ndr_print_null(ndr); return; }
10447 0 : ndr->depth++;
10448 0 : if (flags & NDR_SET_VALUES) {
10449 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10450 : }
10451 0 : if (flags & NDR_IN) {
10452 0 : ndr_print_struct(ndr, "in", "clusapi_ResourceControl");
10453 0 : ndr->depth++;
10454 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
10455 0 : ndr_print_clusapi_ResourceControlCode(ndr, "dwControlCode", r->in.dwControlCode);
10456 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
10457 0 : ndr->depth++;
10458 0 : if (r->in.lpInBuffer) {
10459 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
10460 : }
10461 0 : ndr->depth--;
10462 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
10463 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
10464 0 : ndr->depth--;
10465 : }
10466 0 : if (flags & NDR_OUT) {
10467 0 : ndr_print_struct(ndr, "out", "clusapi_ResourceControl");
10468 0 : ndr->depth++;
10469 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
10470 0 : ndr->depth++;
10471 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
10472 0 : ndr->depth--;
10473 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
10474 0 : ndr->depth++;
10475 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
10476 0 : ndr->depth--;
10477 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
10478 0 : ndr->depth++;
10479 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
10480 0 : ndr->depth--;
10481 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
10482 0 : ndr->depth++;
10483 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
10484 0 : ndr->depth--;
10485 0 : ndr_print_WERROR(ndr, "result", r->out.result);
10486 0 : ndr->depth--;
10487 : }
10488 0 : ndr->depth--;
10489 : }
10490 :
10491 0 : static enum ndr_err_code ndr_push_clusapi_NodeResourceTypeControl(struct ndr_push *ndr, int flags, const struct clusapi_NodeResourceTypeControl *r)
10492 : {
10493 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10494 0 : if (flags & NDR_IN) {
10495 0 : if (r->in.lpszResourceTypeName == NULL) {
10496 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10497 : }
10498 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
10499 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16)));
10500 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
10501 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16)));
10502 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceTypeName, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
10503 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
10504 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
10505 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
10506 0 : if (r->in.lpInBuffer) {
10507 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
10508 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
10509 : }
10510 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
10511 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10512 : }
10513 0 : if (flags & NDR_OUT) {
10514 0 : if (r->out.lpOutBuffer == NULL) {
10515 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10516 : }
10517 0 : if (r->out.lpBytesReturned == NULL) {
10518 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10519 : }
10520 0 : if (r->out.lpcbRequired == NULL) {
10521 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10522 : }
10523 0 : if (r->out.rpc_status == NULL) {
10524 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10525 : }
10526 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10527 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
10528 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10529 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
10530 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10531 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
10532 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
10533 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
10534 : }
10535 0 : return NDR_ERR_SUCCESS;
10536 : }
10537 :
10538 0 : static enum ndr_err_code ndr_pull_clusapi_NodeResourceTypeControl(struct ndr_pull *ndr, int flags, struct clusapi_NodeResourceTypeControl *r)
10539 : {
10540 0 : uint32_t size_lpszResourceTypeName_1 = 0;
10541 0 : uint32_t length_lpszResourceTypeName_1 = 0;
10542 : uint32_t _ptr_lpInBuffer;
10543 0 : uint32_t size_lpInBuffer_1 = 0;
10544 0 : uint32_t size_lpOutBuffer_1 = 0;
10545 0 : uint32_t length_lpOutBuffer_1 = 0;
10546 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
10547 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
10548 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
10549 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
10550 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10551 0 : if (flags & NDR_IN) {
10552 0 : NDR_ZERO_STRUCT(r->out);
10553 :
10554 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
10555 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceTypeName));
10556 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceTypeName));
10557 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceTypeName, &size_lpszResourceTypeName_1));
10558 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceTypeName, &length_lpszResourceTypeName_1));
10559 0 : if (length_lpszResourceTypeName_1 > size_lpszResourceTypeName_1) {
10560 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszResourceTypeName_1, length_lpszResourceTypeName_1);
10561 : }
10562 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceTypeName_1, sizeof(uint16_t)));
10563 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceTypeName, length_lpszResourceTypeName_1, sizeof(uint16_t), CH_UTF16));
10564 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
10565 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
10566 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
10567 0 : if (_ptr_lpInBuffer) {
10568 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
10569 : } else {
10570 0 : r->in.lpInBuffer = NULL;
10571 : }
10572 0 : if (r->in.lpInBuffer) {
10573 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
10574 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
10575 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
10576 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
10577 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
10578 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
10579 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
10580 : }
10581 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
10582 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
10583 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
10584 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
10585 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10586 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
10587 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
10588 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
10589 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10590 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
10591 0 : if (r->in.lpInBuffer) {
10592 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
10593 : }
10594 : }
10595 0 : if (flags & NDR_OUT) {
10596 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10597 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10598 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
10599 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
10600 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
10601 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
10602 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
10603 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
10604 : }
10605 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10606 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
10607 : }
10608 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
10609 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10610 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10611 : }
10612 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
10613 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
10614 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
10615 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
10616 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10617 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
10618 : }
10619 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
10620 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
10621 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
10622 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
10623 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10624 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10625 : }
10626 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
10627 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
10628 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
10629 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
10630 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
10631 0 : if (r->out.lpOutBuffer) {
10632 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
10633 : }
10634 0 : if (r->out.lpOutBuffer) {
10635 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
10636 : }
10637 : }
10638 0 : return NDR_ERR_SUCCESS;
10639 : }
10640 :
10641 0 : _PUBLIC_ void ndr_print_clusapi_NodeResourceTypeControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NodeResourceTypeControl *r)
10642 : {
10643 0 : ndr_print_struct(ndr, name, "clusapi_NodeResourceTypeControl");
10644 0 : if (r == NULL) { ndr_print_null(ndr); return; }
10645 0 : ndr->depth++;
10646 0 : if (flags & NDR_SET_VALUES) {
10647 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10648 : }
10649 0 : if (flags & NDR_IN) {
10650 0 : ndr_print_struct(ndr, "in", "clusapi_NodeResourceTypeControl");
10651 0 : ndr->depth++;
10652 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
10653 0 : ndr_print_ptr(ndr, "lpszResourceTypeName", r->in.lpszResourceTypeName);
10654 0 : ndr->depth++;
10655 0 : ndr_print_string(ndr, "lpszResourceTypeName", r->in.lpszResourceTypeName);
10656 0 : ndr->depth--;
10657 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
10658 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
10659 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
10660 0 : ndr->depth++;
10661 0 : if (r->in.lpInBuffer) {
10662 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
10663 : }
10664 0 : ndr->depth--;
10665 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
10666 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
10667 0 : ndr->depth--;
10668 : }
10669 0 : if (flags & NDR_OUT) {
10670 0 : ndr_print_struct(ndr, "out", "clusapi_NodeResourceTypeControl");
10671 0 : ndr->depth++;
10672 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
10673 0 : ndr->depth++;
10674 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
10675 0 : ndr->depth--;
10676 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
10677 0 : ndr->depth++;
10678 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
10679 0 : ndr->depth--;
10680 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
10681 0 : ndr->depth++;
10682 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
10683 0 : ndr->depth--;
10684 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
10685 0 : ndr->depth++;
10686 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
10687 0 : ndr->depth--;
10688 0 : ndr_print_WERROR(ndr, "result", r->out.result);
10689 0 : ndr->depth--;
10690 : }
10691 0 : ndr->depth--;
10692 : }
10693 :
10694 0 : static enum ndr_err_code ndr_push_clusapi_ResourceTypeControl(struct ndr_push *ndr, int flags, const struct clusapi_ResourceTypeControl *r)
10695 : {
10696 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10697 0 : if (flags & NDR_IN) {
10698 0 : if (r->in.lpszResourceTypeName == NULL) {
10699 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10700 : }
10701 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
10702 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16)));
10703 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
10704 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16)));
10705 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceTypeName, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
10706 0 : NDR_CHECK(ndr_push_clusapi_ResourceTypeControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
10707 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
10708 0 : if (r->in.lpInBuffer) {
10709 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
10710 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
10711 : }
10712 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
10713 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10714 : }
10715 0 : if (flags & NDR_OUT) {
10716 0 : if (r->out.lpOutBuffer == NULL) {
10717 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10718 : }
10719 0 : if (r->out.lpBytesReturned == NULL) {
10720 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10721 : }
10722 0 : if (r->out.lpcbRequired == NULL) {
10723 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10724 : }
10725 0 : if (r->out.rpc_status == NULL) {
10726 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10727 : }
10728 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10729 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
10730 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10731 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
10732 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10733 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
10734 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
10735 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
10736 : }
10737 0 : return NDR_ERR_SUCCESS;
10738 : }
10739 :
10740 0 : static enum ndr_err_code ndr_pull_clusapi_ResourceTypeControl(struct ndr_pull *ndr, int flags, struct clusapi_ResourceTypeControl *r)
10741 : {
10742 0 : uint32_t size_lpszResourceTypeName_1 = 0;
10743 0 : uint32_t length_lpszResourceTypeName_1 = 0;
10744 : uint32_t _ptr_lpInBuffer;
10745 0 : uint32_t size_lpInBuffer_1 = 0;
10746 0 : uint32_t size_lpOutBuffer_1 = 0;
10747 0 : uint32_t length_lpOutBuffer_1 = 0;
10748 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
10749 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
10750 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
10751 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
10752 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10753 0 : if (flags & NDR_IN) {
10754 0 : NDR_ZERO_STRUCT(r->out);
10755 :
10756 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
10757 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceTypeName));
10758 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceTypeName));
10759 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceTypeName, &size_lpszResourceTypeName_1));
10760 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceTypeName, &length_lpszResourceTypeName_1));
10761 0 : if (length_lpszResourceTypeName_1 > size_lpszResourceTypeName_1) {
10762 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszResourceTypeName_1, length_lpszResourceTypeName_1);
10763 : }
10764 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceTypeName_1, sizeof(uint16_t)));
10765 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceTypeName, length_lpszResourceTypeName_1, sizeof(uint16_t), CH_UTF16));
10766 0 : NDR_CHECK(ndr_pull_clusapi_ResourceTypeControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
10767 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
10768 0 : if (_ptr_lpInBuffer) {
10769 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
10770 : } else {
10771 0 : r->in.lpInBuffer = NULL;
10772 : }
10773 0 : if (r->in.lpInBuffer) {
10774 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
10775 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
10776 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
10777 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
10778 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
10779 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
10780 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
10781 : }
10782 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
10783 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
10784 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
10785 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
10786 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10787 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
10788 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
10789 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
10790 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10791 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
10792 0 : if (r->in.lpInBuffer) {
10793 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
10794 : }
10795 : }
10796 0 : if (flags & NDR_OUT) {
10797 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10798 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10799 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
10800 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
10801 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
10802 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
10803 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
10804 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
10805 : }
10806 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10807 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
10808 : }
10809 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
10810 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10811 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10812 : }
10813 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
10814 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
10815 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
10816 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
10817 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10818 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
10819 : }
10820 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
10821 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
10822 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
10823 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
10824 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10825 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10826 : }
10827 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
10828 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
10829 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
10830 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
10831 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
10832 0 : if (r->out.lpOutBuffer) {
10833 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
10834 : }
10835 0 : if (r->out.lpOutBuffer) {
10836 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
10837 : }
10838 : }
10839 0 : return NDR_ERR_SUCCESS;
10840 : }
10841 :
10842 0 : _PUBLIC_ void ndr_print_clusapi_ResourceTypeControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ResourceTypeControl *r)
10843 : {
10844 0 : ndr_print_struct(ndr, name, "clusapi_ResourceTypeControl");
10845 0 : if (r == NULL) { ndr_print_null(ndr); return; }
10846 0 : ndr->depth++;
10847 0 : if (flags & NDR_SET_VALUES) {
10848 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10849 : }
10850 0 : if (flags & NDR_IN) {
10851 0 : ndr_print_struct(ndr, "in", "clusapi_ResourceTypeControl");
10852 0 : ndr->depth++;
10853 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
10854 0 : ndr_print_ptr(ndr, "lpszResourceTypeName", r->in.lpszResourceTypeName);
10855 0 : ndr->depth++;
10856 0 : ndr_print_string(ndr, "lpszResourceTypeName", r->in.lpszResourceTypeName);
10857 0 : ndr->depth--;
10858 0 : ndr_print_clusapi_ResourceTypeControlCode(ndr, "dwControlCode", r->in.dwControlCode);
10859 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
10860 0 : ndr->depth++;
10861 0 : if (r->in.lpInBuffer) {
10862 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
10863 : }
10864 0 : ndr->depth--;
10865 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
10866 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
10867 0 : ndr->depth--;
10868 : }
10869 0 : if (flags & NDR_OUT) {
10870 0 : ndr_print_struct(ndr, "out", "clusapi_ResourceTypeControl");
10871 0 : ndr->depth++;
10872 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
10873 0 : ndr->depth++;
10874 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
10875 0 : ndr->depth--;
10876 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
10877 0 : ndr->depth++;
10878 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
10879 0 : ndr->depth--;
10880 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
10881 0 : ndr->depth++;
10882 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
10883 0 : ndr->depth--;
10884 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
10885 0 : ndr->depth++;
10886 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
10887 0 : ndr->depth--;
10888 0 : ndr_print_WERROR(ndr, "result", r->out.result);
10889 0 : ndr->depth--;
10890 : }
10891 0 : ndr->depth--;
10892 : }
10893 :
10894 0 : static enum ndr_err_code ndr_push_clusapi_NodeGroupControl(struct ndr_push *ndr, int flags, const struct clusapi_NodeGroupControl *r)
10895 : {
10896 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10897 0 : if (flags & NDR_IN) {
10898 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
10899 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
10900 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
10901 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
10902 0 : if (r->in.lpInBuffer) {
10903 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
10904 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
10905 : }
10906 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
10907 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10908 : }
10909 0 : if (flags & NDR_OUT) {
10910 0 : if (r->out.lpOutBuffer == NULL) {
10911 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10912 : }
10913 0 : if (r->out.lpBytesReturned == NULL) {
10914 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10915 : }
10916 0 : if (r->out.lpcbRequired == NULL) {
10917 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10918 : }
10919 0 : if (r->out.rpc_status == NULL) {
10920 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10921 : }
10922 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
10923 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
10924 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10925 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
10926 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
10927 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
10928 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
10929 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
10930 : }
10931 0 : return NDR_ERR_SUCCESS;
10932 : }
10933 :
10934 0 : static enum ndr_err_code ndr_pull_clusapi_NodeGroupControl(struct ndr_pull *ndr, int flags, struct clusapi_NodeGroupControl *r)
10935 : {
10936 : uint32_t _ptr_lpInBuffer;
10937 0 : uint32_t size_lpInBuffer_1 = 0;
10938 0 : uint32_t size_lpOutBuffer_1 = 0;
10939 0 : uint32_t length_lpOutBuffer_1 = 0;
10940 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
10941 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
10942 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
10943 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
10944 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10945 0 : if (flags & NDR_IN) {
10946 0 : NDR_ZERO_STRUCT(r->out);
10947 :
10948 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
10949 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
10950 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
10951 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
10952 0 : if (_ptr_lpInBuffer) {
10953 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
10954 : } else {
10955 0 : r->in.lpInBuffer = NULL;
10956 : }
10957 0 : if (r->in.lpInBuffer) {
10958 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
10959 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
10960 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
10961 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
10962 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
10963 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
10964 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
10965 : }
10966 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
10967 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
10968 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
10969 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
10970 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10971 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
10972 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
10973 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
10974 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
10975 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
10976 0 : if (r->in.lpInBuffer) {
10977 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
10978 : }
10979 : }
10980 0 : if (flags & NDR_OUT) {
10981 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10982 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10983 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
10984 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
10985 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
10986 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
10987 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
10988 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
10989 : }
10990 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10991 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
10992 : }
10993 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
10994 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10995 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
10996 : }
10997 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
10998 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
10999 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
11000 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
11001 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11002 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
11003 : }
11004 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
11005 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
11006 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
11007 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
11008 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11009 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11010 : }
11011 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
11012 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
11013 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
11014 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
11015 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
11016 0 : if (r->out.lpOutBuffer) {
11017 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
11018 : }
11019 0 : if (r->out.lpOutBuffer) {
11020 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
11021 : }
11022 : }
11023 0 : return NDR_ERR_SUCCESS;
11024 : }
11025 :
11026 0 : _PUBLIC_ void ndr_print_clusapi_NodeGroupControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NodeGroupControl *r)
11027 : {
11028 0 : ndr_print_struct(ndr, name, "clusapi_NodeGroupControl");
11029 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11030 0 : ndr->depth++;
11031 0 : if (flags & NDR_SET_VALUES) {
11032 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11033 : }
11034 0 : if (flags & NDR_IN) {
11035 0 : ndr_print_struct(ndr, "in", "clusapi_NodeGroupControl");
11036 0 : ndr->depth++;
11037 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
11038 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
11039 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
11040 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
11041 0 : ndr->depth++;
11042 0 : if (r->in.lpInBuffer) {
11043 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
11044 : }
11045 0 : ndr->depth--;
11046 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
11047 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
11048 0 : ndr->depth--;
11049 : }
11050 0 : if (flags & NDR_OUT) {
11051 0 : ndr_print_struct(ndr, "out", "clusapi_NodeGroupControl");
11052 0 : ndr->depth++;
11053 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
11054 0 : ndr->depth++;
11055 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
11056 0 : ndr->depth--;
11057 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
11058 0 : ndr->depth++;
11059 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
11060 0 : ndr->depth--;
11061 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
11062 0 : ndr->depth++;
11063 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
11064 0 : ndr->depth--;
11065 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
11066 0 : ndr->depth++;
11067 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
11068 0 : ndr->depth--;
11069 0 : ndr_print_WERROR(ndr, "result", r->out.result);
11070 0 : ndr->depth--;
11071 : }
11072 0 : ndr->depth--;
11073 : }
11074 :
11075 0 : static enum ndr_err_code ndr_push_clusapi_GroupControl(struct ndr_push *ndr, int flags, const struct clusapi_GroupControl *r)
11076 : {
11077 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11078 0 : if (flags & NDR_IN) {
11079 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
11080 0 : NDR_CHECK(ndr_push_clusapi_GroupControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
11081 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
11082 0 : if (r->in.lpInBuffer) {
11083 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
11084 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
11085 : }
11086 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
11087 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
11088 : }
11089 0 : if (flags & NDR_OUT) {
11090 0 : if (r->out.lpOutBuffer == NULL) {
11091 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11092 : }
11093 0 : if (r->out.lpBytesReturned == NULL) {
11094 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11095 : }
11096 0 : if (r->out.lpcbRequired == NULL) {
11097 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11098 : }
11099 0 : if (r->out.rpc_status == NULL) {
11100 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11101 : }
11102 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
11103 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
11104 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
11105 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
11106 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
11107 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
11108 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
11109 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
11110 : }
11111 0 : return NDR_ERR_SUCCESS;
11112 : }
11113 :
11114 0 : static enum ndr_err_code ndr_pull_clusapi_GroupControl(struct ndr_pull *ndr, int flags, struct clusapi_GroupControl *r)
11115 : {
11116 : uint32_t _ptr_lpInBuffer;
11117 0 : uint32_t size_lpInBuffer_1 = 0;
11118 0 : uint32_t size_lpOutBuffer_1 = 0;
11119 0 : uint32_t length_lpOutBuffer_1 = 0;
11120 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
11121 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
11122 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
11123 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
11124 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11125 0 : if (flags & NDR_IN) {
11126 0 : NDR_ZERO_STRUCT(r->out);
11127 :
11128 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
11129 0 : NDR_CHECK(ndr_pull_clusapi_GroupControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
11130 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
11131 0 : if (_ptr_lpInBuffer) {
11132 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
11133 : } else {
11134 0 : r->in.lpInBuffer = NULL;
11135 : }
11136 0 : if (r->in.lpInBuffer) {
11137 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
11138 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
11139 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
11140 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
11141 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
11142 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
11143 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
11144 : }
11145 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
11146 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
11147 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
11148 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
11149 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
11150 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
11151 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
11152 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
11153 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11154 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
11155 0 : if (r->in.lpInBuffer) {
11156 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
11157 : }
11158 : }
11159 0 : if (flags & NDR_OUT) {
11160 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11161 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11162 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
11163 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
11164 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
11165 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
11166 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
11167 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
11168 : }
11169 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11170 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
11171 : }
11172 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
11173 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11174 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
11175 : }
11176 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
11177 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
11178 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
11179 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
11180 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11181 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
11182 : }
11183 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
11184 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
11185 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
11186 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
11187 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11188 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11189 : }
11190 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
11191 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
11192 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
11193 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
11194 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
11195 0 : if (r->out.lpOutBuffer) {
11196 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
11197 : }
11198 0 : if (r->out.lpOutBuffer) {
11199 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
11200 : }
11201 : }
11202 0 : return NDR_ERR_SUCCESS;
11203 : }
11204 :
11205 0 : _PUBLIC_ void ndr_print_clusapi_GroupControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GroupControl *r)
11206 : {
11207 0 : ndr_print_struct(ndr, name, "clusapi_GroupControl");
11208 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11209 0 : ndr->depth++;
11210 0 : if (flags & NDR_SET_VALUES) {
11211 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11212 : }
11213 0 : if (flags & NDR_IN) {
11214 0 : ndr_print_struct(ndr, "in", "clusapi_GroupControl");
11215 0 : ndr->depth++;
11216 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
11217 0 : ndr_print_clusapi_GroupControlCode(ndr, "dwControlCode", r->in.dwControlCode);
11218 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
11219 0 : ndr->depth++;
11220 0 : if (r->in.lpInBuffer) {
11221 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
11222 : }
11223 0 : ndr->depth--;
11224 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
11225 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
11226 0 : ndr->depth--;
11227 : }
11228 0 : if (flags & NDR_OUT) {
11229 0 : ndr_print_struct(ndr, "out", "clusapi_GroupControl");
11230 0 : ndr->depth++;
11231 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
11232 0 : ndr->depth++;
11233 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
11234 0 : ndr->depth--;
11235 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
11236 0 : ndr->depth++;
11237 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
11238 0 : ndr->depth--;
11239 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
11240 0 : ndr->depth++;
11241 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
11242 0 : ndr->depth--;
11243 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
11244 0 : ndr->depth++;
11245 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
11246 0 : ndr->depth--;
11247 0 : ndr_print_WERROR(ndr, "result", r->out.result);
11248 0 : ndr->depth--;
11249 : }
11250 0 : ndr->depth--;
11251 : }
11252 :
11253 0 : static enum ndr_err_code ndr_push_clusapi_NodeNodeControl(struct ndr_push *ndr, int flags, const struct clusapi_NodeNodeControl *r)
11254 : {
11255 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11256 0 : if (flags & NDR_IN) {
11257 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
11258 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hHostNode));
11259 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
11260 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
11261 0 : if (r->in.lpInBuffer) {
11262 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
11263 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
11264 : }
11265 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
11266 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
11267 : }
11268 0 : if (flags & NDR_OUT) {
11269 0 : if (r->out.lpOutBuffer == NULL) {
11270 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11271 : }
11272 0 : if (r->out.lpBytesReturned == NULL) {
11273 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11274 : }
11275 0 : if (r->out.lpcbRequired == NULL) {
11276 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11277 : }
11278 0 : if (r->out.rpc_status == NULL) {
11279 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11280 : }
11281 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
11282 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
11283 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
11284 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
11285 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
11286 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
11287 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
11288 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
11289 : }
11290 0 : return NDR_ERR_SUCCESS;
11291 : }
11292 :
11293 0 : static enum ndr_err_code ndr_pull_clusapi_NodeNodeControl(struct ndr_pull *ndr, int flags, struct clusapi_NodeNodeControl *r)
11294 : {
11295 : uint32_t _ptr_lpInBuffer;
11296 0 : uint32_t size_lpInBuffer_1 = 0;
11297 0 : uint32_t size_lpOutBuffer_1 = 0;
11298 0 : uint32_t length_lpOutBuffer_1 = 0;
11299 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
11300 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
11301 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
11302 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
11303 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11304 0 : if (flags & NDR_IN) {
11305 0 : NDR_ZERO_STRUCT(r->out);
11306 :
11307 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
11308 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hHostNode));
11309 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
11310 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
11311 0 : if (_ptr_lpInBuffer) {
11312 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
11313 : } else {
11314 0 : r->in.lpInBuffer = NULL;
11315 : }
11316 0 : if (r->in.lpInBuffer) {
11317 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
11318 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
11319 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
11320 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
11321 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
11322 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
11323 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
11324 : }
11325 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
11326 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
11327 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
11328 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
11329 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
11330 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
11331 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
11332 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
11333 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11334 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
11335 0 : if (r->in.lpInBuffer) {
11336 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
11337 : }
11338 : }
11339 0 : if (flags & NDR_OUT) {
11340 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11341 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11342 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
11343 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
11344 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
11345 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
11346 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
11347 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
11348 : }
11349 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11350 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
11351 : }
11352 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
11353 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11354 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
11355 : }
11356 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
11357 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
11358 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
11359 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
11360 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11361 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
11362 : }
11363 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
11364 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
11365 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
11366 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
11367 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11368 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11369 : }
11370 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
11371 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
11372 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
11373 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
11374 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
11375 0 : if (r->out.lpOutBuffer) {
11376 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
11377 : }
11378 0 : if (r->out.lpOutBuffer) {
11379 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
11380 : }
11381 : }
11382 0 : return NDR_ERR_SUCCESS;
11383 : }
11384 :
11385 0 : _PUBLIC_ void ndr_print_clusapi_NodeNodeControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NodeNodeControl *r)
11386 : {
11387 0 : ndr_print_struct(ndr, name, "clusapi_NodeNodeControl");
11388 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11389 0 : ndr->depth++;
11390 0 : if (flags & NDR_SET_VALUES) {
11391 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11392 : }
11393 0 : if (flags & NDR_IN) {
11394 0 : ndr_print_struct(ndr, "in", "clusapi_NodeNodeControl");
11395 0 : ndr->depth++;
11396 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
11397 0 : ndr_print_policy_handle(ndr, "hHostNode", &r->in.hHostNode);
11398 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
11399 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
11400 0 : ndr->depth++;
11401 0 : if (r->in.lpInBuffer) {
11402 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
11403 : }
11404 0 : ndr->depth--;
11405 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
11406 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
11407 0 : ndr->depth--;
11408 : }
11409 0 : if (flags & NDR_OUT) {
11410 0 : ndr_print_struct(ndr, "out", "clusapi_NodeNodeControl");
11411 0 : ndr->depth++;
11412 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
11413 0 : ndr->depth++;
11414 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
11415 0 : ndr->depth--;
11416 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
11417 0 : ndr->depth++;
11418 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
11419 0 : ndr->depth--;
11420 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
11421 0 : ndr->depth++;
11422 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
11423 0 : ndr->depth--;
11424 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
11425 0 : ndr->depth++;
11426 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
11427 0 : ndr->depth--;
11428 0 : ndr_print_WERROR(ndr, "result", r->out.result);
11429 0 : ndr->depth--;
11430 : }
11431 0 : ndr->depth--;
11432 : }
11433 :
11434 0 : static enum ndr_err_code ndr_push_clusapi_NodeControl(struct ndr_push *ndr, int flags, const struct clusapi_NodeControl *r)
11435 : {
11436 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11437 0 : if (flags & NDR_IN) {
11438 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
11439 0 : NDR_CHECK(ndr_push_clusapi_NodeControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
11440 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
11441 0 : if (r->in.lpInBuffer) {
11442 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
11443 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
11444 : }
11445 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
11446 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
11447 : }
11448 0 : if (flags & NDR_OUT) {
11449 0 : if (r->out.lpOutBuffer == NULL) {
11450 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11451 : }
11452 0 : if (r->out.lpBytesReturned == NULL) {
11453 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11454 : }
11455 0 : if (r->out.lpcbRequired == NULL) {
11456 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11457 : }
11458 0 : if (r->out.rpc_status == NULL) {
11459 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11460 : }
11461 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
11462 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
11463 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
11464 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
11465 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
11466 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
11467 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
11468 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
11469 : }
11470 0 : return NDR_ERR_SUCCESS;
11471 : }
11472 :
11473 0 : static enum ndr_err_code ndr_pull_clusapi_NodeControl(struct ndr_pull *ndr, int flags, struct clusapi_NodeControl *r)
11474 : {
11475 : uint32_t _ptr_lpInBuffer;
11476 0 : uint32_t size_lpInBuffer_1 = 0;
11477 0 : uint32_t size_lpOutBuffer_1 = 0;
11478 0 : uint32_t length_lpOutBuffer_1 = 0;
11479 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
11480 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
11481 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
11482 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
11483 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11484 0 : if (flags & NDR_IN) {
11485 0 : NDR_ZERO_STRUCT(r->out);
11486 :
11487 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
11488 0 : NDR_CHECK(ndr_pull_clusapi_NodeControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
11489 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
11490 0 : if (_ptr_lpInBuffer) {
11491 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
11492 : } else {
11493 0 : r->in.lpInBuffer = NULL;
11494 : }
11495 0 : if (r->in.lpInBuffer) {
11496 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
11497 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
11498 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
11499 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
11500 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
11501 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
11502 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
11503 : }
11504 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
11505 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
11506 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
11507 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
11508 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
11509 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
11510 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
11511 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
11512 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11513 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
11514 0 : if (r->in.lpInBuffer) {
11515 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
11516 : }
11517 : }
11518 0 : if (flags & NDR_OUT) {
11519 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11520 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11521 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
11522 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
11523 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
11524 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
11525 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
11526 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
11527 : }
11528 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11529 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
11530 : }
11531 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
11532 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11533 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
11534 : }
11535 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
11536 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
11537 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
11538 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
11539 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11540 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
11541 : }
11542 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
11543 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
11544 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
11545 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
11546 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11547 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11548 : }
11549 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
11550 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
11551 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
11552 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
11553 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
11554 0 : if (r->out.lpOutBuffer) {
11555 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
11556 : }
11557 0 : if (r->out.lpOutBuffer) {
11558 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
11559 : }
11560 : }
11561 0 : return NDR_ERR_SUCCESS;
11562 : }
11563 :
11564 0 : _PUBLIC_ void ndr_print_clusapi_NodeControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NodeControl *r)
11565 : {
11566 0 : ndr_print_struct(ndr, name, "clusapi_NodeControl");
11567 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11568 0 : ndr->depth++;
11569 0 : if (flags & NDR_SET_VALUES) {
11570 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11571 : }
11572 0 : if (flags & NDR_IN) {
11573 0 : ndr_print_struct(ndr, "in", "clusapi_NodeControl");
11574 0 : ndr->depth++;
11575 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
11576 0 : ndr_print_clusapi_NodeControlCode(ndr, "dwControlCode", r->in.dwControlCode);
11577 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
11578 0 : ndr->depth++;
11579 0 : if (r->in.lpInBuffer) {
11580 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
11581 : }
11582 0 : ndr->depth--;
11583 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
11584 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
11585 0 : ndr->depth--;
11586 : }
11587 0 : if (flags & NDR_OUT) {
11588 0 : ndr_print_struct(ndr, "out", "clusapi_NodeControl");
11589 0 : ndr->depth++;
11590 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
11591 0 : ndr->depth++;
11592 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
11593 0 : ndr->depth--;
11594 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
11595 0 : ndr->depth++;
11596 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
11597 0 : ndr->depth--;
11598 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
11599 0 : ndr->depth++;
11600 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
11601 0 : ndr->depth--;
11602 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
11603 0 : ndr->depth++;
11604 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
11605 0 : ndr->depth--;
11606 0 : ndr_print_WERROR(ndr, "result", r->out.result);
11607 0 : ndr->depth--;
11608 : }
11609 0 : ndr->depth--;
11610 : }
11611 :
11612 0 : static enum ndr_err_code ndr_push_Opnum80NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum80NotUsedOnWire *r)
11613 : {
11614 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11615 0 : if (flags & NDR_IN) {
11616 : }
11617 0 : if (flags & NDR_OUT) {
11618 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
11619 : }
11620 0 : return NDR_ERR_SUCCESS;
11621 : }
11622 :
11623 0 : static enum ndr_err_code ndr_pull_Opnum80NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum80NotUsedOnWire *r)
11624 : {
11625 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11626 0 : if (flags & NDR_IN) {
11627 : }
11628 0 : if (flags & NDR_OUT) {
11629 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11630 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11631 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
11632 : }
11633 0 : return NDR_ERR_SUCCESS;
11634 : }
11635 :
11636 0 : _PUBLIC_ void ndr_print_Opnum80NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum80NotUsedOnWire *r)
11637 : {
11638 0 : ndr_print_struct(ndr, name, "Opnum80NotUsedOnWire");
11639 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11640 0 : ndr->depth++;
11641 0 : if (flags & NDR_SET_VALUES) {
11642 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11643 : }
11644 0 : if (flags & NDR_IN) {
11645 0 : ndr_print_struct(ndr, "in", "Opnum80NotUsedOnWire");
11646 0 : ndr->depth++;
11647 0 : ndr->depth--;
11648 : }
11649 0 : if (flags & NDR_OUT) {
11650 0 : ndr_print_struct(ndr, "out", "Opnum80NotUsedOnWire");
11651 0 : ndr->depth++;
11652 0 : ndr_print_WERROR(ndr, "result", r->out.result);
11653 0 : ndr->depth--;
11654 : }
11655 0 : ndr->depth--;
11656 : }
11657 :
11658 0 : static enum ndr_err_code ndr_push_clusapi_OpenNetwork(struct ndr_push *ndr, int flags, const struct clusapi_OpenNetwork *r)
11659 : {
11660 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11661 0 : if (flags & NDR_IN) {
11662 0 : if (r->in.lpszNetworkName == NULL) {
11663 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11664 : }
11665 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
11666 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
11667 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
11668 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
11669 : }
11670 0 : if (flags & NDR_OUT) {
11671 0 : if (r->out.Status == NULL) {
11672 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11673 : }
11674 0 : if (r->out.rpc_status == NULL) {
11675 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11676 : }
11677 0 : if (r->out.hNetwork == NULL) {
11678 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11679 : }
11680 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
11681 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
11682 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNetwork));
11683 : }
11684 0 : return NDR_ERR_SUCCESS;
11685 : }
11686 :
11687 0 : static enum ndr_err_code ndr_pull_clusapi_OpenNetwork(struct ndr_pull *ndr, int flags, struct clusapi_OpenNetwork *r)
11688 : {
11689 0 : uint32_t size_lpszNetworkName_1 = 0;
11690 0 : uint32_t length_lpszNetworkName_1 = 0;
11691 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
11692 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
11693 0 : TALLOC_CTX *_mem_save_hNetwork_0 = NULL;
11694 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11695 0 : if (flags & NDR_IN) {
11696 0 : NDR_ZERO_STRUCT(r->out);
11697 :
11698 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
11699 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
11700 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
11701 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
11702 0 : if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
11703 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNetworkName_1, length_lpszNetworkName_1);
11704 : }
11705 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
11706 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
11707 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
11708 0 : NDR_ZERO_STRUCTP(r->out.Status);
11709 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11710 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
11711 0 : NDR_PULL_ALLOC(ndr, r->out.hNetwork);
11712 0 : NDR_ZERO_STRUCTP(r->out.hNetwork);
11713 : }
11714 0 : if (flags & NDR_OUT) {
11715 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11716 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11717 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11718 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
11719 : }
11720 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
11721 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
11722 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
11723 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
11724 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11725 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11726 : }
11727 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
11728 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
11729 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
11730 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
11731 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11732 0 : NDR_PULL_ALLOC(ndr, r->out.hNetwork);
11733 : }
11734 0 : _mem_save_hNetwork_0 = NDR_PULL_GET_MEM_CTX(ndr);
11735 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hNetwork, LIBNDR_FLAG_REF_ALLOC);
11736 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNetwork));
11737 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNetwork_0, LIBNDR_FLAG_REF_ALLOC);
11738 : }
11739 0 : return NDR_ERR_SUCCESS;
11740 : }
11741 :
11742 0 : _PUBLIC_ void ndr_print_clusapi_OpenNetwork(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenNetwork *r)
11743 : {
11744 0 : ndr_print_struct(ndr, name, "clusapi_OpenNetwork");
11745 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11746 0 : ndr->depth++;
11747 0 : if (flags & NDR_SET_VALUES) {
11748 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11749 : }
11750 0 : if (flags & NDR_IN) {
11751 0 : ndr_print_struct(ndr, "in", "clusapi_OpenNetwork");
11752 0 : ndr->depth++;
11753 0 : ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
11754 0 : ndr->depth++;
11755 0 : ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
11756 0 : ndr->depth--;
11757 0 : ndr->depth--;
11758 : }
11759 0 : if (flags & NDR_OUT) {
11760 0 : ndr_print_struct(ndr, "out", "clusapi_OpenNetwork");
11761 0 : ndr->depth++;
11762 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
11763 0 : ndr->depth++;
11764 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
11765 0 : ndr->depth--;
11766 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
11767 0 : ndr->depth++;
11768 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
11769 0 : ndr->depth--;
11770 0 : ndr_print_ptr(ndr, "hNetwork", r->out.hNetwork);
11771 0 : ndr->depth++;
11772 0 : ndr_print_policy_handle(ndr, "hNetwork", r->out.hNetwork);
11773 0 : ndr->depth--;
11774 0 : ndr->depth--;
11775 : }
11776 0 : ndr->depth--;
11777 : }
11778 :
11779 0 : static enum ndr_err_code ndr_push_clusapi_CloseNetwork(struct ndr_push *ndr, int flags, const struct clusapi_CloseNetwork *r)
11780 : {
11781 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11782 0 : if (flags & NDR_IN) {
11783 0 : if (r->in.Network == NULL) {
11784 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11785 : }
11786 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Network));
11787 : }
11788 0 : if (flags & NDR_OUT) {
11789 0 : if (r->out.Network == NULL) {
11790 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11791 : }
11792 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Network));
11793 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
11794 : }
11795 0 : return NDR_ERR_SUCCESS;
11796 : }
11797 :
11798 0 : static enum ndr_err_code ndr_pull_clusapi_CloseNetwork(struct ndr_pull *ndr, int flags, struct clusapi_CloseNetwork *r)
11799 : {
11800 0 : TALLOC_CTX *_mem_save_Network_0 = NULL;
11801 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11802 0 : if (flags & NDR_IN) {
11803 0 : NDR_ZERO_STRUCT(r->out);
11804 :
11805 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11806 0 : NDR_PULL_ALLOC(ndr, r->in.Network);
11807 : }
11808 0 : _mem_save_Network_0 = NDR_PULL_GET_MEM_CTX(ndr);
11809 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.Network, LIBNDR_FLAG_REF_ALLOC);
11810 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Network));
11811 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Network_0, LIBNDR_FLAG_REF_ALLOC);
11812 0 : NDR_PULL_ALLOC(ndr, r->out.Network);
11813 0 : *r->out.Network = *r->in.Network;
11814 : }
11815 0 : if (flags & NDR_OUT) {
11816 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11817 : if (r->in.Network == NULL) {
11818 : NDR_PULL_ALLOC(ndr, r->in.Network);
11819 : NDR_ZERO_STRUCTP(r->in.Network);
11820 : }
11821 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11822 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11823 0 : NDR_PULL_ALLOC(ndr, r->out.Network);
11824 : }
11825 0 : _mem_save_Network_0 = NDR_PULL_GET_MEM_CTX(ndr);
11826 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Network, LIBNDR_FLAG_REF_ALLOC);
11827 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Network));
11828 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Network_0, LIBNDR_FLAG_REF_ALLOC);
11829 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
11830 : }
11831 0 : return NDR_ERR_SUCCESS;
11832 : }
11833 :
11834 0 : _PUBLIC_ void ndr_print_clusapi_CloseNetwork(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseNetwork *r)
11835 : {
11836 0 : ndr_print_struct(ndr, name, "clusapi_CloseNetwork");
11837 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11838 0 : ndr->depth++;
11839 0 : if (flags & NDR_SET_VALUES) {
11840 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11841 : }
11842 0 : if (flags & NDR_IN) {
11843 0 : ndr_print_struct(ndr, "in", "clusapi_CloseNetwork");
11844 0 : ndr->depth++;
11845 0 : ndr_print_ptr(ndr, "Network", r->in.Network);
11846 0 : ndr->depth++;
11847 0 : ndr_print_policy_handle(ndr, "Network", r->in.Network);
11848 0 : ndr->depth--;
11849 0 : ndr->depth--;
11850 : }
11851 0 : if (flags & NDR_OUT) {
11852 0 : ndr_print_struct(ndr, "out", "clusapi_CloseNetwork");
11853 0 : ndr->depth++;
11854 0 : ndr_print_ptr(ndr, "Network", r->out.Network);
11855 0 : ndr->depth++;
11856 0 : ndr_print_policy_handle(ndr, "Network", r->out.Network);
11857 0 : ndr->depth--;
11858 0 : ndr_print_WERROR(ndr, "result", r->out.result);
11859 0 : ndr->depth--;
11860 : }
11861 0 : ndr->depth--;
11862 : }
11863 :
11864 0 : static enum ndr_err_code ndr_push_clusapi_GetNetworkState(struct ndr_push *ndr, int flags, const struct clusapi_GetNetworkState *r)
11865 : {
11866 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11867 0 : if (flags & NDR_IN) {
11868 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
11869 : }
11870 0 : if (flags & NDR_OUT) {
11871 0 : if (r->out.State == NULL) {
11872 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11873 : }
11874 0 : if (r->out.rpc_status == NULL) {
11875 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11876 : }
11877 0 : NDR_CHECK(ndr_push_clusapi_ClusterNetworkState(ndr, NDR_SCALARS, *r->out.State));
11878 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
11879 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
11880 : }
11881 0 : return NDR_ERR_SUCCESS;
11882 : }
11883 :
11884 0 : static enum ndr_err_code ndr_pull_clusapi_GetNetworkState(struct ndr_pull *ndr, int flags, struct clusapi_GetNetworkState *r)
11885 : {
11886 0 : TALLOC_CTX *_mem_save_State_0 = NULL;
11887 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
11888 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11889 0 : if (flags & NDR_IN) {
11890 0 : NDR_ZERO_STRUCT(r->out);
11891 :
11892 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
11893 0 : NDR_PULL_ALLOC(ndr, r->out.State);
11894 0 : NDR_ZERO_STRUCTP(r->out.State);
11895 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11896 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
11897 : }
11898 0 : if (flags & NDR_OUT) {
11899 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11900 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11901 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11902 0 : NDR_PULL_ALLOC(ndr, r->out.State);
11903 : }
11904 0 : _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
11905 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
11906 0 : NDR_CHECK(ndr_pull_clusapi_ClusterNetworkState(ndr, NDR_SCALARS, r->out.State));
11907 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
11908 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11909 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11910 : }
11911 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
11912 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
11913 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
11914 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
11915 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
11916 : }
11917 0 : return NDR_ERR_SUCCESS;
11918 : }
11919 :
11920 0 : _PUBLIC_ void ndr_print_clusapi_GetNetworkState(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNetworkState *r)
11921 : {
11922 0 : ndr_print_struct(ndr, name, "clusapi_GetNetworkState");
11923 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11924 0 : ndr->depth++;
11925 0 : if (flags & NDR_SET_VALUES) {
11926 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11927 : }
11928 0 : if (flags & NDR_IN) {
11929 0 : ndr_print_struct(ndr, "in", "clusapi_GetNetworkState");
11930 0 : ndr->depth++;
11931 0 : ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
11932 0 : ndr->depth--;
11933 : }
11934 0 : if (flags & NDR_OUT) {
11935 0 : ndr_print_struct(ndr, "out", "clusapi_GetNetworkState");
11936 0 : ndr->depth++;
11937 0 : ndr_print_ptr(ndr, "State", r->out.State);
11938 0 : ndr->depth++;
11939 0 : ndr_print_clusapi_ClusterNetworkState(ndr, "State", *r->out.State);
11940 0 : ndr->depth--;
11941 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
11942 0 : ndr->depth++;
11943 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
11944 0 : ndr->depth--;
11945 0 : ndr_print_WERROR(ndr, "result", r->out.result);
11946 0 : ndr->depth--;
11947 : }
11948 0 : ndr->depth--;
11949 : }
11950 :
11951 0 : static enum ndr_err_code ndr_push_clusapi_SetNetworkName(struct ndr_push *ndr, int flags, const struct clusapi_SetNetworkName *r)
11952 : {
11953 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11954 0 : if (flags & NDR_IN) {
11955 0 : if (r->in.lpszNetworkName == NULL) {
11956 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11957 : }
11958 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
11959 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
11960 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
11961 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
11962 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
11963 : }
11964 0 : if (flags & NDR_OUT) {
11965 0 : if (r->out.rpc_status == NULL) {
11966 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11967 : }
11968 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
11969 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
11970 : }
11971 0 : return NDR_ERR_SUCCESS;
11972 : }
11973 :
11974 0 : static enum ndr_err_code ndr_pull_clusapi_SetNetworkName(struct ndr_pull *ndr, int flags, struct clusapi_SetNetworkName *r)
11975 : {
11976 0 : uint32_t size_lpszNetworkName_1 = 0;
11977 0 : uint32_t length_lpszNetworkName_1 = 0;
11978 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
11979 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11980 0 : if (flags & NDR_IN) {
11981 0 : NDR_ZERO_STRUCT(r->out);
11982 :
11983 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
11984 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
11985 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
11986 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
11987 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
11988 0 : if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
11989 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNetworkName_1, length_lpszNetworkName_1);
11990 : }
11991 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
11992 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
11993 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
11994 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
11995 : }
11996 0 : if (flags & NDR_OUT) {
11997 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11998 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11999 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12000 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12001 : }
12002 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12003 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
12004 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
12005 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
12006 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
12007 : }
12008 0 : return NDR_ERR_SUCCESS;
12009 : }
12010 :
12011 0 : _PUBLIC_ void ndr_print_clusapi_SetNetworkName(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetNetworkName *r)
12012 : {
12013 0 : ndr_print_struct(ndr, name, "clusapi_SetNetworkName");
12014 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12015 0 : ndr->depth++;
12016 0 : if (flags & NDR_SET_VALUES) {
12017 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12018 : }
12019 0 : if (flags & NDR_IN) {
12020 0 : ndr_print_struct(ndr, "in", "clusapi_SetNetworkName");
12021 0 : ndr->depth++;
12022 0 : ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
12023 0 : ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
12024 0 : ndr->depth++;
12025 0 : ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
12026 0 : ndr->depth--;
12027 0 : ndr->depth--;
12028 : }
12029 0 : if (flags & NDR_OUT) {
12030 0 : ndr_print_struct(ndr, "out", "clusapi_SetNetworkName");
12031 0 : ndr->depth++;
12032 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
12033 0 : ndr->depth++;
12034 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
12035 0 : ndr->depth--;
12036 0 : ndr_print_WERROR(ndr, "result", r->out.result);
12037 0 : ndr->depth--;
12038 : }
12039 0 : ndr->depth--;
12040 : }
12041 :
12042 0 : static enum ndr_err_code ndr_push_clusapi_CreateNetworkEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateNetworkEnum *r)
12043 : {
12044 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12045 0 : if (flags & NDR_IN) {
12046 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12047 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwType));
12048 : }
12049 0 : if (flags & NDR_OUT) {
12050 0 : if (r->out.ReturnEnum == NULL) {
12051 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12052 : }
12053 0 : if (r->out.rpc_status == NULL) {
12054 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12055 : }
12056 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
12057 0 : if (*r->out.ReturnEnum) {
12058 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
12059 : }
12060 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
12061 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
12062 : }
12063 0 : return NDR_ERR_SUCCESS;
12064 : }
12065 :
12066 0 : static enum ndr_err_code ndr_pull_clusapi_CreateNetworkEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateNetworkEnum *r)
12067 : {
12068 : uint32_t _ptr_ReturnEnum;
12069 0 : TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
12070 0 : TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
12071 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
12072 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12073 0 : if (flags & NDR_IN) {
12074 0 : NDR_ZERO_STRUCT(r->out);
12075 :
12076 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12077 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwType));
12078 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
12079 0 : NDR_ZERO_STRUCTP(r->out.ReturnEnum);
12080 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12081 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
12082 : }
12083 0 : if (flags & NDR_OUT) {
12084 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12085 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12086 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12087 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
12088 : }
12089 0 : _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
12090 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
12091 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
12092 0 : if (_ptr_ReturnEnum) {
12093 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
12094 : } else {
12095 0 : *r->out.ReturnEnum = NULL;
12096 : }
12097 0 : if (*r->out.ReturnEnum) {
12098 0 : _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
12099 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
12100 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
12101 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
12102 : }
12103 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
12104 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12105 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12106 : }
12107 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12108 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
12109 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
12110 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
12111 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
12112 : }
12113 0 : return NDR_ERR_SUCCESS;
12114 : }
12115 :
12116 0 : _PUBLIC_ void ndr_print_clusapi_CreateNetworkEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateNetworkEnum *r)
12117 : {
12118 0 : ndr_print_struct(ndr, name, "clusapi_CreateNetworkEnum");
12119 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12120 0 : ndr->depth++;
12121 0 : if (flags & NDR_SET_VALUES) {
12122 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12123 : }
12124 0 : if (flags & NDR_IN) {
12125 0 : ndr_print_struct(ndr, "in", "clusapi_CreateNetworkEnum");
12126 0 : ndr->depth++;
12127 0 : ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
12128 0 : ndr_print_uint32(ndr, "dwType", r->in.dwType);
12129 0 : ndr->depth--;
12130 : }
12131 0 : if (flags & NDR_OUT) {
12132 0 : ndr_print_struct(ndr, "out", "clusapi_CreateNetworkEnum");
12133 0 : ndr->depth++;
12134 0 : ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
12135 0 : ndr->depth++;
12136 0 : ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
12137 0 : ndr->depth++;
12138 0 : if (*r->out.ReturnEnum) {
12139 0 : ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
12140 : }
12141 0 : ndr->depth--;
12142 0 : ndr->depth--;
12143 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
12144 0 : ndr->depth++;
12145 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
12146 0 : ndr->depth--;
12147 0 : ndr_print_WERROR(ndr, "result", r->out.result);
12148 0 : ndr->depth--;
12149 : }
12150 0 : ndr->depth--;
12151 : }
12152 :
12153 0 : static enum ndr_err_code ndr_push_clusapi_GetNetworkId(struct ndr_push *ndr, int flags, const struct clusapi_GetNetworkId *r)
12154 : {
12155 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12156 0 : if (flags & NDR_IN) {
12157 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12158 : }
12159 0 : if (flags & NDR_OUT) {
12160 0 : if (r->out.pGuid == NULL) {
12161 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12162 : }
12163 0 : if (r->out.rpc_status == NULL) {
12164 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12165 : }
12166 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
12167 0 : if (*r->out.pGuid) {
12168 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
12169 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
12170 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
12171 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
12172 : }
12173 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
12174 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
12175 : }
12176 0 : return NDR_ERR_SUCCESS;
12177 : }
12178 :
12179 0 : static enum ndr_err_code ndr_pull_clusapi_GetNetworkId(struct ndr_pull *ndr, int flags, struct clusapi_GetNetworkId *r)
12180 : {
12181 : uint32_t _ptr_pGuid;
12182 0 : uint32_t size_pGuid_2 = 0;
12183 0 : uint32_t length_pGuid_2 = 0;
12184 0 : TALLOC_CTX *_mem_save_pGuid_0 = NULL;
12185 0 : TALLOC_CTX *_mem_save_pGuid_1 = NULL;
12186 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
12187 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12188 0 : if (flags & NDR_IN) {
12189 0 : NDR_ZERO_STRUCT(r->out);
12190 :
12191 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12192 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
12193 0 : NDR_ZERO_STRUCTP(r->out.pGuid);
12194 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12195 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
12196 : }
12197 0 : if (flags & NDR_OUT) {
12198 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12199 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12200 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12201 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
12202 : }
12203 0 : _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
12204 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
12205 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
12206 0 : if (_ptr_pGuid) {
12207 0 : NDR_PULL_ALLOC(ndr, *r->out.pGuid);
12208 : } else {
12209 0 : *r->out.pGuid = NULL;
12210 : }
12211 0 : if (*r->out.pGuid) {
12212 0 : _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
12213 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
12214 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
12215 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
12216 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
12217 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
12218 0 : if (length_pGuid_2 > size_pGuid_2) {
12219 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_pGuid_2, length_pGuid_2);
12220 : }
12221 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
12222 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
12223 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
12224 : }
12225 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
12226 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12227 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12228 : }
12229 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12230 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
12231 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
12232 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
12233 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
12234 : }
12235 0 : return NDR_ERR_SUCCESS;
12236 : }
12237 :
12238 0 : _PUBLIC_ void ndr_print_clusapi_GetNetworkId(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNetworkId *r)
12239 : {
12240 0 : ndr_print_struct(ndr, name, "clusapi_GetNetworkId");
12241 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12242 0 : ndr->depth++;
12243 0 : if (flags & NDR_SET_VALUES) {
12244 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12245 : }
12246 0 : if (flags & NDR_IN) {
12247 0 : ndr_print_struct(ndr, "in", "clusapi_GetNetworkId");
12248 0 : ndr->depth++;
12249 0 : ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
12250 0 : ndr->depth--;
12251 : }
12252 0 : if (flags & NDR_OUT) {
12253 0 : ndr_print_struct(ndr, "out", "clusapi_GetNetworkId");
12254 0 : ndr->depth++;
12255 0 : ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
12256 0 : ndr->depth++;
12257 0 : ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
12258 0 : ndr->depth++;
12259 0 : if (*r->out.pGuid) {
12260 0 : ndr_print_string(ndr, "pGuid", *r->out.pGuid);
12261 : }
12262 0 : ndr->depth--;
12263 0 : ndr->depth--;
12264 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
12265 0 : ndr->depth++;
12266 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
12267 0 : ndr->depth--;
12268 0 : ndr_print_WERROR(ndr, "result", r->out.result);
12269 0 : ndr->depth--;
12270 : }
12271 0 : ndr->depth--;
12272 : }
12273 :
12274 0 : static enum ndr_err_code ndr_push_clusapi_SetNetworkPriorityOrder(struct ndr_push *ndr, int flags, const struct clusapi_SetNetworkPriorityOrder *r)
12275 : {
12276 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12277 0 : if (flags & NDR_IN) {
12278 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.NetworkCount));
12279 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.NetworkCount));
12280 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
12281 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.NetworkIdList, CH_UTF16)));
12282 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.NetworkIdList, ndr_charset_length(r->in.NetworkIdList, CH_UTF16), sizeof(uint16_t), CH_UTF16));
12283 : }
12284 0 : if (flags & NDR_OUT) {
12285 0 : if (r->out.rpc_status == NULL) {
12286 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12287 : }
12288 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
12289 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
12290 : }
12291 0 : return NDR_ERR_SUCCESS;
12292 : }
12293 :
12294 0 : static enum ndr_err_code ndr_pull_clusapi_SetNetworkPriorityOrder(struct ndr_pull *ndr, int flags, struct clusapi_SetNetworkPriorityOrder *r)
12295 : {
12296 0 : uint32_t size_NetworkIdList_0 = 0;
12297 0 : uint32_t length_NetworkIdList_0 = 0;
12298 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
12299 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12300 0 : if (flags & NDR_IN) {
12301 0 : NDR_ZERO_STRUCT(r->out);
12302 :
12303 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.NetworkCount));
12304 0 : if (r->in.NetworkCount > 1000) {
12305 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
12306 : }
12307 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.NetworkIdList));
12308 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.NetworkIdList));
12309 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.NetworkIdList, &size_NetworkIdList_0));
12310 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.NetworkIdList, &length_NetworkIdList_0));
12311 0 : if (length_NetworkIdList_0 > size_NetworkIdList_0) {
12312 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_NetworkIdList_0, length_NetworkIdList_0);
12313 : }
12314 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_NetworkIdList_0, sizeof(uint16_t)));
12315 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.NetworkIdList, length_NetworkIdList_0, sizeof(uint16_t), CH_UTF16));
12316 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12317 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
12318 0 : if (r->in.NetworkIdList) {
12319 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.NetworkIdList, r->in.NetworkCount));
12320 : }
12321 : }
12322 0 : if (flags & NDR_OUT) {
12323 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12324 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12325 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12326 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12327 : }
12328 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12329 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
12330 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
12331 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
12332 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
12333 : }
12334 0 : return NDR_ERR_SUCCESS;
12335 : }
12336 :
12337 0 : _PUBLIC_ void ndr_print_clusapi_SetNetworkPriorityOrder(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetNetworkPriorityOrder *r)
12338 : {
12339 0 : ndr_print_struct(ndr, name, "clusapi_SetNetworkPriorityOrder");
12340 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12341 0 : ndr->depth++;
12342 0 : if (flags & NDR_SET_VALUES) {
12343 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12344 : }
12345 0 : if (flags & NDR_IN) {
12346 0 : ndr_print_struct(ndr, "in", "clusapi_SetNetworkPriorityOrder");
12347 0 : ndr->depth++;
12348 0 : ndr_print_uint32(ndr, "NetworkCount", r->in.NetworkCount);
12349 0 : ndr_print_string(ndr, "NetworkIdList", r->in.NetworkIdList);
12350 0 : ndr->depth--;
12351 : }
12352 0 : if (flags & NDR_OUT) {
12353 0 : ndr_print_struct(ndr, "out", "clusapi_SetNetworkPriorityOrder");
12354 0 : ndr->depth++;
12355 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
12356 0 : ndr->depth++;
12357 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
12358 0 : ndr->depth--;
12359 0 : ndr_print_WERROR(ndr, "result", r->out.result);
12360 0 : ndr->depth--;
12361 : }
12362 0 : ndr->depth--;
12363 : }
12364 :
12365 0 : static enum ndr_err_code ndr_push_clusapi_NodeNetworkControl(struct ndr_push *ndr, int flags, const struct clusapi_NodeNetworkControl *r)
12366 : {
12367 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12368 0 : if (flags & NDR_IN) {
12369 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12370 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
12371 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
12372 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
12373 0 : if (r->in.lpInBuffer) {
12374 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
12375 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
12376 : }
12377 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
12378 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
12379 : }
12380 0 : if (flags & NDR_OUT) {
12381 0 : if (r->out.lpOutBuffer == NULL) {
12382 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12383 : }
12384 0 : if (r->out.lpBytesReturned == NULL) {
12385 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12386 : }
12387 0 : if (r->out.lpcbRequired == NULL) {
12388 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12389 : }
12390 0 : if (r->out.rpc_status == NULL) {
12391 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12392 : }
12393 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
12394 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
12395 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
12396 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
12397 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
12398 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
12399 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
12400 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
12401 : }
12402 0 : return NDR_ERR_SUCCESS;
12403 : }
12404 :
12405 0 : static enum ndr_err_code ndr_pull_clusapi_NodeNetworkControl(struct ndr_pull *ndr, int flags, struct clusapi_NodeNetworkControl *r)
12406 : {
12407 : uint32_t _ptr_lpInBuffer;
12408 0 : uint32_t size_lpInBuffer_1 = 0;
12409 0 : uint32_t size_lpOutBuffer_1 = 0;
12410 0 : uint32_t length_lpOutBuffer_1 = 0;
12411 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
12412 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
12413 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
12414 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
12415 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12416 0 : if (flags & NDR_IN) {
12417 0 : NDR_ZERO_STRUCT(r->out);
12418 :
12419 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12420 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
12421 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
12422 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
12423 0 : if (_ptr_lpInBuffer) {
12424 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
12425 : } else {
12426 0 : r->in.lpInBuffer = NULL;
12427 : }
12428 0 : if (r->in.lpInBuffer) {
12429 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
12430 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
12431 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
12432 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
12433 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
12434 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
12435 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
12436 : }
12437 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
12438 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
12439 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
12440 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
12441 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
12442 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
12443 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
12444 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
12445 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12446 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
12447 0 : if (r->in.lpInBuffer) {
12448 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
12449 : }
12450 : }
12451 0 : if (flags & NDR_OUT) {
12452 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12453 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12454 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
12455 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
12456 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
12457 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
12458 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
12459 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
12460 : }
12461 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12462 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
12463 : }
12464 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
12465 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12466 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
12467 : }
12468 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
12469 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
12470 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
12471 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
12472 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12473 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
12474 : }
12475 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
12476 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
12477 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
12478 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
12479 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12480 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12481 : }
12482 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12483 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
12484 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
12485 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
12486 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
12487 0 : if (r->out.lpOutBuffer) {
12488 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
12489 : }
12490 0 : if (r->out.lpOutBuffer) {
12491 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
12492 : }
12493 : }
12494 0 : return NDR_ERR_SUCCESS;
12495 : }
12496 :
12497 0 : _PUBLIC_ void ndr_print_clusapi_NodeNetworkControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NodeNetworkControl *r)
12498 : {
12499 0 : ndr_print_struct(ndr, name, "clusapi_NodeNetworkControl");
12500 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12501 0 : ndr->depth++;
12502 0 : if (flags & NDR_SET_VALUES) {
12503 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12504 : }
12505 0 : if (flags & NDR_IN) {
12506 0 : ndr_print_struct(ndr, "in", "clusapi_NodeNetworkControl");
12507 0 : ndr->depth++;
12508 0 : ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
12509 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
12510 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
12511 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
12512 0 : ndr->depth++;
12513 0 : if (r->in.lpInBuffer) {
12514 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
12515 : }
12516 0 : ndr->depth--;
12517 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
12518 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
12519 0 : ndr->depth--;
12520 : }
12521 0 : if (flags & NDR_OUT) {
12522 0 : ndr_print_struct(ndr, "out", "clusapi_NodeNetworkControl");
12523 0 : ndr->depth++;
12524 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
12525 0 : ndr->depth++;
12526 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
12527 0 : ndr->depth--;
12528 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
12529 0 : ndr->depth++;
12530 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
12531 0 : ndr->depth--;
12532 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
12533 0 : ndr->depth++;
12534 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
12535 0 : ndr->depth--;
12536 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
12537 0 : ndr->depth++;
12538 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
12539 0 : ndr->depth--;
12540 0 : ndr_print_WERROR(ndr, "result", r->out.result);
12541 0 : ndr->depth--;
12542 : }
12543 0 : ndr->depth--;
12544 : }
12545 :
12546 0 : static enum ndr_err_code ndr_push_clusapi_NetworkControl(struct ndr_push *ndr, int flags, const struct clusapi_NetworkControl *r)
12547 : {
12548 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12549 0 : if (flags & NDR_IN) {
12550 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12551 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
12552 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
12553 0 : if (r->in.lpInBuffer) {
12554 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
12555 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
12556 : }
12557 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
12558 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
12559 : }
12560 0 : if (flags & NDR_OUT) {
12561 0 : if (r->out.lpOutBuffer == NULL) {
12562 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12563 : }
12564 0 : if (r->out.lpBytesReturned == NULL) {
12565 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12566 : }
12567 0 : if (r->out.lpcbRequired == NULL) {
12568 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12569 : }
12570 0 : if (r->out.rpc_status == NULL) {
12571 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12572 : }
12573 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
12574 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
12575 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
12576 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
12577 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
12578 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
12579 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
12580 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
12581 : }
12582 0 : return NDR_ERR_SUCCESS;
12583 : }
12584 :
12585 0 : static enum ndr_err_code ndr_pull_clusapi_NetworkControl(struct ndr_pull *ndr, int flags, struct clusapi_NetworkControl *r)
12586 : {
12587 : uint32_t _ptr_lpInBuffer;
12588 0 : uint32_t size_lpInBuffer_1 = 0;
12589 0 : uint32_t size_lpOutBuffer_1 = 0;
12590 0 : uint32_t length_lpOutBuffer_1 = 0;
12591 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
12592 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
12593 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
12594 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
12595 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12596 0 : if (flags & NDR_IN) {
12597 0 : NDR_ZERO_STRUCT(r->out);
12598 :
12599 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12600 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
12601 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
12602 0 : if (_ptr_lpInBuffer) {
12603 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
12604 : } else {
12605 0 : r->in.lpInBuffer = NULL;
12606 : }
12607 0 : if (r->in.lpInBuffer) {
12608 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
12609 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
12610 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
12611 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
12612 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
12613 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
12614 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
12615 : }
12616 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
12617 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
12618 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
12619 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
12620 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
12621 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
12622 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
12623 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
12624 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12625 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
12626 0 : if (r->in.lpInBuffer) {
12627 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
12628 : }
12629 : }
12630 0 : if (flags & NDR_OUT) {
12631 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12632 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12633 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
12634 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
12635 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
12636 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
12637 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
12638 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
12639 : }
12640 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12641 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
12642 : }
12643 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
12644 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12645 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
12646 : }
12647 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
12648 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
12649 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
12650 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
12651 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12652 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
12653 : }
12654 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
12655 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
12656 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
12657 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
12658 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12659 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12660 : }
12661 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12662 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
12663 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
12664 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
12665 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
12666 0 : if (r->out.lpOutBuffer) {
12667 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
12668 : }
12669 0 : if (r->out.lpOutBuffer) {
12670 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
12671 : }
12672 : }
12673 0 : return NDR_ERR_SUCCESS;
12674 : }
12675 :
12676 0 : _PUBLIC_ void ndr_print_clusapi_NetworkControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NetworkControl *r)
12677 : {
12678 0 : ndr_print_struct(ndr, name, "clusapi_NetworkControl");
12679 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12680 0 : ndr->depth++;
12681 0 : if (flags & NDR_SET_VALUES) {
12682 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12683 : }
12684 0 : if (flags & NDR_IN) {
12685 0 : ndr_print_struct(ndr, "in", "clusapi_NetworkControl");
12686 0 : ndr->depth++;
12687 0 : ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
12688 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
12689 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
12690 0 : ndr->depth++;
12691 0 : if (r->in.lpInBuffer) {
12692 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
12693 : }
12694 0 : ndr->depth--;
12695 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
12696 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
12697 0 : ndr->depth--;
12698 : }
12699 0 : if (flags & NDR_OUT) {
12700 0 : ndr_print_struct(ndr, "out", "clusapi_NetworkControl");
12701 0 : ndr->depth++;
12702 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
12703 0 : ndr->depth++;
12704 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
12705 0 : ndr->depth--;
12706 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
12707 0 : ndr->depth++;
12708 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
12709 0 : ndr->depth--;
12710 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
12711 0 : ndr->depth++;
12712 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
12713 0 : ndr->depth--;
12714 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
12715 0 : ndr->depth++;
12716 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
12717 0 : ndr->depth--;
12718 0 : ndr_print_WERROR(ndr, "result", r->out.result);
12719 0 : ndr->depth--;
12720 : }
12721 0 : ndr->depth--;
12722 : }
12723 :
12724 0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyNetwork(struct ndr_push *ndr, int flags, const struct clusapi_AddNotifyNetwork *r)
12725 : {
12726 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12727 0 : if (flags & NDR_IN) {
12728 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
12729 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12730 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
12731 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
12732 : }
12733 0 : if (flags & NDR_OUT) {
12734 0 : if (r->out.dwStateSequence == NULL) {
12735 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12736 : }
12737 0 : if (r->out.rpc_status == NULL) {
12738 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12739 : }
12740 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
12741 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
12742 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
12743 : }
12744 0 : return NDR_ERR_SUCCESS;
12745 : }
12746 :
12747 0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyNetwork(struct ndr_pull *ndr, int flags, struct clusapi_AddNotifyNetwork *r)
12748 : {
12749 0 : TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
12750 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
12751 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12752 0 : if (flags & NDR_IN) {
12753 0 : NDR_ZERO_STRUCT(r->out);
12754 :
12755 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
12756 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12757 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
12758 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
12759 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
12760 0 : NDR_ZERO_STRUCTP(r->out.dwStateSequence);
12761 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12762 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
12763 : }
12764 0 : if (flags & NDR_OUT) {
12765 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12766 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12767 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12768 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
12769 : }
12770 0 : _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
12771 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
12772 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
12773 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
12774 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12775 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12776 : }
12777 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12778 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
12779 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
12780 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
12781 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
12782 : }
12783 0 : return NDR_ERR_SUCCESS;
12784 : }
12785 :
12786 0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyNetwork(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddNotifyNetwork *r)
12787 : {
12788 0 : ndr_print_struct(ndr, name, "clusapi_AddNotifyNetwork");
12789 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12790 0 : ndr->depth++;
12791 0 : if (flags & NDR_SET_VALUES) {
12792 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12793 : }
12794 0 : if (flags & NDR_IN) {
12795 0 : ndr_print_struct(ndr, "in", "clusapi_AddNotifyNetwork");
12796 0 : ndr->depth++;
12797 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
12798 0 : ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
12799 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
12800 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
12801 0 : ndr->depth--;
12802 : }
12803 0 : if (flags & NDR_OUT) {
12804 0 : ndr_print_struct(ndr, "out", "clusapi_AddNotifyNetwork");
12805 0 : ndr->depth++;
12806 0 : ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
12807 0 : ndr->depth++;
12808 0 : ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
12809 0 : ndr->depth--;
12810 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
12811 0 : ndr->depth++;
12812 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
12813 0 : ndr->depth--;
12814 0 : ndr_print_WERROR(ndr, "result", r->out.result);
12815 0 : ndr->depth--;
12816 : }
12817 0 : ndr->depth--;
12818 : }
12819 :
12820 0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyNetwork(struct ndr_push *ndr, int flags, const struct clusapi_ReAddNotifyNetwork *r)
12821 : {
12822 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12823 0 : if (flags & NDR_IN) {
12824 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
12825 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12826 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
12827 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
12828 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
12829 : }
12830 0 : if (flags & NDR_OUT) {
12831 0 : if (r->out.rpc_status == NULL) {
12832 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12833 : }
12834 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
12835 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
12836 : }
12837 0 : return NDR_ERR_SUCCESS;
12838 : }
12839 :
12840 0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyNetwork(struct ndr_pull *ndr, int flags, struct clusapi_ReAddNotifyNetwork *r)
12841 : {
12842 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
12843 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12844 0 : if (flags & NDR_IN) {
12845 0 : NDR_ZERO_STRUCT(r->out);
12846 :
12847 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
12848 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
12849 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
12850 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
12851 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
12852 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12853 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
12854 : }
12855 0 : if (flags & NDR_OUT) {
12856 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12857 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12858 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12859 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12860 : }
12861 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12862 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
12863 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
12864 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
12865 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
12866 : }
12867 0 : return NDR_ERR_SUCCESS;
12868 : }
12869 :
12870 0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyNetwork(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ReAddNotifyNetwork *r)
12871 : {
12872 0 : ndr_print_struct(ndr, name, "clusapi_ReAddNotifyNetwork");
12873 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12874 0 : ndr->depth++;
12875 0 : if (flags & NDR_SET_VALUES) {
12876 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12877 : }
12878 0 : if (flags & NDR_IN) {
12879 0 : ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyNetwork");
12880 0 : ndr->depth++;
12881 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
12882 0 : ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
12883 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
12884 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
12885 0 : ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
12886 0 : ndr->depth--;
12887 : }
12888 0 : if (flags & NDR_OUT) {
12889 0 : ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyNetwork");
12890 0 : ndr->depth++;
12891 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
12892 0 : ndr->depth++;
12893 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
12894 0 : ndr->depth--;
12895 0 : ndr_print_WERROR(ndr, "result", r->out.result);
12896 0 : ndr->depth--;
12897 : }
12898 0 : ndr->depth--;
12899 : }
12900 :
12901 0 : static enum ndr_err_code ndr_push_clusapi_OpenNetInterface(struct ndr_push *ndr, int flags, const struct clusapi_OpenNetInterface *r)
12902 : {
12903 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12904 0 : if (flags & NDR_IN) {
12905 0 : if (r->in.lpszNetInterfaceName == NULL) {
12906 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12907 : }
12908 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16)));
12909 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
12910 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16)));
12911 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetInterfaceName, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
12912 : }
12913 0 : if (flags & NDR_OUT) {
12914 0 : if (r->out.Status == NULL) {
12915 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12916 : }
12917 0 : if (r->out.rpc_status == NULL) {
12918 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12919 : }
12920 0 : if (r->out.hNetInterface == NULL) {
12921 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12922 : }
12923 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
12924 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
12925 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNetInterface));
12926 : }
12927 0 : return NDR_ERR_SUCCESS;
12928 : }
12929 :
12930 0 : static enum ndr_err_code ndr_pull_clusapi_OpenNetInterface(struct ndr_pull *ndr, int flags, struct clusapi_OpenNetInterface *r)
12931 : {
12932 0 : uint32_t size_lpszNetInterfaceName_1 = 0;
12933 0 : uint32_t length_lpszNetInterfaceName_1 = 0;
12934 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
12935 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
12936 0 : TALLOC_CTX *_mem_save_hNetInterface_0 = NULL;
12937 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12938 0 : if (flags & NDR_IN) {
12939 0 : NDR_ZERO_STRUCT(r->out);
12940 :
12941 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetInterfaceName));
12942 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetInterfaceName));
12943 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetInterfaceName, &size_lpszNetInterfaceName_1));
12944 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetInterfaceName, &length_lpszNetInterfaceName_1));
12945 0 : if (length_lpszNetInterfaceName_1 > size_lpszNetInterfaceName_1) {
12946 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNetInterfaceName_1, length_lpszNetInterfaceName_1);
12947 : }
12948 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetInterfaceName_1, sizeof(uint16_t)));
12949 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetInterfaceName, length_lpszNetInterfaceName_1, sizeof(uint16_t), CH_UTF16));
12950 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
12951 0 : NDR_ZERO_STRUCTP(r->out.Status);
12952 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12953 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
12954 0 : NDR_PULL_ALLOC(ndr, r->out.hNetInterface);
12955 0 : NDR_ZERO_STRUCTP(r->out.hNetInterface);
12956 : }
12957 0 : if (flags & NDR_OUT) {
12958 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12959 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12960 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12961 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
12962 : }
12963 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12964 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
12965 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
12966 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
12967 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12968 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
12969 : }
12970 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
12971 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
12972 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
12973 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
12974 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12975 0 : NDR_PULL_ALLOC(ndr, r->out.hNetInterface);
12976 : }
12977 0 : _mem_save_hNetInterface_0 = NDR_PULL_GET_MEM_CTX(ndr);
12978 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hNetInterface, LIBNDR_FLAG_REF_ALLOC);
12979 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNetInterface));
12980 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNetInterface_0, LIBNDR_FLAG_REF_ALLOC);
12981 : }
12982 0 : return NDR_ERR_SUCCESS;
12983 : }
12984 :
12985 0 : _PUBLIC_ void ndr_print_clusapi_OpenNetInterface(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenNetInterface *r)
12986 : {
12987 0 : ndr_print_struct(ndr, name, "clusapi_OpenNetInterface");
12988 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12989 0 : ndr->depth++;
12990 0 : if (flags & NDR_SET_VALUES) {
12991 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12992 : }
12993 0 : if (flags & NDR_IN) {
12994 0 : ndr_print_struct(ndr, "in", "clusapi_OpenNetInterface");
12995 0 : ndr->depth++;
12996 0 : ndr_print_ptr(ndr, "lpszNetInterfaceName", r->in.lpszNetInterfaceName);
12997 0 : ndr->depth++;
12998 0 : ndr_print_string(ndr, "lpszNetInterfaceName", r->in.lpszNetInterfaceName);
12999 0 : ndr->depth--;
13000 0 : ndr->depth--;
13001 : }
13002 0 : if (flags & NDR_OUT) {
13003 0 : ndr_print_struct(ndr, "out", "clusapi_OpenNetInterface");
13004 0 : ndr->depth++;
13005 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
13006 0 : ndr->depth++;
13007 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
13008 0 : ndr->depth--;
13009 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
13010 0 : ndr->depth++;
13011 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
13012 0 : ndr->depth--;
13013 0 : ndr_print_ptr(ndr, "hNetInterface", r->out.hNetInterface);
13014 0 : ndr->depth++;
13015 0 : ndr_print_policy_handle(ndr, "hNetInterface", r->out.hNetInterface);
13016 0 : ndr->depth--;
13017 0 : ndr->depth--;
13018 : }
13019 0 : ndr->depth--;
13020 : }
13021 :
13022 0 : static enum ndr_err_code ndr_push_clusapi_CloseNetInterface(struct ndr_push *ndr, int flags, const struct clusapi_CloseNetInterface *r)
13023 : {
13024 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13025 0 : if (flags & NDR_IN) {
13026 0 : if (r->in.NetInterface == NULL) {
13027 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13028 : }
13029 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.NetInterface));
13030 : }
13031 0 : if (flags & NDR_OUT) {
13032 0 : if (r->out.NetInterface == NULL) {
13033 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13034 : }
13035 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.NetInterface));
13036 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13037 : }
13038 0 : return NDR_ERR_SUCCESS;
13039 : }
13040 :
13041 0 : static enum ndr_err_code ndr_pull_clusapi_CloseNetInterface(struct ndr_pull *ndr, int flags, struct clusapi_CloseNetInterface *r)
13042 : {
13043 0 : TALLOC_CTX *_mem_save_NetInterface_0 = NULL;
13044 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13045 0 : if (flags & NDR_IN) {
13046 0 : NDR_ZERO_STRUCT(r->out);
13047 :
13048 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13049 0 : NDR_PULL_ALLOC(ndr, r->in.NetInterface);
13050 : }
13051 0 : _mem_save_NetInterface_0 = NDR_PULL_GET_MEM_CTX(ndr);
13052 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.NetInterface, LIBNDR_FLAG_REF_ALLOC);
13053 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.NetInterface));
13054 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NetInterface_0, LIBNDR_FLAG_REF_ALLOC);
13055 0 : NDR_PULL_ALLOC(ndr, r->out.NetInterface);
13056 0 : *r->out.NetInterface = *r->in.NetInterface;
13057 : }
13058 0 : if (flags & NDR_OUT) {
13059 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13060 : if (r->in.NetInterface == NULL) {
13061 : NDR_PULL_ALLOC(ndr, r->in.NetInterface);
13062 : NDR_ZERO_STRUCTP(r->in.NetInterface);
13063 : }
13064 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13065 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13066 0 : NDR_PULL_ALLOC(ndr, r->out.NetInterface);
13067 : }
13068 0 : _mem_save_NetInterface_0 = NDR_PULL_GET_MEM_CTX(ndr);
13069 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.NetInterface, LIBNDR_FLAG_REF_ALLOC);
13070 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.NetInterface));
13071 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NetInterface_0, LIBNDR_FLAG_REF_ALLOC);
13072 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
13073 : }
13074 0 : return NDR_ERR_SUCCESS;
13075 : }
13076 :
13077 0 : _PUBLIC_ void ndr_print_clusapi_CloseNetInterface(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseNetInterface *r)
13078 : {
13079 0 : ndr_print_struct(ndr, name, "clusapi_CloseNetInterface");
13080 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13081 0 : ndr->depth++;
13082 0 : if (flags & NDR_SET_VALUES) {
13083 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13084 : }
13085 0 : if (flags & NDR_IN) {
13086 0 : ndr_print_struct(ndr, "in", "clusapi_CloseNetInterface");
13087 0 : ndr->depth++;
13088 0 : ndr_print_ptr(ndr, "NetInterface", r->in.NetInterface);
13089 0 : ndr->depth++;
13090 0 : ndr_print_policy_handle(ndr, "NetInterface", r->in.NetInterface);
13091 0 : ndr->depth--;
13092 0 : ndr->depth--;
13093 : }
13094 0 : if (flags & NDR_OUT) {
13095 0 : ndr_print_struct(ndr, "out", "clusapi_CloseNetInterface");
13096 0 : ndr->depth++;
13097 0 : ndr_print_ptr(ndr, "NetInterface", r->out.NetInterface);
13098 0 : ndr->depth++;
13099 0 : ndr_print_policy_handle(ndr, "NetInterface", r->out.NetInterface);
13100 0 : ndr->depth--;
13101 0 : ndr_print_WERROR(ndr, "result", r->out.result);
13102 0 : ndr->depth--;
13103 : }
13104 0 : ndr->depth--;
13105 : }
13106 :
13107 0 : static enum ndr_err_code ndr_push_clusapi_GetNetInterfaceState(struct ndr_push *ndr, int flags, const struct clusapi_GetNetInterfaceState *r)
13108 : {
13109 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13110 0 : if (flags & NDR_IN) {
13111 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13112 : }
13113 0 : if (flags & NDR_OUT) {
13114 0 : if (r->out.State == NULL) {
13115 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13116 : }
13117 0 : if (r->out.rpc_status == NULL) {
13118 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13119 : }
13120 0 : NDR_CHECK(ndr_push_clusapi_ClusterNetInterfaceState(ndr, NDR_SCALARS, *r->out.State));
13121 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
13122 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13123 : }
13124 0 : return NDR_ERR_SUCCESS;
13125 : }
13126 :
13127 0 : static enum ndr_err_code ndr_pull_clusapi_GetNetInterfaceState(struct ndr_pull *ndr, int flags, struct clusapi_GetNetInterfaceState *r)
13128 : {
13129 0 : TALLOC_CTX *_mem_save_State_0 = NULL;
13130 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
13131 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13132 0 : if (flags & NDR_IN) {
13133 0 : NDR_ZERO_STRUCT(r->out);
13134 :
13135 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13136 0 : NDR_PULL_ALLOC(ndr, r->out.State);
13137 0 : NDR_ZERO_STRUCTP(r->out.State);
13138 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13139 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
13140 : }
13141 0 : if (flags & NDR_OUT) {
13142 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13143 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13144 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13145 0 : NDR_PULL_ALLOC(ndr, r->out.State);
13146 : }
13147 0 : _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
13148 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
13149 0 : NDR_CHECK(ndr_pull_clusapi_ClusterNetInterfaceState(ndr, NDR_SCALARS, r->out.State));
13150 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
13151 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13152 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13153 : }
13154 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
13155 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
13156 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
13157 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
13158 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
13159 : }
13160 0 : return NDR_ERR_SUCCESS;
13161 : }
13162 :
13163 0 : _PUBLIC_ void ndr_print_clusapi_GetNetInterfaceState(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNetInterfaceState *r)
13164 : {
13165 0 : ndr_print_struct(ndr, name, "clusapi_GetNetInterfaceState");
13166 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13167 0 : ndr->depth++;
13168 0 : if (flags & NDR_SET_VALUES) {
13169 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13170 : }
13171 0 : if (flags & NDR_IN) {
13172 0 : ndr_print_struct(ndr, "in", "clusapi_GetNetInterfaceState");
13173 0 : ndr->depth++;
13174 0 : ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
13175 0 : ndr->depth--;
13176 : }
13177 0 : if (flags & NDR_OUT) {
13178 0 : ndr_print_struct(ndr, "out", "clusapi_GetNetInterfaceState");
13179 0 : ndr->depth++;
13180 0 : ndr_print_ptr(ndr, "State", r->out.State);
13181 0 : ndr->depth++;
13182 0 : ndr_print_clusapi_ClusterNetInterfaceState(ndr, "State", *r->out.State);
13183 0 : ndr->depth--;
13184 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
13185 0 : ndr->depth++;
13186 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
13187 0 : ndr->depth--;
13188 0 : ndr_print_WERROR(ndr, "result", r->out.result);
13189 0 : ndr->depth--;
13190 : }
13191 0 : ndr->depth--;
13192 : }
13193 :
13194 0 : static enum ndr_err_code ndr_push_clusapi_GetNetInterface(struct ndr_push *ndr, int flags, const struct clusapi_GetNetInterface *r)
13195 : {
13196 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13197 0 : if (flags & NDR_IN) {
13198 0 : if (r->in.lpszNodeName == NULL) {
13199 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13200 : }
13201 0 : if (r->in.lpszNetworkName == NULL) {
13202 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13203 : }
13204 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
13205 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
13206 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
13207 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNodeName, ndr_charset_length(r->in.lpszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
13208 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
13209 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
13210 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
13211 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
13212 : }
13213 0 : if (flags & NDR_OUT) {
13214 0 : if (r->out.lppszInterfaceName == NULL) {
13215 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13216 : }
13217 0 : if (r->out.rpc_status == NULL) {
13218 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13219 : }
13220 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lppszInterfaceName));
13221 0 : if (*r->out.lppszInterfaceName) {
13222 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lppszInterfaceName, CH_UTF16)));
13223 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
13224 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lppszInterfaceName, CH_UTF16)));
13225 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lppszInterfaceName, ndr_charset_length(*r->out.lppszInterfaceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
13226 : }
13227 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
13228 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13229 : }
13230 0 : return NDR_ERR_SUCCESS;
13231 : }
13232 :
13233 0 : static enum ndr_err_code ndr_pull_clusapi_GetNetInterface(struct ndr_pull *ndr, int flags, struct clusapi_GetNetInterface *r)
13234 : {
13235 0 : uint32_t size_lpszNodeName_1 = 0;
13236 0 : uint32_t length_lpszNodeName_1 = 0;
13237 0 : uint32_t size_lpszNetworkName_1 = 0;
13238 0 : uint32_t length_lpszNetworkName_1 = 0;
13239 : uint32_t _ptr_lppszInterfaceName;
13240 0 : uint32_t size_lppszInterfaceName_2 = 0;
13241 0 : uint32_t length_lppszInterfaceName_2 = 0;
13242 0 : TALLOC_CTX *_mem_save_lppszInterfaceName_0 = NULL;
13243 0 : TALLOC_CTX *_mem_save_lppszInterfaceName_1 = NULL;
13244 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
13245 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13246 0 : if (flags & NDR_IN) {
13247 0 : NDR_ZERO_STRUCT(r->out);
13248 :
13249 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNodeName));
13250 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNodeName));
13251 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNodeName, &size_lpszNodeName_1));
13252 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNodeName, &length_lpszNodeName_1));
13253 0 : if (length_lpszNodeName_1 > size_lpszNodeName_1) {
13254 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNodeName_1, length_lpszNodeName_1);
13255 : }
13256 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNodeName_1, sizeof(uint16_t)));
13257 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNodeName, length_lpszNodeName_1, sizeof(uint16_t), CH_UTF16));
13258 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
13259 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
13260 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
13261 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
13262 0 : if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
13263 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNetworkName_1, length_lpszNetworkName_1);
13264 : }
13265 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
13266 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
13267 0 : NDR_PULL_ALLOC(ndr, r->out.lppszInterfaceName);
13268 0 : NDR_ZERO_STRUCTP(r->out.lppszInterfaceName);
13269 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13270 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
13271 : }
13272 0 : if (flags & NDR_OUT) {
13273 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13274 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13275 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13276 0 : NDR_PULL_ALLOC(ndr, r->out.lppszInterfaceName);
13277 : }
13278 0 : _mem_save_lppszInterfaceName_0 = NDR_PULL_GET_MEM_CTX(ndr);
13279 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lppszInterfaceName, LIBNDR_FLAG_REF_ALLOC);
13280 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lppszInterfaceName));
13281 0 : if (_ptr_lppszInterfaceName) {
13282 0 : NDR_PULL_ALLOC(ndr, *r->out.lppszInterfaceName);
13283 : } else {
13284 0 : *r->out.lppszInterfaceName = NULL;
13285 : }
13286 0 : if (*r->out.lppszInterfaceName) {
13287 0 : _mem_save_lppszInterfaceName_1 = NDR_PULL_GET_MEM_CTX(ndr);
13288 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lppszInterfaceName, 0);
13289 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lppszInterfaceName));
13290 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lppszInterfaceName));
13291 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lppszInterfaceName, &size_lppszInterfaceName_2));
13292 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lppszInterfaceName, &length_lppszInterfaceName_2));
13293 0 : if (length_lppszInterfaceName_2 > size_lppszInterfaceName_2) {
13294 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lppszInterfaceName_2, length_lppszInterfaceName_2);
13295 : }
13296 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lppszInterfaceName_2, sizeof(uint16_t)));
13297 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lppszInterfaceName, length_lppszInterfaceName_2, sizeof(uint16_t), CH_UTF16));
13298 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lppszInterfaceName_1, 0);
13299 : }
13300 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lppszInterfaceName_0, LIBNDR_FLAG_REF_ALLOC);
13301 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13302 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13303 : }
13304 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
13305 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
13306 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
13307 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
13308 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
13309 : }
13310 0 : return NDR_ERR_SUCCESS;
13311 : }
13312 :
13313 0 : _PUBLIC_ void ndr_print_clusapi_GetNetInterface(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNetInterface *r)
13314 : {
13315 0 : ndr_print_struct(ndr, name, "clusapi_GetNetInterface");
13316 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13317 0 : ndr->depth++;
13318 0 : if (flags & NDR_SET_VALUES) {
13319 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13320 : }
13321 0 : if (flags & NDR_IN) {
13322 0 : ndr_print_struct(ndr, "in", "clusapi_GetNetInterface");
13323 0 : ndr->depth++;
13324 0 : ndr_print_ptr(ndr, "lpszNodeName", r->in.lpszNodeName);
13325 0 : ndr->depth++;
13326 0 : ndr_print_string(ndr, "lpszNodeName", r->in.lpszNodeName);
13327 0 : ndr->depth--;
13328 0 : ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
13329 0 : ndr->depth++;
13330 0 : ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
13331 0 : ndr->depth--;
13332 0 : ndr->depth--;
13333 : }
13334 0 : if (flags & NDR_OUT) {
13335 0 : ndr_print_struct(ndr, "out", "clusapi_GetNetInterface");
13336 0 : ndr->depth++;
13337 0 : ndr_print_ptr(ndr, "lppszInterfaceName", r->out.lppszInterfaceName);
13338 0 : ndr->depth++;
13339 0 : ndr_print_ptr(ndr, "lppszInterfaceName", *r->out.lppszInterfaceName);
13340 0 : ndr->depth++;
13341 0 : if (*r->out.lppszInterfaceName) {
13342 0 : ndr_print_string(ndr, "lppszInterfaceName", *r->out.lppszInterfaceName);
13343 : }
13344 0 : ndr->depth--;
13345 0 : ndr->depth--;
13346 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
13347 0 : ndr->depth++;
13348 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
13349 0 : ndr->depth--;
13350 0 : ndr_print_WERROR(ndr, "result", r->out.result);
13351 0 : ndr->depth--;
13352 : }
13353 0 : ndr->depth--;
13354 : }
13355 :
13356 0 : static enum ndr_err_code ndr_push_clusapi_GetNetInterfaceId(struct ndr_push *ndr, int flags, const struct clusapi_GetNetInterfaceId *r)
13357 : {
13358 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13359 0 : if (flags & NDR_IN) {
13360 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13361 : }
13362 0 : if (flags & NDR_OUT) {
13363 0 : if (r->out.pGuid == NULL) {
13364 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13365 : }
13366 0 : if (r->out.rpc_status == NULL) {
13367 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13368 : }
13369 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
13370 0 : if (*r->out.pGuid) {
13371 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
13372 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
13373 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
13374 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
13375 : }
13376 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
13377 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13378 : }
13379 0 : return NDR_ERR_SUCCESS;
13380 : }
13381 :
13382 0 : static enum ndr_err_code ndr_pull_clusapi_GetNetInterfaceId(struct ndr_pull *ndr, int flags, struct clusapi_GetNetInterfaceId *r)
13383 : {
13384 : uint32_t _ptr_pGuid;
13385 0 : uint32_t size_pGuid_2 = 0;
13386 0 : uint32_t length_pGuid_2 = 0;
13387 0 : TALLOC_CTX *_mem_save_pGuid_0 = NULL;
13388 0 : TALLOC_CTX *_mem_save_pGuid_1 = NULL;
13389 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
13390 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13391 0 : if (flags & NDR_IN) {
13392 0 : NDR_ZERO_STRUCT(r->out);
13393 :
13394 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13395 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
13396 0 : NDR_ZERO_STRUCTP(r->out.pGuid);
13397 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13398 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
13399 : }
13400 0 : if (flags & NDR_OUT) {
13401 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13402 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13403 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13404 0 : NDR_PULL_ALLOC(ndr, r->out.pGuid);
13405 : }
13406 0 : _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
13407 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
13408 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
13409 0 : if (_ptr_pGuid) {
13410 0 : NDR_PULL_ALLOC(ndr, *r->out.pGuid);
13411 : } else {
13412 0 : *r->out.pGuid = NULL;
13413 : }
13414 0 : if (*r->out.pGuid) {
13415 0 : _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
13416 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
13417 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
13418 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
13419 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
13420 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
13421 0 : if (length_pGuid_2 > size_pGuid_2) {
13422 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_pGuid_2, length_pGuid_2);
13423 : }
13424 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
13425 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
13426 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
13427 : }
13428 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
13429 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13430 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13431 : }
13432 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
13433 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
13434 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
13435 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
13436 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
13437 : }
13438 0 : return NDR_ERR_SUCCESS;
13439 : }
13440 :
13441 0 : _PUBLIC_ void ndr_print_clusapi_GetNetInterfaceId(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNetInterfaceId *r)
13442 : {
13443 0 : ndr_print_struct(ndr, name, "clusapi_GetNetInterfaceId");
13444 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13445 0 : ndr->depth++;
13446 0 : if (flags & NDR_SET_VALUES) {
13447 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13448 : }
13449 0 : if (flags & NDR_IN) {
13450 0 : ndr_print_struct(ndr, "in", "clusapi_GetNetInterfaceId");
13451 0 : ndr->depth++;
13452 0 : ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
13453 0 : ndr->depth--;
13454 : }
13455 0 : if (flags & NDR_OUT) {
13456 0 : ndr_print_struct(ndr, "out", "clusapi_GetNetInterfaceId");
13457 0 : ndr->depth++;
13458 0 : ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
13459 0 : ndr->depth++;
13460 0 : ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
13461 0 : ndr->depth++;
13462 0 : if (*r->out.pGuid) {
13463 0 : ndr_print_string(ndr, "pGuid", *r->out.pGuid);
13464 : }
13465 0 : ndr->depth--;
13466 0 : ndr->depth--;
13467 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
13468 0 : ndr->depth++;
13469 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
13470 0 : ndr->depth--;
13471 0 : ndr_print_WERROR(ndr, "result", r->out.result);
13472 0 : ndr->depth--;
13473 : }
13474 0 : ndr->depth--;
13475 : }
13476 :
13477 0 : static enum ndr_err_code ndr_push_clusapi_NodeNetInterfaceControl(struct ndr_push *ndr, int flags, const struct clusapi_NodeNetInterfaceControl *r)
13478 : {
13479 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13480 0 : if (flags & NDR_IN) {
13481 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13482 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
13483 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
13484 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
13485 0 : if (r->in.lpInBuffer) {
13486 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
13487 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
13488 : }
13489 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
13490 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
13491 : }
13492 0 : if (flags & NDR_OUT) {
13493 0 : if (r->out.lpOutBuffer == NULL) {
13494 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13495 : }
13496 0 : if (r->out.lpBytesReturned == NULL) {
13497 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13498 : }
13499 0 : if (r->out.lpcbRequired == NULL) {
13500 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13501 : }
13502 0 : if (r->out.rpc_status == NULL) {
13503 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13504 : }
13505 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
13506 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
13507 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
13508 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
13509 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
13510 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
13511 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
13512 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13513 : }
13514 0 : return NDR_ERR_SUCCESS;
13515 : }
13516 :
13517 0 : static enum ndr_err_code ndr_pull_clusapi_NodeNetInterfaceControl(struct ndr_pull *ndr, int flags, struct clusapi_NodeNetInterfaceControl *r)
13518 : {
13519 : uint32_t _ptr_lpInBuffer;
13520 0 : uint32_t size_lpInBuffer_1 = 0;
13521 0 : uint32_t size_lpOutBuffer_1 = 0;
13522 0 : uint32_t length_lpOutBuffer_1 = 0;
13523 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
13524 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
13525 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
13526 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
13527 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13528 0 : if (flags & NDR_IN) {
13529 0 : NDR_ZERO_STRUCT(r->out);
13530 :
13531 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13532 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
13533 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
13534 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
13535 0 : if (_ptr_lpInBuffer) {
13536 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
13537 : } else {
13538 0 : r->in.lpInBuffer = NULL;
13539 : }
13540 0 : if (r->in.lpInBuffer) {
13541 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
13542 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
13543 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
13544 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
13545 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
13546 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
13547 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
13548 : }
13549 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
13550 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
13551 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
13552 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
13553 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
13554 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
13555 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
13556 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
13557 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13558 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
13559 0 : if (r->in.lpInBuffer) {
13560 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
13561 : }
13562 : }
13563 0 : if (flags & NDR_OUT) {
13564 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13565 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13566 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
13567 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
13568 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
13569 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
13570 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
13571 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
13572 : }
13573 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13574 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
13575 : }
13576 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
13577 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13578 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
13579 : }
13580 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
13581 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
13582 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
13583 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
13584 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13585 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
13586 : }
13587 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
13588 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
13589 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
13590 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
13591 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13592 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13593 : }
13594 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
13595 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
13596 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
13597 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
13598 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
13599 0 : if (r->out.lpOutBuffer) {
13600 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
13601 : }
13602 0 : if (r->out.lpOutBuffer) {
13603 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
13604 : }
13605 : }
13606 0 : return NDR_ERR_SUCCESS;
13607 : }
13608 :
13609 0 : _PUBLIC_ void ndr_print_clusapi_NodeNetInterfaceControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NodeNetInterfaceControl *r)
13610 : {
13611 0 : ndr_print_struct(ndr, name, "clusapi_NodeNetInterfaceControl");
13612 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13613 0 : ndr->depth++;
13614 0 : if (flags & NDR_SET_VALUES) {
13615 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13616 : }
13617 0 : if (flags & NDR_IN) {
13618 0 : ndr_print_struct(ndr, "in", "clusapi_NodeNetInterfaceControl");
13619 0 : ndr->depth++;
13620 0 : ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
13621 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
13622 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
13623 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
13624 0 : ndr->depth++;
13625 0 : if (r->in.lpInBuffer) {
13626 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
13627 : }
13628 0 : ndr->depth--;
13629 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
13630 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
13631 0 : ndr->depth--;
13632 : }
13633 0 : if (flags & NDR_OUT) {
13634 0 : ndr_print_struct(ndr, "out", "clusapi_NodeNetInterfaceControl");
13635 0 : ndr->depth++;
13636 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
13637 0 : ndr->depth++;
13638 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
13639 0 : ndr->depth--;
13640 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
13641 0 : ndr->depth++;
13642 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
13643 0 : ndr->depth--;
13644 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
13645 0 : ndr->depth++;
13646 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
13647 0 : ndr->depth--;
13648 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
13649 0 : ndr->depth++;
13650 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
13651 0 : ndr->depth--;
13652 0 : ndr_print_WERROR(ndr, "result", r->out.result);
13653 0 : ndr->depth--;
13654 : }
13655 0 : ndr->depth--;
13656 : }
13657 :
13658 0 : static enum ndr_err_code ndr_push_clusapi_NetInterfaceControl(struct ndr_push *ndr, int flags, const struct clusapi_NetInterfaceControl *r)
13659 : {
13660 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13661 0 : if (flags & NDR_IN) {
13662 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13663 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
13664 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
13665 0 : if (r->in.lpInBuffer) {
13666 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
13667 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
13668 : }
13669 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
13670 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
13671 : }
13672 0 : if (flags & NDR_OUT) {
13673 0 : if (r->out.lpOutBuffer == NULL) {
13674 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13675 : }
13676 0 : if (r->out.lpBytesReturned == NULL) {
13677 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13678 : }
13679 0 : if (r->out.lpcbRequired == NULL) {
13680 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13681 : }
13682 0 : if (r->out.rpc_status == NULL) {
13683 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13684 : }
13685 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
13686 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
13687 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
13688 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
13689 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
13690 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
13691 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
13692 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13693 : }
13694 0 : return NDR_ERR_SUCCESS;
13695 : }
13696 :
13697 0 : static enum ndr_err_code ndr_pull_clusapi_NetInterfaceControl(struct ndr_pull *ndr, int flags, struct clusapi_NetInterfaceControl *r)
13698 : {
13699 : uint32_t _ptr_lpInBuffer;
13700 0 : uint32_t size_lpInBuffer_1 = 0;
13701 0 : uint32_t size_lpOutBuffer_1 = 0;
13702 0 : uint32_t length_lpOutBuffer_1 = 0;
13703 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
13704 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
13705 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
13706 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
13707 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13708 0 : if (flags & NDR_IN) {
13709 0 : NDR_ZERO_STRUCT(r->out);
13710 :
13711 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13712 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
13713 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
13714 0 : if (_ptr_lpInBuffer) {
13715 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
13716 : } else {
13717 0 : r->in.lpInBuffer = NULL;
13718 : }
13719 0 : if (r->in.lpInBuffer) {
13720 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
13721 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
13722 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
13723 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
13724 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
13725 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
13726 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
13727 : }
13728 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
13729 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
13730 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
13731 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
13732 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
13733 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
13734 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
13735 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
13736 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13737 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
13738 0 : if (r->in.lpInBuffer) {
13739 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
13740 : }
13741 : }
13742 0 : if (flags & NDR_OUT) {
13743 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13744 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13745 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
13746 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
13747 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
13748 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
13749 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
13750 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
13751 : }
13752 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13753 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
13754 : }
13755 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
13756 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13757 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
13758 : }
13759 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
13760 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
13761 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
13762 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
13763 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13764 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
13765 : }
13766 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
13767 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
13768 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
13769 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
13770 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13771 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13772 : }
13773 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
13774 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
13775 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
13776 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
13777 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
13778 0 : if (r->out.lpOutBuffer) {
13779 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
13780 : }
13781 0 : if (r->out.lpOutBuffer) {
13782 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
13783 : }
13784 : }
13785 0 : return NDR_ERR_SUCCESS;
13786 : }
13787 :
13788 0 : _PUBLIC_ void ndr_print_clusapi_NetInterfaceControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NetInterfaceControl *r)
13789 : {
13790 0 : ndr_print_struct(ndr, name, "clusapi_NetInterfaceControl");
13791 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13792 0 : ndr->depth++;
13793 0 : if (flags & NDR_SET_VALUES) {
13794 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13795 : }
13796 0 : if (flags & NDR_IN) {
13797 0 : ndr_print_struct(ndr, "in", "clusapi_NetInterfaceControl");
13798 0 : ndr->depth++;
13799 0 : ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
13800 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
13801 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
13802 0 : ndr->depth++;
13803 0 : if (r->in.lpInBuffer) {
13804 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
13805 : }
13806 0 : ndr->depth--;
13807 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
13808 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
13809 0 : ndr->depth--;
13810 : }
13811 0 : if (flags & NDR_OUT) {
13812 0 : ndr_print_struct(ndr, "out", "clusapi_NetInterfaceControl");
13813 0 : ndr->depth++;
13814 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
13815 0 : ndr->depth++;
13816 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
13817 0 : ndr->depth--;
13818 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
13819 0 : ndr->depth++;
13820 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
13821 0 : ndr->depth--;
13822 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
13823 0 : ndr->depth++;
13824 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
13825 0 : ndr->depth--;
13826 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
13827 0 : ndr->depth++;
13828 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
13829 0 : ndr->depth--;
13830 0 : ndr_print_WERROR(ndr, "result", r->out.result);
13831 0 : ndr->depth--;
13832 : }
13833 0 : ndr->depth--;
13834 : }
13835 :
13836 0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyNetInterface(struct ndr_push *ndr, int flags, const struct clusapi_AddNotifyNetInterface *r)
13837 : {
13838 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13839 0 : if (flags & NDR_IN) {
13840 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
13841 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13842 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
13843 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
13844 : }
13845 0 : if (flags & NDR_OUT) {
13846 0 : if (r->out.dwStateSequence == NULL) {
13847 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13848 : }
13849 0 : if (r->out.rpc_status == NULL) {
13850 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13851 : }
13852 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
13853 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
13854 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13855 : }
13856 0 : return NDR_ERR_SUCCESS;
13857 : }
13858 :
13859 0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyNetInterface(struct ndr_pull *ndr, int flags, struct clusapi_AddNotifyNetInterface *r)
13860 : {
13861 0 : TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
13862 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
13863 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13864 0 : if (flags & NDR_IN) {
13865 0 : NDR_ZERO_STRUCT(r->out);
13866 :
13867 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
13868 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13869 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
13870 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
13871 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
13872 0 : NDR_ZERO_STRUCTP(r->out.dwStateSequence);
13873 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13874 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
13875 : }
13876 0 : if (flags & NDR_OUT) {
13877 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13878 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13879 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13880 0 : NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
13881 : }
13882 0 : _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
13883 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
13884 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
13885 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
13886 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13887 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13888 : }
13889 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
13890 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
13891 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
13892 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
13893 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
13894 : }
13895 0 : return NDR_ERR_SUCCESS;
13896 : }
13897 :
13898 0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyNetInterface(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddNotifyNetInterface *r)
13899 : {
13900 0 : ndr_print_struct(ndr, name, "clusapi_AddNotifyNetInterface");
13901 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13902 0 : ndr->depth++;
13903 0 : if (flags & NDR_SET_VALUES) {
13904 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13905 : }
13906 0 : if (flags & NDR_IN) {
13907 0 : ndr_print_struct(ndr, "in", "clusapi_AddNotifyNetInterface");
13908 0 : ndr->depth++;
13909 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
13910 0 : ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
13911 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
13912 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
13913 0 : ndr->depth--;
13914 : }
13915 0 : if (flags & NDR_OUT) {
13916 0 : ndr_print_struct(ndr, "out", "clusapi_AddNotifyNetInterface");
13917 0 : ndr->depth++;
13918 0 : ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
13919 0 : ndr->depth++;
13920 0 : ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
13921 0 : ndr->depth--;
13922 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
13923 0 : ndr->depth++;
13924 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
13925 0 : ndr->depth--;
13926 0 : ndr_print_WERROR(ndr, "result", r->out.result);
13927 0 : ndr->depth--;
13928 : }
13929 0 : ndr->depth--;
13930 : }
13931 :
13932 0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyNetInterface(struct ndr_push *ndr, int flags, const struct clusapi_ReAddNotifyNetInterface *r)
13933 : {
13934 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13935 0 : if (flags & NDR_IN) {
13936 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
13937 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13938 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
13939 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
13940 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
13941 : }
13942 0 : if (flags & NDR_OUT) {
13943 0 : if (r->out.rpc_status == NULL) {
13944 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13945 : }
13946 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
13947 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13948 : }
13949 0 : return NDR_ERR_SUCCESS;
13950 : }
13951 :
13952 0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyNetInterface(struct ndr_pull *ndr, int flags, struct clusapi_ReAddNotifyNetInterface *r)
13953 : {
13954 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
13955 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13956 0 : if (flags & NDR_IN) {
13957 0 : NDR_ZERO_STRUCT(r->out);
13958 :
13959 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
13960 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
13961 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
13962 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
13963 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
13964 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13965 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
13966 : }
13967 0 : if (flags & NDR_OUT) {
13968 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13969 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13970 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13971 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
13972 : }
13973 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
13974 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
13975 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
13976 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
13977 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
13978 : }
13979 0 : return NDR_ERR_SUCCESS;
13980 : }
13981 :
13982 0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyNetInterface(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ReAddNotifyNetInterface *r)
13983 : {
13984 0 : ndr_print_struct(ndr, name, "clusapi_ReAddNotifyNetInterface");
13985 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13986 0 : ndr->depth++;
13987 0 : if (flags & NDR_SET_VALUES) {
13988 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13989 : }
13990 0 : if (flags & NDR_IN) {
13991 0 : ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyNetInterface");
13992 0 : ndr->depth++;
13993 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
13994 0 : ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
13995 0 : ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
13996 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
13997 0 : ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
13998 0 : ndr->depth--;
13999 : }
14000 0 : if (flags & NDR_OUT) {
14001 0 : ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyNetInterface");
14002 0 : ndr->depth++;
14003 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
14004 0 : ndr->depth++;
14005 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
14006 0 : ndr->depth--;
14007 0 : ndr_print_WERROR(ndr, "result", r->out.result);
14008 0 : ndr->depth--;
14009 : }
14010 0 : ndr->depth--;
14011 : }
14012 :
14013 0 : static enum ndr_err_code ndr_push_clusapi_CreateNodeEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateNodeEnum *r)
14014 : {
14015 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14016 0 : if (flags & NDR_IN) {
14017 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
14018 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwType));
14019 : }
14020 0 : if (flags & NDR_OUT) {
14021 0 : if (r->out.ReturnEnum == NULL) {
14022 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14023 : }
14024 0 : if (r->out.rpc_status == NULL) {
14025 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14026 : }
14027 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
14028 0 : if (*r->out.ReturnEnum) {
14029 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
14030 : }
14031 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
14032 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
14033 : }
14034 0 : return NDR_ERR_SUCCESS;
14035 : }
14036 :
14037 0 : static enum ndr_err_code ndr_pull_clusapi_CreateNodeEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateNodeEnum *r)
14038 : {
14039 : uint32_t _ptr_ReturnEnum;
14040 0 : TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
14041 0 : TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
14042 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
14043 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14044 0 : if (flags & NDR_IN) {
14045 0 : NDR_ZERO_STRUCT(r->out);
14046 :
14047 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
14048 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwType));
14049 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
14050 0 : NDR_ZERO_STRUCTP(r->out.ReturnEnum);
14051 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14052 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
14053 : }
14054 0 : if (flags & NDR_OUT) {
14055 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14056 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14057 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14058 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
14059 : }
14060 0 : _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
14061 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
14062 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
14063 0 : if (_ptr_ReturnEnum) {
14064 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
14065 : } else {
14066 0 : *r->out.ReturnEnum = NULL;
14067 : }
14068 0 : if (*r->out.ReturnEnum) {
14069 0 : _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
14070 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
14071 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
14072 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
14073 : }
14074 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
14075 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14076 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14077 : }
14078 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
14079 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
14080 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
14081 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
14082 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
14083 : }
14084 0 : return NDR_ERR_SUCCESS;
14085 : }
14086 :
14087 0 : _PUBLIC_ void ndr_print_clusapi_CreateNodeEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateNodeEnum *r)
14088 : {
14089 0 : ndr_print_struct(ndr, name, "clusapi_CreateNodeEnum");
14090 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14091 0 : ndr->depth++;
14092 0 : if (flags & NDR_SET_VALUES) {
14093 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14094 : }
14095 0 : if (flags & NDR_IN) {
14096 0 : ndr_print_struct(ndr, "in", "clusapi_CreateNodeEnum");
14097 0 : ndr->depth++;
14098 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
14099 0 : ndr_print_uint32(ndr, "dwType", r->in.dwType);
14100 0 : ndr->depth--;
14101 : }
14102 0 : if (flags & NDR_OUT) {
14103 0 : ndr_print_struct(ndr, "out", "clusapi_CreateNodeEnum");
14104 0 : ndr->depth++;
14105 0 : ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
14106 0 : ndr->depth++;
14107 0 : ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
14108 0 : ndr->depth++;
14109 0 : if (*r->out.ReturnEnum) {
14110 0 : ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
14111 : }
14112 0 : ndr->depth--;
14113 0 : ndr->depth--;
14114 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
14115 0 : ndr->depth++;
14116 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
14117 0 : ndr->depth--;
14118 0 : ndr_print_WERROR(ndr, "result", r->out.result);
14119 0 : ndr->depth--;
14120 : }
14121 0 : ndr->depth--;
14122 : }
14123 :
14124 0 : static enum ndr_err_code ndr_push_clusapi_GetClusterVersion2(struct ndr_push *ndr, int flags, const struct clusapi_GetClusterVersion2 *r)
14125 : {
14126 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14127 0 : if (flags & NDR_IN) {
14128 : }
14129 0 : if (flags & NDR_OUT) {
14130 0 : if (r->out.lpwMajorVersion == NULL) {
14131 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14132 : }
14133 0 : if (r->out.lpwMinorVersion == NULL) {
14134 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14135 : }
14136 0 : if (r->out.lpwBuildNumber == NULL) {
14137 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14138 : }
14139 0 : if (r->out.lpszVendorId == NULL) {
14140 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14141 : }
14142 0 : if (r->out.lpszCSDVersion == NULL) {
14143 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14144 : }
14145 0 : if (r->out.ppClusterOpVerInfo == NULL) {
14146 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14147 : }
14148 0 : if (r->out.rpc_status == NULL) {
14149 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14150 : }
14151 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwMajorVersion));
14152 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwMinorVersion));
14153 0 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwBuildNumber));
14154 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszVendorId));
14155 0 : if (*r->out.lpszVendorId) {
14156 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16)));
14157 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
14158 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16)));
14159 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszVendorId, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
14160 : }
14161 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszCSDVersion));
14162 0 : if (*r->out.lpszCSDVersion) {
14163 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16)));
14164 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
14165 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16)));
14166 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszCSDVersion, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16), sizeof(uint16_t), CH_UTF16));
14167 : }
14168 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppClusterOpVerInfo));
14169 0 : if (*r->out.ppClusterOpVerInfo) {
14170 0 : NDR_CHECK(ndr_push_CLUSTER_OPERATIONAL_VERSION_INFO(ndr, NDR_SCALARS, *r->out.ppClusterOpVerInfo));
14171 : }
14172 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
14173 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
14174 : }
14175 0 : return NDR_ERR_SUCCESS;
14176 : }
14177 :
14178 0 : static enum ndr_err_code ndr_pull_clusapi_GetClusterVersion2(struct ndr_pull *ndr, int flags, struct clusapi_GetClusterVersion2 *r)
14179 : {
14180 : uint32_t _ptr_lpszVendorId;
14181 0 : uint32_t size_lpszVendorId_2 = 0;
14182 0 : uint32_t length_lpszVendorId_2 = 0;
14183 : uint32_t _ptr_lpszCSDVersion;
14184 0 : uint32_t size_lpszCSDVersion_2 = 0;
14185 0 : uint32_t length_lpszCSDVersion_2 = 0;
14186 : uint32_t _ptr_ppClusterOpVerInfo;
14187 0 : TALLOC_CTX *_mem_save_lpwMajorVersion_0 = NULL;
14188 0 : TALLOC_CTX *_mem_save_lpwMinorVersion_0 = NULL;
14189 0 : TALLOC_CTX *_mem_save_lpwBuildNumber_0 = NULL;
14190 0 : TALLOC_CTX *_mem_save_lpszVendorId_0 = NULL;
14191 0 : TALLOC_CTX *_mem_save_lpszVendorId_1 = NULL;
14192 0 : TALLOC_CTX *_mem_save_lpszCSDVersion_0 = NULL;
14193 0 : TALLOC_CTX *_mem_save_lpszCSDVersion_1 = NULL;
14194 0 : TALLOC_CTX *_mem_save_ppClusterOpVerInfo_0 = NULL;
14195 0 : TALLOC_CTX *_mem_save_ppClusterOpVerInfo_1 = NULL;
14196 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
14197 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14198 0 : if (flags & NDR_IN) {
14199 0 : NDR_ZERO_STRUCT(r->out);
14200 :
14201 0 : NDR_PULL_ALLOC(ndr, r->out.lpwMajorVersion);
14202 0 : NDR_ZERO_STRUCTP(r->out.lpwMajorVersion);
14203 0 : NDR_PULL_ALLOC(ndr, r->out.lpwMinorVersion);
14204 0 : NDR_ZERO_STRUCTP(r->out.lpwMinorVersion);
14205 0 : NDR_PULL_ALLOC(ndr, r->out.lpwBuildNumber);
14206 0 : NDR_ZERO_STRUCTP(r->out.lpwBuildNumber);
14207 0 : NDR_PULL_ALLOC(ndr, r->out.lpszVendorId);
14208 0 : NDR_ZERO_STRUCTP(r->out.lpszVendorId);
14209 0 : NDR_PULL_ALLOC(ndr, r->out.lpszCSDVersion);
14210 0 : NDR_ZERO_STRUCTP(r->out.lpszCSDVersion);
14211 0 : NDR_PULL_ALLOC(ndr, r->out.ppClusterOpVerInfo);
14212 0 : NDR_ZERO_STRUCTP(r->out.ppClusterOpVerInfo);
14213 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14214 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
14215 : }
14216 0 : if (flags & NDR_OUT) {
14217 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14218 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14219 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14220 0 : NDR_PULL_ALLOC(ndr, r->out.lpwMajorVersion);
14221 : }
14222 0 : _mem_save_lpwMajorVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
14223 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwMajorVersion, LIBNDR_FLAG_REF_ALLOC);
14224 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwMajorVersion));
14225 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwMajorVersion_0, LIBNDR_FLAG_REF_ALLOC);
14226 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14227 0 : NDR_PULL_ALLOC(ndr, r->out.lpwMinorVersion);
14228 : }
14229 0 : _mem_save_lpwMinorVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
14230 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwMinorVersion, LIBNDR_FLAG_REF_ALLOC);
14231 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwMinorVersion));
14232 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwMinorVersion_0, LIBNDR_FLAG_REF_ALLOC);
14233 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14234 0 : NDR_PULL_ALLOC(ndr, r->out.lpwBuildNumber);
14235 : }
14236 0 : _mem_save_lpwBuildNumber_0 = NDR_PULL_GET_MEM_CTX(ndr);
14237 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwBuildNumber, LIBNDR_FLAG_REF_ALLOC);
14238 0 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwBuildNumber));
14239 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwBuildNumber_0, LIBNDR_FLAG_REF_ALLOC);
14240 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14241 0 : NDR_PULL_ALLOC(ndr, r->out.lpszVendorId);
14242 : }
14243 0 : _mem_save_lpszVendorId_0 = NDR_PULL_GET_MEM_CTX(ndr);
14244 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszVendorId, LIBNDR_FLAG_REF_ALLOC);
14245 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszVendorId));
14246 0 : if (_ptr_lpszVendorId) {
14247 0 : NDR_PULL_ALLOC(ndr, *r->out.lpszVendorId);
14248 : } else {
14249 0 : *r->out.lpszVendorId = NULL;
14250 : }
14251 0 : if (*r->out.lpszVendorId) {
14252 0 : _mem_save_lpszVendorId_1 = NDR_PULL_GET_MEM_CTX(ndr);
14253 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszVendorId, 0);
14254 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszVendorId));
14255 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszVendorId));
14256 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszVendorId, &size_lpszVendorId_2));
14257 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszVendorId, &length_lpszVendorId_2));
14258 0 : if (length_lpszVendorId_2 > size_lpszVendorId_2) {
14259 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszVendorId_2, length_lpszVendorId_2);
14260 : }
14261 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszVendorId_2, sizeof(uint16_t)));
14262 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszVendorId, length_lpszVendorId_2, sizeof(uint16_t), CH_UTF16));
14263 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszVendorId_1, 0);
14264 : }
14265 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszVendorId_0, LIBNDR_FLAG_REF_ALLOC);
14266 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14267 0 : NDR_PULL_ALLOC(ndr, r->out.lpszCSDVersion);
14268 : }
14269 0 : _mem_save_lpszCSDVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
14270 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszCSDVersion, LIBNDR_FLAG_REF_ALLOC);
14271 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszCSDVersion));
14272 0 : if (_ptr_lpszCSDVersion) {
14273 0 : NDR_PULL_ALLOC(ndr, *r->out.lpszCSDVersion);
14274 : } else {
14275 0 : *r->out.lpszCSDVersion = NULL;
14276 : }
14277 0 : if (*r->out.lpszCSDVersion) {
14278 0 : _mem_save_lpszCSDVersion_1 = NDR_PULL_GET_MEM_CTX(ndr);
14279 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszCSDVersion, 0);
14280 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszCSDVersion));
14281 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszCSDVersion));
14282 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszCSDVersion, &size_lpszCSDVersion_2));
14283 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszCSDVersion, &length_lpszCSDVersion_2));
14284 0 : if (length_lpszCSDVersion_2 > size_lpszCSDVersion_2) {
14285 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszCSDVersion_2, length_lpszCSDVersion_2);
14286 : }
14287 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszCSDVersion_2, sizeof(uint16_t)));
14288 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszCSDVersion, length_lpszCSDVersion_2, sizeof(uint16_t), CH_UTF16));
14289 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszCSDVersion_1, 0);
14290 : }
14291 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszCSDVersion_0, LIBNDR_FLAG_REF_ALLOC);
14292 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14293 0 : NDR_PULL_ALLOC(ndr, r->out.ppClusterOpVerInfo);
14294 : }
14295 0 : _mem_save_ppClusterOpVerInfo_0 = NDR_PULL_GET_MEM_CTX(ndr);
14296 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ppClusterOpVerInfo, LIBNDR_FLAG_REF_ALLOC);
14297 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppClusterOpVerInfo));
14298 0 : if (_ptr_ppClusterOpVerInfo) {
14299 0 : NDR_PULL_ALLOC(ndr, *r->out.ppClusterOpVerInfo);
14300 : } else {
14301 0 : *r->out.ppClusterOpVerInfo = NULL;
14302 : }
14303 0 : if (*r->out.ppClusterOpVerInfo) {
14304 0 : _mem_save_ppClusterOpVerInfo_1 = NDR_PULL_GET_MEM_CTX(ndr);
14305 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppClusterOpVerInfo, 0);
14306 0 : NDR_CHECK(ndr_pull_CLUSTER_OPERATIONAL_VERSION_INFO(ndr, NDR_SCALARS, *r->out.ppClusterOpVerInfo));
14307 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppClusterOpVerInfo_1, 0);
14308 : }
14309 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppClusterOpVerInfo_0, LIBNDR_FLAG_REF_ALLOC);
14310 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14311 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14312 : }
14313 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
14314 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
14315 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
14316 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
14317 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
14318 : }
14319 0 : return NDR_ERR_SUCCESS;
14320 : }
14321 :
14322 0 : _PUBLIC_ void ndr_print_clusapi_GetClusterVersion2(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetClusterVersion2 *r)
14323 : {
14324 0 : ndr_print_struct(ndr, name, "clusapi_GetClusterVersion2");
14325 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14326 0 : ndr->depth++;
14327 0 : if (flags & NDR_SET_VALUES) {
14328 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14329 : }
14330 0 : if (flags & NDR_IN) {
14331 0 : ndr_print_struct(ndr, "in", "clusapi_GetClusterVersion2");
14332 0 : ndr->depth++;
14333 0 : ndr->depth--;
14334 : }
14335 0 : if (flags & NDR_OUT) {
14336 0 : ndr_print_struct(ndr, "out", "clusapi_GetClusterVersion2");
14337 0 : ndr->depth++;
14338 0 : ndr_print_ptr(ndr, "lpwMajorVersion", r->out.lpwMajorVersion);
14339 0 : ndr->depth++;
14340 0 : ndr_print_uint16(ndr, "lpwMajorVersion", *r->out.lpwMajorVersion);
14341 0 : ndr->depth--;
14342 0 : ndr_print_ptr(ndr, "lpwMinorVersion", r->out.lpwMinorVersion);
14343 0 : ndr->depth++;
14344 0 : ndr_print_uint16(ndr, "lpwMinorVersion", *r->out.lpwMinorVersion);
14345 0 : ndr->depth--;
14346 0 : ndr_print_ptr(ndr, "lpwBuildNumber", r->out.lpwBuildNumber);
14347 0 : ndr->depth++;
14348 0 : ndr_print_uint16(ndr, "lpwBuildNumber", *r->out.lpwBuildNumber);
14349 0 : ndr->depth--;
14350 0 : ndr_print_ptr(ndr, "lpszVendorId", r->out.lpszVendorId);
14351 0 : ndr->depth++;
14352 0 : ndr_print_ptr(ndr, "lpszVendorId", *r->out.lpszVendorId);
14353 0 : ndr->depth++;
14354 0 : if (*r->out.lpszVendorId) {
14355 0 : ndr_print_string(ndr, "lpszVendorId", *r->out.lpszVendorId);
14356 : }
14357 0 : ndr->depth--;
14358 0 : ndr->depth--;
14359 0 : ndr_print_ptr(ndr, "lpszCSDVersion", r->out.lpszCSDVersion);
14360 0 : ndr->depth++;
14361 0 : ndr_print_ptr(ndr, "lpszCSDVersion", *r->out.lpszCSDVersion);
14362 0 : ndr->depth++;
14363 0 : if (*r->out.lpszCSDVersion) {
14364 0 : ndr_print_string(ndr, "lpszCSDVersion", *r->out.lpszCSDVersion);
14365 : }
14366 0 : ndr->depth--;
14367 0 : ndr->depth--;
14368 0 : ndr_print_ptr(ndr, "ppClusterOpVerInfo", r->out.ppClusterOpVerInfo);
14369 0 : ndr->depth++;
14370 0 : ndr_print_ptr(ndr, "ppClusterOpVerInfo", *r->out.ppClusterOpVerInfo);
14371 0 : ndr->depth++;
14372 0 : if (*r->out.ppClusterOpVerInfo) {
14373 0 : ndr_print_CLUSTER_OPERATIONAL_VERSION_INFO(ndr, "ppClusterOpVerInfo", *r->out.ppClusterOpVerInfo);
14374 : }
14375 0 : ndr->depth--;
14376 0 : ndr->depth--;
14377 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
14378 0 : ndr->depth++;
14379 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
14380 0 : ndr->depth--;
14381 0 : ndr_print_WERROR(ndr, "result", r->out.result);
14382 0 : ndr->depth--;
14383 : }
14384 0 : ndr->depth--;
14385 : }
14386 :
14387 0 : static enum ndr_err_code ndr_push_clusapi_CreateResTypeEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateResTypeEnum *r)
14388 : {
14389 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14390 0 : if (flags & NDR_IN) {
14391 0 : if (r->in.lpszTypeName == NULL) {
14392 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14393 : }
14394 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
14395 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
14396 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
14397 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszTypeName, ndr_charset_length(r->in.lpszTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
14398 0 : NDR_CHECK(ndr_push_ClusterResTypeEnumType(ndr, NDR_SCALARS, r->in.dwType));
14399 : }
14400 0 : if (flags & NDR_OUT) {
14401 0 : if (r->out.ReturnEnum == NULL) {
14402 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14403 : }
14404 0 : if (r->out.rpc_status == NULL) {
14405 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14406 : }
14407 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
14408 0 : if (*r->out.ReturnEnum) {
14409 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
14410 : }
14411 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
14412 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
14413 : }
14414 0 : return NDR_ERR_SUCCESS;
14415 : }
14416 :
14417 0 : static enum ndr_err_code ndr_pull_clusapi_CreateResTypeEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateResTypeEnum *r)
14418 : {
14419 0 : uint32_t size_lpszTypeName_1 = 0;
14420 0 : uint32_t length_lpszTypeName_1 = 0;
14421 : uint32_t _ptr_ReturnEnum;
14422 0 : TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
14423 0 : TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
14424 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
14425 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14426 0 : if (flags & NDR_IN) {
14427 0 : NDR_ZERO_STRUCT(r->out);
14428 :
14429 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszTypeName));
14430 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszTypeName));
14431 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszTypeName, &size_lpszTypeName_1));
14432 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszTypeName, &length_lpszTypeName_1));
14433 0 : if (length_lpszTypeName_1 > size_lpszTypeName_1) {
14434 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszTypeName_1, length_lpszTypeName_1);
14435 : }
14436 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszTypeName_1, sizeof(uint16_t)));
14437 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszTypeName, length_lpszTypeName_1, sizeof(uint16_t), CH_UTF16));
14438 0 : NDR_CHECK(ndr_pull_ClusterResTypeEnumType(ndr, NDR_SCALARS, &r->in.dwType));
14439 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
14440 0 : NDR_ZERO_STRUCTP(r->out.ReturnEnum);
14441 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14442 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
14443 : }
14444 0 : if (flags & NDR_OUT) {
14445 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14446 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14447 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14448 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
14449 : }
14450 0 : _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
14451 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
14452 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
14453 0 : if (_ptr_ReturnEnum) {
14454 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
14455 : } else {
14456 0 : *r->out.ReturnEnum = NULL;
14457 : }
14458 0 : if (*r->out.ReturnEnum) {
14459 0 : _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
14460 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
14461 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
14462 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
14463 : }
14464 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
14465 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14466 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14467 : }
14468 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
14469 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
14470 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
14471 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
14472 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
14473 : }
14474 0 : return NDR_ERR_SUCCESS;
14475 : }
14476 :
14477 0 : _PUBLIC_ void ndr_print_clusapi_CreateResTypeEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateResTypeEnum *r)
14478 : {
14479 0 : ndr_print_struct(ndr, name, "clusapi_CreateResTypeEnum");
14480 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14481 0 : ndr->depth++;
14482 0 : if (flags & NDR_SET_VALUES) {
14483 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14484 : }
14485 0 : if (flags & NDR_IN) {
14486 0 : ndr_print_struct(ndr, "in", "clusapi_CreateResTypeEnum");
14487 0 : ndr->depth++;
14488 0 : ndr_print_ptr(ndr, "lpszTypeName", r->in.lpszTypeName);
14489 0 : ndr->depth++;
14490 0 : ndr_print_string(ndr, "lpszTypeName", r->in.lpszTypeName);
14491 0 : ndr->depth--;
14492 0 : ndr_print_ClusterResTypeEnumType(ndr, "dwType", r->in.dwType);
14493 0 : ndr->depth--;
14494 : }
14495 0 : if (flags & NDR_OUT) {
14496 0 : ndr_print_struct(ndr, "out", "clusapi_CreateResTypeEnum");
14497 0 : ndr->depth++;
14498 0 : ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
14499 0 : ndr->depth++;
14500 0 : ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
14501 0 : ndr->depth++;
14502 0 : if (*r->out.ReturnEnum) {
14503 0 : ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
14504 : }
14505 0 : ndr->depth--;
14506 0 : ndr->depth--;
14507 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
14508 0 : ndr->depth++;
14509 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
14510 0 : ndr->depth--;
14511 0 : ndr_print_WERROR(ndr, "result", r->out.result);
14512 0 : ndr->depth--;
14513 : }
14514 0 : ndr->depth--;
14515 : }
14516 :
14517 0 : static enum ndr_err_code ndr_push_clusapi_BackupClusterDatabase(struct ndr_push *ndr, int flags, const struct clusapi_BackupClusterDatabase *r)
14518 : {
14519 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14520 0 : if (flags & NDR_IN) {
14521 0 : if (r->in.lpszPathName == NULL) {
14522 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14523 : }
14524 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszPathName, CH_UTF16)));
14525 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
14526 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszPathName, CH_UTF16)));
14527 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszPathName, ndr_charset_length(r->in.lpszPathName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
14528 : }
14529 0 : if (flags & NDR_OUT) {
14530 0 : if (r->out.rpc_status == NULL) {
14531 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14532 : }
14533 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
14534 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
14535 : }
14536 0 : return NDR_ERR_SUCCESS;
14537 : }
14538 :
14539 0 : static enum ndr_err_code ndr_pull_clusapi_BackupClusterDatabase(struct ndr_pull *ndr, int flags, struct clusapi_BackupClusterDatabase *r)
14540 : {
14541 0 : uint32_t size_lpszPathName_1 = 0;
14542 0 : uint32_t length_lpszPathName_1 = 0;
14543 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
14544 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14545 0 : if (flags & NDR_IN) {
14546 0 : NDR_ZERO_STRUCT(r->out);
14547 :
14548 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszPathName));
14549 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszPathName));
14550 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszPathName, &size_lpszPathName_1));
14551 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszPathName, &length_lpszPathName_1));
14552 0 : if (length_lpszPathName_1 > size_lpszPathName_1) {
14553 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszPathName_1, length_lpszPathName_1);
14554 : }
14555 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszPathName_1, sizeof(uint16_t)));
14556 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszPathName, length_lpszPathName_1, sizeof(uint16_t), CH_UTF16));
14557 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14558 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
14559 : }
14560 0 : if (flags & NDR_OUT) {
14561 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14562 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14563 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14564 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14565 : }
14566 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
14567 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
14568 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
14569 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
14570 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
14571 : }
14572 0 : return NDR_ERR_SUCCESS;
14573 : }
14574 :
14575 0 : _PUBLIC_ void ndr_print_clusapi_BackupClusterDatabase(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_BackupClusterDatabase *r)
14576 : {
14577 0 : ndr_print_struct(ndr, name, "clusapi_BackupClusterDatabase");
14578 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14579 0 : ndr->depth++;
14580 0 : if (flags & NDR_SET_VALUES) {
14581 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14582 : }
14583 0 : if (flags & NDR_IN) {
14584 0 : ndr_print_struct(ndr, "in", "clusapi_BackupClusterDatabase");
14585 0 : ndr->depth++;
14586 0 : ndr_print_ptr(ndr, "lpszPathName", r->in.lpszPathName);
14587 0 : ndr->depth++;
14588 0 : ndr_print_string(ndr, "lpszPathName", r->in.lpszPathName);
14589 0 : ndr->depth--;
14590 0 : ndr->depth--;
14591 : }
14592 0 : if (flags & NDR_OUT) {
14593 0 : ndr_print_struct(ndr, "out", "clusapi_BackupClusterDatabase");
14594 0 : ndr->depth++;
14595 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
14596 0 : ndr->depth++;
14597 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
14598 0 : ndr->depth--;
14599 0 : ndr_print_WERROR(ndr, "result", r->out.result);
14600 0 : ndr->depth--;
14601 : }
14602 0 : ndr->depth--;
14603 : }
14604 :
14605 0 : static enum ndr_err_code ndr_push_clusapi_NodeClusterControl(struct ndr_push *ndr, int flags, const struct clusapi_NodeClusterControl *r)
14606 : {
14607 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14608 0 : if (flags & NDR_IN) {
14609 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
14610 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hHostNode));
14611 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
14612 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
14613 0 : if (r->in.lpInBuffer) {
14614 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
14615 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
14616 : }
14617 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
14618 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
14619 : }
14620 0 : if (flags & NDR_OUT) {
14621 0 : if (r->out.lpOutBuffer == NULL) {
14622 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14623 : }
14624 0 : if (r->out.lpBytesReturned == NULL) {
14625 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14626 : }
14627 0 : if (r->out.lpcbRequired == NULL) {
14628 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14629 : }
14630 0 : if (r->out.rpc_status == NULL) {
14631 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14632 : }
14633 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
14634 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
14635 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
14636 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
14637 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
14638 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
14639 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
14640 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
14641 : }
14642 0 : return NDR_ERR_SUCCESS;
14643 : }
14644 :
14645 0 : static enum ndr_err_code ndr_pull_clusapi_NodeClusterControl(struct ndr_pull *ndr, int flags, struct clusapi_NodeClusterControl *r)
14646 : {
14647 : uint32_t _ptr_lpInBuffer;
14648 0 : uint32_t size_lpInBuffer_1 = 0;
14649 0 : uint32_t size_lpOutBuffer_1 = 0;
14650 0 : uint32_t length_lpOutBuffer_1 = 0;
14651 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
14652 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
14653 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
14654 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
14655 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14656 0 : if (flags & NDR_IN) {
14657 0 : NDR_ZERO_STRUCT(r->out);
14658 :
14659 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
14660 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hHostNode));
14661 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
14662 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
14663 0 : if (_ptr_lpInBuffer) {
14664 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
14665 : } else {
14666 0 : r->in.lpInBuffer = NULL;
14667 : }
14668 0 : if (r->in.lpInBuffer) {
14669 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
14670 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
14671 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
14672 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
14673 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
14674 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
14675 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
14676 : }
14677 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
14678 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
14679 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
14680 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
14681 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
14682 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
14683 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
14684 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
14685 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14686 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
14687 0 : if (r->in.lpInBuffer) {
14688 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
14689 : }
14690 : }
14691 0 : if (flags & NDR_OUT) {
14692 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14693 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14694 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
14695 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
14696 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
14697 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
14698 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
14699 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
14700 : }
14701 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14702 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
14703 : }
14704 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
14705 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14706 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
14707 : }
14708 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
14709 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
14710 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
14711 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
14712 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14713 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
14714 : }
14715 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
14716 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
14717 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
14718 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
14719 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14720 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14721 : }
14722 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
14723 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
14724 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
14725 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
14726 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
14727 0 : if (r->out.lpOutBuffer) {
14728 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
14729 : }
14730 0 : if (r->out.lpOutBuffer) {
14731 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
14732 : }
14733 : }
14734 0 : return NDR_ERR_SUCCESS;
14735 : }
14736 :
14737 0 : _PUBLIC_ void ndr_print_clusapi_NodeClusterControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NodeClusterControl *r)
14738 : {
14739 0 : ndr_print_struct(ndr, name, "clusapi_NodeClusterControl");
14740 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14741 0 : ndr->depth++;
14742 0 : if (flags & NDR_SET_VALUES) {
14743 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14744 : }
14745 0 : if (flags & NDR_IN) {
14746 0 : ndr_print_struct(ndr, "in", "clusapi_NodeClusterControl");
14747 0 : ndr->depth++;
14748 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
14749 0 : ndr_print_policy_handle(ndr, "hHostNode", &r->in.hHostNode);
14750 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
14751 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
14752 0 : ndr->depth++;
14753 0 : if (r->in.lpInBuffer) {
14754 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
14755 : }
14756 0 : ndr->depth--;
14757 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
14758 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
14759 0 : ndr->depth--;
14760 : }
14761 0 : if (flags & NDR_OUT) {
14762 0 : ndr_print_struct(ndr, "out", "clusapi_NodeClusterControl");
14763 0 : ndr->depth++;
14764 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
14765 0 : ndr->depth++;
14766 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
14767 0 : ndr->depth--;
14768 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
14769 0 : ndr->depth++;
14770 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
14771 0 : ndr->depth--;
14772 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
14773 0 : ndr->depth++;
14774 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
14775 0 : ndr->depth--;
14776 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
14777 0 : ndr->depth++;
14778 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
14779 0 : ndr->depth--;
14780 0 : ndr_print_WERROR(ndr, "result", r->out.result);
14781 0 : ndr->depth--;
14782 : }
14783 0 : ndr->depth--;
14784 : }
14785 :
14786 0 : static enum ndr_err_code ndr_push_clusapi_ClusterControl(struct ndr_push *ndr, int flags, const struct clusapi_ClusterControl *r)
14787 : {
14788 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14789 0 : if (flags & NDR_IN) {
14790 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
14791 0 : NDR_CHECK(ndr_push_clusapi_ClusterControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
14792 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
14793 0 : if (r->in.lpInBuffer) {
14794 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
14795 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
14796 : }
14797 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
14798 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
14799 : }
14800 0 : if (flags & NDR_OUT) {
14801 0 : if (r->out.lpOutBuffer == NULL) {
14802 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14803 : }
14804 0 : if (r->out.lpBytesReturned == NULL) {
14805 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14806 : }
14807 0 : if (r->out.lpcbRequired == NULL) {
14808 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14809 : }
14810 0 : if (r->out.rpc_status == NULL) {
14811 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14812 : }
14813 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
14814 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
14815 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
14816 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
14817 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
14818 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
14819 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
14820 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
14821 : }
14822 0 : return NDR_ERR_SUCCESS;
14823 : }
14824 :
14825 0 : static enum ndr_err_code ndr_pull_clusapi_ClusterControl(struct ndr_pull *ndr, int flags, struct clusapi_ClusterControl *r)
14826 : {
14827 : uint32_t _ptr_lpInBuffer;
14828 0 : uint32_t size_lpInBuffer_1 = 0;
14829 0 : uint32_t size_lpOutBuffer_1 = 0;
14830 0 : uint32_t length_lpOutBuffer_1 = 0;
14831 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
14832 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
14833 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
14834 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
14835 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14836 0 : if (flags & NDR_IN) {
14837 0 : NDR_ZERO_STRUCT(r->out);
14838 :
14839 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
14840 0 : NDR_CHECK(ndr_pull_clusapi_ClusterControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
14841 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
14842 0 : if (_ptr_lpInBuffer) {
14843 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
14844 : } else {
14845 0 : r->in.lpInBuffer = NULL;
14846 : }
14847 0 : if (r->in.lpInBuffer) {
14848 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
14849 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
14850 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
14851 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
14852 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
14853 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
14854 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
14855 : }
14856 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
14857 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
14858 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
14859 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
14860 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
14861 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
14862 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
14863 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
14864 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14865 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
14866 0 : if (r->in.lpInBuffer) {
14867 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
14868 : }
14869 : }
14870 0 : if (flags & NDR_OUT) {
14871 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14872 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14873 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
14874 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
14875 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
14876 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
14877 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
14878 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
14879 : }
14880 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14881 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
14882 : }
14883 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
14884 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14885 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
14886 : }
14887 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
14888 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
14889 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
14890 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
14891 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14892 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
14893 : }
14894 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
14895 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
14896 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
14897 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
14898 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14899 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
14900 : }
14901 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
14902 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
14903 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
14904 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
14905 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
14906 0 : if (r->out.lpOutBuffer) {
14907 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
14908 : }
14909 0 : if (r->out.lpOutBuffer) {
14910 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
14911 : }
14912 : }
14913 0 : return NDR_ERR_SUCCESS;
14914 : }
14915 :
14916 0 : _PUBLIC_ void ndr_print_clusapi_ClusterControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ClusterControl *r)
14917 : {
14918 0 : ndr_print_struct(ndr, name, "clusapi_ClusterControl");
14919 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14920 0 : ndr->depth++;
14921 0 : if (flags & NDR_SET_VALUES) {
14922 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14923 : }
14924 0 : if (flags & NDR_IN) {
14925 0 : ndr_print_struct(ndr, "in", "clusapi_ClusterControl");
14926 0 : ndr->depth++;
14927 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
14928 0 : ndr_print_clusapi_ClusterControlCode(ndr, "dwControlCode", r->in.dwControlCode);
14929 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
14930 0 : ndr->depth++;
14931 0 : if (r->in.lpInBuffer) {
14932 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
14933 : }
14934 0 : ndr->depth--;
14935 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
14936 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
14937 0 : ndr->depth--;
14938 : }
14939 0 : if (flags & NDR_OUT) {
14940 0 : ndr_print_struct(ndr, "out", "clusapi_ClusterControl");
14941 0 : ndr->depth++;
14942 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
14943 0 : ndr->depth++;
14944 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
14945 0 : ndr->depth--;
14946 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
14947 0 : ndr->depth++;
14948 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
14949 0 : ndr->depth--;
14950 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
14951 0 : ndr->depth++;
14952 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
14953 0 : ndr->depth--;
14954 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
14955 0 : ndr->depth++;
14956 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
14957 0 : ndr->depth--;
14958 0 : ndr_print_WERROR(ndr, "result", r->out.result);
14959 0 : ndr->depth--;
14960 : }
14961 0 : ndr->depth--;
14962 : }
14963 :
14964 0 : static enum ndr_err_code ndr_push_clusapi_UnblockGetNotifyCall(struct ndr_push *ndr, int flags, const struct clusapi_UnblockGetNotifyCall *r)
14965 : {
14966 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14967 0 : if (flags & NDR_IN) {
14968 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
14969 : }
14970 0 : if (flags & NDR_OUT) {
14971 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
14972 : }
14973 0 : return NDR_ERR_SUCCESS;
14974 : }
14975 :
14976 0 : static enum ndr_err_code ndr_pull_clusapi_UnblockGetNotifyCall(struct ndr_pull *ndr, int flags, struct clusapi_UnblockGetNotifyCall *r)
14977 : {
14978 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14979 0 : if (flags & NDR_IN) {
14980 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
14981 : }
14982 0 : if (flags & NDR_OUT) {
14983 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14984 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14985 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
14986 : }
14987 0 : return NDR_ERR_SUCCESS;
14988 : }
14989 :
14990 0 : _PUBLIC_ void ndr_print_clusapi_UnblockGetNotifyCall(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_UnblockGetNotifyCall *r)
14991 : {
14992 0 : ndr_print_struct(ndr, name, "clusapi_UnblockGetNotifyCall");
14993 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14994 0 : ndr->depth++;
14995 0 : if (flags & NDR_SET_VALUES) {
14996 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14997 : }
14998 0 : if (flags & NDR_IN) {
14999 0 : ndr_print_struct(ndr, "in", "clusapi_UnblockGetNotifyCall");
15000 0 : ndr->depth++;
15001 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
15002 0 : ndr->depth--;
15003 : }
15004 0 : if (flags & NDR_OUT) {
15005 0 : ndr_print_struct(ndr, "out", "clusapi_UnblockGetNotifyCall");
15006 0 : ndr->depth++;
15007 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15008 0 : ndr->depth--;
15009 : }
15010 0 : ndr->depth--;
15011 : }
15012 :
15013 0 : static enum ndr_err_code ndr_push_clusapi_SetServiceAccountPassword(struct ndr_push *ndr, int flags, const struct clusapi_SetServiceAccountPassword *r)
15014 : {
15015 : uint32_t cntr_ReturnStatusBufferPtr_0;
15016 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15017 0 : if (flags & NDR_IN) {
15018 0 : if (r->in.lpszNewPassword == NULL) {
15019 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15020 : }
15021 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNewPassword, CH_UTF16)));
15022 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
15023 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNewPassword, CH_UTF16)));
15024 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNewPassword, ndr_charset_length(r->in.lpszNewPassword, CH_UTF16), sizeof(uint16_t), CH_UTF16));
15025 0 : NDR_CHECK(ndr_push_IDL_CLUSTER_SET_PASSWORD_FLAGS(ndr, NDR_SCALARS, r->in.dwFlags));
15026 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.ReturnStatusBufferSize));
15027 : }
15028 0 : if (flags & NDR_OUT) {
15029 0 : if (r->out.SizeReturned == NULL) {
15030 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15031 : }
15032 0 : if (r->out.ExpectedBufferSize == NULL) {
15033 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15034 : }
15035 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.ReturnStatusBufferSize));
15036 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
15037 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.SizeReturned));
15038 0 : for (cntr_ReturnStatusBufferPtr_0 = 0; cntr_ReturnStatusBufferPtr_0 < (*r->out.SizeReturned); cntr_ReturnStatusBufferPtr_0++) {
15039 0 : NDR_CHECK(ndr_push_IDL_CLUSTER_SET_PASSWORD_STATUS(ndr, NDR_SCALARS, &r->out.ReturnStatusBufferPtr[cntr_ReturnStatusBufferPtr_0]));
15040 : }
15041 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.SizeReturned));
15042 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.ExpectedBufferSize));
15043 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
15044 : }
15045 0 : return NDR_ERR_SUCCESS;
15046 : }
15047 :
15048 0 : static enum ndr_err_code ndr_pull_clusapi_SetServiceAccountPassword(struct ndr_pull *ndr, int flags, struct clusapi_SetServiceAccountPassword *r)
15049 : {
15050 0 : uint32_t size_lpszNewPassword_1 = 0;
15051 0 : uint32_t length_lpszNewPassword_1 = 0;
15052 0 : uint32_t size_ReturnStatusBufferPtr_0 = 0;
15053 0 : uint32_t length_ReturnStatusBufferPtr_0 = 0;
15054 : uint32_t cntr_ReturnStatusBufferPtr_0;
15055 0 : TALLOC_CTX *_mem_save_ReturnStatusBufferPtr_0 = NULL;
15056 0 : TALLOC_CTX *_mem_save_SizeReturned_0 = NULL;
15057 0 : TALLOC_CTX *_mem_save_ExpectedBufferSize_0 = NULL;
15058 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15059 0 : if (flags & NDR_IN) {
15060 0 : NDR_ZERO_STRUCT(r->out);
15061 :
15062 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNewPassword));
15063 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNewPassword));
15064 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNewPassword, &size_lpszNewPassword_1));
15065 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNewPassword, &length_lpszNewPassword_1));
15066 0 : if (length_lpszNewPassword_1 > size_lpszNewPassword_1) {
15067 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNewPassword_1, length_lpszNewPassword_1);
15068 : }
15069 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNewPassword_1, sizeof(uint16_t)));
15070 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNewPassword, length_lpszNewPassword_1, sizeof(uint16_t), CH_UTF16));
15071 0 : NDR_CHECK(ndr_pull_IDL_CLUSTER_SET_PASSWORD_FLAGS(ndr, NDR_SCALARS, &r->in.dwFlags));
15072 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.ReturnStatusBufferSize));
15073 0 : if (r->in.ReturnStatusBufferSize > (64*1024)) {
15074 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
15075 : }
15076 0 : NDR_PULL_ALLOC(ndr, r->out.SizeReturned);
15077 0 : NDR_ZERO_STRUCTP(r->out.SizeReturned);
15078 0 : NDR_PULL_ALLOC(ndr, r->out.ExpectedBufferSize);
15079 0 : NDR_ZERO_STRUCTP(r->out.ExpectedBufferSize);
15080 : }
15081 0 : if (flags & NDR_OUT) {
15082 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15083 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15084 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ReturnStatusBufferPtr));
15085 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.ReturnStatusBufferPtr));
15086 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ReturnStatusBufferPtr, &size_ReturnStatusBufferPtr_0));
15087 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.ReturnStatusBufferPtr, &length_ReturnStatusBufferPtr_0));
15088 0 : if (length_ReturnStatusBufferPtr_0 > size_ReturnStatusBufferPtr_0) {
15089 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_ReturnStatusBufferPtr_0, length_ReturnStatusBufferPtr_0);
15090 : }
15091 0 : NDR_PULL_ALLOC_N(ndr, r->out.ReturnStatusBufferPtr, size_ReturnStatusBufferPtr_0);
15092 0 : _mem_save_ReturnStatusBufferPtr_0 = NDR_PULL_GET_MEM_CTX(ndr);
15093 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnStatusBufferPtr, 0);
15094 0 : for (cntr_ReturnStatusBufferPtr_0 = 0; cntr_ReturnStatusBufferPtr_0 < (length_ReturnStatusBufferPtr_0); cntr_ReturnStatusBufferPtr_0++) {
15095 0 : NDR_CHECK(ndr_pull_IDL_CLUSTER_SET_PASSWORD_STATUS(ndr, NDR_SCALARS, &r->out.ReturnStatusBufferPtr[cntr_ReturnStatusBufferPtr_0]));
15096 : }
15097 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnStatusBufferPtr_0, 0);
15098 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15099 0 : NDR_PULL_ALLOC(ndr, r->out.SizeReturned);
15100 : }
15101 0 : _mem_save_SizeReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
15102 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.SizeReturned, LIBNDR_FLAG_REF_ALLOC);
15103 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.SizeReturned));
15104 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_SizeReturned_0, LIBNDR_FLAG_REF_ALLOC);
15105 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15106 0 : NDR_PULL_ALLOC(ndr, r->out.ExpectedBufferSize);
15107 : }
15108 0 : _mem_save_ExpectedBufferSize_0 = NDR_PULL_GET_MEM_CTX(ndr);
15109 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ExpectedBufferSize, LIBNDR_FLAG_REF_ALLOC);
15110 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.ExpectedBufferSize));
15111 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ExpectedBufferSize_0, LIBNDR_FLAG_REF_ALLOC);
15112 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
15113 0 : if (r->out.ReturnStatusBufferPtr) {
15114 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.ReturnStatusBufferPtr, r->in.ReturnStatusBufferSize));
15115 : }
15116 0 : if (r->out.ReturnStatusBufferPtr) {
15117 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.ReturnStatusBufferPtr, *r->out.SizeReturned));
15118 : }
15119 : }
15120 0 : return NDR_ERR_SUCCESS;
15121 : }
15122 :
15123 0 : _PUBLIC_ void ndr_print_clusapi_SetServiceAccountPassword(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetServiceAccountPassword *r)
15124 : {
15125 : uint32_t cntr_ReturnStatusBufferPtr_0;
15126 0 : ndr_print_struct(ndr, name, "clusapi_SetServiceAccountPassword");
15127 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15128 0 : ndr->depth++;
15129 0 : if (flags & NDR_SET_VALUES) {
15130 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15131 : }
15132 0 : if (flags & NDR_IN) {
15133 0 : ndr_print_struct(ndr, "in", "clusapi_SetServiceAccountPassword");
15134 0 : ndr->depth++;
15135 0 : ndr_print_ptr(ndr, "lpszNewPassword", r->in.lpszNewPassword);
15136 0 : ndr->depth++;
15137 0 : ndr_print_string(ndr, "lpszNewPassword", r->in.lpszNewPassword);
15138 0 : ndr->depth--;
15139 0 : ndr_print_IDL_CLUSTER_SET_PASSWORD_FLAGS(ndr, "dwFlags", r->in.dwFlags);
15140 0 : ndr_print_uint32(ndr, "ReturnStatusBufferSize", r->in.ReturnStatusBufferSize);
15141 0 : ndr->depth--;
15142 : }
15143 0 : if (flags & NDR_OUT) {
15144 0 : ndr_print_struct(ndr, "out", "clusapi_SetServiceAccountPassword");
15145 0 : ndr->depth++;
15146 0 : ndr->print(ndr, "%s: ARRAY(%d)", "ReturnStatusBufferPtr", (int)*r->out.SizeReturned);
15147 0 : ndr->depth++;
15148 0 : for (cntr_ReturnStatusBufferPtr_0 = 0; cntr_ReturnStatusBufferPtr_0 < (*r->out.SizeReturned); cntr_ReturnStatusBufferPtr_0++) {
15149 0 : ndr_print_IDL_CLUSTER_SET_PASSWORD_STATUS(ndr, "ReturnStatusBufferPtr", &r->out.ReturnStatusBufferPtr[cntr_ReturnStatusBufferPtr_0]);
15150 : }
15151 0 : ndr->depth--;
15152 0 : ndr_print_ptr(ndr, "SizeReturned", r->out.SizeReturned);
15153 0 : ndr->depth++;
15154 0 : ndr_print_uint32(ndr, "SizeReturned", *r->out.SizeReturned);
15155 0 : ndr->depth--;
15156 0 : ndr_print_ptr(ndr, "ExpectedBufferSize", r->out.ExpectedBufferSize);
15157 0 : ndr->depth++;
15158 0 : ndr_print_uint32(ndr, "ExpectedBufferSize", *r->out.ExpectedBufferSize);
15159 0 : ndr->depth--;
15160 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15161 0 : ndr->depth--;
15162 : }
15163 0 : ndr->depth--;
15164 : }
15165 :
15166 0 : static enum ndr_err_code ndr_push_clusapi_SetResourceDependencyExpression(struct ndr_push *ndr, int flags, const struct clusapi_SetResourceDependencyExpression *r)
15167 : {
15168 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15169 0 : if (flags & NDR_IN) {
15170 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
15171 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpszDependencyExpression));
15172 0 : if (r->in.lpszDependencyExpression) {
15173 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
15174 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
15175 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
15176 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDependencyExpression, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16), sizeof(uint16_t), CH_UTF16));
15177 : }
15178 : }
15179 0 : if (flags & NDR_OUT) {
15180 0 : if (r->out.rpc_status == NULL) {
15181 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15182 : }
15183 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
15184 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
15185 : }
15186 0 : return NDR_ERR_SUCCESS;
15187 : }
15188 :
15189 0 : static enum ndr_err_code ndr_pull_clusapi_SetResourceDependencyExpression(struct ndr_pull *ndr, int flags, struct clusapi_SetResourceDependencyExpression *r)
15190 : {
15191 : uint32_t _ptr_lpszDependencyExpression;
15192 0 : uint32_t size_lpszDependencyExpression_1 = 0;
15193 0 : uint32_t length_lpszDependencyExpression_1 = 0;
15194 0 : TALLOC_CTX *_mem_save_lpszDependencyExpression_0 = NULL;
15195 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
15196 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15197 0 : if (flags & NDR_IN) {
15198 0 : NDR_ZERO_STRUCT(r->out);
15199 :
15200 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
15201 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszDependencyExpression));
15202 0 : if (_ptr_lpszDependencyExpression) {
15203 0 : NDR_PULL_ALLOC(ndr, r->in.lpszDependencyExpression);
15204 : } else {
15205 0 : r->in.lpszDependencyExpression = NULL;
15206 : }
15207 0 : if (r->in.lpszDependencyExpression) {
15208 0 : _mem_save_lpszDependencyExpression_0 = NDR_PULL_GET_MEM_CTX(ndr);
15209 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpszDependencyExpression, 0);
15210 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDependencyExpression));
15211 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDependencyExpression));
15212 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDependencyExpression, &size_lpszDependencyExpression_1));
15213 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDependencyExpression, &length_lpszDependencyExpression_1));
15214 0 : if (length_lpszDependencyExpression_1 > size_lpszDependencyExpression_1) {
15215 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszDependencyExpression_1, length_lpszDependencyExpression_1);
15216 : }
15217 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDependencyExpression_1, sizeof(uint16_t)));
15218 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDependencyExpression, length_lpszDependencyExpression_1, sizeof(uint16_t), CH_UTF16));
15219 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDependencyExpression_0, 0);
15220 : }
15221 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15222 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
15223 : }
15224 0 : if (flags & NDR_OUT) {
15225 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15226 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15227 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15228 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15229 : }
15230 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
15231 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
15232 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
15233 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
15234 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
15235 : }
15236 0 : return NDR_ERR_SUCCESS;
15237 : }
15238 :
15239 0 : _PUBLIC_ void ndr_print_clusapi_SetResourceDependencyExpression(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetResourceDependencyExpression *r)
15240 : {
15241 0 : ndr_print_struct(ndr, name, "clusapi_SetResourceDependencyExpression");
15242 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15243 0 : ndr->depth++;
15244 0 : if (flags & NDR_SET_VALUES) {
15245 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15246 : }
15247 0 : if (flags & NDR_IN) {
15248 0 : ndr_print_struct(ndr, "in", "clusapi_SetResourceDependencyExpression");
15249 0 : ndr->depth++;
15250 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
15251 0 : ndr_print_ptr(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
15252 0 : ndr->depth++;
15253 0 : if (r->in.lpszDependencyExpression) {
15254 0 : ndr_print_string(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
15255 : }
15256 0 : ndr->depth--;
15257 0 : ndr->depth--;
15258 : }
15259 0 : if (flags & NDR_OUT) {
15260 0 : ndr_print_struct(ndr, "out", "clusapi_SetResourceDependencyExpression");
15261 0 : ndr->depth++;
15262 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
15263 0 : ndr->depth++;
15264 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
15265 0 : ndr->depth--;
15266 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15267 0 : ndr->depth--;
15268 : }
15269 0 : ndr->depth--;
15270 : }
15271 :
15272 0 : static enum ndr_err_code ndr_push_clusapi_GetResourceDependencyExpression(struct ndr_push *ndr, int flags, const struct clusapi_GetResourceDependencyExpression *r)
15273 : {
15274 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15275 0 : if (flags & NDR_IN) {
15276 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
15277 : }
15278 0 : if (flags & NDR_OUT) {
15279 0 : if (r->out.lpszDependencyExpression == NULL) {
15280 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15281 : }
15282 0 : if (r->out.rpc_status == NULL) {
15283 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15284 : }
15285 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszDependencyExpression));
15286 0 : if (*r->out.lpszDependencyExpression) {
15287 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszDependencyExpression, CH_UTF16)));
15288 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
15289 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszDependencyExpression, CH_UTF16)));
15290 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszDependencyExpression, ndr_charset_length(*r->out.lpszDependencyExpression, CH_UTF16), sizeof(uint16_t), CH_UTF16));
15291 : }
15292 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
15293 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
15294 : }
15295 0 : return NDR_ERR_SUCCESS;
15296 : }
15297 :
15298 0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceDependencyExpression(struct ndr_pull *ndr, int flags, struct clusapi_GetResourceDependencyExpression *r)
15299 : {
15300 : uint32_t _ptr_lpszDependencyExpression;
15301 0 : uint32_t size_lpszDependencyExpression_2 = 0;
15302 0 : uint32_t length_lpszDependencyExpression_2 = 0;
15303 0 : TALLOC_CTX *_mem_save_lpszDependencyExpression_0 = NULL;
15304 0 : TALLOC_CTX *_mem_save_lpszDependencyExpression_1 = NULL;
15305 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
15306 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15307 0 : if (flags & NDR_IN) {
15308 0 : NDR_ZERO_STRUCT(r->out);
15309 :
15310 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
15311 0 : NDR_PULL_ALLOC(ndr, r->out.lpszDependencyExpression);
15312 0 : NDR_ZERO_STRUCTP(r->out.lpszDependencyExpression);
15313 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15314 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
15315 : }
15316 0 : if (flags & NDR_OUT) {
15317 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15318 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15319 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15320 0 : NDR_PULL_ALLOC(ndr, r->out.lpszDependencyExpression);
15321 : }
15322 0 : _mem_save_lpszDependencyExpression_0 = NDR_PULL_GET_MEM_CTX(ndr);
15323 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszDependencyExpression, LIBNDR_FLAG_REF_ALLOC);
15324 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszDependencyExpression));
15325 0 : if (_ptr_lpszDependencyExpression) {
15326 0 : NDR_PULL_ALLOC(ndr, *r->out.lpszDependencyExpression);
15327 : } else {
15328 0 : *r->out.lpszDependencyExpression = NULL;
15329 : }
15330 0 : if (*r->out.lpszDependencyExpression) {
15331 0 : _mem_save_lpszDependencyExpression_1 = NDR_PULL_GET_MEM_CTX(ndr);
15332 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszDependencyExpression, 0);
15333 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszDependencyExpression));
15334 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszDependencyExpression));
15335 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszDependencyExpression, &size_lpszDependencyExpression_2));
15336 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszDependencyExpression, &length_lpszDependencyExpression_2));
15337 0 : if (length_lpszDependencyExpression_2 > size_lpszDependencyExpression_2) {
15338 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszDependencyExpression_2, length_lpszDependencyExpression_2);
15339 : }
15340 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDependencyExpression_2, sizeof(uint16_t)));
15341 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszDependencyExpression, length_lpszDependencyExpression_2, sizeof(uint16_t), CH_UTF16));
15342 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDependencyExpression_1, 0);
15343 : }
15344 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDependencyExpression_0, LIBNDR_FLAG_REF_ALLOC);
15345 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15346 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15347 : }
15348 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
15349 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
15350 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
15351 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
15352 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
15353 : }
15354 0 : return NDR_ERR_SUCCESS;
15355 : }
15356 :
15357 0 : _PUBLIC_ void ndr_print_clusapi_GetResourceDependencyExpression(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetResourceDependencyExpression *r)
15358 : {
15359 0 : ndr_print_struct(ndr, name, "clusapi_GetResourceDependencyExpression");
15360 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15361 0 : ndr->depth++;
15362 0 : if (flags & NDR_SET_VALUES) {
15363 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15364 : }
15365 0 : if (flags & NDR_IN) {
15366 0 : ndr_print_struct(ndr, "in", "clusapi_GetResourceDependencyExpression");
15367 0 : ndr->depth++;
15368 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
15369 0 : ndr->depth--;
15370 : }
15371 0 : if (flags & NDR_OUT) {
15372 0 : ndr_print_struct(ndr, "out", "clusapi_GetResourceDependencyExpression");
15373 0 : ndr->depth++;
15374 0 : ndr_print_ptr(ndr, "lpszDependencyExpression", r->out.lpszDependencyExpression);
15375 0 : ndr->depth++;
15376 0 : ndr_print_ptr(ndr, "lpszDependencyExpression", *r->out.lpszDependencyExpression);
15377 0 : ndr->depth++;
15378 0 : if (*r->out.lpszDependencyExpression) {
15379 0 : ndr_print_string(ndr, "lpszDependencyExpression", *r->out.lpszDependencyExpression);
15380 : }
15381 0 : ndr->depth--;
15382 0 : ndr->depth--;
15383 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
15384 0 : ndr->depth++;
15385 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
15386 0 : ndr->depth--;
15387 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15388 0 : ndr->depth--;
15389 : }
15390 0 : ndr->depth--;
15391 : }
15392 :
15393 0 : static enum ndr_err_code ndr_push_Opnum111NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum111NotUsedOnWire *r)
15394 : {
15395 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15396 0 : if (flags & NDR_IN) {
15397 : }
15398 0 : if (flags & NDR_OUT) {
15399 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
15400 : }
15401 0 : return NDR_ERR_SUCCESS;
15402 : }
15403 :
15404 0 : static enum ndr_err_code ndr_pull_Opnum111NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum111NotUsedOnWire *r)
15405 : {
15406 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15407 0 : if (flags & NDR_IN) {
15408 : }
15409 0 : if (flags & NDR_OUT) {
15410 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15411 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15412 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
15413 : }
15414 0 : return NDR_ERR_SUCCESS;
15415 : }
15416 :
15417 0 : _PUBLIC_ void ndr_print_Opnum111NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum111NotUsedOnWire *r)
15418 : {
15419 0 : ndr_print_struct(ndr, name, "Opnum111NotUsedOnWire");
15420 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15421 0 : ndr->depth++;
15422 0 : if (flags & NDR_SET_VALUES) {
15423 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15424 : }
15425 0 : if (flags & NDR_IN) {
15426 0 : ndr_print_struct(ndr, "in", "Opnum111NotUsedOnWire");
15427 0 : ndr->depth++;
15428 0 : ndr->depth--;
15429 : }
15430 0 : if (flags & NDR_OUT) {
15431 0 : ndr_print_struct(ndr, "out", "Opnum111NotUsedOnWire");
15432 0 : ndr->depth++;
15433 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15434 0 : ndr->depth--;
15435 : }
15436 0 : ndr->depth--;
15437 : }
15438 :
15439 0 : static enum ndr_err_code ndr_push_clusapi_GetResourceNetworkName(struct ndr_push *ndr, int flags, const struct clusapi_GetResourceNetworkName *r)
15440 : {
15441 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15442 0 : if (flags & NDR_IN) {
15443 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
15444 : }
15445 0 : if (flags & NDR_OUT) {
15446 0 : if (r->out.lpszName == NULL) {
15447 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15448 : }
15449 0 : if (r->out.rpc_status == NULL) {
15450 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15451 : }
15452 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszName));
15453 0 : if (*r->out.lpszName) {
15454 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszName, CH_UTF16)));
15455 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
15456 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszName, CH_UTF16)));
15457 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszName, ndr_charset_length(*r->out.lpszName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
15458 : }
15459 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
15460 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
15461 : }
15462 0 : return NDR_ERR_SUCCESS;
15463 : }
15464 :
15465 0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceNetworkName(struct ndr_pull *ndr, int flags, struct clusapi_GetResourceNetworkName *r)
15466 : {
15467 : uint32_t _ptr_lpszName;
15468 0 : uint32_t size_lpszName_2 = 0;
15469 0 : uint32_t length_lpszName_2 = 0;
15470 0 : TALLOC_CTX *_mem_save_lpszName_0 = NULL;
15471 0 : TALLOC_CTX *_mem_save_lpszName_1 = NULL;
15472 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
15473 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15474 0 : if (flags & NDR_IN) {
15475 0 : NDR_ZERO_STRUCT(r->out);
15476 :
15477 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
15478 0 : NDR_PULL_ALLOC(ndr, r->out.lpszName);
15479 0 : NDR_ZERO_STRUCTP(r->out.lpszName);
15480 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15481 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
15482 : }
15483 0 : if (flags & NDR_OUT) {
15484 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15485 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15486 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15487 0 : NDR_PULL_ALLOC(ndr, r->out.lpszName);
15488 : }
15489 0 : _mem_save_lpszName_0 = NDR_PULL_GET_MEM_CTX(ndr);
15490 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszName, LIBNDR_FLAG_REF_ALLOC);
15491 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszName));
15492 0 : if (_ptr_lpszName) {
15493 0 : NDR_PULL_ALLOC(ndr, *r->out.lpszName);
15494 : } else {
15495 0 : *r->out.lpszName = NULL;
15496 : }
15497 0 : if (*r->out.lpszName) {
15498 0 : _mem_save_lpszName_1 = NDR_PULL_GET_MEM_CTX(ndr);
15499 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszName, 0);
15500 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszName));
15501 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszName));
15502 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszName, &size_lpszName_2));
15503 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszName, &length_lpszName_2));
15504 0 : if (length_lpszName_2 > size_lpszName_2) {
15505 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszName_2, length_lpszName_2);
15506 : }
15507 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszName_2, sizeof(uint16_t)));
15508 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszName, length_lpszName_2, sizeof(uint16_t), CH_UTF16));
15509 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszName_1, 0);
15510 : }
15511 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszName_0, LIBNDR_FLAG_REF_ALLOC);
15512 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15513 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15514 : }
15515 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
15516 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
15517 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
15518 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
15519 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
15520 : }
15521 0 : return NDR_ERR_SUCCESS;
15522 : }
15523 :
15524 0 : _PUBLIC_ void ndr_print_clusapi_GetResourceNetworkName(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetResourceNetworkName *r)
15525 : {
15526 0 : ndr_print_struct(ndr, name, "clusapi_GetResourceNetworkName");
15527 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15528 0 : ndr->depth++;
15529 0 : if (flags & NDR_SET_VALUES) {
15530 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15531 : }
15532 0 : if (flags & NDR_IN) {
15533 0 : ndr_print_struct(ndr, "in", "clusapi_GetResourceNetworkName");
15534 0 : ndr->depth++;
15535 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
15536 0 : ndr->depth--;
15537 : }
15538 0 : if (flags & NDR_OUT) {
15539 0 : ndr_print_struct(ndr, "out", "clusapi_GetResourceNetworkName");
15540 0 : ndr->depth++;
15541 0 : ndr_print_ptr(ndr, "lpszName", r->out.lpszName);
15542 0 : ndr->depth++;
15543 0 : ndr_print_ptr(ndr, "lpszName", *r->out.lpszName);
15544 0 : ndr->depth++;
15545 0 : if (*r->out.lpszName) {
15546 0 : ndr_print_string(ndr, "lpszName", *r->out.lpszName);
15547 : }
15548 0 : ndr->depth--;
15549 0 : ndr->depth--;
15550 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
15551 0 : ndr->depth++;
15552 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
15553 0 : ndr->depth--;
15554 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15555 0 : ndr->depth--;
15556 : }
15557 0 : ndr->depth--;
15558 : }
15559 :
15560 0 : static enum ndr_err_code ndr_push_clusapi_ExecuteBatch(struct ndr_push *ndr, int flags, const struct clusapi_ExecuteBatch *r)
15561 : {
15562 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15563 0 : if (flags & NDR_IN) {
15564 0 : if (r->in.lpData == NULL) {
15565 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15566 : }
15567 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
15568 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbData));
15569 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbData));
15570 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpData, r->in.cbData));
15571 : }
15572 0 : if (flags & NDR_OUT) {
15573 0 : if (r->out.pdwFailedCommand == NULL) {
15574 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15575 : }
15576 0 : if (r->out.rpc_status == NULL) {
15577 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15578 : }
15579 0 : NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, *r->out.pdwFailedCommand));
15580 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
15581 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
15582 : }
15583 0 : return NDR_ERR_SUCCESS;
15584 : }
15585 :
15586 0 : static enum ndr_err_code ndr_pull_clusapi_ExecuteBatch(struct ndr_pull *ndr, int flags, struct clusapi_ExecuteBatch *r)
15587 : {
15588 0 : uint32_t size_lpData_1 = 0;
15589 0 : TALLOC_CTX *_mem_save_pdwFailedCommand_0 = NULL;
15590 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
15591 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15592 0 : if (flags & NDR_IN) {
15593 0 : NDR_ZERO_STRUCT(r->out);
15594 :
15595 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
15596 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbData));
15597 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpData));
15598 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpData, &size_lpData_1));
15599 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15600 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpData, size_lpData_1);
15601 : }
15602 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpData, size_lpData_1));
15603 0 : NDR_PULL_ALLOC(ndr, r->out.pdwFailedCommand);
15604 0 : NDR_ZERO_STRUCTP(r->out.pdwFailedCommand);
15605 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15606 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
15607 0 : if (r->in.lpData) {
15608 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpData, r->in.cbData));
15609 : }
15610 : }
15611 0 : if (flags & NDR_OUT) {
15612 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15613 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15614 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15615 0 : NDR_PULL_ALLOC(ndr, r->out.pdwFailedCommand);
15616 : }
15617 0 : _mem_save_pdwFailedCommand_0 = NDR_PULL_GET_MEM_CTX(ndr);
15618 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pdwFailedCommand, LIBNDR_FLAG_REF_ALLOC);
15619 0 : NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, r->out.pdwFailedCommand));
15620 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pdwFailedCommand_0, LIBNDR_FLAG_REF_ALLOC);
15621 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15622 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15623 : }
15624 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
15625 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
15626 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
15627 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
15628 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
15629 : }
15630 0 : return NDR_ERR_SUCCESS;
15631 : }
15632 :
15633 0 : _PUBLIC_ void ndr_print_clusapi_ExecuteBatch(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ExecuteBatch *r)
15634 : {
15635 0 : ndr_print_struct(ndr, name, "clusapi_ExecuteBatch");
15636 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15637 0 : ndr->depth++;
15638 0 : if (flags & NDR_SET_VALUES) {
15639 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15640 : }
15641 0 : if (flags & NDR_IN) {
15642 0 : ndr_print_struct(ndr, "in", "clusapi_ExecuteBatch");
15643 0 : ndr->depth++;
15644 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
15645 0 : ndr_print_uint32(ndr, "cbData", r->in.cbData);
15646 0 : ndr_print_ptr(ndr, "lpData", r->in.lpData);
15647 0 : ndr->depth++;
15648 0 : ndr_print_array_uint8(ndr, "lpData", r->in.lpData, r->in.cbData);
15649 0 : ndr->depth--;
15650 0 : ndr->depth--;
15651 : }
15652 0 : if (flags & NDR_OUT) {
15653 0 : ndr_print_struct(ndr, "out", "clusapi_ExecuteBatch");
15654 0 : ndr->depth++;
15655 0 : ndr_print_ptr(ndr, "pdwFailedCommand", r->out.pdwFailedCommand);
15656 0 : ndr->depth++;
15657 0 : ndr_print_int32(ndr, "pdwFailedCommand", *r->out.pdwFailedCommand);
15658 0 : ndr->depth--;
15659 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
15660 0 : ndr->depth++;
15661 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
15662 0 : ndr->depth--;
15663 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15664 0 : ndr->depth--;
15665 : }
15666 0 : ndr->depth--;
15667 : }
15668 :
15669 0 : static enum ndr_err_code ndr_push_clusapi_CreateBatchPort(struct ndr_push *ndr, int flags, const struct clusapi_CreateBatchPort *r)
15670 : {
15671 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15672 0 : if (flags & NDR_IN) {
15673 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
15674 : }
15675 0 : if (flags & NDR_OUT) {
15676 0 : if (r->out.phBatchPort == NULL) {
15677 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15678 : }
15679 0 : if (r->out.rpc_status == NULL) {
15680 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15681 : }
15682 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phBatchPort));
15683 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
15684 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
15685 : }
15686 0 : return NDR_ERR_SUCCESS;
15687 : }
15688 :
15689 0 : static enum ndr_err_code ndr_pull_clusapi_CreateBatchPort(struct ndr_pull *ndr, int flags, struct clusapi_CreateBatchPort *r)
15690 : {
15691 0 : TALLOC_CTX *_mem_save_phBatchPort_0 = NULL;
15692 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
15693 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15694 0 : if (flags & NDR_IN) {
15695 0 : NDR_ZERO_STRUCT(r->out);
15696 :
15697 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
15698 0 : NDR_PULL_ALLOC(ndr, r->out.phBatchPort);
15699 0 : NDR_ZERO_STRUCTP(r->out.phBatchPort);
15700 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15701 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
15702 : }
15703 0 : if (flags & NDR_OUT) {
15704 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15705 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15706 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15707 0 : NDR_PULL_ALLOC(ndr, r->out.phBatchPort);
15708 : }
15709 0 : _mem_save_phBatchPort_0 = NDR_PULL_GET_MEM_CTX(ndr);
15710 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.phBatchPort, LIBNDR_FLAG_REF_ALLOC);
15711 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phBatchPort));
15712 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phBatchPort_0, LIBNDR_FLAG_REF_ALLOC);
15713 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15714 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
15715 : }
15716 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
15717 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
15718 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
15719 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
15720 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
15721 : }
15722 0 : return NDR_ERR_SUCCESS;
15723 : }
15724 :
15725 0 : _PUBLIC_ void ndr_print_clusapi_CreateBatchPort(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateBatchPort *r)
15726 : {
15727 0 : ndr_print_struct(ndr, name, "clusapi_CreateBatchPort");
15728 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15729 0 : ndr->depth++;
15730 0 : if (flags & NDR_SET_VALUES) {
15731 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15732 : }
15733 0 : if (flags & NDR_IN) {
15734 0 : ndr_print_struct(ndr, "in", "clusapi_CreateBatchPort");
15735 0 : ndr->depth++;
15736 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
15737 0 : ndr->depth--;
15738 : }
15739 0 : if (flags & NDR_OUT) {
15740 0 : ndr_print_struct(ndr, "out", "clusapi_CreateBatchPort");
15741 0 : ndr->depth++;
15742 0 : ndr_print_ptr(ndr, "phBatchPort", r->out.phBatchPort);
15743 0 : ndr->depth++;
15744 0 : ndr_print_policy_handle(ndr, "phBatchPort", r->out.phBatchPort);
15745 0 : ndr->depth--;
15746 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
15747 0 : ndr->depth++;
15748 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
15749 0 : ndr->depth--;
15750 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15751 0 : ndr->depth--;
15752 : }
15753 0 : ndr->depth--;
15754 : }
15755 :
15756 0 : static enum ndr_err_code ndr_push_clusapi_GetBatchNotification(struct ndr_push *ndr, int flags, const struct clusapi_GetBatchNotification *r)
15757 : {
15758 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15759 0 : if (flags & NDR_IN) {
15760 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hBatchNotify));
15761 : }
15762 0 : if (flags & NDR_OUT) {
15763 0 : if (r->out.cbData == NULL) {
15764 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15765 : }
15766 0 : if (r->out.lpData == NULL) {
15767 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15768 : }
15769 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.cbData));
15770 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpData));
15771 0 : if (*r->out.lpData) {
15772 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.cbData));
15773 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, *r->out.lpData, *r->out.cbData));
15774 : }
15775 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
15776 : }
15777 0 : return NDR_ERR_SUCCESS;
15778 : }
15779 :
15780 0 : static enum ndr_err_code ndr_pull_clusapi_GetBatchNotification(struct ndr_pull *ndr, int flags, struct clusapi_GetBatchNotification *r)
15781 : {
15782 : uint32_t _ptr_lpData;
15783 0 : uint32_t size_lpData_2 = 0;
15784 0 : TALLOC_CTX *_mem_save_cbData_0 = NULL;
15785 0 : TALLOC_CTX *_mem_save_lpData_0 = NULL;
15786 0 : TALLOC_CTX *_mem_save_lpData_1 = NULL;
15787 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15788 0 : if (flags & NDR_IN) {
15789 0 : NDR_ZERO_STRUCT(r->out);
15790 :
15791 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hBatchNotify));
15792 0 : NDR_PULL_ALLOC(ndr, r->out.cbData);
15793 0 : NDR_ZERO_STRUCTP(r->out.cbData);
15794 0 : NDR_PULL_ALLOC(ndr, r->out.lpData);
15795 0 : NDR_ZERO_STRUCTP(r->out.lpData);
15796 : }
15797 0 : if (flags & NDR_OUT) {
15798 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15799 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15800 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15801 0 : NDR_PULL_ALLOC(ndr, r->out.cbData);
15802 : }
15803 0 : _mem_save_cbData_0 = NDR_PULL_GET_MEM_CTX(ndr);
15804 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.cbData, LIBNDR_FLAG_REF_ALLOC);
15805 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.cbData));
15806 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_cbData_0, LIBNDR_FLAG_REF_ALLOC);
15807 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15808 0 : NDR_PULL_ALLOC(ndr, r->out.lpData);
15809 : }
15810 0 : _mem_save_lpData_0 = NDR_PULL_GET_MEM_CTX(ndr);
15811 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpData, LIBNDR_FLAG_REF_ALLOC);
15812 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpData));
15813 0 : if (_ptr_lpData) {
15814 0 : NDR_PULL_ALLOC(ndr, *r->out.lpData);
15815 : } else {
15816 0 : *r->out.lpData = NULL;
15817 : }
15818 0 : if (*r->out.lpData) {
15819 0 : _mem_save_lpData_1 = NDR_PULL_GET_MEM_CTX(ndr);
15820 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpData, 0);
15821 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpData));
15822 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.lpData, &size_lpData_2));
15823 0 : NDR_PULL_ALLOC_N(ndr, *r->out.lpData, size_lpData_2);
15824 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, *r->out.lpData, size_lpData_2));
15825 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpData_1, 0);
15826 : }
15827 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpData_0, LIBNDR_FLAG_REF_ALLOC);
15828 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
15829 0 : if (*r->out.lpData) {
15830 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)r->out.lpData, *r->out.cbData));
15831 : }
15832 : }
15833 0 : return NDR_ERR_SUCCESS;
15834 : }
15835 :
15836 0 : _PUBLIC_ void ndr_print_clusapi_GetBatchNotification(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetBatchNotification *r)
15837 : {
15838 0 : ndr_print_struct(ndr, name, "clusapi_GetBatchNotification");
15839 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15840 0 : ndr->depth++;
15841 0 : if (flags & NDR_SET_VALUES) {
15842 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15843 : }
15844 0 : if (flags & NDR_IN) {
15845 0 : ndr_print_struct(ndr, "in", "clusapi_GetBatchNotification");
15846 0 : ndr->depth++;
15847 0 : ndr_print_policy_handle(ndr, "hBatchNotify", &r->in.hBatchNotify);
15848 0 : ndr->depth--;
15849 : }
15850 0 : if (flags & NDR_OUT) {
15851 0 : ndr_print_struct(ndr, "out", "clusapi_GetBatchNotification");
15852 0 : ndr->depth++;
15853 0 : ndr_print_ptr(ndr, "cbData", r->out.cbData);
15854 0 : ndr->depth++;
15855 0 : ndr_print_uint32(ndr, "cbData", *r->out.cbData);
15856 0 : ndr->depth--;
15857 0 : ndr_print_ptr(ndr, "lpData", r->out.lpData);
15858 0 : ndr->depth++;
15859 0 : ndr_print_ptr(ndr, "lpData", *r->out.lpData);
15860 0 : ndr->depth++;
15861 0 : if (*r->out.lpData) {
15862 0 : ndr_print_array_uint8(ndr, "lpData", *r->out.lpData, *r->out.cbData);
15863 : }
15864 0 : ndr->depth--;
15865 0 : ndr->depth--;
15866 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15867 0 : ndr->depth--;
15868 : }
15869 0 : ndr->depth--;
15870 : }
15871 :
15872 0 : static enum ndr_err_code ndr_push_clusapi_CloseBatchPort(struct ndr_push *ndr, int flags, const struct clusapi_CloseBatchPort *r)
15873 : {
15874 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15875 0 : if (flags & NDR_IN) {
15876 0 : if (r->in.phBatchPort == NULL) {
15877 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15878 : }
15879 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.phBatchPort));
15880 : }
15881 0 : if (flags & NDR_OUT) {
15882 0 : if (r->out.phBatchPort == NULL) {
15883 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15884 : }
15885 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phBatchPort));
15886 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
15887 : }
15888 0 : return NDR_ERR_SUCCESS;
15889 : }
15890 :
15891 0 : static enum ndr_err_code ndr_pull_clusapi_CloseBatchPort(struct ndr_pull *ndr, int flags, struct clusapi_CloseBatchPort *r)
15892 : {
15893 0 : TALLOC_CTX *_mem_save_phBatchPort_0 = NULL;
15894 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15895 0 : if (flags & NDR_IN) {
15896 0 : NDR_ZERO_STRUCT(r->out);
15897 :
15898 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15899 0 : NDR_PULL_ALLOC(ndr, r->in.phBatchPort);
15900 : }
15901 0 : _mem_save_phBatchPort_0 = NDR_PULL_GET_MEM_CTX(ndr);
15902 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.phBatchPort, LIBNDR_FLAG_REF_ALLOC);
15903 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.phBatchPort));
15904 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phBatchPort_0, LIBNDR_FLAG_REF_ALLOC);
15905 0 : NDR_PULL_ALLOC(ndr, r->out.phBatchPort);
15906 0 : *r->out.phBatchPort = *r->in.phBatchPort;
15907 : }
15908 0 : if (flags & NDR_OUT) {
15909 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15910 : if (r->in.phBatchPort == NULL) {
15911 : NDR_PULL_ALLOC(ndr, r->in.phBatchPort);
15912 : NDR_ZERO_STRUCTP(r->in.phBatchPort);
15913 : }
15914 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15915 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
15916 0 : NDR_PULL_ALLOC(ndr, r->out.phBatchPort);
15917 : }
15918 0 : _mem_save_phBatchPort_0 = NDR_PULL_GET_MEM_CTX(ndr);
15919 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.phBatchPort, LIBNDR_FLAG_REF_ALLOC);
15920 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phBatchPort));
15921 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phBatchPort_0, LIBNDR_FLAG_REF_ALLOC);
15922 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
15923 : }
15924 0 : return NDR_ERR_SUCCESS;
15925 : }
15926 :
15927 0 : _PUBLIC_ void ndr_print_clusapi_CloseBatchPort(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseBatchPort *r)
15928 : {
15929 0 : ndr_print_struct(ndr, name, "clusapi_CloseBatchPort");
15930 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15931 0 : ndr->depth++;
15932 0 : if (flags & NDR_SET_VALUES) {
15933 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15934 : }
15935 0 : if (flags & NDR_IN) {
15936 0 : ndr_print_struct(ndr, "in", "clusapi_CloseBatchPort");
15937 0 : ndr->depth++;
15938 0 : ndr_print_ptr(ndr, "phBatchPort", r->in.phBatchPort);
15939 0 : ndr->depth++;
15940 0 : ndr_print_policy_handle(ndr, "phBatchPort", r->in.phBatchPort);
15941 0 : ndr->depth--;
15942 0 : ndr->depth--;
15943 : }
15944 0 : if (flags & NDR_OUT) {
15945 0 : ndr_print_struct(ndr, "out", "clusapi_CloseBatchPort");
15946 0 : ndr->depth++;
15947 0 : ndr_print_ptr(ndr, "phBatchPort", r->out.phBatchPort);
15948 0 : ndr->depth++;
15949 0 : ndr_print_policy_handle(ndr, "phBatchPort", r->out.phBatchPort);
15950 0 : ndr->depth--;
15951 0 : ndr_print_WERROR(ndr, "result", r->out.result);
15952 0 : ndr->depth--;
15953 : }
15954 0 : ndr->depth--;
15955 : }
15956 :
15957 0 : static enum ndr_err_code ndr_push_clusapi_OpenClusterEx(struct ndr_push *ndr, int flags, const struct clusapi_OpenClusterEx *r)
15958 : {
15959 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15960 0 : if (flags & NDR_IN) {
15961 0 : NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
15962 : }
15963 0 : if (flags & NDR_OUT) {
15964 0 : if (r->out.lpdwGrantedAccess == NULL) {
15965 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15966 : }
15967 0 : if (r->out.Status == NULL) {
15968 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15969 : }
15970 0 : if (r->out.hCluster == NULL) {
15971 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
15972 : }
15973 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
15974 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
15975 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hCluster));
15976 : }
15977 0 : return NDR_ERR_SUCCESS;
15978 : }
15979 :
15980 0 : static enum ndr_err_code ndr_pull_clusapi_OpenClusterEx(struct ndr_pull *ndr, int flags, struct clusapi_OpenClusterEx *r)
15981 : {
15982 0 : TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
15983 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
15984 0 : TALLOC_CTX *_mem_save_hCluster_0 = NULL;
15985 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15986 0 : if (flags & NDR_IN) {
15987 0 : NDR_ZERO_STRUCT(r->out);
15988 :
15989 0 : NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
15990 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
15991 0 : NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
15992 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
15993 0 : NDR_ZERO_STRUCTP(r->out.Status);
15994 0 : NDR_PULL_ALLOC(ndr, r->out.hCluster);
15995 0 : NDR_ZERO_STRUCTP(r->out.hCluster);
15996 : }
15997 0 : if (flags & NDR_OUT) {
15998 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15999 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16000 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16001 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16002 : }
16003 0 : _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
16004 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
16005 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
16006 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
16007 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16008 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16009 : }
16010 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16011 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
16012 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
16013 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
16014 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16015 0 : NDR_PULL_ALLOC(ndr, r->out.hCluster);
16016 : }
16017 0 : _mem_save_hCluster_0 = NDR_PULL_GET_MEM_CTX(ndr);
16018 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hCluster, LIBNDR_FLAG_REF_ALLOC);
16019 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hCluster));
16020 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hCluster_0, LIBNDR_FLAG_REF_ALLOC);
16021 : }
16022 0 : return NDR_ERR_SUCCESS;
16023 : }
16024 :
16025 0 : _PUBLIC_ void ndr_print_clusapi_OpenClusterEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenClusterEx *r)
16026 : {
16027 0 : ndr_print_struct(ndr, name, "clusapi_OpenClusterEx");
16028 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16029 0 : ndr->depth++;
16030 0 : if (flags & NDR_SET_VALUES) {
16031 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16032 : }
16033 0 : if (flags & NDR_IN) {
16034 0 : ndr_print_struct(ndr, "in", "clusapi_OpenClusterEx");
16035 0 : ndr->depth++;
16036 0 : ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
16037 0 : ndr->depth--;
16038 : }
16039 0 : if (flags & NDR_OUT) {
16040 0 : ndr_print_struct(ndr, "out", "clusapi_OpenClusterEx");
16041 0 : ndr->depth++;
16042 0 : ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
16043 0 : ndr->depth++;
16044 0 : ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
16045 0 : ndr->depth--;
16046 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
16047 0 : ndr->depth++;
16048 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
16049 0 : ndr->depth--;
16050 0 : ndr_print_ptr(ndr, "hCluster", r->out.hCluster);
16051 0 : ndr->depth++;
16052 0 : ndr_print_policy_handle(ndr, "hCluster", r->out.hCluster);
16053 0 : ndr->depth--;
16054 0 : ndr->depth--;
16055 : }
16056 0 : ndr->depth--;
16057 : }
16058 :
16059 0 : static enum ndr_err_code ndr_push_clusapi_OpenNodeEx(struct ndr_push *ndr, int flags, const struct clusapi_OpenNodeEx *r)
16060 : {
16061 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16062 0 : if (flags & NDR_IN) {
16063 0 : if (r->in.lpszNodeName == NULL) {
16064 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16065 : }
16066 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
16067 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
16068 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
16069 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNodeName, ndr_charset_length(r->in.lpszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
16070 0 : NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
16071 : }
16072 0 : if (flags & NDR_OUT) {
16073 0 : if (r->out.lpdwGrantedAccess == NULL) {
16074 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16075 : }
16076 0 : if (r->out.Status == NULL) {
16077 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16078 : }
16079 0 : if (r->out.rpc_status == NULL) {
16080 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16081 : }
16082 0 : if (r->out.hNode == NULL) {
16083 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16084 : }
16085 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
16086 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
16087 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
16088 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNode));
16089 : }
16090 0 : return NDR_ERR_SUCCESS;
16091 : }
16092 :
16093 0 : static enum ndr_err_code ndr_pull_clusapi_OpenNodeEx(struct ndr_pull *ndr, int flags, struct clusapi_OpenNodeEx *r)
16094 : {
16095 0 : uint32_t size_lpszNodeName_1 = 0;
16096 0 : uint32_t length_lpszNodeName_1 = 0;
16097 0 : TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
16098 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
16099 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
16100 0 : TALLOC_CTX *_mem_save_hNode_0 = NULL;
16101 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16102 0 : if (flags & NDR_IN) {
16103 0 : NDR_ZERO_STRUCT(r->out);
16104 :
16105 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNodeName));
16106 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNodeName));
16107 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNodeName, &size_lpszNodeName_1));
16108 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNodeName, &length_lpszNodeName_1));
16109 0 : if (length_lpszNodeName_1 > size_lpszNodeName_1) {
16110 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNodeName_1, length_lpszNodeName_1);
16111 : }
16112 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNodeName_1, sizeof(uint16_t)));
16113 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNodeName, length_lpszNodeName_1, sizeof(uint16_t), CH_UTF16));
16114 0 : NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
16115 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16116 0 : NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
16117 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16118 0 : NDR_ZERO_STRUCTP(r->out.Status);
16119 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16120 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
16121 0 : NDR_PULL_ALLOC(ndr, r->out.hNode);
16122 0 : NDR_ZERO_STRUCTP(r->out.hNode);
16123 : }
16124 0 : if (flags & NDR_OUT) {
16125 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16126 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16127 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16128 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16129 : }
16130 0 : _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
16131 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
16132 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
16133 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
16134 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16135 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16136 : }
16137 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16138 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
16139 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
16140 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
16141 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16142 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16143 : }
16144 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16145 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
16146 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
16147 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
16148 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16149 0 : NDR_PULL_ALLOC(ndr, r->out.hNode);
16150 : }
16151 0 : _mem_save_hNode_0 = NDR_PULL_GET_MEM_CTX(ndr);
16152 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hNode, LIBNDR_FLAG_REF_ALLOC);
16153 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNode));
16154 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNode_0, LIBNDR_FLAG_REF_ALLOC);
16155 : }
16156 0 : return NDR_ERR_SUCCESS;
16157 : }
16158 :
16159 0 : _PUBLIC_ void ndr_print_clusapi_OpenNodeEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenNodeEx *r)
16160 : {
16161 0 : ndr_print_struct(ndr, name, "clusapi_OpenNodeEx");
16162 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16163 0 : ndr->depth++;
16164 0 : if (flags & NDR_SET_VALUES) {
16165 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16166 : }
16167 0 : if (flags & NDR_IN) {
16168 0 : ndr_print_struct(ndr, "in", "clusapi_OpenNodeEx");
16169 0 : ndr->depth++;
16170 0 : ndr_print_ptr(ndr, "lpszNodeName", r->in.lpszNodeName);
16171 0 : ndr->depth++;
16172 0 : ndr_print_string(ndr, "lpszNodeName", r->in.lpszNodeName);
16173 0 : ndr->depth--;
16174 0 : ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
16175 0 : ndr->depth--;
16176 : }
16177 0 : if (flags & NDR_OUT) {
16178 0 : ndr_print_struct(ndr, "out", "clusapi_OpenNodeEx");
16179 0 : ndr->depth++;
16180 0 : ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
16181 0 : ndr->depth++;
16182 0 : ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
16183 0 : ndr->depth--;
16184 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
16185 0 : ndr->depth++;
16186 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
16187 0 : ndr->depth--;
16188 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
16189 0 : ndr->depth++;
16190 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
16191 0 : ndr->depth--;
16192 0 : ndr_print_ptr(ndr, "hNode", r->out.hNode);
16193 0 : ndr->depth++;
16194 0 : ndr_print_policy_handle(ndr, "hNode", r->out.hNode);
16195 0 : ndr->depth--;
16196 0 : ndr->depth--;
16197 : }
16198 0 : ndr->depth--;
16199 : }
16200 :
16201 0 : static enum ndr_err_code ndr_push_clusapi_OpenGroupEx(struct ndr_push *ndr, int flags, const struct clusapi_OpenGroupEx *r)
16202 : {
16203 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16204 0 : if (flags & NDR_IN) {
16205 0 : if (r->in.lpszGroupName == NULL) {
16206 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16207 : }
16208 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
16209 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
16210 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
16211 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
16212 0 : NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
16213 : }
16214 0 : if (flags & NDR_OUT) {
16215 0 : if (r->out.lpdwGrantedAccess == NULL) {
16216 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16217 : }
16218 0 : if (r->out.Status == NULL) {
16219 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16220 : }
16221 0 : if (r->out.rpc_status == NULL) {
16222 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16223 : }
16224 0 : if (r->out.hGroup == NULL) {
16225 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16226 : }
16227 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
16228 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
16229 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
16230 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
16231 : }
16232 0 : return NDR_ERR_SUCCESS;
16233 : }
16234 :
16235 0 : static enum ndr_err_code ndr_pull_clusapi_OpenGroupEx(struct ndr_pull *ndr, int flags, struct clusapi_OpenGroupEx *r)
16236 : {
16237 0 : uint32_t size_lpszGroupName_1 = 0;
16238 0 : uint32_t length_lpszGroupName_1 = 0;
16239 0 : TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
16240 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
16241 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
16242 0 : TALLOC_CTX *_mem_save_hGroup_0 = NULL;
16243 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16244 0 : if (flags & NDR_IN) {
16245 0 : NDR_ZERO_STRUCT(r->out);
16246 :
16247 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
16248 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
16249 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
16250 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
16251 0 : if (length_lpszGroupName_1 > size_lpszGroupName_1) {
16252 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszGroupName_1, length_lpszGroupName_1);
16253 : }
16254 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
16255 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
16256 0 : NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
16257 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16258 0 : NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
16259 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16260 0 : NDR_ZERO_STRUCTP(r->out.Status);
16261 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16262 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
16263 0 : NDR_PULL_ALLOC(ndr, r->out.hGroup);
16264 0 : NDR_ZERO_STRUCTP(r->out.hGroup);
16265 : }
16266 0 : if (flags & NDR_OUT) {
16267 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16268 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16269 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16270 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16271 : }
16272 0 : _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
16273 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
16274 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
16275 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
16276 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16277 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16278 : }
16279 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16280 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
16281 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
16282 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
16283 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16284 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16285 : }
16286 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16287 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
16288 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
16289 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
16290 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16291 0 : NDR_PULL_ALLOC(ndr, r->out.hGroup);
16292 : }
16293 0 : _mem_save_hGroup_0 = NDR_PULL_GET_MEM_CTX(ndr);
16294 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroup, LIBNDR_FLAG_REF_ALLOC);
16295 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
16296 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroup_0, LIBNDR_FLAG_REF_ALLOC);
16297 : }
16298 0 : return NDR_ERR_SUCCESS;
16299 : }
16300 :
16301 0 : _PUBLIC_ void ndr_print_clusapi_OpenGroupEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenGroupEx *r)
16302 : {
16303 0 : ndr_print_struct(ndr, name, "clusapi_OpenGroupEx");
16304 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16305 0 : ndr->depth++;
16306 0 : if (flags & NDR_SET_VALUES) {
16307 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16308 : }
16309 0 : if (flags & NDR_IN) {
16310 0 : ndr_print_struct(ndr, "in", "clusapi_OpenGroupEx");
16311 0 : ndr->depth++;
16312 0 : ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
16313 0 : ndr->depth++;
16314 0 : ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
16315 0 : ndr->depth--;
16316 0 : ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
16317 0 : ndr->depth--;
16318 : }
16319 0 : if (flags & NDR_OUT) {
16320 0 : ndr_print_struct(ndr, "out", "clusapi_OpenGroupEx");
16321 0 : ndr->depth++;
16322 0 : ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
16323 0 : ndr->depth++;
16324 0 : ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
16325 0 : ndr->depth--;
16326 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
16327 0 : ndr->depth++;
16328 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
16329 0 : ndr->depth--;
16330 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
16331 0 : ndr->depth++;
16332 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
16333 0 : ndr->depth--;
16334 0 : ndr_print_ptr(ndr, "hGroup", r->out.hGroup);
16335 0 : ndr->depth++;
16336 0 : ndr_print_policy_handle(ndr, "hGroup", r->out.hGroup);
16337 0 : ndr->depth--;
16338 0 : ndr->depth--;
16339 : }
16340 0 : ndr->depth--;
16341 : }
16342 :
16343 0 : static enum ndr_err_code ndr_push_clusapi_OpenResourceEx(struct ndr_push *ndr, int flags, const struct clusapi_OpenResourceEx *r)
16344 : {
16345 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16346 0 : if (flags & NDR_IN) {
16347 0 : if (r->in.lpszResourceName == NULL) {
16348 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16349 : }
16350 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
16351 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
16352 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
16353 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceName, ndr_charset_length(r->in.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
16354 0 : NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
16355 : }
16356 0 : if (flags & NDR_OUT) {
16357 0 : if (r->out.lpdwGrantedAccess == NULL) {
16358 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16359 : }
16360 0 : if (r->out.Status == NULL) {
16361 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16362 : }
16363 0 : if (r->out.rpc_status == NULL) {
16364 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16365 : }
16366 0 : if (r->out.hResource == NULL) {
16367 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16368 : }
16369 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
16370 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
16371 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
16372 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
16373 : }
16374 0 : return NDR_ERR_SUCCESS;
16375 : }
16376 :
16377 0 : static enum ndr_err_code ndr_pull_clusapi_OpenResourceEx(struct ndr_pull *ndr, int flags, struct clusapi_OpenResourceEx *r)
16378 : {
16379 0 : uint32_t size_lpszResourceName_1 = 0;
16380 0 : uint32_t length_lpszResourceName_1 = 0;
16381 0 : TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
16382 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
16383 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
16384 0 : TALLOC_CTX *_mem_save_hResource_0 = NULL;
16385 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16386 0 : if (flags & NDR_IN) {
16387 0 : NDR_ZERO_STRUCT(r->out);
16388 :
16389 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceName));
16390 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceName));
16391 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceName, &size_lpszResourceName_1));
16392 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceName, &length_lpszResourceName_1));
16393 0 : if (length_lpszResourceName_1 > size_lpszResourceName_1) {
16394 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszResourceName_1, length_lpszResourceName_1);
16395 : }
16396 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_1, sizeof(uint16_t)));
16397 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceName, length_lpszResourceName_1, sizeof(uint16_t), CH_UTF16));
16398 0 : NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
16399 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16400 0 : NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
16401 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16402 0 : NDR_ZERO_STRUCTP(r->out.Status);
16403 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16404 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
16405 0 : NDR_PULL_ALLOC(ndr, r->out.hResource);
16406 0 : NDR_ZERO_STRUCTP(r->out.hResource);
16407 : }
16408 0 : if (flags & NDR_OUT) {
16409 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16410 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16411 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16412 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16413 : }
16414 0 : _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
16415 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
16416 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
16417 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
16418 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16419 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16420 : }
16421 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16422 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
16423 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
16424 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
16425 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16426 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16427 : }
16428 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16429 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
16430 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
16431 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
16432 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16433 0 : NDR_PULL_ALLOC(ndr, r->out.hResource);
16434 : }
16435 0 : _mem_save_hResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
16436 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hResource, LIBNDR_FLAG_REF_ALLOC);
16437 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
16438 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hResource_0, LIBNDR_FLAG_REF_ALLOC);
16439 : }
16440 0 : return NDR_ERR_SUCCESS;
16441 : }
16442 :
16443 0 : _PUBLIC_ void ndr_print_clusapi_OpenResourceEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenResourceEx *r)
16444 : {
16445 0 : ndr_print_struct(ndr, name, "clusapi_OpenResourceEx");
16446 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16447 0 : ndr->depth++;
16448 0 : if (flags & NDR_SET_VALUES) {
16449 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16450 : }
16451 0 : if (flags & NDR_IN) {
16452 0 : ndr_print_struct(ndr, "in", "clusapi_OpenResourceEx");
16453 0 : ndr->depth++;
16454 0 : ndr_print_ptr(ndr, "lpszResourceName", r->in.lpszResourceName);
16455 0 : ndr->depth++;
16456 0 : ndr_print_string(ndr, "lpszResourceName", r->in.lpszResourceName);
16457 0 : ndr->depth--;
16458 0 : ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
16459 0 : ndr->depth--;
16460 : }
16461 0 : if (flags & NDR_OUT) {
16462 0 : ndr_print_struct(ndr, "out", "clusapi_OpenResourceEx");
16463 0 : ndr->depth++;
16464 0 : ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
16465 0 : ndr->depth++;
16466 0 : ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
16467 0 : ndr->depth--;
16468 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
16469 0 : ndr->depth++;
16470 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
16471 0 : ndr->depth--;
16472 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
16473 0 : ndr->depth++;
16474 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
16475 0 : ndr->depth--;
16476 0 : ndr_print_ptr(ndr, "hResource", r->out.hResource);
16477 0 : ndr->depth++;
16478 0 : ndr_print_policy_handle(ndr, "hResource", r->out.hResource);
16479 0 : ndr->depth--;
16480 0 : ndr->depth--;
16481 : }
16482 0 : ndr->depth--;
16483 : }
16484 :
16485 0 : static enum ndr_err_code ndr_push_clusapi_OpenNetworkEx(struct ndr_push *ndr, int flags, const struct clusapi_OpenNetworkEx *r)
16486 : {
16487 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16488 0 : if (flags & NDR_IN) {
16489 0 : if (r->in.lpszNetworkName == NULL) {
16490 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16491 : }
16492 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
16493 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
16494 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
16495 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
16496 0 : NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
16497 : }
16498 0 : if (flags & NDR_OUT) {
16499 0 : if (r->out.lpdwGrantedAccess == NULL) {
16500 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16501 : }
16502 0 : if (r->out.Status == NULL) {
16503 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16504 : }
16505 0 : if (r->out.rpc_status == NULL) {
16506 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16507 : }
16508 0 : if (r->out.hNetwork == NULL) {
16509 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16510 : }
16511 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
16512 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
16513 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
16514 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNetwork));
16515 : }
16516 0 : return NDR_ERR_SUCCESS;
16517 : }
16518 :
16519 0 : static enum ndr_err_code ndr_pull_clusapi_OpenNetworkEx(struct ndr_pull *ndr, int flags, struct clusapi_OpenNetworkEx *r)
16520 : {
16521 0 : uint32_t size_lpszNetworkName_1 = 0;
16522 0 : uint32_t length_lpszNetworkName_1 = 0;
16523 0 : TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
16524 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
16525 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
16526 0 : TALLOC_CTX *_mem_save_hNetwork_0 = NULL;
16527 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16528 0 : if (flags & NDR_IN) {
16529 0 : NDR_ZERO_STRUCT(r->out);
16530 :
16531 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
16532 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
16533 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
16534 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
16535 0 : if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
16536 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNetworkName_1, length_lpszNetworkName_1);
16537 : }
16538 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
16539 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
16540 0 : NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
16541 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16542 0 : NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
16543 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16544 0 : NDR_ZERO_STRUCTP(r->out.Status);
16545 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16546 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
16547 0 : NDR_PULL_ALLOC(ndr, r->out.hNetwork);
16548 0 : NDR_ZERO_STRUCTP(r->out.hNetwork);
16549 : }
16550 0 : if (flags & NDR_OUT) {
16551 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16552 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16553 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16554 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16555 : }
16556 0 : _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
16557 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
16558 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
16559 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
16560 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16561 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16562 : }
16563 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16564 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
16565 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
16566 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
16567 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16568 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16569 : }
16570 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16571 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
16572 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
16573 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
16574 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16575 0 : NDR_PULL_ALLOC(ndr, r->out.hNetwork);
16576 : }
16577 0 : _mem_save_hNetwork_0 = NDR_PULL_GET_MEM_CTX(ndr);
16578 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hNetwork, LIBNDR_FLAG_REF_ALLOC);
16579 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNetwork));
16580 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNetwork_0, LIBNDR_FLAG_REF_ALLOC);
16581 : }
16582 0 : return NDR_ERR_SUCCESS;
16583 : }
16584 :
16585 0 : _PUBLIC_ void ndr_print_clusapi_OpenNetworkEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenNetworkEx *r)
16586 : {
16587 0 : ndr_print_struct(ndr, name, "clusapi_OpenNetworkEx");
16588 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16589 0 : ndr->depth++;
16590 0 : if (flags & NDR_SET_VALUES) {
16591 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16592 : }
16593 0 : if (flags & NDR_IN) {
16594 0 : ndr_print_struct(ndr, "in", "clusapi_OpenNetworkEx");
16595 0 : ndr->depth++;
16596 0 : ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
16597 0 : ndr->depth++;
16598 0 : ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
16599 0 : ndr->depth--;
16600 0 : ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
16601 0 : ndr->depth--;
16602 : }
16603 0 : if (flags & NDR_OUT) {
16604 0 : ndr_print_struct(ndr, "out", "clusapi_OpenNetworkEx");
16605 0 : ndr->depth++;
16606 0 : ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
16607 0 : ndr->depth++;
16608 0 : ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
16609 0 : ndr->depth--;
16610 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
16611 0 : ndr->depth++;
16612 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
16613 0 : ndr->depth--;
16614 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
16615 0 : ndr->depth++;
16616 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
16617 0 : ndr->depth--;
16618 0 : ndr_print_ptr(ndr, "hNetwork", r->out.hNetwork);
16619 0 : ndr->depth++;
16620 0 : ndr_print_policy_handle(ndr, "hNetwork", r->out.hNetwork);
16621 0 : ndr->depth--;
16622 0 : ndr->depth--;
16623 : }
16624 0 : ndr->depth--;
16625 : }
16626 :
16627 0 : static enum ndr_err_code ndr_push_clusapi_OpenNetInterfaceEx(struct ndr_push *ndr, int flags, const struct clusapi_OpenNetInterfaceEx *r)
16628 : {
16629 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16630 0 : if (flags & NDR_IN) {
16631 0 : if (r->in.lpszNetInterfaceName == NULL) {
16632 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16633 : }
16634 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16)));
16635 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
16636 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16)));
16637 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetInterfaceName, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
16638 0 : NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
16639 : }
16640 0 : if (flags & NDR_OUT) {
16641 0 : if (r->out.lpdwGrantedAccess == NULL) {
16642 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16643 : }
16644 0 : if (r->out.Status == NULL) {
16645 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16646 : }
16647 0 : if (r->out.rpc_status == NULL) {
16648 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16649 : }
16650 0 : if (r->out.hNetInterface == NULL) {
16651 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16652 : }
16653 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
16654 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
16655 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
16656 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNetInterface));
16657 : }
16658 0 : return NDR_ERR_SUCCESS;
16659 : }
16660 :
16661 0 : static enum ndr_err_code ndr_pull_clusapi_OpenNetInterfaceEx(struct ndr_pull *ndr, int flags, struct clusapi_OpenNetInterfaceEx *r)
16662 : {
16663 0 : uint32_t size_lpszNetInterfaceName_1 = 0;
16664 0 : uint32_t length_lpszNetInterfaceName_1 = 0;
16665 0 : TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
16666 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
16667 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
16668 0 : TALLOC_CTX *_mem_save_hNetInterface_0 = NULL;
16669 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16670 0 : if (flags & NDR_IN) {
16671 0 : NDR_ZERO_STRUCT(r->out);
16672 :
16673 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetInterfaceName));
16674 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetInterfaceName));
16675 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetInterfaceName, &size_lpszNetInterfaceName_1));
16676 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetInterfaceName, &length_lpszNetInterfaceName_1));
16677 0 : if (length_lpszNetInterfaceName_1 > size_lpszNetInterfaceName_1) {
16678 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNetInterfaceName_1, length_lpszNetInterfaceName_1);
16679 : }
16680 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetInterfaceName_1, sizeof(uint16_t)));
16681 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetInterfaceName, length_lpszNetInterfaceName_1, sizeof(uint16_t), CH_UTF16));
16682 0 : NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
16683 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16684 0 : NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
16685 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16686 0 : NDR_ZERO_STRUCTP(r->out.Status);
16687 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16688 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
16689 0 : NDR_PULL_ALLOC(ndr, r->out.hNetInterface);
16690 0 : NDR_ZERO_STRUCTP(r->out.hNetInterface);
16691 : }
16692 0 : if (flags & NDR_OUT) {
16693 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16694 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16695 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16696 0 : NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
16697 : }
16698 0 : _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
16699 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
16700 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
16701 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
16702 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16703 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
16704 : }
16705 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16706 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
16707 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
16708 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
16709 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16710 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16711 : }
16712 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16713 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
16714 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
16715 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
16716 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16717 0 : NDR_PULL_ALLOC(ndr, r->out.hNetInterface);
16718 : }
16719 0 : _mem_save_hNetInterface_0 = NDR_PULL_GET_MEM_CTX(ndr);
16720 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hNetInterface, LIBNDR_FLAG_REF_ALLOC);
16721 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNetInterface));
16722 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNetInterface_0, LIBNDR_FLAG_REF_ALLOC);
16723 : }
16724 0 : return NDR_ERR_SUCCESS;
16725 : }
16726 :
16727 0 : _PUBLIC_ void ndr_print_clusapi_OpenNetInterfaceEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenNetInterfaceEx *r)
16728 : {
16729 0 : ndr_print_struct(ndr, name, "clusapi_OpenNetInterfaceEx");
16730 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16731 0 : ndr->depth++;
16732 0 : if (flags & NDR_SET_VALUES) {
16733 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16734 : }
16735 0 : if (flags & NDR_IN) {
16736 0 : ndr_print_struct(ndr, "in", "clusapi_OpenNetInterfaceEx");
16737 0 : ndr->depth++;
16738 0 : ndr_print_ptr(ndr, "lpszNetInterfaceName", r->in.lpszNetInterfaceName);
16739 0 : ndr->depth++;
16740 0 : ndr_print_string(ndr, "lpszNetInterfaceName", r->in.lpszNetInterfaceName);
16741 0 : ndr->depth--;
16742 0 : ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
16743 0 : ndr->depth--;
16744 : }
16745 0 : if (flags & NDR_OUT) {
16746 0 : ndr_print_struct(ndr, "out", "clusapi_OpenNetInterfaceEx");
16747 0 : ndr->depth++;
16748 0 : ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
16749 0 : ndr->depth++;
16750 0 : ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
16751 0 : ndr->depth--;
16752 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
16753 0 : ndr->depth++;
16754 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
16755 0 : ndr->depth--;
16756 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
16757 0 : ndr->depth++;
16758 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
16759 0 : ndr->depth--;
16760 0 : ndr_print_ptr(ndr, "hNetInterface", r->out.hNetInterface);
16761 0 : ndr->depth++;
16762 0 : ndr_print_policy_handle(ndr, "hNetInterface", r->out.hNetInterface);
16763 0 : ndr->depth--;
16764 0 : ndr->depth--;
16765 : }
16766 0 : ndr->depth--;
16767 : }
16768 :
16769 0 : static enum ndr_err_code ndr_push_clusapi_ChangeCsvState(struct ndr_push *ndr, int flags, const struct clusapi_ChangeCsvState *r)
16770 : {
16771 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16772 0 : if (flags & NDR_IN) {
16773 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
16774 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwState));
16775 : }
16776 0 : if (flags & NDR_OUT) {
16777 0 : if (r->out.rpc_status == NULL) {
16778 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16779 : }
16780 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
16781 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
16782 : }
16783 0 : return NDR_ERR_SUCCESS;
16784 : }
16785 :
16786 0 : static enum ndr_err_code ndr_pull_clusapi_ChangeCsvState(struct ndr_pull *ndr, int flags, struct clusapi_ChangeCsvState *r)
16787 : {
16788 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
16789 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16790 0 : if (flags & NDR_IN) {
16791 0 : NDR_ZERO_STRUCT(r->out);
16792 :
16793 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
16794 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwState));
16795 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16796 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
16797 : }
16798 0 : if (flags & NDR_OUT) {
16799 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16800 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16801 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16802 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16803 : }
16804 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16805 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
16806 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
16807 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
16808 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
16809 : }
16810 0 : return NDR_ERR_SUCCESS;
16811 : }
16812 :
16813 0 : _PUBLIC_ void ndr_print_clusapi_ChangeCsvState(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ChangeCsvState *r)
16814 : {
16815 0 : ndr_print_struct(ndr, name, "clusapi_ChangeCsvState");
16816 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16817 0 : ndr->depth++;
16818 0 : if (flags & NDR_SET_VALUES) {
16819 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16820 : }
16821 0 : if (flags & NDR_IN) {
16822 0 : ndr_print_struct(ndr, "in", "clusapi_ChangeCsvState");
16823 0 : ndr->depth++;
16824 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
16825 0 : ndr_print_uint32(ndr, "dwState", r->in.dwState);
16826 0 : ndr->depth--;
16827 : }
16828 0 : if (flags & NDR_OUT) {
16829 0 : ndr_print_struct(ndr, "out", "clusapi_ChangeCsvState");
16830 0 : ndr->depth++;
16831 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
16832 0 : ndr->depth++;
16833 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
16834 0 : ndr->depth--;
16835 0 : ndr_print_WERROR(ndr, "result", r->out.result);
16836 0 : ndr->depth--;
16837 : }
16838 0 : ndr->depth--;
16839 : }
16840 :
16841 0 : static enum ndr_err_code ndr_push_clusapi_CreateNodeEnumEx(struct ndr_push *ndr, int flags, const struct clusapi_CreateNodeEnumEx *r)
16842 : {
16843 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16844 0 : if (flags & NDR_IN) {
16845 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
16846 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwType));
16847 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOptions));
16848 : }
16849 0 : if (flags & NDR_OUT) {
16850 0 : if (r->out.ReturnIdEnum == NULL) {
16851 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16852 : }
16853 0 : if (r->out.ReturnNameEnum == NULL) {
16854 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16855 : }
16856 0 : if (r->out.rpc_status == NULL) {
16857 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
16858 : }
16859 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnIdEnum));
16860 0 : if (*r->out.ReturnIdEnum) {
16861 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnIdEnum));
16862 : }
16863 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnNameEnum));
16864 0 : if (*r->out.ReturnNameEnum) {
16865 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnNameEnum));
16866 : }
16867 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
16868 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
16869 : }
16870 0 : return NDR_ERR_SUCCESS;
16871 : }
16872 :
16873 0 : static enum ndr_err_code ndr_pull_clusapi_CreateNodeEnumEx(struct ndr_pull *ndr, int flags, struct clusapi_CreateNodeEnumEx *r)
16874 : {
16875 : uint32_t _ptr_ReturnIdEnum;
16876 : uint32_t _ptr_ReturnNameEnum;
16877 0 : TALLOC_CTX *_mem_save_ReturnIdEnum_0 = NULL;
16878 0 : TALLOC_CTX *_mem_save_ReturnIdEnum_1 = NULL;
16879 0 : TALLOC_CTX *_mem_save_ReturnNameEnum_0 = NULL;
16880 0 : TALLOC_CTX *_mem_save_ReturnNameEnum_1 = NULL;
16881 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
16882 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16883 0 : if (flags & NDR_IN) {
16884 0 : NDR_ZERO_STRUCT(r->out);
16885 :
16886 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
16887 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwType));
16888 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOptions));
16889 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnIdEnum);
16890 0 : NDR_ZERO_STRUCTP(r->out.ReturnIdEnum);
16891 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnNameEnum);
16892 0 : NDR_ZERO_STRUCTP(r->out.ReturnNameEnum);
16893 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16894 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
16895 : }
16896 0 : if (flags & NDR_OUT) {
16897 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16898 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16899 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16900 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnIdEnum);
16901 : }
16902 0 : _mem_save_ReturnIdEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
16903 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnIdEnum, LIBNDR_FLAG_REF_ALLOC);
16904 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnIdEnum));
16905 0 : if (_ptr_ReturnIdEnum) {
16906 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnIdEnum);
16907 : } else {
16908 0 : *r->out.ReturnIdEnum = NULL;
16909 : }
16910 0 : if (*r->out.ReturnIdEnum) {
16911 0 : _mem_save_ReturnIdEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
16912 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnIdEnum, 0);
16913 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnIdEnum));
16914 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnIdEnum_1, 0);
16915 : }
16916 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnIdEnum_0, LIBNDR_FLAG_REF_ALLOC);
16917 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16918 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnNameEnum);
16919 : }
16920 0 : _mem_save_ReturnNameEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
16921 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnNameEnum, LIBNDR_FLAG_REF_ALLOC);
16922 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnNameEnum));
16923 0 : if (_ptr_ReturnNameEnum) {
16924 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnNameEnum);
16925 : } else {
16926 0 : *r->out.ReturnNameEnum = NULL;
16927 : }
16928 0 : if (*r->out.ReturnNameEnum) {
16929 0 : _mem_save_ReturnNameEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
16930 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnNameEnum, 0);
16931 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnNameEnum));
16932 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnNameEnum_1, 0);
16933 : }
16934 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnNameEnum_0, LIBNDR_FLAG_REF_ALLOC);
16935 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
16936 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
16937 : }
16938 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
16939 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
16940 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
16941 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
16942 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
16943 : }
16944 0 : return NDR_ERR_SUCCESS;
16945 : }
16946 :
16947 0 : _PUBLIC_ void ndr_print_clusapi_CreateNodeEnumEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateNodeEnumEx *r)
16948 : {
16949 0 : ndr_print_struct(ndr, name, "clusapi_CreateNodeEnumEx");
16950 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16951 0 : ndr->depth++;
16952 0 : if (flags & NDR_SET_VALUES) {
16953 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16954 : }
16955 0 : if (flags & NDR_IN) {
16956 0 : ndr_print_struct(ndr, "in", "clusapi_CreateNodeEnumEx");
16957 0 : ndr->depth++;
16958 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
16959 0 : ndr_print_uint32(ndr, "dwType", r->in.dwType);
16960 0 : ndr_print_uint32(ndr, "dwOptions", r->in.dwOptions);
16961 0 : ndr->depth--;
16962 : }
16963 0 : if (flags & NDR_OUT) {
16964 0 : ndr_print_struct(ndr, "out", "clusapi_CreateNodeEnumEx");
16965 0 : ndr->depth++;
16966 0 : ndr_print_ptr(ndr, "ReturnIdEnum", r->out.ReturnIdEnum);
16967 0 : ndr->depth++;
16968 0 : ndr_print_ptr(ndr, "ReturnIdEnum", *r->out.ReturnIdEnum);
16969 0 : ndr->depth++;
16970 0 : if (*r->out.ReturnIdEnum) {
16971 0 : ndr_print_ENUM_LIST(ndr, "ReturnIdEnum", *r->out.ReturnIdEnum);
16972 : }
16973 0 : ndr->depth--;
16974 0 : ndr->depth--;
16975 0 : ndr_print_ptr(ndr, "ReturnNameEnum", r->out.ReturnNameEnum);
16976 0 : ndr->depth++;
16977 0 : ndr_print_ptr(ndr, "ReturnNameEnum", *r->out.ReturnNameEnum);
16978 0 : ndr->depth++;
16979 0 : if (*r->out.ReturnNameEnum) {
16980 0 : ndr_print_ENUM_LIST(ndr, "ReturnNameEnum", *r->out.ReturnNameEnum);
16981 : }
16982 0 : ndr->depth--;
16983 0 : ndr->depth--;
16984 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
16985 0 : ndr->depth++;
16986 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
16987 0 : ndr->depth--;
16988 0 : ndr_print_WERROR(ndr, "result", r->out.result);
16989 0 : ndr->depth--;
16990 : }
16991 0 : ndr->depth--;
16992 : }
16993 :
16994 0 : static enum ndr_err_code ndr_push_clusapi_CreateEnumEx(struct ndr_push *ndr, int flags, const struct clusapi_CreateEnumEx *r)
16995 : {
16996 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16997 0 : if (flags & NDR_IN) {
16998 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
16999 0 : NDR_CHECK(ndr_push_ClusterEnumType(ndr, NDR_SCALARS, r->in.dwType));
17000 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOptions));
17001 : }
17002 0 : if (flags & NDR_OUT) {
17003 0 : if (r->out.ReturnIdEnum == NULL) {
17004 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17005 : }
17006 0 : if (r->out.ReturnNameEnum == NULL) {
17007 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17008 : }
17009 0 : if (r->out.rpc_status == NULL) {
17010 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17011 : }
17012 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnIdEnum));
17013 0 : if (*r->out.ReturnIdEnum) {
17014 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnIdEnum));
17015 : }
17016 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnNameEnum));
17017 0 : if (*r->out.ReturnNameEnum) {
17018 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnNameEnum));
17019 : }
17020 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17021 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17022 : }
17023 0 : return NDR_ERR_SUCCESS;
17024 : }
17025 :
17026 0 : static enum ndr_err_code ndr_pull_clusapi_CreateEnumEx(struct ndr_pull *ndr, int flags, struct clusapi_CreateEnumEx *r)
17027 : {
17028 : uint32_t _ptr_ReturnIdEnum;
17029 : uint32_t _ptr_ReturnNameEnum;
17030 0 : TALLOC_CTX *_mem_save_ReturnIdEnum_0 = NULL;
17031 0 : TALLOC_CTX *_mem_save_ReturnIdEnum_1 = NULL;
17032 0 : TALLOC_CTX *_mem_save_ReturnNameEnum_0 = NULL;
17033 0 : TALLOC_CTX *_mem_save_ReturnNameEnum_1 = NULL;
17034 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17035 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17036 0 : if (flags & NDR_IN) {
17037 0 : NDR_ZERO_STRUCT(r->out);
17038 :
17039 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
17040 0 : NDR_CHECK(ndr_pull_ClusterEnumType(ndr, NDR_SCALARS, &r->in.dwType));
17041 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOptions));
17042 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnIdEnum);
17043 0 : NDR_ZERO_STRUCTP(r->out.ReturnIdEnum);
17044 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnNameEnum);
17045 0 : NDR_ZERO_STRUCTP(r->out.ReturnNameEnum);
17046 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17047 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17048 : }
17049 0 : if (flags & NDR_OUT) {
17050 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17051 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17052 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17053 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnIdEnum);
17054 : }
17055 0 : _mem_save_ReturnIdEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
17056 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnIdEnum, LIBNDR_FLAG_REF_ALLOC);
17057 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnIdEnum));
17058 0 : if (_ptr_ReturnIdEnum) {
17059 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnIdEnum);
17060 : } else {
17061 0 : *r->out.ReturnIdEnum = NULL;
17062 : }
17063 0 : if (*r->out.ReturnIdEnum) {
17064 0 : _mem_save_ReturnIdEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
17065 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnIdEnum, 0);
17066 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnIdEnum));
17067 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnIdEnum_1, 0);
17068 : }
17069 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnIdEnum_0, LIBNDR_FLAG_REF_ALLOC);
17070 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17071 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnNameEnum);
17072 : }
17073 0 : _mem_save_ReturnNameEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
17074 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnNameEnum, LIBNDR_FLAG_REF_ALLOC);
17075 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnNameEnum));
17076 0 : if (_ptr_ReturnNameEnum) {
17077 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnNameEnum);
17078 : } else {
17079 0 : *r->out.ReturnNameEnum = NULL;
17080 : }
17081 0 : if (*r->out.ReturnNameEnum) {
17082 0 : _mem_save_ReturnNameEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
17083 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnNameEnum, 0);
17084 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnNameEnum));
17085 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnNameEnum_1, 0);
17086 : }
17087 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnNameEnum_0, LIBNDR_FLAG_REF_ALLOC);
17088 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17089 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17090 : }
17091 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17092 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17093 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17094 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17095 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
17096 : }
17097 0 : return NDR_ERR_SUCCESS;
17098 : }
17099 :
17100 0 : _PUBLIC_ void ndr_print_clusapi_CreateEnumEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateEnumEx *r)
17101 : {
17102 0 : ndr_print_struct(ndr, name, "clusapi_CreateEnumEx");
17103 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17104 0 : ndr->depth++;
17105 0 : if (flags & NDR_SET_VALUES) {
17106 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17107 : }
17108 0 : if (flags & NDR_IN) {
17109 0 : ndr_print_struct(ndr, "in", "clusapi_CreateEnumEx");
17110 0 : ndr->depth++;
17111 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
17112 0 : ndr_print_ClusterEnumType(ndr, "dwType", r->in.dwType);
17113 0 : ndr_print_uint32(ndr, "dwOptions", r->in.dwOptions);
17114 0 : ndr->depth--;
17115 : }
17116 0 : if (flags & NDR_OUT) {
17117 0 : ndr_print_struct(ndr, "out", "clusapi_CreateEnumEx");
17118 0 : ndr->depth++;
17119 0 : ndr_print_ptr(ndr, "ReturnIdEnum", r->out.ReturnIdEnum);
17120 0 : ndr->depth++;
17121 0 : ndr_print_ptr(ndr, "ReturnIdEnum", *r->out.ReturnIdEnum);
17122 0 : ndr->depth++;
17123 0 : if (*r->out.ReturnIdEnum) {
17124 0 : ndr_print_ENUM_LIST(ndr, "ReturnIdEnum", *r->out.ReturnIdEnum);
17125 : }
17126 0 : ndr->depth--;
17127 0 : ndr->depth--;
17128 0 : ndr_print_ptr(ndr, "ReturnNameEnum", r->out.ReturnNameEnum);
17129 0 : ndr->depth++;
17130 0 : ndr_print_ptr(ndr, "ReturnNameEnum", *r->out.ReturnNameEnum);
17131 0 : ndr->depth++;
17132 0 : if (*r->out.ReturnNameEnum) {
17133 0 : ndr_print_ENUM_LIST(ndr, "ReturnNameEnum", *r->out.ReturnNameEnum);
17134 : }
17135 0 : ndr->depth--;
17136 0 : ndr->depth--;
17137 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17138 0 : ndr->depth++;
17139 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17140 0 : ndr->depth--;
17141 0 : ndr_print_WERROR(ndr, "result", r->out.result);
17142 0 : ndr->depth--;
17143 : }
17144 0 : ndr->depth--;
17145 : }
17146 :
17147 0 : static enum ndr_err_code ndr_push_clusapi_PauseNodeEx(struct ndr_push *ndr, int flags, const struct clusapi_PauseNodeEx *r)
17148 : {
17149 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17150 0 : if (flags & NDR_IN) {
17151 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
17152 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.bDrainNode));
17153 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwPauseFlags));
17154 : }
17155 0 : if (flags & NDR_OUT) {
17156 0 : if (r->out.rpc_status == NULL) {
17157 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17158 : }
17159 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17160 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17161 : }
17162 0 : return NDR_ERR_SUCCESS;
17163 : }
17164 :
17165 0 : static enum ndr_err_code ndr_pull_clusapi_PauseNodeEx(struct ndr_pull *ndr, int flags, struct clusapi_PauseNodeEx *r)
17166 : {
17167 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17168 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17169 0 : if (flags & NDR_IN) {
17170 0 : NDR_ZERO_STRUCT(r->out);
17171 :
17172 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
17173 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.bDrainNode));
17174 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwPauseFlags));
17175 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17176 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17177 : }
17178 0 : if (flags & NDR_OUT) {
17179 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17180 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17181 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17182 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17183 : }
17184 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17185 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17186 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17187 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17188 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
17189 : }
17190 0 : return NDR_ERR_SUCCESS;
17191 : }
17192 :
17193 0 : _PUBLIC_ void ndr_print_clusapi_PauseNodeEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_PauseNodeEx *r)
17194 : {
17195 0 : ndr_print_struct(ndr, name, "clusapi_PauseNodeEx");
17196 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17197 0 : ndr->depth++;
17198 0 : if (flags & NDR_SET_VALUES) {
17199 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17200 : }
17201 0 : if (flags & NDR_IN) {
17202 0 : ndr_print_struct(ndr, "in", "clusapi_PauseNodeEx");
17203 0 : ndr->depth++;
17204 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
17205 0 : ndr_print_uint8(ndr, "bDrainNode", r->in.bDrainNode);
17206 0 : ndr_print_uint32(ndr, "dwPauseFlags", r->in.dwPauseFlags);
17207 0 : ndr->depth--;
17208 : }
17209 0 : if (flags & NDR_OUT) {
17210 0 : ndr_print_struct(ndr, "out", "clusapi_PauseNodeEx");
17211 0 : ndr->depth++;
17212 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17213 0 : ndr->depth++;
17214 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17215 0 : ndr->depth--;
17216 0 : ndr_print_WERROR(ndr, "result", r->out.result);
17217 0 : ndr->depth--;
17218 : }
17219 0 : ndr->depth--;
17220 : }
17221 :
17222 0 : static enum ndr_err_code ndr_push_clusapi_PauseNodeWithDrainTarget(struct ndr_push *ndr, int flags, const struct clusapi_PauseNodeWithDrainTarget *r)
17223 : {
17224 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17225 0 : if (flags & NDR_IN) {
17226 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
17227 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwPauseFlags));
17228 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNodeDrainTarget));
17229 : }
17230 0 : if (flags & NDR_OUT) {
17231 0 : if (r->out.rpc_status == NULL) {
17232 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17233 : }
17234 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17235 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17236 : }
17237 0 : return NDR_ERR_SUCCESS;
17238 : }
17239 :
17240 0 : static enum ndr_err_code ndr_pull_clusapi_PauseNodeWithDrainTarget(struct ndr_pull *ndr, int flags, struct clusapi_PauseNodeWithDrainTarget *r)
17241 : {
17242 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17243 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17244 0 : if (flags & NDR_IN) {
17245 0 : NDR_ZERO_STRUCT(r->out);
17246 :
17247 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
17248 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwPauseFlags));
17249 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNodeDrainTarget));
17250 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17251 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17252 : }
17253 0 : if (flags & NDR_OUT) {
17254 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17255 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17256 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17257 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17258 : }
17259 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17260 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17261 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17262 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17263 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
17264 : }
17265 0 : return NDR_ERR_SUCCESS;
17266 : }
17267 :
17268 0 : _PUBLIC_ void ndr_print_clusapi_PauseNodeWithDrainTarget(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_PauseNodeWithDrainTarget *r)
17269 : {
17270 0 : ndr_print_struct(ndr, name, "clusapi_PauseNodeWithDrainTarget");
17271 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17272 0 : ndr->depth++;
17273 0 : if (flags & NDR_SET_VALUES) {
17274 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17275 : }
17276 0 : if (flags & NDR_IN) {
17277 0 : ndr_print_struct(ndr, "in", "clusapi_PauseNodeWithDrainTarget");
17278 0 : ndr->depth++;
17279 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
17280 0 : ndr_print_uint32(ndr, "dwPauseFlags", r->in.dwPauseFlags);
17281 0 : ndr_print_policy_handle(ndr, "hNodeDrainTarget", &r->in.hNodeDrainTarget);
17282 0 : ndr->depth--;
17283 : }
17284 0 : if (flags & NDR_OUT) {
17285 0 : ndr_print_struct(ndr, "out", "clusapi_PauseNodeWithDrainTarget");
17286 0 : ndr->depth++;
17287 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17288 0 : ndr->depth++;
17289 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17290 0 : ndr->depth--;
17291 0 : ndr_print_WERROR(ndr, "result", r->out.result);
17292 0 : ndr->depth--;
17293 : }
17294 0 : ndr->depth--;
17295 : }
17296 :
17297 0 : static enum ndr_err_code ndr_push_clusapi_ResumeNodeEx(struct ndr_push *ndr, int flags, const struct clusapi_ResumeNodeEx *r)
17298 : {
17299 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17300 0 : if (flags & NDR_IN) {
17301 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
17302 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwResumeFailbackType));
17303 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwResumeFlagsReserved));
17304 : }
17305 0 : if (flags & NDR_OUT) {
17306 0 : if (r->out.rpc_status == NULL) {
17307 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17308 : }
17309 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17310 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17311 : }
17312 0 : return NDR_ERR_SUCCESS;
17313 : }
17314 :
17315 0 : static enum ndr_err_code ndr_pull_clusapi_ResumeNodeEx(struct ndr_pull *ndr, int flags, struct clusapi_ResumeNodeEx *r)
17316 : {
17317 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17318 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17319 0 : if (flags & NDR_IN) {
17320 0 : NDR_ZERO_STRUCT(r->out);
17321 :
17322 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
17323 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwResumeFailbackType));
17324 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwResumeFlagsReserved));
17325 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17326 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17327 : }
17328 0 : if (flags & NDR_OUT) {
17329 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17330 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17331 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17332 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17333 : }
17334 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17335 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17336 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17337 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17338 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
17339 : }
17340 0 : return NDR_ERR_SUCCESS;
17341 : }
17342 :
17343 0 : _PUBLIC_ void ndr_print_clusapi_ResumeNodeEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ResumeNodeEx *r)
17344 : {
17345 0 : ndr_print_struct(ndr, name, "clusapi_ResumeNodeEx");
17346 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17347 0 : ndr->depth++;
17348 0 : if (flags & NDR_SET_VALUES) {
17349 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17350 : }
17351 0 : if (flags & NDR_IN) {
17352 0 : ndr_print_struct(ndr, "in", "clusapi_ResumeNodeEx");
17353 0 : ndr->depth++;
17354 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
17355 0 : ndr_print_uint32(ndr, "dwResumeFailbackType", r->in.dwResumeFailbackType);
17356 0 : ndr_print_uint32(ndr, "dwResumeFlagsReserved", r->in.dwResumeFlagsReserved);
17357 0 : ndr->depth--;
17358 : }
17359 0 : if (flags & NDR_OUT) {
17360 0 : ndr_print_struct(ndr, "out", "clusapi_ResumeNodeEx");
17361 0 : ndr->depth++;
17362 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17363 0 : ndr->depth++;
17364 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17365 0 : ndr->depth--;
17366 0 : ndr_print_WERROR(ndr, "result", r->out.result);
17367 0 : ndr->depth--;
17368 : }
17369 0 : ndr->depth--;
17370 : }
17371 :
17372 0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupEx(struct ndr_push *ndr, int flags, const struct clusapi_CreateGroupEx *r)
17373 : {
17374 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17375 0 : if (flags & NDR_IN) {
17376 0 : if (r->in.lpszGroupName == NULL) {
17377 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17378 : }
17379 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
17380 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
17381 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
17382 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
17383 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pGroupInfo));
17384 0 : if (r->in.pGroupInfo) {
17385 0 : NDR_CHECK(ndr_push_CLUSTER_CREATE_GROUP_INFO_RPC(ndr, NDR_SCALARS, r->in.pGroupInfo));
17386 : }
17387 : }
17388 0 : if (flags & NDR_OUT) {
17389 0 : if (r->out.Status == NULL) {
17390 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17391 : }
17392 0 : if (r->out.rpc_status == NULL) {
17393 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17394 : }
17395 0 : if (r->out.hGroup == NULL) {
17396 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17397 : }
17398 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
17399 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17400 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
17401 : }
17402 0 : return NDR_ERR_SUCCESS;
17403 : }
17404 :
17405 0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupEx(struct ndr_pull *ndr, int flags, struct clusapi_CreateGroupEx *r)
17406 : {
17407 0 : uint32_t size_lpszGroupName_1 = 0;
17408 0 : uint32_t length_lpszGroupName_1 = 0;
17409 : uint32_t _ptr_pGroupInfo;
17410 0 : TALLOC_CTX *_mem_save_pGroupInfo_0 = NULL;
17411 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
17412 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17413 0 : TALLOC_CTX *_mem_save_hGroup_0 = NULL;
17414 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17415 0 : if (flags & NDR_IN) {
17416 0 : NDR_ZERO_STRUCT(r->out);
17417 :
17418 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
17419 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
17420 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
17421 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
17422 0 : if (length_lpszGroupName_1 > size_lpszGroupName_1) {
17423 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszGroupName_1, length_lpszGroupName_1);
17424 : }
17425 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
17426 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
17427 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGroupInfo));
17428 0 : if (_ptr_pGroupInfo) {
17429 0 : NDR_PULL_ALLOC(ndr, r->in.pGroupInfo);
17430 : } else {
17431 0 : r->in.pGroupInfo = NULL;
17432 : }
17433 0 : if (r->in.pGroupInfo) {
17434 0 : _mem_save_pGroupInfo_0 = NDR_PULL_GET_MEM_CTX(ndr);
17435 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pGroupInfo, 0);
17436 0 : NDR_CHECK(ndr_pull_CLUSTER_CREATE_GROUP_INFO_RPC(ndr, NDR_SCALARS, r->in.pGroupInfo));
17437 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGroupInfo_0, 0);
17438 : }
17439 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
17440 0 : NDR_ZERO_STRUCTP(r->out.Status);
17441 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17442 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17443 0 : NDR_PULL_ALLOC(ndr, r->out.hGroup);
17444 0 : NDR_ZERO_STRUCTP(r->out.hGroup);
17445 : }
17446 0 : if (flags & NDR_OUT) {
17447 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17448 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17449 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17450 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
17451 : }
17452 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17453 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
17454 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
17455 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
17456 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17457 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17458 : }
17459 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17460 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17461 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17462 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17463 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17464 0 : NDR_PULL_ALLOC(ndr, r->out.hGroup);
17465 : }
17466 0 : _mem_save_hGroup_0 = NDR_PULL_GET_MEM_CTX(ndr);
17467 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroup, LIBNDR_FLAG_REF_ALLOC);
17468 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
17469 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroup_0, LIBNDR_FLAG_REF_ALLOC);
17470 : }
17471 0 : return NDR_ERR_SUCCESS;
17472 : }
17473 :
17474 0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateGroupEx *r)
17475 : {
17476 0 : ndr_print_struct(ndr, name, "clusapi_CreateGroupEx");
17477 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17478 0 : ndr->depth++;
17479 0 : if (flags & NDR_SET_VALUES) {
17480 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17481 : }
17482 0 : if (flags & NDR_IN) {
17483 0 : ndr_print_struct(ndr, "in", "clusapi_CreateGroupEx");
17484 0 : ndr->depth++;
17485 0 : ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
17486 0 : ndr->depth++;
17487 0 : ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
17488 0 : ndr->depth--;
17489 0 : ndr_print_ptr(ndr, "pGroupInfo", r->in.pGroupInfo);
17490 0 : ndr->depth++;
17491 0 : if (r->in.pGroupInfo) {
17492 0 : ndr_print_CLUSTER_CREATE_GROUP_INFO_RPC(ndr, "pGroupInfo", r->in.pGroupInfo);
17493 : }
17494 0 : ndr->depth--;
17495 0 : ndr->depth--;
17496 : }
17497 0 : if (flags & NDR_OUT) {
17498 0 : ndr_print_struct(ndr, "out", "clusapi_CreateGroupEx");
17499 0 : ndr->depth++;
17500 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
17501 0 : ndr->depth++;
17502 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
17503 0 : ndr->depth--;
17504 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17505 0 : ndr->depth++;
17506 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17507 0 : ndr->depth--;
17508 0 : ndr_print_ptr(ndr, "hGroup", r->out.hGroup);
17509 0 : ndr->depth++;
17510 0 : ndr_print_policy_handle(ndr, "hGroup", r->out.hGroup);
17511 0 : ndr->depth--;
17512 0 : ndr->depth--;
17513 : }
17514 0 : ndr->depth--;
17515 : }
17516 :
17517 0 : static enum ndr_err_code ndr_push_clusapi_OnlineGroupEx(struct ndr_push *ndr, int flags, const struct clusapi_OnlineGroupEx *r)
17518 : {
17519 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17520 0 : if (flags & NDR_IN) {
17521 0 : if (r->in.lpInBuffer == NULL) {
17522 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17523 : }
17524 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17525 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOnlineFlags));
17526 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17527 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
17528 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17529 : }
17530 0 : if (flags & NDR_OUT) {
17531 0 : if (r->out.rpc_status == NULL) {
17532 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17533 : }
17534 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17535 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17536 : }
17537 0 : return NDR_ERR_SUCCESS;
17538 : }
17539 :
17540 0 : static enum ndr_err_code ndr_pull_clusapi_OnlineGroupEx(struct ndr_pull *ndr, int flags, struct clusapi_OnlineGroupEx *r)
17541 : {
17542 0 : uint32_t size_lpInBuffer_1 = 0;
17543 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17544 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17545 0 : if (flags & NDR_IN) {
17546 0 : NDR_ZERO_STRUCT(r->out);
17547 :
17548 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17549 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOnlineFlags));
17550 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
17551 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
17552 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17553 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
17554 : }
17555 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
17556 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
17557 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17558 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17559 0 : if (r->in.lpInBuffer) {
17560 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
17561 : }
17562 : }
17563 0 : if (flags & NDR_OUT) {
17564 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17565 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17566 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17567 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17568 : }
17569 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17570 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17571 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17572 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17573 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
17574 : }
17575 0 : return NDR_ERR_SUCCESS;
17576 : }
17577 :
17578 0 : _PUBLIC_ void ndr_print_clusapi_OnlineGroupEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OnlineGroupEx *r)
17579 : {
17580 0 : ndr_print_struct(ndr, name, "clusapi_OnlineGroupEx");
17581 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17582 0 : ndr->depth++;
17583 0 : if (flags & NDR_SET_VALUES) {
17584 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17585 : }
17586 0 : if (flags & NDR_IN) {
17587 0 : ndr_print_struct(ndr, "in", "clusapi_OnlineGroupEx");
17588 0 : ndr->depth++;
17589 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
17590 0 : ndr_print_uint32(ndr, "dwOnlineFlags", r->in.dwOnlineFlags);
17591 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
17592 0 : ndr->depth++;
17593 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
17594 0 : ndr->depth--;
17595 0 : ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
17596 0 : ndr->depth--;
17597 : }
17598 0 : if (flags & NDR_OUT) {
17599 0 : ndr_print_struct(ndr, "out", "clusapi_OnlineGroupEx");
17600 0 : ndr->depth++;
17601 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17602 0 : ndr->depth++;
17603 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17604 0 : ndr->depth--;
17605 0 : ndr_print_WERROR(ndr, "result", r->out.result);
17606 0 : ndr->depth--;
17607 : }
17608 0 : ndr->depth--;
17609 : }
17610 :
17611 0 : static enum ndr_err_code ndr_push_clusapi_OfflineGroupEx(struct ndr_push *ndr, int flags, const struct clusapi_OfflineGroupEx *r)
17612 : {
17613 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17614 0 : if (flags & NDR_IN) {
17615 0 : if (r->in.lpInBuffer == NULL) {
17616 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17617 : }
17618 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17619 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOfflineFlags));
17620 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17621 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
17622 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17623 : }
17624 0 : if (flags & NDR_OUT) {
17625 0 : if (r->out.rpc_status == NULL) {
17626 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17627 : }
17628 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17629 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17630 : }
17631 0 : return NDR_ERR_SUCCESS;
17632 : }
17633 :
17634 0 : static enum ndr_err_code ndr_pull_clusapi_OfflineGroupEx(struct ndr_pull *ndr, int flags, struct clusapi_OfflineGroupEx *r)
17635 : {
17636 0 : uint32_t size_lpInBuffer_1 = 0;
17637 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17638 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17639 0 : if (flags & NDR_IN) {
17640 0 : NDR_ZERO_STRUCT(r->out);
17641 :
17642 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17643 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOfflineFlags));
17644 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
17645 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
17646 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17647 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
17648 : }
17649 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
17650 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
17651 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17652 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17653 0 : if (r->in.lpInBuffer) {
17654 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
17655 : }
17656 : }
17657 0 : if (flags & NDR_OUT) {
17658 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17659 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17660 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17661 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17662 : }
17663 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17664 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17665 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17666 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17667 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
17668 : }
17669 0 : return NDR_ERR_SUCCESS;
17670 : }
17671 :
17672 0 : _PUBLIC_ void ndr_print_clusapi_OfflineGroupEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OfflineGroupEx *r)
17673 : {
17674 0 : ndr_print_struct(ndr, name, "clusapi_OfflineGroupEx");
17675 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17676 0 : ndr->depth++;
17677 0 : if (flags & NDR_SET_VALUES) {
17678 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17679 : }
17680 0 : if (flags & NDR_IN) {
17681 0 : ndr_print_struct(ndr, "in", "clusapi_OfflineGroupEx");
17682 0 : ndr->depth++;
17683 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
17684 0 : ndr_print_uint32(ndr, "dwOfflineFlags", r->in.dwOfflineFlags);
17685 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
17686 0 : ndr->depth++;
17687 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
17688 0 : ndr->depth--;
17689 0 : ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
17690 0 : ndr->depth--;
17691 : }
17692 0 : if (flags & NDR_OUT) {
17693 0 : ndr_print_struct(ndr, "out", "clusapi_OfflineGroupEx");
17694 0 : ndr->depth++;
17695 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17696 0 : ndr->depth++;
17697 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17698 0 : ndr->depth--;
17699 0 : ndr_print_WERROR(ndr, "result", r->out.result);
17700 0 : ndr->depth--;
17701 : }
17702 0 : ndr->depth--;
17703 : }
17704 :
17705 0 : static enum ndr_err_code ndr_push_clusapi_MoveGroupEx(struct ndr_push *ndr, int flags, const struct clusapi_MoveGroupEx *r)
17706 : {
17707 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17708 0 : if (flags & NDR_IN) {
17709 0 : if (r->in.lpInBuffer == NULL) {
17710 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17711 : }
17712 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17713 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwMoveFlags));
17714 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17715 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
17716 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17717 : }
17718 0 : if (flags & NDR_OUT) {
17719 0 : if (r->out.rpc_status == NULL) {
17720 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17721 : }
17722 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17723 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17724 : }
17725 0 : return NDR_ERR_SUCCESS;
17726 : }
17727 :
17728 0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroupEx(struct ndr_pull *ndr, int flags, struct clusapi_MoveGroupEx *r)
17729 : {
17730 0 : uint32_t size_lpInBuffer_1 = 0;
17731 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17732 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17733 0 : if (flags & NDR_IN) {
17734 0 : NDR_ZERO_STRUCT(r->out);
17735 :
17736 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17737 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwMoveFlags));
17738 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
17739 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
17740 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17741 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
17742 : }
17743 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
17744 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
17745 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17746 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17747 0 : if (r->in.lpInBuffer) {
17748 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
17749 : }
17750 : }
17751 0 : if (flags & NDR_OUT) {
17752 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17753 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17754 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17755 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17756 : }
17757 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17758 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17759 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17760 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17761 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
17762 : }
17763 0 : return NDR_ERR_SUCCESS;
17764 : }
17765 :
17766 0 : _PUBLIC_ void ndr_print_clusapi_MoveGroupEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_MoveGroupEx *r)
17767 : {
17768 0 : ndr_print_struct(ndr, name, "clusapi_MoveGroupEx");
17769 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17770 0 : ndr->depth++;
17771 0 : if (flags & NDR_SET_VALUES) {
17772 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17773 : }
17774 0 : if (flags & NDR_IN) {
17775 0 : ndr_print_struct(ndr, "in", "clusapi_MoveGroupEx");
17776 0 : ndr->depth++;
17777 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
17778 0 : ndr_print_uint32(ndr, "dwMoveFlags", r->in.dwMoveFlags);
17779 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
17780 0 : ndr->depth++;
17781 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
17782 0 : ndr->depth--;
17783 0 : ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
17784 0 : ndr->depth--;
17785 : }
17786 0 : if (flags & NDR_OUT) {
17787 0 : ndr_print_struct(ndr, "out", "clusapi_MoveGroupEx");
17788 0 : ndr->depth++;
17789 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17790 0 : ndr->depth++;
17791 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17792 0 : ndr->depth--;
17793 0 : ndr_print_WERROR(ndr, "result", r->out.result);
17794 0 : ndr->depth--;
17795 : }
17796 0 : ndr->depth--;
17797 : }
17798 :
17799 0 : static enum ndr_err_code ndr_push_clusapi_MoveGroupToNodeEx(struct ndr_push *ndr, int flags, const struct clusapi_MoveGroupToNodeEx *r)
17800 : {
17801 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17802 0 : if (flags & NDR_IN) {
17803 0 : if (r->in.lpInBuffer == NULL) {
17804 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17805 : }
17806 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17807 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
17808 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwMoveFlags));
17809 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17810 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
17811 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17812 : }
17813 0 : if (flags & NDR_OUT) {
17814 0 : if (r->out.rpc_status == NULL) {
17815 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17816 : }
17817 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17818 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17819 : }
17820 0 : return NDR_ERR_SUCCESS;
17821 : }
17822 :
17823 0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroupToNodeEx(struct ndr_pull *ndr, int flags, struct clusapi_MoveGroupToNodeEx *r)
17824 : {
17825 0 : uint32_t size_lpInBuffer_1 = 0;
17826 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17827 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17828 0 : if (flags & NDR_IN) {
17829 0 : NDR_ZERO_STRUCT(r->out);
17830 :
17831 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17832 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
17833 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwMoveFlags));
17834 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
17835 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
17836 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17837 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
17838 : }
17839 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
17840 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
17841 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17842 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17843 0 : if (r->in.lpInBuffer) {
17844 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
17845 : }
17846 : }
17847 0 : if (flags & NDR_OUT) {
17848 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17849 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17850 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17851 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17852 : }
17853 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17854 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17855 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17856 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17857 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
17858 : }
17859 0 : return NDR_ERR_SUCCESS;
17860 : }
17861 :
17862 0 : _PUBLIC_ void ndr_print_clusapi_MoveGroupToNodeEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_MoveGroupToNodeEx *r)
17863 : {
17864 0 : ndr_print_struct(ndr, name, "clusapi_MoveGroupToNodeEx");
17865 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17866 0 : ndr->depth++;
17867 0 : if (flags & NDR_SET_VALUES) {
17868 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17869 : }
17870 0 : if (flags & NDR_IN) {
17871 0 : ndr_print_struct(ndr, "in", "clusapi_MoveGroupToNodeEx");
17872 0 : ndr->depth++;
17873 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
17874 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
17875 0 : ndr_print_uint32(ndr, "dwMoveFlags", r->in.dwMoveFlags);
17876 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
17877 0 : ndr->depth++;
17878 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
17879 0 : ndr->depth--;
17880 0 : ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
17881 0 : ndr->depth--;
17882 : }
17883 0 : if (flags & NDR_OUT) {
17884 0 : ndr_print_struct(ndr, "out", "clusapi_MoveGroupToNodeEx");
17885 0 : ndr->depth++;
17886 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17887 0 : ndr->depth++;
17888 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17889 0 : ndr->depth--;
17890 0 : ndr_print_WERROR(ndr, "result", r->out.result);
17891 0 : ndr->depth--;
17892 : }
17893 0 : ndr->depth--;
17894 : }
17895 :
17896 0 : static enum ndr_err_code ndr_push_clusapi_CancelClusterGroupOperation(struct ndr_push *ndr, int flags, const struct clusapi_CancelClusterGroupOperation *r)
17897 : {
17898 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17899 0 : if (flags & NDR_IN) {
17900 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17901 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwCancelFlags));
17902 : }
17903 0 : if (flags & NDR_OUT) {
17904 0 : if (r->out.rpc_status == NULL) {
17905 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17906 : }
17907 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17908 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17909 : }
17910 0 : return NDR_ERR_SUCCESS;
17911 : }
17912 :
17913 0 : static enum ndr_err_code ndr_pull_clusapi_CancelClusterGroupOperation(struct ndr_pull *ndr, int flags, struct clusapi_CancelClusterGroupOperation *r)
17914 : {
17915 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17916 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17917 0 : if (flags & NDR_IN) {
17918 0 : NDR_ZERO_STRUCT(r->out);
17919 :
17920 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
17921 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwCancelFlags));
17922 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17923 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
17924 : }
17925 0 : if (flags & NDR_OUT) {
17926 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17927 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17928 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17929 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
17930 : }
17931 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
17932 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
17933 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
17934 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
17935 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
17936 : }
17937 0 : return NDR_ERR_SUCCESS;
17938 : }
17939 :
17940 0 : _PUBLIC_ void ndr_print_clusapi_CancelClusterGroupOperation(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CancelClusterGroupOperation *r)
17941 : {
17942 0 : ndr_print_struct(ndr, name, "clusapi_CancelClusterGroupOperation");
17943 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17944 0 : ndr->depth++;
17945 0 : if (flags & NDR_SET_VALUES) {
17946 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17947 : }
17948 0 : if (flags & NDR_IN) {
17949 0 : ndr_print_struct(ndr, "in", "clusapi_CancelClusterGroupOperation");
17950 0 : ndr->depth++;
17951 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
17952 0 : ndr_print_uint32(ndr, "dwCancelFlags", r->in.dwCancelFlags);
17953 0 : ndr->depth--;
17954 : }
17955 0 : if (flags & NDR_OUT) {
17956 0 : ndr_print_struct(ndr, "out", "clusapi_CancelClusterGroupOperation");
17957 0 : ndr->depth++;
17958 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
17959 0 : ndr->depth++;
17960 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
17961 0 : ndr->depth--;
17962 0 : ndr_print_WERROR(ndr, "result", r->out.result);
17963 0 : ndr->depth--;
17964 : }
17965 0 : ndr->depth--;
17966 : }
17967 :
17968 0 : static enum ndr_err_code ndr_push_clusapi_OnlineResourceEx(struct ndr_push *ndr, int flags, const struct clusapi_OnlineResourceEx *r)
17969 : {
17970 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17971 0 : if (flags & NDR_IN) {
17972 0 : if (r->in.lpInBuffer == NULL) {
17973 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17974 : }
17975 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
17976 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOnlineFlags));
17977 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17978 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
17979 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
17980 : }
17981 0 : if (flags & NDR_OUT) {
17982 0 : if (r->out.rpc_status == NULL) {
17983 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17984 : }
17985 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
17986 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
17987 : }
17988 0 : return NDR_ERR_SUCCESS;
17989 : }
17990 :
17991 0 : static enum ndr_err_code ndr_pull_clusapi_OnlineResourceEx(struct ndr_pull *ndr, int flags, struct clusapi_OnlineResourceEx *r)
17992 : {
17993 0 : uint32_t size_lpInBuffer_1 = 0;
17994 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
17995 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17996 0 : if (flags & NDR_IN) {
17997 0 : NDR_ZERO_STRUCT(r->out);
17998 :
17999 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
18000 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOnlineFlags));
18001 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
18002 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
18003 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18004 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
18005 : }
18006 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
18007 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
18008 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18009 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
18010 0 : if (r->in.lpInBuffer) {
18011 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
18012 : }
18013 : }
18014 0 : if (flags & NDR_OUT) {
18015 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
18016 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
18017 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18018 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18019 : }
18020 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
18021 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
18022 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
18023 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
18024 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
18025 : }
18026 0 : return NDR_ERR_SUCCESS;
18027 : }
18028 :
18029 0 : _PUBLIC_ void ndr_print_clusapi_OnlineResourceEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OnlineResourceEx *r)
18030 : {
18031 0 : ndr_print_struct(ndr, name, "clusapi_OnlineResourceEx");
18032 0 : if (r == NULL) { ndr_print_null(ndr); return; }
18033 0 : ndr->depth++;
18034 0 : if (flags & NDR_SET_VALUES) {
18035 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
18036 : }
18037 0 : if (flags & NDR_IN) {
18038 0 : ndr_print_struct(ndr, "in", "clusapi_OnlineResourceEx");
18039 0 : ndr->depth++;
18040 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
18041 0 : ndr_print_uint32(ndr, "dwOnlineFlags", r->in.dwOnlineFlags);
18042 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
18043 0 : ndr->depth++;
18044 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
18045 0 : ndr->depth--;
18046 0 : ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
18047 0 : ndr->depth--;
18048 : }
18049 0 : if (flags & NDR_OUT) {
18050 0 : ndr_print_struct(ndr, "out", "clusapi_OnlineResourceEx");
18051 0 : ndr->depth++;
18052 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
18053 0 : ndr->depth++;
18054 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
18055 0 : ndr->depth--;
18056 0 : ndr_print_WERROR(ndr, "result", r->out.result);
18057 0 : ndr->depth--;
18058 : }
18059 0 : ndr->depth--;
18060 : }
18061 :
18062 0 : static enum ndr_err_code ndr_push_clusapi_OfflineResourceEx(struct ndr_push *ndr, int flags, const struct clusapi_OfflineResourceEx *r)
18063 : {
18064 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
18065 0 : if (flags & NDR_IN) {
18066 0 : if (r->in.lpInBuffer == NULL) {
18067 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18068 : }
18069 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
18070 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOfflineFlags));
18071 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
18072 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
18073 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
18074 : }
18075 0 : if (flags & NDR_OUT) {
18076 0 : if (r->out.rpc_status == NULL) {
18077 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18078 : }
18079 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
18080 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
18081 : }
18082 0 : return NDR_ERR_SUCCESS;
18083 : }
18084 :
18085 0 : static enum ndr_err_code ndr_pull_clusapi_OfflineResourceEx(struct ndr_pull *ndr, int flags, struct clusapi_OfflineResourceEx *r)
18086 : {
18087 0 : uint32_t size_lpInBuffer_1 = 0;
18088 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
18089 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
18090 0 : if (flags & NDR_IN) {
18091 0 : NDR_ZERO_STRUCT(r->out);
18092 :
18093 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
18094 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOfflineFlags));
18095 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
18096 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
18097 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18098 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
18099 : }
18100 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
18101 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
18102 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18103 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
18104 0 : if (r->in.lpInBuffer) {
18105 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
18106 : }
18107 : }
18108 0 : if (flags & NDR_OUT) {
18109 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
18110 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
18111 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18112 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18113 : }
18114 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
18115 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
18116 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
18117 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
18118 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
18119 : }
18120 0 : return NDR_ERR_SUCCESS;
18121 : }
18122 :
18123 0 : _PUBLIC_ void ndr_print_clusapi_OfflineResourceEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OfflineResourceEx *r)
18124 : {
18125 0 : ndr_print_struct(ndr, name, "clusapi_OfflineResourceEx");
18126 0 : if (r == NULL) { ndr_print_null(ndr); return; }
18127 0 : ndr->depth++;
18128 0 : if (flags & NDR_SET_VALUES) {
18129 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
18130 : }
18131 0 : if (flags & NDR_IN) {
18132 0 : ndr_print_struct(ndr, "in", "clusapi_OfflineResourceEx");
18133 0 : ndr->depth++;
18134 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
18135 0 : ndr_print_uint32(ndr, "dwOfflineFlags", r->in.dwOfflineFlags);
18136 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
18137 0 : ndr->depth++;
18138 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
18139 0 : ndr->depth--;
18140 0 : ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
18141 0 : ndr->depth--;
18142 : }
18143 0 : if (flags & NDR_OUT) {
18144 0 : ndr_print_struct(ndr, "out", "clusapi_OfflineResourceEx");
18145 0 : ndr->depth++;
18146 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
18147 0 : ndr->depth++;
18148 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
18149 0 : ndr->depth--;
18150 0 : ndr_print_WERROR(ndr, "result", r->out.result);
18151 0 : ndr->depth--;
18152 : }
18153 0 : ndr->depth--;
18154 : }
18155 :
18156 0 : static enum ndr_err_code ndr_push_clusapi_CreateNotifyV2(struct ndr_push *ndr, int flags, const struct clusapi_CreateNotifyV2 *r)
18157 : {
18158 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
18159 0 : if (flags & NDR_IN) {
18160 : }
18161 0 : if (flags & NDR_OUT) {
18162 0 : if (r->out.rpc_error == NULL) {
18163 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18164 : }
18165 0 : if (r->out.rpc_status == NULL) {
18166 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18167 : }
18168 0 : if (r->out.hNotify == NULL) {
18169 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18170 : }
18171 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_error));
18172 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
18173 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNotify));
18174 : }
18175 0 : return NDR_ERR_SUCCESS;
18176 : }
18177 :
18178 0 : static enum ndr_err_code ndr_pull_clusapi_CreateNotifyV2(struct ndr_pull *ndr, int flags, struct clusapi_CreateNotifyV2 *r)
18179 : {
18180 0 : TALLOC_CTX *_mem_save_rpc_error_0 = NULL;
18181 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
18182 0 : TALLOC_CTX *_mem_save_hNotify_0 = NULL;
18183 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
18184 0 : if (flags & NDR_IN) {
18185 0 : NDR_ZERO_STRUCT(r->out);
18186 :
18187 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_error);
18188 0 : NDR_ZERO_STRUCTP(r->out.rpc_error);
18189 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18190 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
18191 0 : NDR_PULL_ALLOC(ndr, r->out.hNotify);
18192 0 : NDR_ZERO_STRUCTP(r->out.hNotify);
18193 : }
18194 0 : if (flags & NDR_OUT) {
18195 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
18196 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
18197 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18198 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_error);
18199 : }
18200 0 : _mem_save_rpc_error_0 = NDR_PULL_GET_MEM_CTX(ndr);
18201 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_error, LIBNDR_FLAG_REF_ALLOC);
18202 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_error));
18203 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_error_0, LIBNDR_FLAG_REF_ALLOC);
18204 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18205 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18206 : }
18207 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
18208 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
18209 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
18210 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
18211 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18212 0 : NDR_PULL_ALLOC(ndr, r->out.hNotify);
18213 : }
18214 0 : _mem_save_hNotify_0 = NDR_PULL_GET_MEM_CTX(ndr);
18215 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hNotify, LIBNDR_FLAG_REF_ALLOC);
18216 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNotify));
18217 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNotify_0, LIBNDR_FLAG_REF_ALLOC);
18218 : }
18219 0 : return NDR_ERR_SUCCESS;
18220 : }
18221 :
18222 0 : _PUBLIC_ void ndr_print_clusapi_CreateNotifyV2(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateNotifyV2 *r)
18223 : {
18224 0 : ndr_print_struct(ndr, name, "clusapi_CreateNotifyV2");
18225 0 : if (r == NULL) { ndr_print_null(ndr); return; }
18226 0 : ndr->depth++;
18227 0 : if (flags & NDR_SET_VALUES) {
18228 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
18229 : }
18230 0 : if (flags & NDR_IN) {
18231 0 : ndr_print_struct(ndr, "in", "clusapi_CreateNotifyV2");
18232 0 : ndr->depth++;
18233 0 : ndr->depth--;
18234 : }
18235 0 : if (flags & NDR_OUT) {
18236 0 : ndr_print_struct(ndr, "out", "clusapi_CreateNotifyV2");
18237 0 : ndr->depth++;
18238 0 : ndr_print_ptr(ndr, "rpc_error", r->out.rpc_error);
18239 0 : ndr->depth++;
18240 0 : ndr_print_WERROR(ndr, "rpc_error", *r->out.rpc_error);
18241 0 : ndr->depth--;
18242 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
18243 0 : ndr->depth++;
18244 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
18245 0 : ndr->depth--;
18246 0 : ndr_print_ptr(ndr, "hNotify", r->out.hNotify);
18247 0 : ndr->depth++;
18248 0 : ndr_print_policy_handle(ndr, "hNotify", r->out.hNotify);
18249 0 : ndr->depth--;
18250 0 : ndr->depth--;
18251 : }
18252 0 : ndr->depth--;
18253 : }
18254 :
18255 0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyV2(struct ndr_push *ndr, int flags, const struct clusapi_AddNotifyV2 *r)
18256 : {
18257 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
18258 0 : if (flags & NDR_IN) {
18259 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
18260 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hObject));
18261 0 : NDR_CHECK(ndr_push_NOTIFY_FILTER_AND_TYPE_RPC(ndr, NDR_SCALARS, &r->in.filter));
18262 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
18263 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwVersion));
18264 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.isTargetedAtObject));
18265 : }
18266 0 : if (flags & NDR_OUT) {
18267 0 : if (r->out.rpc_status == NULL) {
18268 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18269 : }
18270 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
18271 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
18272 : }
18273 0 : return NDR_ERR_SUCCESS;
18274 : }
18275 :
18276 0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyV2(struct ndr_pull *ndr, int flags, struct clusapi_AddNotifyV2 *r)
18277 : {
18278 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
18279 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
18280 0 : if (flags & NDR_IN) {
18281 0 : NDR_ZERO_STRUCT(r->out);
18282 :
18283 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
18284 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hObject));
18285 0 : NDR_CHECK(ndr_pull_NOTIFY_FILTER_AND_TYPE_RPC(ndr, NDR_SCALARS, &r->in.filter));
18286 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
18287 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwVersion));
18288 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.isTargetedAtObject));
18289 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18290 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
18291 : }
18292 0 : if (flags & NDR_OUT) {
18293 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
18294 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
18295 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18296 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18297 : }
18298 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
18299 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
18300 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
18301 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
18302 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
18303 : }
18304 0 : return NDR_ERR_SUCCESS;
18305 : }
18306 :
18307 0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyV2(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddNotifyV2 *r)
18308 : {
18309 0 : ndr_print_struct(ndr, name, "clusapi_AddNotifyV2");
18310 0 : if (r == NULL) { ndr_print_null(ndr); return; }
18311 0 : ndr->depth++;
18312 0 : if (flags & NDR_SET_VALUES) {
18313 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
18314 : }
18315 0 : if (flags & NDR_IN) {
18316 0 : ndr_print_struct(ndr, "in", "clusapi_AddNotifyV2");
18317 0 : ndr->depth++;
18318 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
18319 0 : ndr_print_policy_handle(ndr, "hObject", &r->in.hObject);
18320 0 : ndr_print_NOTIFY_FILTER_AND_TYPE_RPC(ndr, "filter", &r->in.filter);
18321 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
18322 0 : ndr_print_uint32(ndr, "dwVersion", r->in.dwVersion);
18323 0 : ndr_print_uint8(ndr, "isTargetedAtObject", r->in.isTargetedAtObject);
18324 0 : ndr->depth--;
18325 : }
18326 0 : if (flags & NDR_OUT) {
18327 0 : ndr_print_struct(ndr, "out", "clusapi_AddNotifyV2");
18328 0 : ndr->depth++;
18329 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
18330 0 : ndr->depth++;
18331 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
18332 0 : ndr->depth--;
18333 0 : ndr_print_WERROR(ndr, "result", r->out.result);
18334 0 : ndr->depth--;
18335 : }
18336 0 : ndr->depth--;
18337 : }
18338 :
18339 0 : static enum ndr_err_code ndr_push_clusapi_GetNotifyV2(struct ndr_push *ndr, int flags, const struct clusapi_GetNotifyV2 *r)
18340 : {
18341 : uint32_t cntr_Notifications_2;
18342 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
18343 0 : if (flags & NDR_IN) {
18344 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
18345 : }
18346 0 : if (flags & NDR_OUT) {
18347 0 : if (r->out.Notifications == NULL) {
18348 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18349 : }
18350 0 : if (r->out.dwNumNotifications == NULL) {
18351 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18352 : }
18353 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.Notifications));
18354 0 : if (*r->out.Notifications) {
18355 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.dwNumNotifications));
18356 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
18357 0 : NDR_CHECK(ndr_push_NOTIFICATION_RPC(ndr, NDR_SCALARS, &(*r->out.Notifications)[cntr_Notifications_2]));
18358 : }
18359 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
18360 0 : NDR_CHECK(ndr_push_NOTIFICATION_RPC(ndr, NDR_BUFFERS, &(*r->out.Notifications)[cntr_Notifications_2]));
18361 : }
18362 : }
18363 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwNumNotifications));
18364 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
18365 : }
18366 0 : return NDR_ERR_SUCCESS;
18367 : }
18368 :
18369 0 : static enum ndr_err_code ndr_pull_clusapi_GetNotifyV2(struct ndr_pull *ndr, int flags, struct clusapi_GetNotifyV2 *r)
18370 : {
18371 : uint32_t _ptr_Notifications;
18372 0 : uint32_t size_Notifications_2 = 0;
18373 : uint32_t cntr_Notifications_2;
18374 0 : TALLOC_CTX *_mem_save_Notifications_0 = NULL;
18375 0 : TALLOC_CTX *_mem_save_Notifications_1 = NULL;
18376 0 : TALLOC_CTX *_mem_save_Notifications_2 = NULL;
18377 0 : TALLOC_CTX *_mem_save_dwNumNotifications_0 = NULL;
18378 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
18379 0 : if (flags & NDR_IN) {
18380 0 : NDR_ZERO_STRUCT(r->out);
18381 :
18382 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
18383 0 : NDR_PULL_ALLOC(ndr, r->out.Notifications);
18384 0 : NDR_ZERO_STRUCTP(r->out.Notifications);
18385 0 : NDR_PULL_ALLOC(ndr, r->out.dwNumNotifications);
18386 0 : NDR_ZERO_STRUCTP(r->out.dwNumNotifications);
18387 : }
18388 0 : if (flags & NDR_OUT) {
18389 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
18390 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
18391 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18392 0 : NDR_PULL_ALLOC(ndr, r->out.Notifications);
18393 : }
18394 0 : _mem_save_Notifications_0 = NDR_PULL_GET_MEM_CTX(ndr);
18395 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Notifications, LIBNDR_FLAG_REF_ALLOC);
18396 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Notifications));
18397 0 : if (_ptr_Notifications) {
18398 0 : NDR_PULL_ALLOC(ndr, *r->out.Notifications);
18399 : } else {
18400 0 : *r->out.Notifications = NULL;
18401 : }
18402 0 : if (*r->out.Notifications) {
18403 0 : _mem_save_Notifications_1 = NDR_PULL_GET_MEM_CTX(ndr);
18404 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.Notifications, 0);
18405 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.Notifications));
18406 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.Notifications, &size_Notifications_2));
18407 0 : NDR_PULL_ALLOC_N(ndr, *r->out.Notifications, size_Notifications_2);
18408 0 : _mem_save_Notifications_2 = NDR_PULL_GET_MEM_CTX(ndr);
18409 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.Notifications, 0);
18410 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
18411 0 : NDR_CHECK(ndr_pull_NOTIFICATION_RPC(ndr, NDR_SCALARS, &(*r->out.Notifications)[cntr_Notifications_2]));
18412 : }
18413 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
18414 0 : NDR_CHECK(ndr_pull_NOTIFICATION_RPC(ndr, NDR_BUFFERS, &(*r->out.Notifications)[cntr_Notifications_2]));
18415 : }
18416 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_2, 0);
18417 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_1, 0);
18418 : }
18419 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_0, LIBNDR_FLAG_REF_ALLOC);
18420 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18421 0 : NDR_PULL_ALLOC(ndr, r->out.dwNumNotifications);
18422 : }
18423 0 : _mem_save_dwNumNotifications_0 = NDR_PULL_GET_MEM_CTX(ndr);
18424 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwNumNotifications, LIBNDR_FLAG_REF_ALLOC);
18425 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwNumNotifications));
18426 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwNumNotifications_0, LIBNDR_FLAG_REF_ALLOC);
18427 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
18428 0 : if (*r->out.Notifications) {
18429 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)r->out.Notifications, *r->out.dwNumNotifications));
18430 : }
18431 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
18432 : }
18433 : }
18434 0 : return NDR_ERR_SUCCESS;
18435 : }
18436 :
18437 0 : _PUBLIC_ void ndr_print_clusapi_GetNotifyV2(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNotifyV2 *r)
18438 : {
18439 : uint32_t cntr_Notifications_2;
18440 0 : ndr_print_struct(ndr, name, "clusapi_GetNotifyV2");
18441 0 : if (r == NULL) { ndr_print_null(ndr); return; }
18442 0 : ndr->depth++;
18443 0 : if (flags & NDR_SET_VALUES) {
18444 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
18445 : }
18446 0 : if (flags & NDR_IN) {
18447 0 : ndr_print_struct(ndr, "in", "clusapi_GetNotifyV2");
18448 0 : ndr->depth++;
18449 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
18450 0 : ndr->depth--;
18451 : }
18452 0 : if (flags & NDR_OUT) {
18453 0 : ndr_print_struct(ndr, "out", "clusapi_GetNotifyV2");
18454 0 : ndr->depth++;
18455 0 : ndr_print_ptr(ndr, "Notifications", r->out.Notifications);
18456 0 : ndr->depth++;
18457 0 : ndr_print_ptr(ndr, "Notifications", *r->out.Notifications);
18458 0 : ndr->depth++;
18459 0 : if (*r->out.Notifications) {
18460 0 : ndr->print(ndr, "%s: ARRAY(%d)", "Notifications", (int)*r->out.dwNumNotifications);
18461 0 : ndr->depth++;
18462 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
18463 0 : ndr_print_NOTIFICATION_RPC(ndr, "Notifications", &(*r->out.Notifications)[cntr_Notifications_2]);
18464 : }
18465 0 : ndr->depth--;
18466 : }
18467 0 : ndr->depth--;
18468 0 : ndr->depth--;
18469 0 : ndr_print_ptr(ndr, "dwNumNotifications", r->out.dwNumNotifications);
18470 0 : ndr->depth++;
18471 0 : ndr_print_uint32(ndr, "dwNumNotifications", *r->out.dwNumNotifications);
18472 0 : ndr->depth--;
18473 0 : ndr_print_WERROR(ndr, "result", r->out.result);
18474 0 : ndr->depth--;
18475 : }
18476 0 : ndr->depth--;
18477 : }
18478 :
18479 0 : static enum ndr_err_code ndr_push_clusapi_QueryAllValues(struct ndr_push *ndr, int flags, const struct clusapi_QueryAllValues *r)
18480 : {
18481 : uint32_t cntr_ppData_1;
18482 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
18483 0 : if (flags & NDR_IN) {
18484 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
18485 : }
18486 0 : if (flags & NDR_OUT) {
18487 0 : if (r->out.pcbData == NULL) {
18488 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18489 : }
18490 0 : if (r->out.ppData == NULL) {
18491 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18492 : }
18493 0 : if (r->out.rpc_status == NULL) {
18494 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18495 : }
18496 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.pcbData));
18497 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 1));
18498 0 : for (cntr_ppData_1 = 0; cntr_ppData_1 < (1); cntr_ppData_1++) {
18499 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppData[cntr_ppData_1]));
18500 : }
18501 0 : for (cntr_ppData_1 = 0; cntr_ppData_1 < (1); cntr_ppData_1++) {
18502 0 : if (r->out.ppData[cntr_ppData_1]) {
18503 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.pcbData));
18504 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.ppData[cntr_ppData_1], *r->out.pcbData));
18505 : }
18506 : }
18507 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
18508 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
18509 : }
18510 0 : return NDR_ERR_SUCCESS;
18511 : }
18512 :
18513 0 : static enum ndr_err_code ndr_pull_clusapi_QueryAllValues(struct ndr_pull *ndr, int flags, struct clusapi_QueryAllValues *r)
18514 : {
18515 : uint32_t _ptr_ppData;
18516 0 : uint32_t size_ppData_1 = 0;
18517 : uint32_t cntr_ppData_1;
18518 0 : uint32_t size_ppData_3 = 0;
18519 0 : TALLOC_CTX *_mem_save_pcbData_0 = NULL;
18520 0 : TALLOC_CTX *_mem_save_ppData_1 = NULL;
18521 0 : TALLOC_CTX *_mem_save_ppData_2 = NULL;
18522 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
18523 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
18524 0 : if (flags & NDR_IN) {
18525 0 : NDR_ZERO_STRUCT(r->out);
18526 :
18527 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
18528 0 : NDR_PULL_ALLOC(ndr, r->out.pcbData);
18529 0 : NDR_ZERO_STRUCTP(r->out.pcbData);
18530 0 : NDR_PULL_ALLOC_N(ndr, r->out.ppData, 1);
18531 0 : memset(r->out.ppData, 0, (1) * sizeof(*r->out.ppData));
18532 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18533 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
18534 : }
18535 0 : if (flags & NDR_OUT) {
18536 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
18537 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
18538 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18539 0 : NDR_PULL_ALLOC(ndr, r->out.pcbData);
18540 : }
18541 0 : _mem_save_pcbData_0 = NDR_PULL_GET_MEM_CTX(ndr);
18542 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pcbData, LIBNDR_FLAG_REF_ALLOC);
18543 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.pcbData));
18544 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pcbData_0, LIBNDR_FLAG_REF_ALLOC);
18545 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ppData));
18546 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ppData, &size_ppData_1));
18547 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18548 0 : NDR_PULL_ALLOC_N(ndr, r->out.ppData, size_ppData_1);
18549 : }
18550 0 : _mem_save_ppData_1 = NDR_PULL_GET_MEM_CTX(ndr);
18551 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ppData, 0);
18552 0 : for (cntr_ppData_1 = 0; cntr_ppData_1 < (size_ppData_1); cntr_ppData_1++) {
18553 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppData));
18554 0 : if (_ptr_ppData) {
18555 0 : NDR_PULL_ALLOC(ndr, r->out.ppData[cntr_ppData_1]);
18556 : } else {
18557 0 : r->out.ppData[cntr_ppData_1] = NULL;
18558 : }
18559 : }
18560 0 : for (cntr_ppData_1 = 0; cntr_ppData_1 < (size_ppData_1); cntr_ppData_1++) {
18561 0 : if (r->out.ppData[cntr_ppData_1]) {
18562 0 : _mem_save_ppData_2 = NDR_PULL_GET_MEM_CTX(ndr);
18563 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ppData[cntr_ppData_1], 0);
18564 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ppData[cntr_ppData_1]));
18565 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ppData[cntr_ppData_1], &size_ppData_3));
18566 0 : NDR_PULL_ALLOC_N(ndr, r->out.ppData[cntr_ppData_1], size_ppData_3);
18567 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.ppData[cntr_ppData_1], size_ppData_3));
18568 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppData_2, 0);
18569 : }
18570 : }
18571 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppData_1, 0);
18572 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18573 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18574 : }
18575 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
18576 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
18577 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
18578 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
18579 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
18580 0 : if (r->out.ppData) {
18581 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.ppData, 1));
18582 : }
18583 0 : for (cntr_ppData_1 = 0; cntr_ppData_1 < (size_ppData_1); cntr_ppData_1++) {
18584 0 : if (r->out.ppData[cntr_ppData_1]) {
18585 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.ppData[cntr_ppData_1], *r->out.pcbData));
18586 : }
18587 : }
18588 : }
18589 0 : return NDR_ERR_SUCCESS;
18590 : }
18591 :
18592 0 : _PUBLIC_ void ndr_print_clusapi_QueryAllValues(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_QueryAllValues *r)
18593 : {
18594 : uint32_t cntr_ppData_1;
18595 0 : ndr_print_struct(ndr, name, "clusapi_QueryAllValues");
18596 0 : if (r == NULL) { ndr_print_null(ndr); return; }
18597 0 : ndr->depth++;
18598 0 : if (flags & NDR_SET_VALUES) {
18599 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
18600 : }
18601 0 : if (flags & NDR_IN) {
18602 0 : ndr_print_struct(ndr, "in", "clusapi_QueryAllValues");
18603 0 : ndr->depth++;
18604 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
18605 0 : ndr->depth--;
18606 : }
18607 0 : if (flags & NDR_OUT) {
18608 0 : ndr_print_struct(ndr, "out", "clusapi_QueryAllValues");
18609 0 : ndr->depth++;
18610 0 : ndr_print_ptr(ndr, "pcbData", r->out.pcbData);
18611 0 : ndr->depth++;
18612 0 : ndr_print_uint32(ndr, "pcbData", *r->out.pcbData);
18613 0 : ndr->depth--;
18614 0 : ndr_print_ptr(ndr, "ppData", r->out.ppData);
18615 0 : ndr->depth++;
18616 0 : ndr->print(ndr, "%s: ARRAY(%d)", "ppData", (int)1);
18617 0 : ndr->depth++;
18618 0 : for (cntr_ppData_1 = 0; cntr_ppData_1 < (1); cntr_ppData_1++) {
18619 0 : ndr_print_ptr(ndr, "ppData", r->out.ppData[cntr_ppData_1]);
18620 0 : ndr->depth++;
18621 0 : if (r->out.ppData[cntr_ppData_1]) {
18622 0 : ndr_print_array_uint8(ndr, "ppData", r->out.ppData[cntr_ppData_1], *r->out.pcbData);
18623 : }
18624 0 : ndr->depth--;
18625 : }
18626 0 : ndr->depth--;
18627 0 : ndr->depth--;
18628 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
18629 0 : ndr->depth++;
18630 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
18631 0 : ndr->depth--;
18632 0 : ndr_print_WERROR(ndr, "result", r->out.result);
18633 0 : ndr->depth--;
18634 : }
18635 0 : ndr->depth--;
18636 : }
18637 :
18638 0 : static enum ndr_err_code ndr_push_clusapi_StmFindDisk(struct ndr_push *ndr, int flags, const struct clusapi_StmFindDisk *r)
18639 : {
18640 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
18641 0 : if (flags & NDR_IN) {
18642 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
18643 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFlags));
18644 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pDiskId));
18645 0 : if (r->in.pDiskId) {
18646 0 : NDR_CHECK(ndr_push_CLUSTER_DISKID(ndr, NDR_SCALARS, r->in.pDiskId));
18647 : }
18648 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pUniqueId));
18649 0 : if (r->in.pUniqueId) {
18650 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.uniqueIdSize));
18651 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pUniqueId, r->in.uniqueIdSize));
18652 : }
18653 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.uniqueIdSize));
18654 : }
18655 0 : if (flags & NDR_OUT) {
18656 0 : if (r->out.ppszDeviceName == NULL) {
18657 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18658 : }
18659 0 : if (r->out.rpc_status == NULL) {
18660 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18661 : }
18662 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.pDiskId));
18663 0 : if (r->out.pDiskId) {
18664 0 : NDR_CHECK(ndr_push_CLUSTER_DISKID(ndr, NDR_SCALARS, r->out.pDiskId));
18665 : }
18666 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppszDeviceName));
18667 0 : if (*r->out.ppszDeviceName) {
18668 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.ppszDeviceName, CH_UTF16)));
18669 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
18670 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.ppszDeviceName, CH_UTF16)));
18671 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.ppszDeviceName, ndr_charset_length(*r->out.ppszDeviceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
18672 : }
18673 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
18674 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
18675 : }
18676 0 : return NDR_ERR_SUCCESS;
18677 : }
18678 :
18679 0 : static enum ndr_err_code ndr_pull_clusapi_StmFindDisk(struct ndr_pull *ndr, int flags, struct clusapi_StmFindDisk *r)
18680 : {
18681 : uint32_t _ptr_pDiskId;
18682 : uint32_t _ptr_pUniqueId;
18683 0 : uint32_t size_pUniqueId_1 = 0;
18684 : uint32_t _ptr_ppszDeviceName;
18685 0 : uint32_t size_ppszDeviceName_2 = 0;
18686 0 : uint32_t length_ppszDeviceName_2 = 0;
18687 0 : TALLOC_CTX *_mem_save_pDiskId_0 = NULL;
18688 0 : TALLOC_CTX *_mem_save_pUniqueId_0 = NULL;
18689 0 : TALLOC_CTX *_mem_save_ppszDeviceName_0 = NULL;
18690 0 : TALLOC_CTX *_mem_save_ppszDeviceName_1 = NULL;
18691 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
18692 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
18693 0 : if (flags & NDR_IN) {
18694 0 : NDR_ZERO_STRUCT(r->out);
18695 :
18696 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
18697 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFlags));
18698 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pDiskId));
18699 0 : if (_ptr_pDiskId) {
18700 0 : NDR_PULL_ALLOC(ndr, r->in.pDiskId);
18701 : } else {
18702 0 : r->in.pDiskId = NULL;
18703 : }
18704 0 : if (r->in.pDiskId) {
18705 0 : _mem_save_pDiskId_0 = NDR_PULL_GET_MEM_CTX(ndr);
18706 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pDiskId, 0);
18707 0 : NDR_CHECK(ndr_pull_CLUSTER_DISKID(ndr, NDR_SCALARS, r->in.pDiskId));
18708 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pDiskId_0, 0);
18709 : }
18710 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pUniqueId));
18711 0 : if (_ptr_pUniqueId) {
18712 0 : NDR_PULL_ALLOC(ndr, r->in.pUniqueId);
18713 : } else {
18714 0 : r->in.pUniqueId = NULL;
18715 : }
18716 0 : if (r->in.pUniqueId) {
18717 0 : _mem_save_pUniqueId_0 = NDR_PULL_GET_MEM_CTX(ndr);
18718 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pUniqueId, 0);
18719 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pUniqueId));
18720 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pUniqueId, &size_pUniqueId_1));
18721 0 : NDR_PULL_ALLOC_N(ndr, r->in.pUniqueId, size_pUniqueId_1);
18722 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pUniqueId, size_pUniqueId_1));
18723 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pUniqueId_0, 0);
18724 : }
18725 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.uniqueIdSize));
18726 0 : NDR_PULL_ALLOC(ndr, r->out.ppszDeviceName);
18727 0 : NDR_ZERO_STRUCTP(r->out.ppszDeviceName);
18728 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18729 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
18730 0 : if (r->in.pUniqueId) {
18731 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pUniqueId, r->in.uniqueIdSize));
18732 : }
18733 : }
18734 0 : if (flags & NDR_OUT) {
18735 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
18736 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
18737 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pDiskId));
18738 0 : if (_ptr_pDiskId) {
18739 0 : NDR_PULL_ALLOC(ndr, r->out.pDiskId);
18740 : } else {
18741 0 : r->out.pDiskId = NULL;
18742 : }
18743 0 : if (r->out.pDiskId) {
18744 0 : _mem_save_pDiskId_0 = NDR_PULL_GET_MEM_CTX(ndr);
18745 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.pDiskId, 0);
18746 0 : NDR_CHECK(ndr_pull_CLUSTER_DISKID(ndr, NDR_SCALARS, r->out.pDiskId));
18747 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pDiskId_0, 0);
18748 : }
18749 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18750 0 : NDR_PULL_ALLOC(ndr, r->out.ppszDeviceName);
18751 : }
18752 0 : _mem_save_ppszDeviceName_0 = NDR_PULL_GET_MEM_CTX(ndr);
18753 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ppszDeviceName, LIBNDR_FLAG_REF_ALLOC);
18754 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppszDeviceName));
18755 0 : if (_ptr_ppszDeviceName) {
18756 0 : NDR_PULL_ALLOC(ndr, *r->out.ppszDeviceName);
18757 : } else {
18758 0 : *r->out.ppszDeviceName = NULL;
18759 : }
18760 0 : if (*r->out.ppszDeviceName) {
18761 0 : _mem_save_ppszDeviceName_1 = NDR_PULL_GET_MEM_CTX(ndr);
18762 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppszDeviceName, 0);
18763 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.ppszDeviceName));
18764 0 : NDR_CHECK(ndr_pull_array_length(ndr, r->out.ppszDeviceName));
18765 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.ppszDeviceName, &size_ppszDeviceName_2));
18766 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.ppszDeviceName, &length_ppszDeviceName_2));
18767 0 : if (length_ppszDeviceName_2 > size_ppszDeviceName_2) {
18768 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_ppszDeviceName_2, length_ppszDeviceName_2);
18769 : }
18770 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_ppszDeviceName_2, sizeof(uint16_t)));
18771 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.ppszDeviceName, length_ppszDeviceName_2, sizeof(uint16_t), CH_UTF16));
18772 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppszDeviceName_1, 0);
18773 : }
18774 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppszDeviceName_0, LIBNDR_FLAG_REF_ALLOC);
18775 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18776 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18777 : }
18778 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
18779 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
18780 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
18781 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
18782 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
18783 : }
18784 0 : return NDR_ERR_SUCCESS;
18785 : }
18786 :
18787 0 : _PUBLIC_ void ndr_print_clusapi_StmFindDisk(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_StmFindDisk *r)
18788 : {
18789 0 : ndr_print_struct(ndr, name, "clusapi_StmFindDisk");
18790 0 : if (r == NULL) { ndr_print_null(ndr); return; }
18791 0 : ndr->depth++;
18792 0 : if (flags & NDR_SET_VALUES) {
18793 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
18794 : }
18795 0 : if (flags & NDR_IN) {
18796 0 : ndr_print_struct(ndr, "in", "clusapi_StmFindDisk");
18797 0 : ndr->depth++;
18798 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
18799 0 : ndr_print_uint32(ndr, "dwFlags", r->in.dwFlags);
18800 0 : ndr_print_ptr(ndr, "pDiskId", r->in.pDiskId);
18801 0 : ndr->depth++;
18802 0 : if (r->in.pDiskId) {
18803 0 : ndr_print_CLUSTER_DISKID(ndr, "pDiskId", r->in.pDiskId);
18804 : }
18805 0 : ndr->depth--;
18806 0 : ndr_print_ptr(ndr, "pUniqueId", r->in.pUniqueId);
18807 0 : ndr->depth++;
18808 0 : if (r->in.pUniqueId) {
18809 0 : ndr_print_array_uint8(ndr, "pUniqueId", r->in.pUniqueId, r->in.uniqueIdSize);
18810 : }
18811 0 : ndr->depth--;
18812 0 : ndr_print_uint32(ndr, "uniqueIdSize", r->in.uniqueIdSize);
18813 0 : ndr->depth--;
18814 : }
18815 0 : if (flags & NDR_OUT) {
18816 0 : ndr_print_struct(ndr, "out", "clusapi_StmFindDisk");
18817 0 : ndr->depth++;
18818 0 : ndr_print_ptr(ndr, "pDiskId", r->out.pDiskId);
18819 0 : ndr->depth++;
18820 0 : if (r->out.pDiskId) {
18821 0 : ndr_print_CLUSTER_DISKID(ndr, "pDiskId", r->out.pDiskId);
18822 : }
18823 0 : ndr->depth--;
18824 0 : ndr_print_ptr(ndr, "ppszDeviceName", r->out.ppszDeviceName);
18825 0 : ndr->depth++;
18826 0 : ndr_print_ptr(ndr, "ppszDeviceName", *r->out.ppszDeviceName);
18827 0 : ndr->depth++;
18828 0 : if (*r->out.ppszDeviceName) {
18829 0 : ndr_print_string(ndr, "ppszDeviceName", *r->out.ppszDeviceName);
18830 : }
18831 0 : ndr->depth--;
18832 0 : ndr->depth--;
18833 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
18834 0 : ndr->depth++;
18835 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
18836 0 : ndr->depth--;
18837 0 : ndr_print_WERROR(ndr, "result", r->out.result);
18838 0 : ndr->depth--;
18839 : }
18840 0 : ndr->depth--;
18841 : }
18842 :
18843 0 : static enum ndr_err_code ndr_push_clusapi_ClusterMrr(struct ndr_push *ndr, int flags, const struct clusapi_ClusterMrr *r)
18844 : {
18845 : uint32_t cntr_ppInfo_1;
18846 : uint32_t cntr_ppInfo_3;
18847 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
18848 0 : if (flags & NDR_IN) {
18849 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
18850 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.fExcludeSelf));
18851 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.nodeSet));
18852 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwTimeout));
18853 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwComponent));
18854 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
18855 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.inSize));
18856 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pInData));
18857 0 : if (r->in.pInData) {
18858 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.inSize));
18859 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pInData, r->in.inSize));
18860 : }
18861 : }
18862 0 : if (flags & NDR_OUT) {
18863 0 : if (r->out.ppInfo == NULL) {
18864 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18865 : }
18866 0 : if (r->out.rpc_status == NULL) {
18867 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
18868 : }
18869 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 1));
18870 0 : for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (1); cntr_ppInfo_1++) {
18871 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppInfo[cntr_ppInfo_1]));
18872 : }
18873 0 : for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (1); cntr_ppInfo_1++) {
18874 0 : if (r->out.ppInfo[cntr_ppInfo_1]) {
18875 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 1));
18876 0 : for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (1); cntr_ppInfo_3++) {
18877 0 : NDR_CHECK(ndr_push_CLUSTER_MRR_RESPONSE(ndr, NDR_SCALARS, &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]));
18878 : }
18879 0 : for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (1); cntr_ppInfo_3++) {
18880 0 : NDR_CHECK(ndr_push_CLUSTER_MRR_RESPONSE(ndr, NDR_BUFFERS, &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]));
18881 : }
18882 : }
18883 : }
18884 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
18885 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
18886 : }
18887 0 : return NDR_ERR_SUCCESS;
18888 : }
18889 :
18890 0 : static enum ndr_err_code ndr_pull_clusapi_ClusterMrr(struct ndr_pull *ndr, int flags, struct clusapi_ClusterMrr *r)
18891 : {
18892 : uint32_t _ptr_pInData;
18893 0 : uint32_t size_pInData_1 = 0;
18894 : uint32_t _ptr_ppInfo;
18895 0 : uint32_t size_ppInfo_1 = 0;
18896 : uint32_t cntr_ppInfo_1;
18897 0 : uint32_t size_ppInfo_3 = 0;
18898 : uint32_t cntr_ppInfo_3;
18899 0 : TALLOC_CTX *_mem_save_pInData_0 = NULL;
18900 0 : TALLOC_CTX *_mem_save_ppInfo_1 = NULL;
18901 0 : TALLOC_CTX *_mem_save_ppInfo_2 = NULL;
18902 0 : TALLOC_CTX *_mem_save_ppInfo_3 = NULL;
18903 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
18904 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
18905 0 : if (flags & NDR_IN) {
18906 0 : NDR_ZERO_STRUCT(r->out);
18907 :
18908 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
18909 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.fExcludeSelf));
18910 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.nodeSet));
18911 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwTimeout));
18912 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwComponent));
18913 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
18914 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.inSize));
18915 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pInData));
18916 0 : if (_ptr_pInData) {
18917 0 : NDR_PULL_ALLOC(ndr, r->in.pInData);
18918 : } else {
18919 0 : r->in.pInData = NULL;
18920 : }
18921 0 : if (r->in.pInData) {
18922 0 : _mem_save_pInData_0 = NDR_PULL_GET_MEM_CTX(ndr);
18923 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pInData, 0);
18924 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pInData));
18925 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pInData, &size_pInData_1));
18926 0 : NDR_PULL_ALLOC_N(ndr, r->in.pInData, size_pInData_1);
18927 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pInData, size_pInData_1));
18928 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInData_0, 0);
18929 : }
18930 0 : NDR_PULL_ALLOC_N(ndr, r->out.ppInfo, 1);
18931 0 : memset(r->out.ppInfo, 0, (1) * sizeof(*r->out.ppInfo));
18932 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18933 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
18934 0 : if (r->in.pInData) {
18935 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pInData, r->in.inSize));
18936 : }
18937 : }
18938 0 : if (flags & NDR_OUT) {
18939 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
18940 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
18941 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ppInfo));
18942 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ppInfo, &size_ppInfo_1));
18943 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18944 0 : NDR_PULL_ALLOC_N(ndr, r->out.ppInfo, size_ppInfo_1);
18945 : }
18946 0 : _mem_save_ppInfo_1 = NDR_PULL_GET_MEM_CTX(ndr);
18947 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ppInfo, 0);
18948 0 : for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (size_ppInfo_1); cntr_ppInfo_1++) {
18949 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppInfo));
18950 0 : if (_ptr_ppInfo) {
18951 0 : NDR_PULL_ALLOC(ndr, r->out.ppInfo[cntr_ppInfo_1]);
18952 : } else {
18953 0 : r->out.ppInfo[cntr_ppInfo_1] = NULL;
18954 : }
18955 : }
18956 0 : for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (size_ppInfo_1); cntr_ppInfo_1++) {
18957 0 : if (r->out.ppInfo[cntr_ppInfo_1]) {
18958 0 : _mem_save_ppInfo_2 = NDR_PULL_GET_MEM_CTX(ndr);
18959 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ppInfo[cntr_ppInfo_1], 0);
18960 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ppInfo[cntr_ppInfo_1]));
18961 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ppInfo[cntr_ppInfo_1], &size_ppInfo_3));
18962 0 : NDR_PULL_ALLOC_N(ndr, r->out.ppInfo[cntr_ppInfo_1], size_ppInfo_3);
18963 0 : _mem_save_ppInfo_3 = NDR_PULL_GET_MEM_CTX(ndr);
18964 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ppInfo[cntr_ppInfo_1], 0);
18965 0 : for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (size_ppInfo_3); cntr_ppInfo_3++) {
18966 0 : NDR_CHECK(ndr_pull_CLUSTER_MRR_RESPONSE(ndr, NDR_SCALARS, &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]));
18967 : }
18968 0 : for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (size_ppInfo_3); cntr_ppInfo_3++) {
18969 0 : NDR_CHECK(ndr_pull_CLUSTER_MRR_RESPONSE(ndr, NDR_BUFFERS, &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]));
18970 : }
18971 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppInfo_3, 0);
18972 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppInfo_2, 0);
18973 : }
18974 : }
18975 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppInfo_1, 0);
18976 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
18977 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
18978 : }
18979 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
18980 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
18981 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
18982 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
18983 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
18984 0 : if (r->out.ppInfo) {
18985 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.ppInfo, 1));
18986 : }
18987 0 : for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (size_ppInfo_1); cntr_ppInfo_1++) {
18988 0 : if (r->out.ppInfo[cntr_ppInfo_1]) {
18989 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.ppInfo[cntr_ppInfo_1], 1));
18990 : }
18991 0 : for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (size_ppInfo_3); cntr_ppInfo_3++) {
18992 : }
18993 : }
18994 : }
18995 0 : return NDR_ERR_SUCCESS;
18996 : }
18997 :
18998 0 : _PUBLIC_ void ndr_print_clusapi_ClusterMrr(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ClusterMrr *r)
18999 : {
19000 : uint32_t cntr_ppInfo_1;
19001 : uint32_t cntr_ppInfo_3;
19002 0 : ndr_print_struct(ndr, name, "clusapi_ClusterMrr");
19003 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19004 0 : ndr->depth++;
19005 0 : if (flags & NDR_SET_VALUES) {
19006 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19007 : }
19008 0 : if (flags & NDR_IN) {
19009 0 : ndr_print_struct(ndr, "in", "clusapi_ClusterMrr");
19010 0 : ndr->depth++;
19011 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
19012 0 : ndr_print_uint8(ndr, "fExcludeSelf", r->in.fExcludeSelf);
19013 0 : ndr_print_hyper(ndr, "nodeSet", r->in.nodeSet);
19014 0 : ndr_print_uint32(ndr, "dwTimeout", r->in.dwTimeout);
19015 0 : ndr_print_uint32(ndr, "dwComponent", r->in.dwComponent);
19016 0 : ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
19017 0 : ndr_print_uint32(ndr, "inSize", r->in.inSize);
19018 0 : ndr_print_ptr(ndr, "pInData", r->in.pInData);
19019 0 : ndr->depth++;
19020 0 : if (r->in.pInData) {
19021 0 : ndr_print_array_uint8(ndr, "pInData", r->in.pInData, r->in.inSize);
19022 : }
19023 0 : ndr->depth--;
19024 0 : ndr->depth--;
19025 : }
19026 0 : if (flags & NDR_OUT) {
19027 0 : ndr_print_struct(ndr, "out", "clusapi_ClusterMrr");
19028 0 : ndr->depth++;
19029 0 : ndr_print_ptr(ndr, "ppInfo", r->out.ppInfo);
19030 0 : ndr->depth++;
19031 0 : ndr->print(ndr, "%s: ARRAY(%d)", "ppInfo", (int)1);
19032 0 : ndr->depth++;
19033 0 : for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (1); cntr_ppInfo_1++) {
19034 0 : ndr_print_ptr(ndr, "ppInfo", r->out.ppInfo[cntr_ppInfo_1]);
19035 0 : ndr->depth++;
19036 0 : if (r->out.ppInfo[cntr_ppInfo_1]) {
19037 0 : ndr->print(ndr, "%s: ARRAY(%d)", "ppInfo", (int)1);
19038 0 : ndr->depth++;
19039 0 : for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (1); cntr_ppInfo_3++) {
19040 0 : ndr_print_CLUSTER_MRR_RESPONSE(ndr, "ppInfo", &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]);
19041 : }
19042 0 : ndr->depth--;
19043 : }
19044 0 : ndr->depth--;
19045 : }
19046 0 : ndr->depth--;
19047 0 : ndr->depth--;
19048 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
19049 0 : ndr->depth++;
19050 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
19051 0 : ndr->depth--;
19052 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19053 0 : ndr->depth--;
19054 : }
19055 0 : ndr->depth--;
19056 : }
19057 :
19058 0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateGroupEnum *r)
19059 : {
19060 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19061 0 : if (flags & NDR_IN) {
19062 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
19063 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pProperties));
19064 0 : if (r->in.pProperties) {
19065 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbProperties));
19066 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pProperties, r->in.cbProperties));
19067 : }
19068 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbProperties));
19069 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pRoProperties));
19070 0 : if (r->in.pRoProperties) {
19071 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbRoProperties));
19072 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pRoProperties, r->in.cbRoProperties));
19073 : }
19074 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbRoProperties));
19075 : }
19076 0 : if (flags & NDR_OUT) {
19077 0 : if (r->out.ppResultList == NULL) {
19078 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19079 : }
19080 0 : if (r->out.rpc_status == NULL) {
19081 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19082 : }
19083 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResultList));
19084 0 : if (*r->out.ppResultList) {
19085 0 : NDR_CHECK(ndr_push_GROUP_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultList));
19086 : }
19087 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
19088 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19089 : }
19090 0 : return NDR_ERR_SUCCESS;
19091 : }
19092 :
19093 0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateGroupEnum *r)
19094 : {
19095 : uint32_t _ptr_pProperties;
19096 0 : uint32_t size_pProperties_1 = 0;
19097 : uint32_t _ptr_pRoProperties;
19098 0 : uint32_t size_pRoProperties_1 = 0;
19099 : uint32_t _ptr_ppResultList;
19100 0 : TALLOC_CTX *_mem_save_pProperties_0 = NULL;
19101 0 : TALLOC_CTX *_mem_save_pRoProperties_0 = NULL;
19102 0 : TALLOC_CTX *_mem_save_ppResultList_0 = NULL;
19103 0 : TALLOC_CTX *_mem_save_ppResultList_1 = NULL;
19104 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
19105 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19106 0 : if (flags & NDR_IN) {
19107 0 : NDR_ZERO_STRUCT(r->out);
19108 :
19109 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
19110 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pProperties));
19111 0 : if (_ptr_pProperties) {
19112 0 : NDR_PULL_ALLOC(ndr, r->in.pProperties);
19113 : } else {
19114 0 : r->in.pProperties = NULL;
19115 : }
19116 0 : if (r->in.pProperties) {
19117 0 : _mem_save_pProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
19118 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pProperties, 0);
19119 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pProperties));
19120 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pProperties, &size_pProperties_1));
19121 0 : NDR_PULL_ALLOC_N(ndr, r->in.pProperties, size_pProperties_1);
19122 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pProperties, size_pProperties_1));
19123 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pProperties_0, 0);
19124 : }
19125 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbProperties));
19126 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pRoProperties));
19127 0 : if (_ptr_pRoProperties) {
19128 0 : NDR_PULL_ALLOC(ndr, r->in.pRoProperties);
19129 : } else {
19130 0 : r->in.pRoProperties = NULL;
19131 : }
19132 0 : if (r->in.pRoProperties) {
19133 0 : _mem_save_pRoProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
19134 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pRoProperties, 0);
19135 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pRoProperties));
19136 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pRoProperties, &size_pRoProperties_1));
19137 0 : NDR_PULL_ALLOC_N(ndr, r->in.pRoProperties, size_pRoProperties_1);
19138 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pRoProperties, size_pRoProperties_1));
19139 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRoProperties_0, 0);
19140 : }
19141 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbRoProperties));
19142 0 : NDR_PULL_ALLOC(ndr, r->out.ppResultList);
19143 0 : NDR_ZERO_STRUCTP(r->out.ppResultList);
19144 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
19145 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
19146 0 : if (r->in.pProperties) {
19147 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pProperties, r->in.cbProperties));
19148 : }
19149 0 : if (r->in.pRoProperties) {
19150 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pRoProperties, r->in.cbRoProperties));
19151 : }
19152 : }
19153 0 : if (flags & NDR_OUT) {
19154 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19155 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19156 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19157 0 : NDR_PULL_ALLOC(ndr, r->out.ppResultList);
19158 : }
19159 0 : _mem_save_ppResultList_0 = NDR_PULL_GET_MEM_CTX(ndr);
19160 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResultList, LIBNDR_FLAG_REF_ALLOC);
19161 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResultList));
19162 0 : if (_ptr_ppResultList) {
19163 0 : NDR_PULL_ALLOC(ndr, *r->out.ppResultList);
19164 : } else {
19165 0 : *r->out.ppResultList = NULL;
19166 : }
19167 0 : if (*r->out.ppResultList) {
19168 0 : _mem_save_ppResultList_1 = NDR_PULL_GET_MEM_CTX(ndr);
19169 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResultList, 0);
19170 0 : NDR_CHECK(ndr_pull_GROUP_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultList));
19171 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultList_1, 0);
19172 : }
19173 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultList_0, LIBNDR_FLAG_REF_ALLOC);
19174 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19175 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
19176 : }
19177 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
19178 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
19179 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
19180 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
19181 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19182 : }
19183 0 : return NDR_ERR_SUCCESS;
19184 : }
19185 :
19186 0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateGroupEnum *r)
19187 : {
19188 0 : ndr_print_struct(ndr, name, "clusapi_CreateGroupEnum");
19189 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19190 0 : ndr->depth++;
19191 0 : if (flags & NDR_SET_VALUES) {
19192 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19193 : }
19194 0 : if (flags & NDR_IN) {
19195 0 : ndr_print_struct(ndr, "in", "clusapi_CreateGroupEnum");
19196 0 : ndr->depth++;
19197 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
19198 0 : ndr_print_ptr(ndr, "pProperties", r->in.pProperties);
19199 0 : ndr->depth++;
19200 0 : if (r->in.pProperties) {
19201 0 : ndr_print_array_uint8(ndr, "pProperties", r->in.pProperties, r->in.cbProperties);
19202 : }
19203 0 : ndr->depth--;
19204 0 : ndr_print_uint32(ndr, "cbProperties", r->in.cbProperties);
19205 0 : ndr_print_ptr(ndr, "pRoProperties", r->in.pRoProperties);
19206 0 : ndr->depth++;
19207 0 : if (r->in.pRoProperties) {
19208 0 : ndr_print_array_uint8(ndr, "pRoProperties", r->in.pRoProperties, r->in.cbRoProperties);
19209 : }
19210 0 : ndr->depth--;
19211 0 : ndr_print_uint32(ndr, "cbRoProperties", r->in.cbRoProperties);
19212 0 : ndr->depth--;
19213 : }
19214 0 : if (flags & NDR_OUT) {
19215 0 : ndr_print_struct(ndr, "out", "clusapi_CreateGroupEnum");
19216 0 : ndr->depth++;
19217 0 : ndr_print_ptr(ndr, "ppResultList", r->out.ppResultList);
19218 0 : ndr->depth++;
19219 0 : ndr_print_ptr(ndr, "ppResultList", *r->out.ppResultList);
19220 0 : ndr->depth++;
19221 0 : if (*r->out.ppResultList) {
19222 0 : ndr_print_GROUP_ENUM_LIST(ndr, "ppResultList", *r->out.ppResultList);
19223 : }
19224 0 : ndr->depth--;
19225 0 : ndr->depth--;
19226 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
19227 0 : ndr->depth++;
19228 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
19229 0 : ndr->depth--;
19230 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19231 0 : ndr->depth--;
19232 : }
19233 0 : ndr->depth--;
19234 : }
19235 :
19236 0 : static enum ndr_err_code ndr_push_clusapi_CreateResourceEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateResourceEnum *r)
19237 : {
19238 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19239 0 : if (flags & NDR_IN) {
19240 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
19241 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pProperties));
19242 0 : if (r->in.pProperties) {
19243 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbProperties));
19244 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pProperties, r->in.cbProperties));
19245 : }
19246 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbProperties));
19247 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pRoProperties));
19248 0 : if (r->in.pRoProperties) {
19249 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbRoProperties));
19250 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pRoProperties, r->in.cbRoProperties));
19251 : }
19252 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbRoProperties));
19253 : }
19254 0 : if (flags & NDR_OUT) {
19255 0 : if (r->out.ppResultList == NULL) {
19256 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19257 : }
19258 0 : if (r->out.rpc_status == NULL) {
19259 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19260 : }
19261 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResultList));
19262 0 : if (*r->out.ppResultList) {
19263 0 : NDR_CHECK(ndr_push_RESOURCE_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultList));
19264 : }
19265 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
19266 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19267 : }
19268 0 : return NDR_ERR_SUCCESS;
19269 : }
19270 :
19271 0 : static enum ndr_err_code ndr_pull_clusapi_CreateResourceEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateResourceEnum *r)
19272 : {
19273 : uint32_t _ptr_pProperties;
19274 0 : uint32_t size_pProperties_1 = 0;
19275 : uint32_t _ptr_pRoProperties;
19276 0 : uint32_t size_pRoProperties_1 = 0;
19277 : uint32_t _ptr_ppResultList;
19278 0 : TALLOC_CTX *_mem_save_pProperties_0 = NULL;
19279 0 : TALLOC_CTX *_mem_save_pRoProperties_0 = NULL;
19280 0 : TALLOC_CTX *_mem_save_ppResultList_0 = NULL;
19281 0 : TALLOC_CTX *_mem_save_ppResultList_1 = NULL;
19282 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
19283 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19284 0 : if (flags & NDR_IN) {
19285 0 : NDR_ZERO_STRUCT(r->out);
19286 :
19287 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
19288 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pProperties));
19289 0 : if (_ptr_pProperties) {
19290 0 : NDR_PULL_ALLOC(ndr, r->in.pProperties);
19291 : } else {
19292 0 : r->in.pProperties = NULL;
19293 : }
19294 0 : if (r->in.pProperties) {
19295 0 : _mem_save_pProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
19296 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pProperties, 0);
19297 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pProperties));
19298 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pProperties, &size_pProperties_1));
19299 0 : NDR_PULL_ALLOC_N(ndr, r->in.pProperties, size_pProperties_1);
19300 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pProperties, size_pProperties_1));
19301 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pProperties_0, 0);
19302 : }
19303 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbProperties));
19304 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pRoProperties));
19305 0 : if (_ptr_pRoProperties) {
19306 0 : NDR_PULL_ALLOC(ndr, r->in.pRoProperties);
19307 : } else {
19308 0 : r->in.pRoProperties = NULL;
19309 : }
19310 0 : if (r->in.pRoProperties) {
19311 0 : _mem_save_pRoProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
19312 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.pRoProperties, 0);
19313 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pRoProperties));
19314 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pRoProperties, &size_pRoProperties_1));
19315 0 : NDR_PULL_ALLOC_N(ndr, r->in.pRoProperties, size_pRoProperties_1);
19316 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pRoProperties, size_pRoProperties_1));
19317 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRoProperties_0, 0);
19318 : }
19319 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbRoProperties));
19320 0 : NDR_PULL_ALLOC(ndr, r->out.ppResultList);
19321 0 : NDR_ZERO_STRUCTP(r->out.ppResultList);
19322 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
19323 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
19324 0 : if (r->in.pProperties) {
19325 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pProperties, r->in.cbProperties));
19326 : }
19327 0 : if (r->in.pRoProperties) {
19328 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pRoProperties, r->in.cbRoProperties));
19329 : }
19330 : }
19331 0 : if (flags & NDR_OUT) {
19332 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19333 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19334 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19335 0 : NDR_PULL_ALLOC(ndr, r->out.ppResultList);
19336 : }
19337 0 : _mem_save_ppResultList_0 = NDR_PULL_GET_MEM_CTX(ndr);
19338 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResultList, LIBNDR_FLAG_REF_ALLOC);
19339 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResultList));
19340 0 : if (_ptr_ppResultList) {
19341 0 : NDR_PULL_ALLOC(ndr, *r->out.ppResultList);
19342 : } else {
19343 0 : *r->out.ppResultList = NULL;
19344 : }
19345 0 : if (*r->out.ppResultList) {
19346 0 : _mem_save_ppResultList_1 = NDR_PULL_GET_MEM_CTX(ndr);
19347 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResultList, 0);
19348 0 : NDR_CHECK(ndr_pull_RESOURCE_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultList));
19349 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultList_1, 0);
19350 : }
19351 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultList_0, LIBNDR_FLAG_REF_ALLOC);
19352 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19353 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
19354 : }
19355 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
19356 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
19357 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
19358 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
19359 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19360 : }
19361 0 : return NDR_ERR_SUCCESS;
19362 : }
19363 :
19364 0 : _PUBLIC_ void ndr_print_clusapi_CreateResourceEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateResourceEnum *r)
19365 : {
19366 0 : ndr_print_struct(ndr, name, "clusapi_CreateResourceEnum");
19367 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19368 0 : ndr->depth++;
19369 0 : if (flags & NDR_SET_VALUES) {
19370 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19371 : }
19372 0 : if (flags & NDR_IN) {
19373 0 : ndr_print_struct(ndr, "in", "clusapi_CreateResourceEnum");
19374 0 : ndr->depth++;
19375 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
19376 0 : ndr_print_ptr(ndr, "pProperties", r->in.pProperties);
19377 0 : ndr->depth++;
19378 0 : if (r->in.pProperties) {
19379 0 : ndr_print_array_uint8(ndr, "pProperties", r->in.pProperties, r->in.cbProperties);
19380 : }
19381 0 : ndr->depth--;
19382 0 : ndr_print_uint32(ndr, "cbProperties", r->in.cbProperties);
19383 0 : ndr_print_ptr(ndr, "pRoProperties", r->in.pRoProperties);
19384 0 : ndr->depth++;
19385 0 : if (r->in.pRoProperties) {
19386 0 : ndr_print_array_uint8(ndr, "pRoProperties", r->in.pRoProperties, r->in.cbRoProperties);
19387 : }
19388 0 : ndr->depth--;
19389 0 : ndr_print_uint32(ndr, "cbRoProperties", r->in.cbRoProperties);
19390 0 : ndr->depth--;
19391 : }
19392 0 : if (flags & NDR_OUT) {
19393 0 : ndr_print_struct(ndr, "out", "clusapi_CreateResourceEnum");
19394 0 : ndr->depth++;
19395 0 : ndr_print_ptr(ndr, "ppResultList", r->out.ppResultList);
19396 0 : ndr->depth++;
19397 0 : ndr_print_ptr(ndr, "ppResultList", *r->out.ppResultList);
19398 0 : ndr->depth++;
19399 0 : if (*r->out.ppResultList) {
19400 0 : ndr_print_RESOURCE_ENUM_LIST(ndr, "ppResultList", *r->out.ppResultList);
19401 : }
19402 0 : ndr->depth--;
19403 0 : ndr->depth--;
19404 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
19405 0 : ndr->depth++;
19406 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
19407 0 : ndr->depth--;
19408 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19409 0 : ndr->depth--;
19410 : }
19411 0 : ndr->depth--;
19412 : }
19413 :
19414 0 : static enum ndr_err_code ndr_push_clusapi_ExecuteReadBatch(struct ndr_push *ndr, int flags, const struct clusapi_ExecuteReadBatch *r)
19415 : {
19416 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19417 0 : if (flags & NDR_IN) {
19418 0 : if (r->in.lpInData == NULL) {
19419 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19420 : }
19421 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
19422 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInData));
19423 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInData));
19424 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInData, r->in.cbInData));
19425 : }
19426 0 : if (flags & NDR_OUT) {
19427 0 : if (r->out.cbOutData == NULL) {
19428 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19429 : }
19430 0 : if (r->out.lpOutData == NULL) {
19431 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19432 : }
19433 0 : if (r->out.rpc_status == NULL) {
19434 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19435 : }
19436 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.cbOutData));
19437 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpOutData));
19438 0 : if (*r->out.lpOutData) {
19439 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.cbOutData));
19440 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, *r->out.lpOutData, *r->out.cbOutData));
19441 : }
19442 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
19443 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19444 : }
19445 0 : return NDR_ERR_SUCCESS;
19446 : }
19447 :
19448 0 : static enum ndr_err_code ndr_pull_clusapi_ExecuteReadBatch(struct ndr_pull *ndr, int flags, struct clusapi_ExecuteReadBatch *r)
19449 : {
19450 0 : uint32_t size_lpInData_1 = 0;
19451 : uint32_t _ptr_lpOutData;
19452 0 : uint32_t size_lpOutData_2 = 0;
19453 0 : TALLOC_CTX *_mem_save_cbOutData_0 = NULL;
19454 0 : TALLOC_CTX *_mem_save_lpOutData_0 = NULL;
19455 0 : TALLOC_CTX *_mem_save_lpOutData_1 = NULL;
19456 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
19457 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19458 0 : if (flags & NDR_IN) {
19459 0 : NDR_ZERO_STRUCT(r->out);
19460 :
19461 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
19462 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInData));
19463 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInData));
19464 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInData, &size_lpInData_1));
19465 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19466 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInData, size_lpInData_1);
19467 : }
19468 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInData, size_lpInData_1));
19469 0 : NDR_PULL_ALLOC(ndr, r->out.cbOutData);
19470 0 : NDR_ZERO_STRUCTP(r->out.cbOutData);
19471 0 : NDR_PULL_ALLOC(ndr, r->out.lpOutData);
19472 0 : NDR_ZERO_STRUCTP(r->out.lpOutData);
19473 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
19474 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
19475 0 : if (r->in.lpInData) {
19476 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInData, r->in.cbInData));
19477 : }
19478 : }
19479 0 : if (flags & NDR_OUT) {
19480 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19481 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19482 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19483 0 : NDR_PULL_ALLOC(ndr, r->out.cbOutData);
19484 : }
19485 0 : _mem_save_cbOutData_0 = NDR_PULL_GET_MEM_CTX(ndr);
19486 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.cbOutData, LIBNDR_FLAG_REF_ALLOC);
19487 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.cbOutData));
19488 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_cbOutData_0, LIBNDR_FLAG_REF_ALLOC);
19489 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19490 0 : NDR_PULL_ALLOC(ndr, r->out.lpOutData);
19491 : }
19492 0 : _mem_save_lpOutData_0 = NDR_PULL_GET_MEM_CTX(ndr);
19493 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpOutData, LIBNDR_FLAG_REF_ALLOC);
19494 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpOutData));
19495 0 : if (_ptr_lpOutData) {
19496 0 : NDR_PULL_ALLOC(ndr, *r->out.lpOutData);
19497 : } else {
19498 0 : *r->out.lpOutData = NULL;
19499 : }
19500 0 : if (*r->out.lpOutData) {
19501 0 : _mem_save_lpOutData_1 = NDR_PULL_GET_MEM_CTX(ndr);
19502 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpOutData, 0);
19503 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpOutData));
19504 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.lpOutData, &size_lpOutData_2));
19505 0 : NDR_PULL_ALLOC_N(ndr, *r->out.lpOutData, size_lpOutData_2);
19506 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, *r->out.lpOutData, size_lpOutData_2));
19507 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpOutData_1, 0);
19508 : }
19509 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpOutData_0, LIBNDR_FLAG_REF_ALLOC);
19510 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19511 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
19512 : }
19513 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
19514 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
19515 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
19516 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
19517 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19518 0 : if (*r->out.lpOutData) {
19519 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)r->out.lpOutData, *r->out.cbOutData));
19520 : }
19521 : }
19522 0 : return NDR_ERR_SUCCESS;
19523 : }
19524 :
19525 0 : _PUBLIC_ void ndr_print_clusapi_ExecuteReadBatch(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ExecuteReadBatch *r)
19526 : {
19527 0 : ndr_print_struct(ndr, name, "clusapi_ExecuteReadBatch");
19528 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19529 0 : ndr->depth++;
19530 0 : if (flags & NDR_SET_VALUES) {
19531 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19532 : }
19533 0 : if (flags & NDR_IN) {
19534 0 : ndr_print_struct(ndr, "in", "clusapi_ExecuteReadBatch");
19535 0 : ndr->depth++;
19536 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
19537 0 : ndr_print_uint32(ndr, "cbInData", r->in.cbInData);
19538 0 : ndr_print_ptr(ndr, "lpInData", r->in.lpInData);
19539 0 : ndr->depth++;
19540 0 : ndr_print_array_uint8(ndr, "lpInData", r->in.lpInData, r->in.cbInData);
19541 0 : ndr->depth--;
19542 0 : ndr->depth--;
19543 : }
19544 0 : if (flags & NDR_OUT) {
19545 0 : ndr_print_struct(ndr, "out", "clusapi_ExecuteReadBatch");
19546 0 : ndr->depth++;
19547 0 : ndr_print_ptr(ndr, "cbOutData", r->out.cbOutData);
19548 0 : ndr->depth++;
19549 0 : ndr_print_uint32(ndr, "cbOutData", *r->out.cbOutData);
19550 0 : ndr->depth--;
19551 0 : ndr_print_ptr(ndr, "lpOutData", r->out.lpOutData);
19552 0 : ndr->depth++;
19553 0 : ndr_print_ptr(ndr, "lpOutData", *r->out.lpOutData);
19554 0 : ndr->depth++;
19555 0 : if (*r->out.lpOutData) {
19556 0 : ndr_print_array_uint8(ndr, "lpOutData", *r->out.lpOutData, *r->out.cbOutData);
19557 : }
19558 0 : ndr->depth--;
19559 0 : ndr->depth--;
19560 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
19561 0 : ndr->depth++;
19562 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
19563 0 : ndr->depth--;
19564 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19565 0 : ndr->depth--;
19566 : }
19567 0 : ndr->depth--;
19568 : }
19569 :
19570 0 : static enum ndr_err_code ndr_push_clusapi_RestartResource(struct ndr_push *ndr, int flags, const struct clusapi_RestartResource *r)
19571 : {
19572 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19573 0 : if (flags & NDR_IN) {
19574 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
19575 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFlags));
19576 : }
19577 0 : if (flags & NDR_OUT) {
19578 0 : if (r->out.rpc_status == NULL) {
19579 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19580 : }
19581 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
19582 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19583 : }
19584 0 : return NDR_ERR_SUCCESS;
19585 : }
19586 :
19587 0 : static enum ndr_err_code ndr_pull_clusapi_RestartResource(struct ndr_pull *ndr, int flags, struct clusapi_RestartResource *r)
19588 : {
19589 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
19590 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19591 0 : if (flags & NDR_IN) {
19592 0 : NDR_ZERO_STRUCT(r->out);
19593 :
19594 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
19595 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFlags));
19596 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
19597 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
19598 : }
19599 0 : if (flags & NDR_OUT) {
19600 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19601 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19602 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19603 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
19604 : }
19605 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
19606 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
19607 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
19608 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
19609 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19610 : }
19611 0 : return NDR_ERR_SUCCESS;
19612 : }
19613 :
19614 0 : _PUBLIC_ void ndr_print_clusapi_RestartResource(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_RestartResource *r)
19615 : {
19616 0 : ndr_print_struct(ndr, name, "clusapi_RestartResource");
19617 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19618 0 : ndr->depth++;
19619 0 : if (flags & NDR_SET_VALUES) {
19620 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19621 : }
19622 0 : if (flags & NDR_IN) {
19623 0 : ndr_print_struct(ndr, "in", "clusapi_RestartResource");
19624 0 : ndr->depth++;
19625 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
19626 0 : ndr_print_uint32(ndr, "dwFlags", r->in.dwFlags);
19627 0 : ndr->depth--;
19628 : }
19629 0 : if (flags & NDR_OUT) {
19630 0 : ndr_print_struct(ndr, "out", "clusapi_RestartResource");
19631 0 : ndr->depth++;
19632 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
19633 0 : ndr->depth++;
19634 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
19635 0 : ndr->depth--;
19636 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19637 0 : ndr->depth--;
19638 : }
19639 0 : ndr->depth--;
19640 : }
19641 :
19642 0 : static enum ndr_err_code ndr_push_clusapi_GetNotifyAsync(struct ndr_push *ndr, int flags, const struct clusapi_GetNotifyAsync *r)
19643 : {
19644 : uint32_t cntr_Notifications_2;
19645 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19646 0 : if (flags & NDR_IN) {
19647 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
19648 : }
19649 0 : if (flags & NDR_OUT) {
19650 0 : if (r->out.Notifications == NULL) {
19651 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19652 : }
19653 0 : if (r->out.dwNumNotifications == NULL) {
19654 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
19655 : }
19656 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.Notifications));
19657 0 : if (*r->out.Notifications) {
19658 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.dwNumNotifications));
19659 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
19660 0 : NDR_CHECK(ndr_push_NOTIFICATION_DATA_ASYNC_RPC(ndr, NDR_SCALARS, &(*r->out.Notifications)[cntr_Notifications_2]));
19661 : }
19662 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
19663 0 : NDR_CHECK(ndr_push_NOTIFICATION_DATA_ASYNC_RPC(ndr, NDR_BUFFERS, &(*r->out.Notifications)[cntr_Notifications_2]));
19664 : }
19665 : }
19666 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwNumNotifications));
19667 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19668 : }
19669 0 : return NDR_ERR_SUCCESS;
19670 : }
19671 :
19672 0 : static enum ndr_err_code ndr_pull_clusapi_GetNotifyAsync(struct ndr_pull *ndr, int flags, struct clusapi_GetNotifyAsync *r)
19673 : {
19674 : uint32_t _ptr_Notifications;
19675 0 : uint32_t size_Notifications_2 = 0;
19676 : uint32_t cntr_Notifications_2;
19677 0 : TALLOC_CTX *_mem_save_Notifications_0 = NULL;
19678 0 : TALLOC_CTX *_mem_save_Notifications_1 = NULL;
19679 0 : TALLOC_CTX *_mem_save_Notifications_2 = NULL;
19680 0 : TALLOC_CTX *_mem_save_dwNumNotifications_0 = NULL;
19681 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19682 0 : if (flags & NDR_IN) {
19683 0 : NDR_ZERO_STRUCT(r->out);
19684 :
19685 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
19686 0 : NDR_PULL_ALLOC(ndr, r->out.Notifications);
19687 0 : NDR_ZERO_STRUCTP(r->out.Notifications);
19688 0 : NDR_PULL_ALLOC(ndr, r->out.dwNumNotifications);
19689 0 : NDR_ZERO_STRUCTP(r->out.dwNumNotifications);
19690 : }
19691 0 : if (flags & NDR_OUT) {
19692 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19693 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19694 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19695 0 : NDR_PULL_ALLOC(ndr, r->out.Notifications);
19696 : }
19697 0 : _mem_save_Notifications_0 = NDR_PULL_GET_MEM_CTX(ndr);
19698 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Notifications, LIBNDR_FLAG_REF_ALLOC);
19699 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Notifications));
19700 0 : if (_ptr_Notifications) {
19701 0 : NDR_PULL_ALLOC(ndr, *r->out.Notifications);
19702 : } else {
19703 0 : *r->out.Notifications = NULL;
19704 : }
19705 0 : if (*r->out.Notifications) {
19706 0 : _mem_save_Notifications_1 = NDR_PULL_GET_MEM_CTX(ndr);
19707 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.Notifications, 0);
19708 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.Notifications));
19709 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.Notifications, &size_Notifications_2));
19710 0 : NDR_PULL_ALLOC_N(ndr, *r->out.Notifications, size_Notifications_2);
19711 0 : _mem_save_Notifications_2 = NDR_PULL_GET_MEM_CTX(ndr);
19712 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.Notifications, 0);
19713 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
19714 0 : NDR_CHECK(ndr_pull_NOTIFICATION_DATA_ASYNC_RPC(ndr, NDR_SCALARS, &(*r->out.Notifications)[cntr_Notifications_2]));
19715 : }
19716 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
19717 0 : NDR_CHECK(ndr_pull_NOTIFICATION_DATA_ASYNC_RPC(ndr, NDR_BUFFERS, &(*r->out.Notifications)[cntr_Notifications_2]));
19718 : }
19719 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_2, 0);
19720 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_1, 0);
19721 : }
19722 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_0, LIBNDR_FLAG_REF_ALLOC);
19723 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
19724 0 : NDR_PULL_ALLOC(ndr, r->out.dwNumNotifications);
19725 : }
19726 0 : _mem_save_dwNumNotifications_0 = NDR_PULL_GET_MEM_CTX(ndr);
19727 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.dwNumNotifications, LIBNDR_FLAG_REF_ALLOC);
19728 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwNumNotifications));
19729 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwNumNotifications_0, LIBNDR_FLAG_REF_ALLOC);
19730 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19731 0 : if (*r->out.Notifications) {
19732 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)r->out.Notifications, *r->out.dwNumNotifications));
19733 : }
19734 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
19735 : }
19736 : }
19737 0 : return NDR_ERR_SUCCESS;
19738 : }
19739 :
19740 0 : _PUBLIC_ void ndr_print_clusapi_GetNotifyAsync(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GetNotifyAsync *r)
19741 : {
19742 : uint32_t cntr_Notifications_2;
19743 0 : ndr_print_struct(ndr, name, "clusapi_GetNotifyAsync");
19744 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19745 0 : ndr->depth++;
19746 0 : if (flags & NDR_SET_VALUES) {
19747 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19748 : }
19749 0 : if (flags & NDR_IN) {
19750 0 : ndr_print_struct(ndr, "in", "clusapi_GetNotifyAsync");
19751 0 : ndr->depth++;
19752 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
19753 0 : ndr->depth--;
19754 : }
19755 0 : if (flags & NDR_OUT) {
19756 0 : ndr_print_struct(ndr, "out", "clusapi_GetNotifyAsync");
19757 0 : ndr->depth++;
19758 0 : ndr_print_ptr(ndr, "Notifications", r->out.Notifications);
19759 0 : ndr->depth++;
19760 0 : ndr_print_ptr(ndr, "Notifications", *r->out.Notifications);
19761 0 : ndr->depth++;
19762 0 : if (*r->out.Notifications) {
19763 0 : ndr->print(ndr, "%s: ARRAY(%d)", "Notifications", (int)*r->out.dwNumNotifications);
19764 0 : ndr->depth++;
19765 0 : for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
19766 0 : ndr_print_NOTIFICATION_DATA_ASYNC_RPC(ndr, "Notifications", &(*r->out.Notifications)[cntr_Notifications_2]);
19767 : }
19768 0 : ndr->depth--;
19769 : }
19770 0 : ndr->depth--;
19771 0 : ndr->depth--;
19772 0 : ndr_print_ptr(ndr, "dwNumNotifications", r->out.dwNumNotifications);
19773 0 : ndr->depth++;
19774 0 : ndr_print_uint32(ndr, "dwNumNotifications", *r->out.dwNumNotifications);
19775 0 : ndr->depth--;
19776 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19777 0 : ndr->depth--;
19778 : }
19779 0 : ndr->depth--;
19780 : }
19781 :
19782 0 : static enum ndr_err_code ndr_push_Opnum148NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum148NotUsedOnWire *r)
19783 : {
19784 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19785 0 : if (flags & NDR_IN) {
19786 : }
19787 0 : if (flags & NDR_OUT) {
19788 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19789 : }
19790 0 : return NDR_ERR_SUCCESS;
19791 : }
19792 :
19793 0 : static enum ndr_err_code ndr_pull_Opnum148NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum148NotUsedOnWire *r)
19794 : {
19795 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19796 0 : if (flags & NDR_IN) {
19797 : }
19798 0 : if (flags & NDR_OUT) {
19799 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19800 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19801 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19802 : }
19803 0 : return NDR_ERR_SUCCESS;
19804 : }
19805 :
19806 0 : _PUBLIC_ void ndr_print_Opnum148NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum148NotUsedOnWire *r)
19807 : {
19808 0 : ndr_print_struct(ndr, name, "Opnum148NotUsedOnWire");
19809 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19810 0 : ndr->depth++;
19811 0 : if (flags & NDR_SET_VALUES) {
19812 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19813 : }
19814 0 : if (flags & NDR_IN) {
19815 0 : ndr_print_struct(ndr, "in", "Opnum148NotUsedOnWire");
19816 0 : ndr->depth++;
19817 0 : ndr->depth--;
19818 : }
19819 0 : if (flags & NDR_OUT) {
19820 0 : ndr_print_struct(ndr, "out", "Opnum148NotUsedOnWire");
19821 0 : ndr->depth++;
19822 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19823 0 : ndr->depth--;
19824 : }
19825 0 : ndr->depth--;
19826 : }
19827 :
19828 0 : static enum ndr_err_code ndr_push_Opnum149otUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum149otUsedOnWire *r)
19829 : {
19830 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19831 0 : if (flags & NDR_IN) {
19832 : }
19833 0 : if (flags & NDR_OUT) {
19834 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19835 : }
19836 0 : return NDR_ERR_SUCCESS;
19837 : }
19838 :
19839 0 : static enum ndr_err_code ndr_pull_Opnum149otUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum149otUsedOnWire *r)
19840 : {
19841 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19842 0 : if (flags & NDR_IN) {
19843 : }
19844 0 : if (flags & NDR_OUT) {
19845 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19846 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19847 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19848 : }
19849 0 : return NDR_ERR_SUCCESS;
19850 : }
19851 :
19852 0 : _PUBLIC_ void ndr_print_Opnum149otUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum149otUsedOnWire *r)
19853 : {
19854 0 : ndr_print_struct(ndr, name, "Opnum149otUsedOnWire");
19855 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19856 0 : ndr->depth++;
19857 0 : if (flags & NDR_SET_VALUES) {
19858 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19859 : }
19860 0 : if (flags & NDR_IN) {
19861 0 : ndr_print_struct(ndr, "in", "Opnum149otUsedOnWire");
19862 0 : ndr->depth++;
19863 0 : ndr->depth--;
19864 : }
19865 0 : if (flags & NDR_OUT) {
19866 0 : ndr_print_struct(ndr, "out", "Opnum149otUsedOnWire");
19867 0 : ndr->depth++;
19868 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19869 0 : ndr->depth--;
19870 : }
19871 0 : ndr->depth--;
19872 : }
19873 :
19874 0 : static enum ndr_err_code ndr_push_Opnum150NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum150NotUsedOnWire *r)
19875 : {
19876 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19877 0 : if (flags & NDR_IN) {
19878 : }
19879 0 : if (flags & NDR_OUT) {
19880 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19881 : }
19882 0 : return NDR_ERR_SUCCESS;
19883 : }
19884 :
19885 0 : static enum ndr_err_code ndr_pull_Opnum150NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum150NotUsedOnWire *r)
19886 : {
19887 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19888 0 : if (flags & NDR_IN) {
19889 : }
19890 0 : if (flags & NDR_OUT) {
19891 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19892 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19893 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19894 : }
19895 0 : return NDR_ERR_SUCCESS;
19896 : }
19897 :
19898 0 : _PUBLIC_ void ndr_print_Opnum150NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum150NotUsedOnWire *r)
19899 : {
19900 0 : ndr_print_struct(ndr, name, "Opnum150NotUsedOnWire");
19901 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19902 0 : ndr->depth++;
19903 0 : if (flags & NDR_SET_VALUES) {
19904 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19905 : }
19906 0 : if (flags & NDR_IN) {
19907 0 : ndr_print_struct(ndr, "in", "Opnum150NotUsedOnWire");
19908 0 : ndr->depth++;
19909 0 : ndr->depth--;
19910 : }
19911 0 : if (flags & NDR_OUT) {
19912 0 : ndr_print_struct(ndr, "out", "Opnum150NotUsedOnWire");
19913 0 : ndr->depth++;
19914 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19915 0 : ndr->depth--;
19916 : }
19917 0 : ndr->depth--;
19918 : }
19919 :
19920 0 : static enum ndr_err_code ndr_push_Opnum151NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum151NotUsedOnWire *r)
19921 : {
19922 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19923 0 : if (flags & NDR_IN) {
19924 : }
19925 0 : if (flags & NDR_OUT) {
19926 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19927 : }
19928 0 : return NDR_ERR_SUCCESS;
19929 : }
19930 :
19931 0 : static enum ndr_err_code ndr_pull_Opnum151NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum151NotUsedOnWire *r)
19932 : {
19933 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19934 0 : if (flags & NDR_IN) {
19935 : }
19936 0 : if (flags & NDR_OUT) {
19937 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19938 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19939 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19940 : }
19941 0 : return NDR_ERR_SUCCESS;
19942 : }
19943 :
19944 0 : _PUBLIC_ void ndr_print_Opnum151NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum151NotUsedOnWire *r)
19945 : {
19946 0 : ndr_print_struct(ndr, name, "Opnum151NotUsedOnWire");
19947 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19948 0 : ndr->depth++;
19949 0 : if (flags & NDR_SET_VALUES) {
19950 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19951 : }
19952 0 : if (flags & NDR_IN) {
19953 0 : ndr_print_struct(ndr, "in", "Opnum151NotUsedOnWire");
19954 0 : ndr->depth++;
19955 0 : ndr->depth--;
19956 : }
19957 0 : if (flags & NDR_OUT) {
19958 0 : ndr_print_struct(ndr, "out", "Opnum151NotUsedOnWire");
19959 0 : ndr->depth++;
19960 0 : ndr_print_WERROR(ndr, "result", r->out.result);
19961 0 : ndr->depth--;
19962 : }
19963 0 : ndr->depth--;
19964 : }
19965 :
19966 0 : static enum ndr_err_code ndr_push_Opnum152NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum152NotUsedOnWire *r)
19967 : {
19968 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
19969 0 : if (flags & NDR_IN) {
19970 : }
19971 0 : if (flags & NDR_OUT) {
19972 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
19973 : }
19974 0 : return NDR_ERR_SUCCESS;
19975 : }
19976 :
19977 0 : static enum ndr_err_code ndr_pull_Opnum152NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum152NotUsedOnWire *r)
19978 : {
19979 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
19980 0 : if (flags & NDR_IN) {
19981 : }
19982 0 : if (flags & NDR_OUT) {
19983 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
19984 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
19985 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
19986 : }
19987 0 : return NDR_ERR_SUCCESS;
19988 : }
19989 :
19990 0 : _PUBLIC_ void ndr_print_Opnum152NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum152NotUsedOnWire *r)
19991 : {
19992 0 : ndr_print_struct(ndr, name, "Opnum152NotUsedOnWire");
19993 0 : if (r == NULL) { ndr_print_null(ndr); return; }
19994 0 : ndr->depth++;
19995 0 : if (flags & NDR_SET_VALUES) {
19996 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
19997 : }
19998 0 : if (flags & NDR_IN) {
19999 0 : ndr_print_struct(ndr, "in", "Opnum152NotUsedOnWire");
20000 0 : ndr->depth++;
20001 0 : ndr->depth--;
20002 : }
20003 0 : if (flags & NDR_OUT) {
20004 0 : ndr_print_struct(ndr, "out", "Opnum152NotUsedOnWire");
20005 0 : ndr->depth++;
20006 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20007 0 : ndr->depth--;
20008 : }
20009 0 : ndr->depth--;
20010 : }
20011 :
20012 0 : static enum ndr_err_code ndr_push_Opnum153NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum153NotUsedOnWire *r)
20013 : {
20014 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20015 0 : if (flags & NDR_IN) {
20016 : }
20017 0 : if (flags & NDR_OUT) {
20018 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20019 : }
20020 0 : return NDR_ERR_SUCCESS;
20021 : }
20022 :
20023 0 : static enum ndr_err_code ndr_pull_Opnum153NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum153NotUsedOnWire *r)
20024 : {
20025 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20026 0 : if (flags & NDR_IN) {
20027 : }
20028 0 : if (flags & NDR_OUT) {
20029 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20030 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20031 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20032 : }
20033 0 : return NDR_ERR_SUCCESS;
20034 : }
20035 :
20036 0 : _PUBLIC_ void ndr_print_Opnum153NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum153NotUsedOnWire *r)
20037 : {
20038 0 : ndr_print_struct(ndr, name, "Opnum153NotUsedOnWire");
20039 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20040 0 : ndr->depth++;
20041 0 : if (flags & NDR_SET_VALUES) {
20042 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20043 : }
20044 0 : if (flags & NDR_IN) {
20045 0 : ndr_print_struct(ndr, "in", "Opnum153NotUsedOnWire");
20046 0 : ndr->depth++;
20047 0 : ndr->depth--;
20048 : }
20049 0 : if (flags & NDR_OUT) {
20050 0 : ndr_print_struct(ndr, "out", "Opnum153NotUsedOnWire");
20051 0 : ndr->depth++;
20052 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20053 0 : ndr->depth--;
20054 : }
20055 0 : ndr->depth--;
20056 : }
20057 :
20058 0 : static enum ndr_err_code ndr_push_Opnum154NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum154NotUsedOnWire *r)
20059 : {
20060 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20061 0 : if (flags & NDR_IN) {
20062 : }
20063 0 : if (flags & NDR_OUT) {
20064 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20065 : }
20066 0 : return NDR_ERR_SUCCESS;
20067 : }
20068 :
20069 0 : static enum ndr_err_code ndr_pull_Opnum154NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum154NotUsedOnWire *r)
20070 : {
20071 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20072 0 : if (flags & NDR_IN) {
20073 : }
20074 0 : if (flags & NDR_OUT) {
20075 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20076 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20077 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20078 : }
20079 0 : return NDR_ERR_SUCCESS;
20080 : }
20081 :
20082 0 : _PUBLIC_ void ndr_print_Opnum154NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum154NotUsedOnWire *r)
20083 : {
20084 0 : ndr_print_struct(ndr, name, "Opnum154NotUsedOnWire");
20085 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20086 0 : ndr->depth++;
20087 0 : if (flags & NDR_SET_VALUES) {
20088 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20089 : }
20090 0 : if (flags & NDR_IN) {
20091 0 : ndr_print_struct(ndr, "in", "Opnum154NotUsedOnWire");
20092 0 : ndr->depth++;
20093 0 : ndr->depth--;
20094 : }
20095 0 : if (flags & NDR_OUT) {
20096 0 : ndr_print_struct(ndr, "out", "Opnum154NotUsedOnWire");
20097 0 : ndr->depth++;
20098 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20099 0 : ndr->depth--;
20100 : }
20101 0 : ndr->depth--;
20102 : }
20103 :
20104 0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyResourceTypeV2(struct ndr_push *ndr, int flags, const struct clusapi_AddNotifyResourceTypeV2 *r)
20105 : {
20106 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20107 0 : if (flags & NDR_IN) {
20108 0 : if (r->in.resTypeName == NULL) {
20109 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20110 : }
20111 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
20112 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.filter));
20113 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
20114 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.resTypeName, CH_UTF16)));
20115 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
20116 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.resTypeName, CH_UTF16)));
20117 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.resTypeName, ndr_charset_length(r->in.resTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
20118 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwVersion));
20119 : }
20120 0 : if (flags & NDR_OUT) {
20121 0 : if (r->out.rpc_status == NULL) {
20122 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20123 : }
20124 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
20125 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20126 : }
20127 0 : return NDR_ERR_SUCCESS;
20128 : }
20129 :
20130 0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyResourceTypeV2(struct ndr_pull *ndr, int flags, struct clusapi_AddNotifyResourceTypeV2 *r)
20131 : {
20132 0 : uint32_t size_resTypeName_1 = 0;
20133 0 : uint32_t length_resTypeName_1 = 0;
20134 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
20135 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20136 0 : if (flags & NDR_IN) {
20137 0 : NDR_ZERO_STRUCT(r->out);
20138 :
20139 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
20140 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.filter));
20141 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
20142 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.resTypeName));
20143 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.resTypeName));
20144 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.resTypeName, &size_resTypeName_1));
20145 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.resTypeName, &length_resTypeName_1));
20146 0 : if (length_resTypeName_1 > size_resTypeName_1) {
20147 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_resTypeName_1, length_resTypeName_1);
20148 : }
20149 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_resTypeName_1, sizeof(uint16_t)));
20150 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.resTypeName, length_resTypeName_1, sizeof(uint16_t), CH_UTF16));
20151 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwVersion));
20152 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20153 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
20154 : }
20155 0 : if (flags & NDR_OUT) {
20156 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20157 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20158 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20159 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20160 : }
20161 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
20162 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
20163 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
20164 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
20165 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20166 : }
20167 0 : return NDR_ERR_SUCCESS;
20168 : }
20169 :
20170 0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyResourceTypeV2(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddNotifyResourceTypeV2 *r)
20171 : {
20172 0 : ndr_print_struct(ndr, name, "clusapi_AddNotifyResourceTypeV2");
20173 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20174 0 : ndr->depth++;
20175 0 : if (flags & NDR_SET_VALUES) {
20176 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20177 : }
20178 0 : if (flags & NDR_IN) {
20179 0 : ndr_print_struct(ndr, "in", "clusapi_AddNotifyResourceTypeV2");
20180 0 : ndr->depth++;
20181 0 : ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
20182 0 : ndr_print_hyper(ndr, "filter", r->in.filter);
20183 0 : ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
20184 0 : ndr_print_ptr(ndr, "resTypeName", r->in.resTypeName);
20185 0 : ndr->depth++;
20186 0 : ndr_print_string(ndr, "resTypeName", r->in.resTypeName);
20187 0 : ndr->depth--;
20188 0 : ndr_print_uint32(ndr, "dwVersion", r->in.dwVersion);
20189 0 : ndr->depth--;
20190 : }
20191 0 : if (flags & NDR_OUT) {
20192 0 : ndr_print_struct(ndr, "out", "clusapi_AddNotifyResourceTypeV2");
20193 0 : ndr->depth++;
20194 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
20195 0 : ndr->depth++;
20196 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
20197 0 : ndr->depth--;
20198 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20199 0 : ndr->depth--;
20200 : }
20201 0 : ndr->depth--;
20202 : }
20203 :
20204 0 : static enum ndr_err_code ndr_push_Opnum156NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum156NotUsedOnWire *r)
20205 : {
20206 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20207 0 : if (flags & NDR_IN) {
20208 : }
20209 0 : if (flags & NDR_OUT) {
20210 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20211 : }
20212 0 : return NDR_ERR_SUCCESS;
20213 : }
20214 :
20215 0 : static enum ndr_err_code ndr_pull_Opnum156NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum156NotUsedOnWire *r)
20216 : {
20217 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20218 0 : if (flags & NDR_IN) {
20219 : }
20220 0 : if (flags & NDR_OUT) {
20221 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20222 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20223 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20224 : }
20225 0 : return NDR_ERR_SUCCESS;
20226 : }
20227 :
20228 0 : _PUBLIC_ void ndr_print_Opnum156NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum156NotUsedOnWire *r)
20229 : {
20230 0 : ndr_print_struct(ndr, name, "Opnum156NotUsedOnWire");
20231 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20232 0 : ndr->depth++;
20233 0 : if (flags & NDR_SET_VALUES) {
20234 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20235 : }
20236 0 : if (flags & NDR_IN) {
20237 0 : ndr_print_struct(ndr, "in", "Opnum156NotUsedOnWire");
20238 0 : ndr->depth++;
20239 0 : ndr->depth--;
20240 : }
20241 0 : if (flags & NDR_OUT) {
20242 0 : ndr_print_struct(ndr, "out", "Opnum156NotUsedOnWire");
20243 0 : ndr->depth++;
20244 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20245 0 : ndr->depth--;
20246 : }
20247 0 : ndr->depth--;
20248 : }
20249 :
20250 0 : static enum ndr_err_code ndr_push_clusapi_ExecuteReadBatchEx(struct ndr_push *ndr, int flags, const struct clusapi_ExecuteReadBatchEx *r)
20251 : {
20252 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20253 0 : if (flags & NDR_IN) {
20254 0 : if (r->in.lpInData == NULL) {
20255 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20256 : }
20257 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
20258 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInData));
20259 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInData));
20260 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInData, r->in.cbInData));
20261 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
20262 : }
20263 0 : if (flags & NDR_OUT) {
20264 0 : if (r->out.cbOutData == NULL) {
20265 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20266 : }
20267 0 : if (r->out.lpOutData == NULL) {
20268 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20269 : }
20270 0 : if (r->out.rpc_status == NULL) {
20271 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20272 : }
20273 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.cbOutData));
20274 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpOutData));
20275 0 : if (*r->out.lpOutData) {
20276 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.cbOutData));
20277 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, *r->out.lpOutData, *r->out.cbOutData));
20278 : }
20279 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
20280 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20281 : }
20282 0 : return NDR_ERR_SUCCESS;
20283 : }
20284 :
20285 0 : static enum ndr_err_code ndr_pull_clusapi_ExecuteReadBatchEx(struct ndr_pull *ndr, int flags, struct clusapi_ExecuteReadBatchEx *r)
20286 : {
20287 0 : uint32_t size_lpInData_1 = 0;
20288 : uint32_t _ptr_lpOutData;
20289 0 : uint32_t size_lpOutData_2 = 0;
20290 0 : TALLOC_CTX *_mem_save_cbOutData_0 = NULL;
20291 0 : TALLOC_CTX *_mem_save_lpOutData_0 = NULL;
20292 0 : TALLOC_CTX *_mem_save_lpOutData_1 = NULL;
20293 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
20294 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20295 0 : if (flags & NDR_IN) {
20296 0 : NDR_ZERO_STRUCT(r->out);
20297 :
20298 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
20299 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInData));
20300 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInData));
20301 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInData, &size_lpInData_1));
20302 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20303 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInData, size_lpInData_1);
20304 : }
20305 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInData, size_lpInData_1));
20306 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
20307 0 : NDR_PULL_ALLOC(ndr, r->out.cbOutData);
20308 0 : NDR_ZERO_STRUCTP(r->out.cbOutData);
20309 0 : NDR_PULL_ALLOC(ndr, r->out.lpOutData);
20310 0 : NDR_ZERO_STRUCTP(r->out.lpOutData);
20311 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20312 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
20313 0 : if (r->in.lpInData) {
20314 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInData, r->in.cbInData));
20315 : }
20316 : }
20317 0 : if (flags & NDR_OUT) {
20318 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20319 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20320 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20321 0 : NDR_PULL_ALLOC(ndr, r->out.cbOutData);
20322 : }
20323 0 : _mem_save_cbOutData_0 = NDR_PULL_GET_MEM_CTX(ndr);
20324 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.cbOutData, LIBNDR_FLAG_REF_ALLOC);
20325 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.cbOutData));
20326 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_cbOutData_0, LIBNDR_FLAG_REF_ALLOC);
20327 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20328 0 : NDR_PULL_ALLOC(ndr, r->out.lpOutData);
20329 : }
20330 0 : _mem_save_lpOutData_0 = NDR_PULL_GET_MEM_CTX(ndr);
20331 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpOutData, LIBNDR_FLAG_REF_ALLOC);
20332 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpOutData));
20333 0 : if (_ptr_lpOutData) {
20334 0 : NDR_PULL_ALLOC(ndr, *r->out.lpOutData);
20335 : } else {
20336 0 : *r->out.lpOutData = NULL;
20337 : }
20338 0 : if (*r->out.lpOutData) {
20339 0 : _mem_save_lpOutData_1 = NDR_PULL_GET_MEM_CTX(ndr);
20340 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpOutData, 0);
20341 0 : NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpOutData));
20342 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.lpOutData, &size_lpOutData_2));
20343 0 : NDR_PULL_ALLOC_N(ndr, *r->out.lpOutData, size_lpOutData_2);
20344 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, *r->out.lpOutData, size_lpOutData_2));
20345 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpOutData_1, 0);
20346 : }
20347 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpOutData_0, LIBNDR_FLAG_REF_ALLOC);
20348 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20349 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20350 : }
20351 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
20352 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
20353 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
20354 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
20355 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20356 0 : if (*r->out.lpOutData) {
20357 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)r->out.lpOutData, *r->out.cbOutData));
20358 : }
20359 : }
20360 0 : return NDR_ERR_SUCCESS;
20361 : }
20362 :
20363 0 : _PUBLIC_ void ndr_print_clusapi_ExecuteReadBatchEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ExecuteReadBatchEx *r)
20364 : {
20365 0 : ndr_print_struct(ndr, name, "clusapi_ExecuteReadBatchEx");
20366 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20367 0 : ndr->depth++;
20368 0 : if (flags & NDR_SET_VALUES) {
20369 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20370 : }
20371 0 : if (flags & NDR_IN) {
20372 0 : ndr_print_struct(ndr, "in", "clusapi_ExecuteReadBatchEx");
20373 0 : ndr->depth++;
20374 0 : ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
20375 0 : ndr_print_uint32(ndr, "cbInData", r->in.cbInData);
20376 0 : ndr_print_ptr(ndr, "lpInData", r->in.lpInData);
20377 0 : ndr->depth++;
20378 0 : ndr_print_array_uint8(ndr, "lpInData", r->in.lpInData, r->in.cbInData);
20379 0 : ndr->depth--;
20380 0 : ndr_print_uint32(ndr, "flags", r->in.flags);
20381 0 : ndr->depth--;
20382 : }
20383 0 : if (flags & NDR_OUT) {
20384 0 : ndr_print_struct(ndr, "out", "clusapi_ExecuteReadBatchEx");
20385 0 : ndr->depth++;
20386 0 : ndr_print_ptr(ndr, "cbOutData", r->out.cbOutData);
20387 0 : ndr->depth++;
20388 0 : ndr_print_uint32(ndr, "cbOutData", *r->out.cbOutData);
20389 0 : ndr->depth--;
20390 0 : ndr_print_ptr(ndr, "lpOutData", r->out.lpOutData);
20391 0 : ndr->depth++;
20392 0 : ndr_print_ptr(ndr, "lpOutData", *r->out.lpOutData);
20393 0 : ndr->depth++;
20394 0 : if (*r->out.lpOutData) {
20395 0 : ndr_print_array_uint8(ndr, "lpOutData", *r->out.lpOutData, *r->out.cbOutData);
20396 : }
20397 0 : ndr->depth--;
20398 0 : ndr->depth--;
20399 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
20400 0 : ndr->depth++;
20401 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
20402 0 : ndr->depth--;
20403 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20404 0 : ndr->depth--;
20405 : }
20406 0 : ndr->depth--;
20407 : }
20408 :
20409 0 : static enum ndr_err_code ndr_push_Opnum158NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum158NotUsedOnWire *r)
20410 : {
20411 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20412 0 : if (flags & NDR_IN) {
20413 : }
20414 0 : if (flags & NDR_OUT) {
20415 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20416 : }
20417 0 : return NDR_ERR_SUCCESS;
20418 : }
20419 :
20420 0 : static enum ndr_err_code ndr_pull_Opnum158NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum158NotUsedOnWire *r)
20421 : {
20422 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20423 0 : if (flags & NDR_IN) {
20424 : }
20425 0 : if (flags & NDR_OUT) {
20426 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20427 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20428 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20429 : }
20430 0 : return NDR_ERR_SUCCESS;
20431 : }
20432 :
20433 0 : _PUBLIC_ void ndr_print_Opnum158NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum158NotUsedOnWire *r)
20434 : {
20435 0 : ndr_print_struct(ndr, name, "Opnum158NotUsedOnWire");
20436 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20437 0 : ndr->depth++;
20438 0 : if (flags & NDR_SET_VALUES) {
20439 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20440 : }
20441 0 : if (flags & NDR_IN) {
20442 0 : ndr_print_struct(ndr, "in", "Opnum158NotUsedOnWire");
20443 0 : ndr->depth++;
20444 0 : ndr->depth--;
20445 : }
20446 0 : if (flags & NDR_OUT) {
20447 0 : ndr_print_struct(ndr, "out", "Opnum158NotUsedOnWire");
20448 0 : ndr->depth++;
20449 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20450 0 : ndr->depth--;
20451 : }
20452 0 : ndr->depth--;
20453 : }
20454 :
20455 0 : static enum ndr_err_code ndr_push_Opnum159NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum159NotUsedOnWire *r)
20456 : {
20457 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20458 0 : if (flags & NDR_IN) {
20459 : }
20460 0 : if (flags & NDR_OUT) {
20461 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20462 : }
20463 0 : return NDR_ERR_SUCCESS;
20464 : }
20465 :
20466 0 : static enum ndr_err_code ndr_pull_Opnum159NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum159NotUsedOnWire *r)
20467 : {
20468 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20469 0 : if (flags & NDR_IN) {
20470 : }
20471 0 : if (flags & NDR_OUT) {
20472 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20473 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20474 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20475 : }
20476 0 : return NDR_ERR_SUCCESS;
20477 : }
20478 :
20479 0 : _PUBLIC_ void ndr_print_Opnum159NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum159NotUsedOnWire *r)
20480 : {
20481 0 : ndr_print_struct(ndr, name, "Opnum159NotUsedOnWire");
20482 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20483 0 : ndr->depth++;
20484 0 : if (flags & NDR_SET_VALUES) {
20485 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20486 : }
20487 0 : if (flags & NDR_IN) {
20488 0 : ndr_print_struct(ndr, "in", "Opnum159NotUsedOnWire");
20489 0 : ndr->depth++;
20490 0 : ndr->depth--;
20491 : }
20492 0 : if (flags & NDR_OUT) {
20493 0 : ndr_print_struct(ndr, "out", "Opnum159NotUsedOnWire");
20494 0 : ndr->depth++;
20495 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20496 0 : ndr->depth--;
20497 : }
20498 0 : ndr->depth--;
20499 : }
20500 :
20501 0 : static enum ndr_err_code ndr_push_Opnum160NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum160NotUsedOnWire *r)
20502 : {
20503 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20504 0 : if (flags & NDR_IN) {
20505 : }
20506 0 : if (flags & NDR_OUT) {
20507 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20508 : }
20509 0 : return NDR_ERR_SUCCESS;
20510 : }
20511 :
20512 0 : static enum ndr_err_code ndr_pull_Opnum160NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum160NotUsedOnWire *r)
20513 : {
20514 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20515 0 : if (flags & NDR_IN) {
20516 : }
20517 0 : if (flags & NDR_OUT) {
20518 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20519 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20520 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20521 : }
20522 0 : return NDR_ERR_SUCCESS;
20523 : }
20524 :
20525 0 : _PUBLIC_ void ndr_print_Opnum160NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum160NotUsedOnWire *r)
20526 : {
20527 0 : ndr_print_struct(ndr, name, "Opnum160NotUsedOnWire");
20528 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20529 0 : ndr->depth++;
20530 0 : if (flags & NDR_SET_VALUES) {
20531 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20532 : }
20533 0 : if (flags & NDR_IN) {
20534 0 : ndr_print_struct(ndr, "in", "Opnum160NotUsedOnWire");
20535 0 : ndr->depth++;
20536 0 : ndr->depth--;
20537 : }
20538 0 : if (flags & NDR_OUT) {
20539 0 : ndr_print_struct(ndr, "out", "Opnum160NotUsedOnWire");
20540 0 : ndr->depth++;
20541 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20542 0 : ndr->depth--;
20543 : }
20544 0 : ndr->depth--;
20545 : }
20546 :
20547 0 : static enum ndr_err_code ndr_push_Opnum161NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum161NotUsedOnWire *r)
20548 : {
20549 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20550 0 : if (flags & NDR_IN) {
20551 : }
20552 0 : if (flags & NDR_OUT) {
20553 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20554 : }
20555 0 : return NDR_ERR_SUCCESS;
20556 : }
20557 :
20558 0 : static enum ndr_err_code ndr_pull_Opnum161NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum161NotUsedOnWire *r)
20559 : {
20560 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20561 0 : if (flags & NDR_IN) {
20562 : }
20563 0 : if (flags & NDR_OUT) {
20564 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20565 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20566 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20567 : }
20568 0 : return NDR_ERR_SUCCESS;
20569 : }
20570 :
20571 0 : _PUBLIC_ void ndr_print_Opnum161NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum161NotUsedOnWire *r)
20572 : {
20573 0 : ndr_print_struct(ndr, name, "Opnum161NotUsedOnWire");
20574 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20575 0 : ndr->depth++;
20576 0 : if (flags & NDR_SET_VALUES) {
20577 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20578 : }
20579 0 : if (flags & NDR_IN) {
20580 0 : ndr_print_struct(ndr, "in", "Opnum161NotUsedOnWire");
20581 0 : ndr->depth++;
20582 0 : ndr->depth--;
20583 : }
20584 0 : if (flags & NDR_OUT) {
20585 0 : ndr_print_struct(ndr, "out", "Opnum161NotUsedOnWire");
20586 0 : ndr->depth++;
20587 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20588 0 : ndr->depth--;
20589 : }
20590 0 : ndr->depth--;
20591 : }
20592 :
20593 0 : static enum ndr_err_code ndr_push_Opnum162NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum162NotUsedOnWire *r)
20594 : {
20595 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20596 0 : if (flags & NDR_IN) {
20597 : }
20598 0 : if (flags & NDR_OUT) {
20599 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20600 : }
20601 0 : return NDR_ERR_SUCCESS;
20602 : }
20603 :
20604 0 : static enum ndr_err_code ndr_pull_Opnum162NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum162NotUsedOnWire *r)
20605 : {
20606 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20607 0 : if (flags & NDR_IN) {
20608 : }
20609 0 : if (flags & NDR_OUT) {
20610 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20611 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20612 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20613 : }
20614 0 : return NDR_ERR_SUCCESS;
20615 : }
20616 :
20617 0 : _PUBLIC_ void ndr_print_Opnum162NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum162NotUsedOnWire *r)
20618 : {
20619 0 : ndr_print_struct(ndr, name, "Opnum162NotUsedOnWire");
20620 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20621 0 : ndr->depth++;
20622 0 : if (flags & NDR_SET_VALUES) {
20623 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20624 : }
20625 0 : if (flags & NDR_IN) {
20626 0 : ndr_print_struct(ndr, "in", "Opnum162NotUsedOnWire");
20627 0 : ndr->depth++;
20628 0 : ndr->depth--;
20629 : }
20630 0 : if (flags & NDR_OUT) {
20631 0 : ndr_print_struct(ndr, "out", "Opnum162NotUsedOnWire");
20632 0 : ndr->depth++;
20633 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20634 0 : ndr->depth--;
20635 : }
20636 0 : ndr->depth--;
20637 : }
20638 :
20639 0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupSet(struct ndr_push *ndr, int flags, const struct clusapi_CreateGroupSet *r)
20640 : {
20641 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20642 0 : if (flags & NDR_IN) {
20643 0 : if (r->in.lpszGroupSetName == NULL) {
20644 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20645 : }
20646 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16)));
20647 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
20648 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16)));
20649 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupSetName, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
20650 : }
20651 0 : if (flags & NDR_OUT) {
20652 0 : if (r->out.Status == NULL) {
20653 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20654 : }
20655 0 : if (r->out.rpc_status == NULL) {
20656 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20657 : }
20658 0 : if (r->out.hGroupSet == NULL) {
20659 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20660 : }
20661 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
20662 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
20663 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroupSet));
20664 : }
20665 0 : return NDR_ERR_SUCCESS;
20666 : }
20667 :
20668 0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupSet(struct ndr_pull *ndr, int flags, struct clusapi_CreateGroupSet *r)
20669 : {
20670 0 : uint32_t size_lpszGroupSetName_1 = 0;
20671 0 : uint32_t length_lpszGroupSetName_1 = 0;
20672 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
20673 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
20674 0 : TALLOC_CTX *_mem_save_hGroupSet_0 = NULL;
20675 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20676 0 : if (flags & NDR_IN) {
20677 0 : NDR_ZERO_STRUCT(r->out);
20678 :
20679 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupSetName));
20680 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupSetName));
20681 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupSetName, &size_lpszGroupSetName_1));
20682 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupSetName, &length_lpszGroupSetName_1));
20683 0 : if (length_lpszGroupSetName_1 > size_lpszGroupSetName_1) {
20684 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszGroupSetName_1, length_lpszGroupSetName_1);
20685 : }
20686 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupSetName_1, sizeof(uint16_t)));
20687 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupSetName, length_lpszGroupSetName_1, sizeof(uint16_t), CH_UTF16));
20688 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
20689 0 : NDR_ZERO_STRUCTP(r->out.Status);
20690 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20691 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
20692 0 : NDR_PULL_ALLOC(ndr, r->out.hGroupSet);
20693 0 : NDR_ZERO_STRUCTP(r->out.hGroupSet);
20694 : }
20695 0 : if (flags & NDR_OUT) {
20696 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20697 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20698 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20699 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
20700 : }
20701 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
20702 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
20703 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
20704 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
20705 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20706 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20707 : }
20708 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
20709 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
20710 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
20711 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
20712 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20713 0 : NDR_PULL_ALLOC(ndr, r->out.hGroupSet);
20714 : }
20715 0 : _mem_save_hGroupSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
20716 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroupSet, LIBNDR_FLAG_REF_ALLOC);
20717 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroupSet));
20718 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroupSet_0, LIBNDR_FLAG_REF_ALLOC);
20719 : }
20720 0 : return NDR_ERR_SUCCESS;
20721 : }
20722 :
20723 0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupSet(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateGroupSet *r)
20724 : {
20725 0 : ndr_print_struct(ndr, name, "clusapi_CreateGroupSet");
20726 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20727 0 : ndr->depth++;
20728 0 : if (flags & NDR_SET_VALUES) {
20729 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20730 : }
20731 0 : if (flags & NDR_IN) {
20732 0 : ndr_print_struct(ndr, "in", "clusapi_CreateGroupSet");
20733 0 : ndr->depth++;
20734 0 : ndr_print_ptr(ndr, "lpszGroupSetName", r->in.lpszGroupSetName);
20735 0 : ndr->depth++;
20736 0 : ndr_print_string(ndr, "lpszGroupSetName", r->in.lpszGroupSetName);
20737 0 : ndr->depth--;
20738 0 : ndr->depth--;
20739 : }
20740 0 : if (flags & NDR_OUT) {
20741 0 : ndr_print_struct(ndr, "out", "clusapi_CreateGroupSet");
20742 0 : ndr->depth++;
20743 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
20744 0 : ndr->depth++;
20745 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
20746 0 : ndr->depth--;
20747 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
20748 0 : ndr->depth++;
20749 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
20750 0 : ndr->depth--;
20751 0 : ndr_print_ptr(ndr, "hGroupSet", r->out.hGroupSet);
20752 0 : ndr->depth++;
20753 0 : ndr_print_policy_handle(ndr, "hGroupSet", r->out.hGroupSet);
20754 0 : ndr->depth--;
20755 0 : ndr->depth--;
20756 : }
20757 0 : ndr->depth--;
20758 : }
20759 :
20760 0 : static enum ndr_err_code ndr_push_clusapi_OpenGroupSet(struct ndr_push *ndr, int flags, const struct clusapi_OpenGroupSet *r)
20761 : {
20762 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20763 0 : if (flags & NDR_IN) {
20764 0 : if (r->in.lpszGroupSetName == NULL) {
20765 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20766 : }
20767 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16)));
20768 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
20769 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16)));
20770 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupSetName, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
20771 : }
20772 0 : if (flags & NDR_OUT) {
20773 0 : if (r->out.Status == NULL) {
20774 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20775 : }
20776 0 : if (r->out.rpc_status == NULL) {
20777 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20778 : }
20779 0 : if (r->out.hGroupSet == NULL) {
20780 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20781 : }
20782 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
20783 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
20784 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroupSet));
20785 : }
20786 0 : return NDR_ERR_SUCCESS;
20787 : }
20788 :
20789 0 : static enum ndr_err_code ndr_pull_clusapi_OpenGroupSet(struct ndr_pull *ndr, int flags, struct clusapi_OpenGroupSet *r)
20790 : {
20791 0 : uint32_t size_lpszGroupSetName_1 = 0;
20792 0 : uint32_t length_lpszGroupSetName_1 = 0;
20793 0 : TALLOC_CTX *_mem_save_Status_0 = NULL;
20794 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
20795 0 : TALLOC_CTX *_mem_save_hGroupSet_0 = NULL;
20796 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20797 0 : if (flags & NDR_IN) {
20798 0 : NDR_ZERO_STRUCT(r->out);
20799 :
20800 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupSetName));
20801 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupSetName));
20802 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupSetName, &size_lpszGroupSetName_1));
20803 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupSetName, &length_lpszGroupSetName_1));
20804 0 : if (length_lpszGroupSetName_1 > size_lpszGroupSetName_1) {
20805 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszGroupSetName_1, length_lpszGroupSetName_1);
20806 : }
20807 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupSetName_1, sizeof(uint16_t)));
20808 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupSetName, length_lpszGroupSetName_1, sizeof(uint16_t), CH_UTF16));
20809 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
20810 0 : NDR_ZERO_STRUCTP(r->out.Status);
20811 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20812 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
20813 0 : NDR_PULL_ALLOC(ndr, r->out.hGroupSet);
20814 0 : NDR_ZERO_STRUCTP(r->out.hGroupSet);
20815 : }
20816 0 : if (flags & NDR_OUT) {
20817 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20818 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20819 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20820 0 : NDR_PULL_ALLOC(ndr, r->out.Status);
20821 : }
20822 0 : _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
20823 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
20824 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
20825 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
20826 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20827 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20828 : }
20829 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
20830 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
20831 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
20832 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
20833 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20834 0 : NDR_PULL_ALLOC(ndr, r->out.hGroupSet);
20835 : }
20836 0 : _mem_save_hGroupSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
20837 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroupSet, LIBNDR_FLAG_REF_ALLOC);
20838 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroupSet));
20839 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroupSet_0, LIBNDR_FLAG_REF_ALLOC);
20840 : }
20841 0 : return NDR_ERR_SUCCESS;
20842 : }
20843 :
20844 0 : _PUBLIC_ void ndr_print_clusapi_OpenGroupSet(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_OpenGroupSet *r)
20845 : {
20846 0 : ndr_print_struct(ndr, name, "clusapi_OpenGroupSet");
20847 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20848 0 : ndr->depth++;
20849 0 : if (flags & NDR_SET_VALUES) {
20850 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20851 : }
20852 0 : if (flags & NDR_IN) {
20853 0 : ndr_print_struct(ndr, "in", "clusapi_OpenGroupSet");
20854 0 : ndr->depth++;
20855 0 : ndr_print_ptr(ndr, "lpszGroupSetName", r->in.lpszGroupSetName);
20856 0 : ndr->depth++;
20857 0 : ndr_print_string(ndr, "lpszGroupSetName", r->in.lpszGroupSetName);
20858 0 : ndr->depth--;
20859 0 : ndr->depth--;
20860 : }
20861 0 : if (flags & NDR_OUT) {
20862 0 : ndr_print_struct(ndr, "out", "clusapi_OpenGroupSet");
20863 0 : ndr->depth++;
20864 0 : ndr_print_ptr(ndr, "Status", r->out.Status);
20865 0 : ndr->depth++;
20866 0 : ndr_print_WERROR(ndr, "Status", *r->out.Status);
20867 0 : ndr->depth--;
20868 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
20869 0 : ndr->depth++;
20870 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
20871 0 : ndr->depth--;
20872 0 : ndr_print_ptr(ndr, "hGroupSet", r->out.hGroupSet);
20873 0 : ndr->depth++;
20874 0 : ndr_print_policy_handle(ndr, "hGroupSet", r->out.hGroupSet);
20875 0 : ndr->depth--;
20876 0 : ndr->depth--;
20877 : }
20878 0 : ndr->depth--;
20879 : }
20880 :
20881 0 : static enum ndr_err_code ndr_push_clusapi_CloseGroupSet(struct ndr_push *ndr, int flags, const struct clusapi_CloseGroupSet *r)
20882 : {
20883 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20884 0 : if (flags & NDR_IN) {
20885 0 : if (r->in.GroupSet == NULL) {
20886 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20887 : }
20888 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.GroupSet));
20889 : }
20890 0 : if (flags & NDR_OUT) {
20891 0 : if (r->out.GroupSet == NULL) {
20892 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20893 : }
20894 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.GroupSet));
20895 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20896 : }
20897 0 : return NDR_ERR_SUCCESS;
20898 : }
20899 :
20900 0 : static enum ndr_err_code ndr_pull_clusapi_CloseGroupSet(struct ndr_pull *ndr, int flags, struct clusapi_CloseGroupSet *r)
20901 : {
20902 0 : TALLOC_CTX *_mem_save_GroupSet_0 = NULL;
20903 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20904 0 : if (flags & NDR_IN) {
20905 0 : NDR_ZERO_STRUCT(r->out);
20906 :
20907 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20908 0 : NDR_PULL_ALLOC(ndr, r->in.GroupSet);
20909 : }
20910 0 : _mem_save_GroupSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
20911 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.GroupSet, LIBNDR_FLAG_REF_ALLOC);
20912 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.GroupSet));
20913 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_GroupSet_0, LIBNDR_FLAG_REF_ALLOC);
20914 0 : NDR_PULL_ALLOC(ndr, r->out.GroupSet);
20915 0 : *r->out.GroupSet = *r->in.GroupSet;
20916 : }
20917 0 : if (flags & NDR_OUT) {
20918 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20919 : if (r->in.GroupSet == NULL) {
20920 : NDR_PULL_ALLOC(ndr, r->in.GroupSet);
20921 : NDR_ZERO_STRUCTP(r->in.GroupSet);
20922 : }
20923 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20924 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20925 0 : NDR_PULL_ALLOC(ndr, r->out.GroupSet);
20926 : }
20927 0 : _mem_save_GroupSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
20928 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.GroupSet, LIBNDR_FLAG_REF_ALLOC);
20929 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.GroupSet));
20930 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_GroupSet_0, LIBNDR_FLAG_REF_ALLOC);
20931 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
20932 : }
20933 0 : return NDR_ERR_SUCCESS;
20934 : }
20935 :
20936 0 : _PUBLIC_ void ndr_print_clusapi_CloseGroupSet(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CloseGroupSet *r)
20937 : {
20938 0 : ndr_print_struct(ndr, name, "clusapi_CloseGroupSet");
20939 0 : if (r == NULL) { ndr_print_null(ndr); return; }
20940 0 : ndr->depth++;
20941 0 : if (flags & NDR_SET_VALUES) {
20942 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
20943 : }
20944 0 : if (flags & NDR_IN) {
20945 0 : ndr_print_struct(ndr, "in", "clusapi_CloseGroupSet");
20946 0 : ndr->depth++;
20947 0 : ndr_print_ptr(ndr, "GroupSet", r->in.GroupSet);
20948 0 : ndr->depth++;
20949 0 : ndr_print_policy_handle(ndr, "GroupSet", r->in.GroupSet);
20950 0 : ndr->depth--;
20951 0 : ndr->depth--;
20952 : }
20953 0 : if (flags & NDR_OUT) {
20954 0 : ndr_print_struct(ndr, "out", "clusapi_CloseGroupSet");
20955 0 : ndr->depth++;
20956 0 : ndr_print_ptr(ndr, "GroupSet", r->out.GroupSet);
20957 0 : ndr->depth++;
20958 0 : ndr_print_policy_handle(ndr, "GroupSet", r->out.GroupSet);
20959 0 : ndr->depth--;
20960 0 : ndr_print_WERROR(ndr, "result", r->out.result);
20961 0 : ndr->depth--;
20962 : }
20963 0 : ndr->depth--;
20964 : }
20965 :
20966 0 : static enum ndr_err_code ndr_push_clusapi_DeleteGroupSet(struct ndr_push *ndr, int flags, const struct clusapi_DeleteGroupSet *r)
20967 : {
20968 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
20969 0 : if (flags & NDR_IN) {
20970 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
20971 : }
20972 0 : if (flags & NDR_OUT) {
20973 0 : if (r->out.rpc_status == NULL) {
20974 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
20975 : }
20976 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
20977 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
20978 : }
20979 0 : return NDR_ERR_SUCCESS;
20980 : }
20981 :
20982 0 : static enum ndr_err_code ndr_pull_clusapi_DeleteGroupSet(struct ndr_pull *ndr, int flags, struct clusapi_DeleteGroupSet *r)
20983 : {
20984 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
20985 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20986 0 : if (flags & NDR_IN) {
20987 0 : NDR_ZERO_STRUCT(r->out);
20988 :
20989 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
20990 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20991 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
20992 : }
20993 0 : if (flags & NDR_OUT) {
20994 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
20995 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
20996 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
20997 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
20998 : }
20999 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21000 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21001 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21002 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21003 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21004 : }
21005 0 : return NDR_ERR_SUCCESS;
21006 : }
21007 :
21008 0 : _PUBLIC_ void ndr_print_clusapi_DeleteGroupSet(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_DeleteGroupSet *r)
21009 : {
21010 0 : ndr_print_struct(ndr, name, "clusapi_DeleteGroupSet");
21011 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21012 0 : ndr->depth++;
21013 0 : if (flags & NDR_SET_VALUES) {
21014 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21015 : }
21016 0 : if (flags & NDR_IN) {
21017 0 : ndr_print_struct(ndr, "in", "clusapi_DeleteGroupSet");
21018 0 : ndr->depth++;
21019 0 : ndr_print_policy_handle(ndr, "GroupSet", &r->in.GroupSet);
21020 0 : ndr->depth--;
21021 : }
21022 0 : if (flags & NDR_OUT) {
21023 0 : ndr_print_struct(ndr, "out", "clusapi_DeleteGroupSet");
21024 0 : ndr->depth++;
21025 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21026 0 : ndr->depth++;
21027 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21028 0 : ndr->depth--;
21029 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21030 0 : ndr->depth--;
21031 : }
21032 0 : ndr->depth--;
21033 : }
21034 :
21035 0 : static enum ndr_err_code ndr_push_clusapi_AddGroupToGroupSet(struct ndr_push *ndr, int flags, const struct clusapi_AddGroupToGroupSet *r)
21036 : {
21037 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21038 0 : if (flags & NDR_IN) {
21039 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
21040 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
21041 : }
21042 0 : if (flags & NDR_OUT) {
21043 0 : if (r->out.rpc_status == NULL) {
21044 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21045 : }
21046 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21047 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21048 : }
21049 0 : return NDR_ERR_SUCCESS;
21050 : }
21051 :
21052 0 : static enum ndr_err_code ndr_pull_clusapi_AddGroupToGroupSet(struct ndr_pull *ndr, int flags, struct clusapi_AddGroupToGroupSet *r)
21053 : {
21054 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21055 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21056 0 : if (flags & NDR_IN) {
21057 0 : NDR_ZERO_STRUCT(r->out);
21058 :
21059 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
21060 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
21061 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21062 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
21063 : }
21064 0 : if (flags & NDR_OUT) {
21065 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21066 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21067 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21068 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21069 : }
21070 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21071 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21072 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21073 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21074 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21075 : }
21076 0 : return NDR_ERR_SUCCESS;
21077 : }
21078 :
21079 0 : _PUBLIC_ void ndr_print_clusapi_AddGroupToGroupSet(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddGroupToGroupSet *r)
21080 : {
21081 0 : ndr_print_struct(ndr, name, "clusapi_AddGroupToGroupSet");
21082 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21083 0 : ndr->depth++;
21084 0 : if (flags & NDR_SET_VALUES) {
21085 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21086 : }
21087 0 : if (flags & NDR_IN) {
21088 0 : ndr_print_struct(ndr, "in", "clusapi_AddGroupToGroupSet");
21089 0 : ndr->depth++;
21090 0 : ndr_print_policy_handle(ndr, "GroupSet", &r->in.GroupSet);
21091 0 : ndr_print_policy_handle(ndr, "Group", &r->in.Group);
21092 0 : ndr->depth--;
21093 : }
21094 0 : if (flags & NDR_OUT) {
21095 0 : ndr_print_struct(ndr, "out", "clusapi_AddGroupToGroupSet");
21096 0 : ndr->depth++;
21097 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21098 0 : ndr->depth++;
21099 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21100 0 : ndr->depth--;
21101 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21102 0 : ndr->depth--;
21103 : }
21104 0 : ndr->depth--;
21105 : }
21106 :
21107 0 : static enum ndr_err_code ndr_push_clusapi_RemoveGroupFromGroupSet(struct ndr_push *ndr, int flags, const struct clusapi_RemoveGroupFromGroupSet *r)
21108 : {
21109 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21110 0 : if (flags & NDR_IN) {
21111 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
21112 : }
21113 0 : if (flags & NDR_OUT) {
21114 0 : if (r->out.rpc_status == NULL) {
21115 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21116 : }
21117 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21118 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21119 : }
21120 0 : return NDR_ERR_SUCCESS;
21121 : }
21122 :
21123 0 : static enum ndr_err_code ndr_pull_clusapi_RemoveGroupFromGroupSet(struct ndr_pull *ndr, int flags, struct clusapi_RemoveGroupFromGroupSet *r)
21124 : {
21125 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21126 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21127 0 : if (flags & NDR_IN) {
21128 0 : NDR_ZERO_STRUCT(r->out);
21129 :
21130 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
21131 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21132 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
21133 : }
21134 0 : if (flags & NDR_OUT) {
21135 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21136 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21137 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21138 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21139 : }
21140 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21141 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21142 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21143 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21144 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21145 : }
21146 0 : return NDR_ERR_SUCCESS;
21147 : }
21148 :
21149 0 : _PUBLIC_ void ndr_print_clusapi_RemoveGroupFromGroupSet(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_RemoveGroupFromGroupSet *r)
21150 : {
21151 0 : ndr_print_struct(ndr, name, "clusapi_RemoveGroupFromGroupSet");
21152 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21153 0 : ndr->depth++;
21154 0 : if (flags & NDR_SET_VALUES) {
21155 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21156 : }
21157 0 : if (flags & NDR_IN) {
21158 0 : ndr_print_struct(ndr, "in", "clusapi_RemoveGroupFromGroupSet");
21159 0 : ndr->depth++;
21160 0 : ndr_print_policy_handle(ndr, "Group", &r->in.Group);
21161 0 : ndr->depth--;
21162 : }
21163 0 : if (flags & NDR_OUT) {
21164 0 : ndr_print_struct(ndr, "out", "clusapi_RemoveGroupFromGroupSet");
21165 0 : ndr->depth++;
21166 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21167 0 : ndr->depth++;
21168 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21169 0 : ndr->depth--;
21170 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21171 0 : ndr->depth--;
21172 : }
21173 0 : ndr->depth--;
21174 : }
21175 :
21176 0 : static enum ndr_err_code ndr_push_clusapi_MoveGroupToGroupSet(struct ndr_push *ndr, int flags, const struct clusapi_MoveGroupToGroupSet *r)
21177 : {
21178 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21179 0 : if (flags & NDR_IN) {
21180 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
21181 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
21182 : }
21183 0 : if (flags & NDR_OUT) {
21184 0 : if (r->out.rpc_status == NULL) {
21185 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21186 : }
21187 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21188 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21189 : }
21190 0 : return NDR_ERR_SUCCESS;
21191 : }
21192 :
21193 0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroupToGroupSet(struct ndr_pull *ndr, int flags, struct clusapi_MoveGroupToGroupSet *r)
21194 : {
21195 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21196 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21197 0 : if (flags & NDR_IN) {
21198 0 : NDR_ZERO_STRUCT(r->out);
21199 :
21200 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
21201 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
21202 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21203 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
21204 : }
21205 0 : if (flags & NDR_OUT) {
21206 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21207 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21208 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21209 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21210 : }
21211 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21212 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21213 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21214 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21215 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21216 : }
21217 0 : return NDR_ERR_SUCCESS;
21218 : }
21219 :
21220 0 : _PUBLIC_ void ndr_print_clusapi_MoveGroupToGroupSet(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_MoveGroupToGroupSet *r)
21221 : {
21222 0 : ndr_print_struct(ndr, name, "clusapi_MoveGroupToGroupSet");
21223 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21224 0 : ndr->depth++;
21225 0 : if (flags & NDR_SET_VALUES) {
21226 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21227 : }
21228 0 : if (flags & NDR_IN) {
21229 0 : ndr_print_struct(ndr, "in", "clusapi_MoveGroupToGroupSet");
21230 0 : ndr->depth++;
21231 0 : ndr_print_policy_handle(ndr, "GroupSet", &r->in.GroupSet);
21232 0 : ndr_print_policy_handle(ndr, "Group", &r->in.Group);
21233 0 : ndr->depth--;
21234 : }
21235 0 : if (flags & NDR_OUT) {
21236 0 : ndr_print_struct(ndr, "out", "clusapi_MoveGroupToGroupSet");
21237 0 : ndr->depth++;
21238 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21239 0 : ndr->depth++;
21240 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21241 0 : ndr->depth--;
21242 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21243 0 : ndr->depth--;
21244 : }
21245 0 : ndr->depth--;
21246 : }
21247 :
21248 0 : static enum ndr_err_code ndr_push_Opnum170NotUsedOnWire(struct ndr_push *ndr, int flags, const struct Opnum170NotUsedOnWire *r)
21249 : {
21250 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21251 0 : if (flags & NDR_IN) {
21252 : }
21253 0 : if (flags & NDR_OUT) {
21254 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21255 : }
21256 0 : return NDR_ERR_SUCCESS;
21257 : }
21258 :
21259 0 : static enum ndr_err_code ndr_pull_Opnum170NotUsedOnWire(struct ndr_pull *ndr, int flags, struct Opnum170NotUsedOnWire *r)
21260 : {
21261 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21262 0 : if (flags & NDR_IN) {
21263 : }
21264 0 : if (flags & NDR_OUT) {
21265 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21266 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21267 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21268 : }
21269 0 : return NDR_ERR_SUCCESS;
21270 : }
21271 :
21272 0 : _PUBLIC_ void ndr_print_Opnum170NotUsedOnWire(struct ndr_print *ndr, const char *name, int flags, const struct Opnum170NotUsedOnWire *r)
21273 : {
21274 0 : ndr_print_struct(ndr, name, "Opnum170NotUsedOnWire");
21275 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21276 0 : ndr->depth++;
21277 0 : if (flags & NDR_SET_VALUES) {
21278 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21279 : }
21280 0 : if (flags & NDR_IN) {
21281 0 : ndr_print_struct(ndr, "in", "Opnum170NotUsedOnWire");
21282 0 : ndr->depth++;
21283 0 : ndr->depth--;
21284 : }
21285 0 : if (flags & NDR_OUT) {
21286 0 : ndr_print_struct(ndr, "out", "Opnum170NotUsedOnWire");
21287 0 : ndr->depth++;
21288 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21289 0 : ndr->depth--;
21290 : }
21291 0 : ndr->depth--;
21292 : }
21293 :
21294 0 : static enum ndr_err_code ndr_push_clusapi_AddGroupSetDependency(struct ndr_push *ndr, int flags, const struct clusapi_AddGroupSetDependency *r)
21295 : {
21296 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21297 0 : if (flags & NDR_IN) {
21298 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.DependentGroupSet));
21299 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.ProviderGroupSet));
21300 : }
21301 0 : if (flags & NDR_OUT) {
21302 0 : if (r->out.rpc_status == NULL) {
21303 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21304 : }
21305 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21306 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21307 : }
21308 0 : return NDR_ERR_SUCCESS;
21309 : }
21310 :
21311 0 : static enum ndr_err_code ndr_pull_clusapi_AddGroupSetDependency(struct ndr_pull *ndr, int flags, struct clusapi_AddGroupSetDependency *r)
21312 : {
21313 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21314 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21315 0 : if (flags & NDR_IN) {
21316 0 : NDR_ZERO_STRUCT(r->out);
21317 :
21318 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.DependentGroupSet));
21319 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.ProviderGroupSet));
21320 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21321 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
21322 : }
21323 0 : if (flags & NDR_OUT) {
21324 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21325 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21326 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21327 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21328 : }
21329 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21330 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21331 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21332 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21333 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21334 : }
21335 0 : return NDR_ERR_SUCCESS;
21336 : }
21337 :
21338 0 : _PUBLIC_ void ndr_print_clusapi_AddGroupSetDependency(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddGroupSetDependency *r)
21339 : {
21340 0 : ndr_print_struct(ndr, name, "clusapi_AddGroupSetDependency");
21341 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21342 0 : ndr->depth++;
21343 0 : if (flags & NDR_SET_VALUES) {
21344 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21345 : }
21346 0 : if (flags & NDR_IN) {
21347 0 : ndr_print_struct(ndr, "in", "clusapi_AddGroupSetDependency");
21348 0 : ndr->depth++;
21349 0 : ndr_print_policy_handle(ndr, "DependentGroupSet", &r->in.DependentGroupSet);
21350 0 : ndr_print_policy_handle(ndr, "ProviderGroupSet", &r->in.ProviderGroupSet);
21351 0 : ndr->depth--;
21352 : }
21353 0 : if (flags & NDR_OUT) {
21354 0 : ndr_print_struct(ndr, "out", "clusapi_AddGroupSetDependency");
21355 0 : ndr->depth++;
21356 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21357 0 : ndr->depth++;
21358 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21359 0 : ndr->depth--;
21360 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21361 0 : ndr->depth--;
21362 : }
21363 0 : ndr->depth--;
21364 : }
21365 :
21366 0 : static enum ndr_err_code ndr_push_clusapi_AddGroupToGroupSetDependency(struct ndr_push *ndr, int flags, const struct clusapi_AddGroupToGroupSetDependency *r)
21367 : {
21368 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21369 0 : if (flags & NDR_IN) {
21370 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.DependentGroup));
21371 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.ProviderGroupSet));
21372 : }
21373 0 : if (flags & NDR_OUT) {
21374 0 : if (r->out.rpc_status == NULL) {
21375 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21376 : }
21377 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21378 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21379 : }
21380 0 : return NDR_ERR_SUCCESS;
21381 : }
21382 :
21383 0 : static enum ndr_err_code ndr_pull_clusapi_AddGroupToGroupSetDependency(struct ndr_pull *ndr, int flags, struct clusapi_AddGroupToGroupSetDependency *r)
21384 : {
21385 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21386 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21387 0 : if (flags & NDR_IN) {
21388 0 : NDR_ZERO_STRUCT(r->out);
21389 :
21390 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.DependentGroup));
21391 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.ProviderGroupSet));
21392 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21393 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
21394 : }
21395 0 : if (flags & NDR_OUT) {
21396 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21397 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21398 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21399 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21400 : }
21401 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21402 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21403 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21404 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21405 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21406 : }
21407 0 : return NDR_ERR_SUCCESS;
21408 : }
21409 :
21410 0 : _PUBLIC_ void ndr_print_clusapi_AddGroupToGroupSetDependency(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddGroupToGroupSetDependency *r)
21411 : {
21412 0 : ndr_print_struct(ndr, name, "clusapi_AddGroupToGroupSetDependency");
21413 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21414 0 : ndr->depth++;
21415 0 : if (flags & NDR_SET_VALUES) {
21416 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21417 : }
21418 0 : if (flags & NDR_IN) {
21419 0 : ndr_print_struct(ndr, "in", "clusapi_AddGroupToGroupSetDependency");
21420 0 : ndr->depth++;
21421 0 : ndr_print_policy_handle(ndr, "DependentGroup", &r->in.DependentGroup);
21422 0 : ndr_print_policy_handle(ndr, "ProviderGroupSet", &r->in.ProviderGroupSet);
21423 0 : ndr->depth--;
21424 : }
21425 0 : if (flags & NDR_OUT) {
21426 0 : ndr_print_struct(ndr, "out", "clusapi_AddGroupToGroupSetDependency");
21427 0 : ndr->depth++;
21428 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21429 0 : ndr->depth++;
21430 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21431 0 : ndr->depth--;
21432 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21433 0 : ndr->depth--;
21434 : }
21435 0 : ndr->depth--;
21436 : }
21437 :
21438 0 : static enum ndr_err_code ndr_push_clusapi_NodeGroupSetControl(struct ndr_push *ndr, int flags, const struct clusapi_NodeGroupSetControl *r)
21439 : {
21440 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21441 0 : if (flags & NDR_IN) {
21442 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
21443 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
21444 0 : NDR_CHECK(ndr_push_clusapi_GroupSetControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
21445 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
21446 0 : if (r->in.lpInBuffer) {
21447 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
21448 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
21449 : }
21450 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
21451 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
21452 : }
21453 0 : if (flags & NDR_OUT) {
21454 0 : if (r->out.lpOutBuffer == NULL) {
21455 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21456 : }
21457 0 : if (r->out.lpBytesReturned == NULL) {
21458 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21459 : }
21460 0 : if (r->out.lpcbRequired == NULL) {
21461 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21462 : }
21463 0 : if (r->out.rpc_status == NULL) {
21464 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21465 : }
21466 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
21467 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
21468 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
21469 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
21470 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
21471 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
21472 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21473 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21474 : }
21475 0 : return NDR_ERR_SUCCESS;
21476 : }
21477 :
21478 0 : static enum ndr_err_code ndr_pull_clusapi_NodeGroupSetControl(struct ndr_pull *ndr, int flags, struct clusapi_NodeGroupSetControl *r)
21479 : {
21480 : uint32_t _ptr_lpInBuffer;
21481 0 : uint32_t size_lpInBuffer_1 = 0;
21482 0 : uint32_t size_lpOutBuffer_1 = 0;
21483 0 : uint32_t length_lpOutBuffer_1 = 0;
21484 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
21485 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
21486 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
21487 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21488 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21489 0 : if (flags & NDR_IN) {
21490 0 : NDR_ZERO_STRUCT(r->out);
21491 :
21492 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
21493 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
21494 0 : NDR_CHECK(ndr_pull_clusapi_GroupSetControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
21495 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
21496 0 : if (_ptr_lpInBuffer) {
21497 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
21498 : } else {
21499 0 : r->in.lpInBuffer = NULL;
21500 : }
21501 0 : if (r->in.lpInBuffer) {
21502 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
21503 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
21504 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
21505 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
21506 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
21507 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
21508 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
21509 : }
21510 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
21511 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
21512 0 : if (r->in.nOutBufferSize > 2147483647) {
21513 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
21514 : }
21515 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
21516 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
21517 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
21518 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
21519 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
21520 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
21521 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21522 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
21523 0 : if (r->in.lpInBuffer) {
21524 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
21525 : }
21526 : }
21527 0 : if (flags & NDR_OUT) {
21528 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21529 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21530 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
21531 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
21532 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
21533 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
21534 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
21535 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
21536 : }
21537 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21538 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
21539 : }
21540 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
21541 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21542 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
21543 : }
21544 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
21545 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
21546 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
21547 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
21548 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21549 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
21550 : }
21551 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
21552 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
21553 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
21554 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
21555 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21556 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21557 : }
21558 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21559 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21560 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21561 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21562 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21563 0 : if (r->out.lpOutBuffer) {
21564 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
21565 : }
21566 0 : if (r->out.lpOutBuffer) {
21567 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
21568 : }
21569 : }
21570 0 : return NDR_ERR_SUCCESS;
21571 : }
21572 :
21573 0 : _PUBLIC_ void ndr_print_clusapi_NodeGroupSetControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_NodeGroupSetControl *r)
21574 : {
21575 0 : ndr_print_struct(ndr, name, "clusapi_NodeGroupSetControl");
21576 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21577 0 : ndr->depth++;
21578 0 : if (flags & NDR_SET_VALUES) {
21579 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21580 : }
21581 0 : if (flags & NDR_IN) {
21582 0 : ndr_print_struct(ndr, "in", "clusapi_NodeGroupSetControl");
21583 0 : ndr->depth++;
21584 0 : ndr_print_policy_handle(ndr, "hGroupSet", &r->in.hGroupSet);
21585 0 : ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
21586 0 : ndr_print_clusapi_GroupSetControlCode(ndr, "dwControlCode", r->in.dwControlCode);
21587 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
21588 0 : ndr->depth++;
21589 0 : if (r->in.lpInBuffer) {
21590 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
21591 : }
21592 0 : ndr->depth--;
21593 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
21594 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
21595 0 : ndr->depth--;
21596 : }
21597 0 : if (flags & NDR_OUT) {
21598 0 : ndr_print_struct(ndr, "out", "clusapi_NodeGroupSetControl");
21599 0 : ndr->depth++;
21600 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
21601 0 : ndr->depth++;
21602 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
21603 0 : ndr->depth--;
21604 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
21605 0 : ndr->depth++;
21606 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
21607 0 : ndr->depth--;
21608 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
21609 0 : ndr->depth++;
21610 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
21611 0 : ndr->depth--;
21612 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21613 0 : ndr->depth++;
21614 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21615 0 : ndr->depth--;
21616 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21617 0 : ndr->depth--;
21618 : }
21619 0 : ndr->depth--;
21620 : }
21621 :
21622 0 : static enum ndr_err_code ndr_push_clusapi_GroupSetControl(struct ndr_push *ndr, int flags, const struct clusapi_GroupSetControl *r)
21623 : {
21624 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21625 0 : if (flags & NDR_IN) {
21626 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
21627 0 : NDR_CHECK(ndr_push_clusapi_GroupSetControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
21628 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
21629 0 : if (r->in.lpInBuffer) {
21630 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
21631 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
21632 : }
21633 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
21634 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
21635 : }
21636 0 : if (flags & NDR_OUT) {
21637 0 : if (r->out.lpOutBuffer == NULL) {
21638 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21639 : }
21640 0 : if (r->out.lpBytesReturned == NULL) {
21641 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21642 : }
21643 0 : if (r->out.lpcbRequired == NULL) {
21644 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21645 : }
21646 0 : if (r->out.rpc_status == NULL) {
21647 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21648 : }
21649 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
21650 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
21651 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
21652 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
21653 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
21654 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
21655 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21656 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21657 : }
21658 0 : return NDR_ERR_SUCCESS;
21659 : }
21660 :
21661 0 : static enum ndr_err_code ndr_pull_clusapi_GroupSetControl(struct ndr_pull *ndr, int flags, struct clusapi_GroupSetControl *r)
21662 : {
21663 : uint32_t _ptr_lpInBuffer;
21664 0 : uint32_t size_lpInBuffer_1 = 0;
21665 0 : uint32_t size_lpOutBuffer_1 = 0;
21666 0 : uint32_t length_lpOutBuffer_1 = 0;
21667 0 : TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
21668 0 : TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
21669 0 : TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
21670 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21671 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21672 0 : if (flags & NDR_IN) {
21673 0 : NDR_ZERO_STRUCT(r->out);
21674 :
21675 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
21676 0 : NDR_CHECK(ndr_pull_clusapi_GroupSetControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
21677 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
21678 0 : if (_ptr_lpInBuffer) {
21679 0 : NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
21680 : } else {
21681 0 : r->in.lpInBuffer = NULL;
21682 : }
21683 0 : if (r->in.lpInBuffer) {
21684 0 : _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
21685 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
21686 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
21687 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
21688 0 : NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
21689 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
21690 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
21691 : }
21692 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
21693 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
21694 0 : if (r->in.nOutBufferSize > 2147483647) {
21695 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
21696 : }
21697 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
21698 0 : memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
21699 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
21700 0 : NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
21701 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
21702 0 : NDR_ZERO_STRUCTP(r->out.lpcbRequired);
21703 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21704 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
21705 0 : if (r->in.lpInBuffer) {
21706 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
21707 : }
21708 : }
21709 0 : if (flags & NDR_OUT) {
21710 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21711 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21712 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
21713 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
21714 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
21715 0 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
21716 0 : if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
21717 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpOutBuffer_1, length_lpOutBuffer_1);
21718 : }
21719 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21720 0 : NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
21721 : }
21722 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
21723 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21724 0 : NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
21725 : }
21726 0 : _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
21727 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
21728 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
21729 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
21730 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21731 0 : NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
21732 : }
21733 0 : _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
21734 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
21735 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
21736 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
21737 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21738 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21739 : }
21740 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21741 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21742 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21743 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21744 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21745 0 : if (r->out.lpOutBuffer) {
21746 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
21747 : }
21748 0 : if (r->out.lpOutBuffer) {
21749 0 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
21750 : }
21751 : }
21752 0 : return NDR_ERR_SUCCESS;
21753 : }
21754 :
21755 0 : _PUBLIC_ void ndr_print_clusapi_GroupSetControl(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_GroupSetControl *r)
21756 : {
21757 0 : ndr_print_struct(ndr, name, "clusapi_GroupSetControl");
21758 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21759 0 : ndr->depth++;
21760 0 : if (flags & NDR_SET_VALUES) {
21761 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21762 : }
21763 0 : if (flags & NDR_IN) {
21764 0 : ndr_print_struct(ndr, "in", "clusapi_GroupSetControl");
21765 0 : ndr->depth++;
21766 0 : ndr_print_policy_handle(ndr, "hGroupSet", &r->in.hGroupSet);
21767 0 : ndr_print_clusapi_GroupSetControlCode(ndr, "dwControlCode", r->in.dwControlCode);
21768 0 : ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
21769 0 : ndr->depth++;
21770 0 : if (r->in.lpInBuffer) {
21771 0 : ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
21772 : }
21773 0 : ndr->depth--;
21774 0 : ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
21775 0 : ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
21776 0 : ndr->depth--;
21777 : }
21778 0 : if (flags & NDR_OUT) {
21779 0 : ndr_print_struct(ndr, "out", "clusapi_GroupSetControl");
21780 0 : ndr->depth++;
21781 0 : ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
21782 0 : ndr->depth++;
21783 0 : ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
21784 0 : ndr->depth--;
21785 0 : ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
21786 0 : ndr->depth++;
21787 0 : ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
21788 0 : ndr->depth--;
21789 0 : ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
21790 0 : ndr->depth++;
21791 0 : ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
21792 0 : ndr->depth--;
21793 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21794 0 : ndr->depth++;
21795 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21796 0 : ndr->depth--;
21797 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21798 0 : ndr->depth--;
21799 : }
21800 0 : ndr->depth--;
21801 : }
21802 :
21803 0 : static enum ndr_err_code ndr_push_clusapi_SetGroupDependencyExpression(struct ndr_push *ndr, int flags, const struct clusapi_SetGroupDependencyExpression *r)
21804 : {
21805 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21806 0 : if (flags & NDR_IN) {
21807 0 : if (r->in.lpszDependencyExpression == NULL) {
21808 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21809 : }
21810 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
21811 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
21812 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
21813 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
21814 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDependencyExpression, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16), sizeof(uint16_t), CH_UTF16));
21815 : }
21816 0 : if (flags & NDR_OUT) {
21817 0 : if (r->out.rpc_status == NULL) {
21818 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21819 : }
21820 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21821 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21822 : }
21823 0 : return NDR_ERR_SUCCESS;
21824 : }
21825 :
21826 0 : static enum ndr_err_code ndr_pull_clusapi_SetGroupDependencyExpression(struct ndr_pull *ndr, int flags, struct clusapi_SetGroupDependencyExpression *r)
21827 : {
21828 0 : uint32_t size_lpszDependencyExpression_1 = 0;
21829 0 : uint32_t length_lpszDependencyExpression_1 = 0;
21830 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21831 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21832 0 : if (flags & NDR_IN) {
21833 0 : NDR_ZERO_STRUCT(r->out);
21834 :
21835 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
21836 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDependencyExpression));
21837 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDependencyExpression));
21838 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDependencyExpression, &size_lpszDependencyExpression_1));
21839 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDependencyExpression, &length_lpszDependencyExpression_1));
21840 0 : if (length_lpszDependencyExpression_1 > size_lpszDependencyExpression_1) {
21841 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszDependencyExpression_1, length_lpszDependencyExpression_1);
21842 : }
21843 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDependencyExpression_1, sizeof(uint16_t)));
21844 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDependencyExpression, length_lpszDependencyExpression_1, sizeof(uint16_t), CH_UTF16));
21845 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21846 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
21847 : }
21848 0 : if (flags & NDR_OUT) {
21849 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21850 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21851 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21852 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21853 : }
21854 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21855 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21856 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21857 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21858 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21859 : }
21860 0 : return NDR_ERR_SUCCESS;
21861 : }
21862 :
21863 0 : _PUBLIC_ void ndr_print_clusapi_SetGroupDependencyExpression(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetGroupDependencyExpression *r)
21864 : {
21865 0 : ndr_print_struct(ndr, name, "clusapi_SetGroupDependencyExpression");
21866 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21867 0 : ndr->depth++;
21868 0 : if (flags & NDR_SET_VALUES) {
21869 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21870 : }
21871 0 : if (flags & NDR_IN) {
21872 0 : ndr_print_struct(ndr, "in", "clusapi_SetGroupDependencyExpression");
21873 0 : ndr->depth++;
21874 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
21875 0 : ndr_print_ptr(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
21876 0 : ndr->depth++;
21877 0 : ndr_print_string(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
21878 0 : ndr->depth--;
21879 0 : ndr->depth--;
21880 : }
21881 0 : if (flags & NDR_OUT) {
21882 0 : ndr_print_struct(ndr, "out", "clusapi_SetGroupDependencyExpression");
21883 0 : ndr->depth++;
21884 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21885 0 : ndr->depth++;
21886 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21887 0 : ndr->depth--;
21888 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21889 0 : ndr->depth--;
21890 : }
21891 0 : ndr->depth--;
21892 : }
21893 :
21894 0 : static enum ndr_err_code ndr_push_clusapi_RemoveClusterGroupDependency(struct ndr_push *ndr, int flags, const struct clusapi_RemoveClusterGroupDependency *r)
21895 : {
21896 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21897 0 : if (flags & NDR_IN) {
21898 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
21899 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
21900 : }
21901 0 : if (flags & NDR_OUT) {
21902 0 : if (r->out.rpc_status == NULL) {
21903 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21904 : }
21905 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21906 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21907 : }
21908 0 : return NDR_ERR_SUCCESS;
21909 : }
21910 :
21911 0 : static enum ndr_err_code ndr_pull_clusapi_RemoveClusterGroupDependency(struct ndr_pull *ndr, int flags, struct clusapi_RemoveClusterGroupDependency *r)
21912 : {
21913 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21914 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21915 0 : if (flags & NDR_IN) {
21916 0 : NDR_ZERO_STRUCT(r->out);
21917 :
21918 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
21919 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
21920 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21921 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
21922 : }
21923 0 : if (flags & NDR_OUT) {
21924 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
21925 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
21926 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
21927 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
21928 : }
21929 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
21930 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
21931 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
21932 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
21933 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
21934 : }
21935 0 : return NDR_ERR_SUCCESS;
21936 : }
21937 :
21938 0 : _PUBLIC_ void ndr_print_clusapi_RemoveClusterGroupDependency(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_RemoveClusterGroupDependency *r)
21939 : {
21940 0 : ndr_print_struct(ndr, name, "clusapi_RemoveClusterGroupDependency");
21941 0 : if (r == NULL) { ndr_print_null(ndr); return; }
21942 0 : ndr->depth++;
21943 0 : if (flags & NDR_SET_VALUES) {
21944 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
21945 : }
21946 0 : if (flags & NDR_IN) {
21947 0 : ndr_print_struct(ndr, "in", "clusapi_RemoveClusterGroupDependency");
21948 0 : ndr->depth++;
21949 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
21950 0 : ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
21951 0 : ndr->depth--;
21952 : }
21953 0 : if (flags & NDR_OUT) {
21954 0 : ndr_print_struct(ndr, "out", "clusapi_RemoveClusterGroupDependency");
21955 0 : ndr->depth++;
21956 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
21957 0 : ndr->depth++;
21958 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
21959 0 : ndr->depth--;
21960 0 : ndr_print_WERROR(ndr, "result", r->out.result);
21961 0 : ndr->depth--;
21962 : }
21963 0 : ndr->depth--;
21964 : }
21965 :
21966 0 : static enum ndr_err_code ndr_push_clusapi_SetGroupSetDependencyExpression(struct ndr_push *ndr, int flags, const struct clusapi_SetGroupSetDependencyExpression *r)
21967 : {
21968 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
21969 0 : if (flags & NDR_IN) {
21970 0 : if (r->in.lpszDependencyExpression == NULL) {
21971 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21972 : }
21973 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
21974 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
21975 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
21976 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
21977 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDependencyExpression, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16), sizeof(uint16_t), CH_UTF16));
21978 : }
21979 0 : if (flags & NDR_OUT) {
21980 0 : if (r->out.rpc_status == NULL) {
21981 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
21982 : }
21983 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
21984 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
21985 : }
21986 0 : return NDR_ERR_SUCCESS;
21987 : }
21988 :
21989 0 : static enum ndr_err_code ndr_pull_clusapi_SetGroupSetDependencyExpression(struct ndr_pull *ndr, int flags, struct clusapi_SetGroupSetDependencyExpression *r)
21990 : {
21991 0 : uint32_t size_lpszDependencyExpression_1 = 0;
21992 0 : uint32_t length_lpszDependencyExpression_1 = 0;
21993 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
21994 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
21995 0 : if (flags & NDR_IN) {
21996 0 : NDR_ZERO_STRUCT(r->out);
21997 :
21998 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
21999 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDependencyExpression));
22000 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDependencyExpression));
22001 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDependencyExpression, &size_lpszDependencyExpression_1));
22002 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDependencyExpression, &length_lpszDependencyExpression_1));
22003 0 : if (length_lpszDependencyExpression_1 > size_lpszDependencyExpression_1) {
22004 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszDependencyExpression_1, length_lpszDependencyExpression_1);
22005 : }
22006 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDependencyExpression_1, sizeof(uint16_t)));
22007 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDependencyExpression, length_lpszDependencyExpression_1, sizeof(uint16_t), CH_UTF16));
22008 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22009 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
22010 : }
22011 0 : if (flags & NDR_OUT) {
22012 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
22013 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
22014 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22015 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22016 : }
22017 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
22018 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
22019 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
22020 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
22021 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
22022 : }
22023 0 : return NDR_ERR_SUCCESS;
22024 : }
22025 :
22026 0 : _PUBLIC_ void ndr_print_clusapi_SetGroupSetDependencyExpression(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_SetGroupSetDependencyExpression *r)
22027 : {
22028 0 : ndr_print_struct(ndr, name, "clusapi_SetGroupSetDependencyExpression");
22029 0 : if (r == NULL) { ndr_print_null(ndr); return; }
22030 0 : ndr->depth++;
22031 0 : if (flags & NDR_SET_VALUES) {
22032 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
22033 : }
22034 0 : if (flags & NDR_IN) {
22035 0 : ndr_print_struct(ndr, "in", "clusapi_SetGroupSetDependencyExpression");
22036 0 : ndr->depth++;
22037 0 : ndr_print_policy_handle(ndr, "hGroupSet", &r->in.hGroupSet);
22038 0 : ndr_print_ptr(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
22039 0 : ndr->depth++;
22040 0 : ndr_print_string(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
22041 0 : ndr->depth--;
22042 0 : ndr->depth--;
22043 : }
22044 0 : if (flags & NDR_OUT) {
22045 0 : ndr_print_struct(ndr, "out", "clusapi_SetGroupSetDependencyExpression");
22046 0 : ndr->depth++;
22047 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
22048 0 : ndr->depth++;
22049 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
22050 0 : ndr->depth--;
22051 0 : ndr_print_WERROR(ndr, "result", r->out.result);
22052 0 : ndr->depth--;
22053 : }
22054 0 : ndr->depth--;
22055 : }
22056 :
22057 0 : static enum ndr_err_code ndr_push_clusapi_RemoveGroupSetDependency(struct ndr_push *ndr, int flags, const struct clusapi_RemoveGroupSetDependency *r)
22058 : {
22059 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
22060 0 : if (flags & NDR_IN) {
22061 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
22062 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
22063 : }
22064 0 : if (flags & NDR_OUT) {
22065 0 : if (r->out.rpc_status == NULL) {
22066 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22067 : }
22068 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
22069 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
22070 : }
22071 0 : return NDR_ERR_SUCCESS;
22072 : }
22073 :
22074 0 : static enum ndr_err_code ndr_pull_clusapi_RemoveGroupSetDependency(struct ndr_pull *ndr, int flags, struct clusapi_RemoveGroupSetDependency *r)
22075 : {
22076 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
22077 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
22078 0 : if (flags & NDR_IN) {
22079 0 : NDR_ZERO_STRUCT(r->out);
22080 :
22081 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
22082 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
22083 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22084 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
22085 : }
22086 0 : if (flags & NDR_OUT) {
22087 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
22088 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
22089 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22090 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22091 : }
22092 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
22093 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
22094 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
22095 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
22096 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
22097 : }
22098 0 : return NDR_ERR_SUCCESS;
22099 : }
22100 :
22101 0 : _PUBLIC_ void ndr_print_clusapi_RemoveGroupSetDependency(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_RemoveGroupSetDependency *r)
22102 : {
22103 0 : ndr_print_struct(ndr, name, "clusapi_RemoveGroupSetDependency");
22104 0 : if (r == NULL) { ndr_print_null(ndr); return; }
22105 0 : ndr->depth++;
22106 0 : if (flags & NDR_SET_VALUES) {
22107 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
22108 : }
22109 0 : if (flags & NDR_IN) {
22110 0 : ndr_print_struct(ndr, "in", "clusapi_RemoveGroupSetDependency");
22111 0 : ndr->depth++;
22112 0 : ndr_print_policy_handle(ndr, "hGroupSet", &r->in.hGroupSet);
22113 0 : ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
22114 0 : ndr->depth--;
22115 : }
22116 0 : if (flags & NDR_OUT) {
22117 0 : ndr_print_struct(ndr, "out", "clusapi_RemoveGroupSetDependency");
22118 0 : ndr->depth++;
22119 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
22120 0 : ndr->depth++;
22121 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
22122 0 : ndr->depth--;
22123 0 : ndr_print_WERROR(ndr, "result", r->out.result);
22124 0 : ndr->depth--;
22125 : }
22126 0 : ndr->depth--;
22127 : }
22128 :
22129 0 : static enum ndr_err_code ndr_push_clusapi_RemoveClusterGroupToGroupSetDependency(struct ndr_push *ndr, int flags, const struct clusapi_RemoveClusterGroupToGroupSetDependency *r)
22130 : {
22131 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
22132 0 : if (flags & NDR_IN) {
22133 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
22134 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
22135 : }
22136 0 : if (flags & NDR_OUT) {
22137 0 : if (r->out.rpc_status == NULL) {
22138 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22139 : }
22140 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
22141 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
22142 : }
22143 0 : return NDR_ERR_SUCCESS;
22144 : }
22145 :
22146 0 : static enum ndr_err_code ndr_pull_clusapi_RemoveClusterGroupToGroupSetDependency(struct ndr_pull *ndr, int flags, struct clusapi_RemoveClusterGroupToGroupSetDependency *r)
22147 : {
22148 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
22149 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
22150 0 : if (flags & NDR_IN) {
22151 0 : NDR_ZERO_STRUCT(r->out);
22152 :
22153 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
22154 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
22155 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22156 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
22157 : }
22158 0 : if (flags & NDR_OUT) {
22159 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
22160 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
22161 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22162 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22163 : }
22164 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
22165 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
22166 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
22167 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
22168 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
22169 : }
22170 0 : return NDR_ERR_SUCCESS;
22171 : }
22172 :
22173 0 : _PUBLIC_ void ndr_print_clusapi_RemoveClusterGroupToGroupSetDependency(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_RemoveClusterGroupToGroupSetDependency *r)
22174 : {
22175 0 : ndr_print_struct(ndr, name, "clusapi_RemoveClusterGroupToGroupSetDependency");
22176 0 : if (r == NULL) { ndr_print_null(ndr); return; }
22177 0 : ndr->depth++;
22178 0 : if (flags & NDR_SET_VALUES) {
22179 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
22180 : }
22181 0 : if (flags & NDR_IN) {
22182 0 : ndr_print_struct(ndr, "in", "clusapi_RemoveClusterGroupToGroupSetDependency");
22183 0 : ndr->depth++;
22184 0 : ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
22185 0 : ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
22186 0 : ndr->depth--;
22187 : }
22188 0 : if (flags & NDR_OUT) {
22189 0 : ndr_print_struct(ndr, "out", "clusapi_RemoveClusterGroupToGroupSetDependency");
22190 0 : ndr->depth++;
22191 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
22192 0 : ndr->depth++;
22193 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
22194 0 : ndr->depth--;
22195 0 : ndr_print_WERROR(ndr, "result", r->out.result);
22196 0 : ndr->depth--;
22197 : }
22198 0 : ndr->depth--;
22199 : }
22200 :
22201 0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupSetEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateGroupSetEnum *r)
22202 : {
22203 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
22204 0 : if (flags & NDR_IN) {
22205 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
22206 : }
22207 0 : if (flags & NDR_OUT) {
22208 0 : if (r->out.ReturnEnum == NULL) {
22209 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22210 : }
22211 0 : if (r->out.rpc_status == NULL) {
22212 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22213 : }
22214 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
22215 0 : if (*r->out.ReturnEnum) {
22216 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
22217 : }
22218 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
22219 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
22220 : }
22221 0 : return NDR_ERR_SUCCESS;
22222 : }
22223 :
22224 0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupSetEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateGroupSetEnum *r)
22225 : {
22226 : uint32_t _ptr_ReturnEnum;
22227 0 : TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
22228 0 : TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
22229 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
22230 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
22231 0 : if (flags & NDR_IN) {
22232 0 : NDR_ZERO_STRUCT(r->out);
22233 :
22234 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
22235 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
22236 0 : NDR_ZERO_STRUCTP(r->out.ReturnEnum);
22237 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22238 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
22239 : }
22240 0 : if (flags & NDR_OUT) {
22241 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
22242 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
22243 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22244 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
22245 : }
22246 0 : _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
22247 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
22248 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
22249 0 : if (_ptr_ReturnEnum) {
22250 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
22251 : } else {
22252 0 : *r->out.ReturnEnum = NULL;
22253 : }
22254 0 : if (*r->out.ReturnEnum) {
22255 0 : _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
22256 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
22257 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
22258 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
22259 : }
22260 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
22261 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22262 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22263 : }
22264 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
22265 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
22266 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
22267 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
22268 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
22269 : }
22270 0 : return NDR_ERR_SUCCESS;
22271 : }
22272 :
22273 0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupSetEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateGroupSetEnum *r)
22274 : {
22275 0 : ndr_print_struct(ndr, name, "clusapi_CreateGroupSetEnum");
22276 0 : if (r == NULL) { ndr_print_null(ndr); return; }
22277 0 : ndr->depth++;
22278 0 : if (flags & NDR_SET_VALUES) {
22279 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
22280 : }
22281 0 : if (flags & NDR_IN) {
22282 0 : ndr_print_struct(ndr, "in", "clusapi_CreateGroupSetEnum");
22283 0 : ndr->depth++;
22284 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
22285 0 : ndr->depth--;
22286 : }
22287 0 : if (flags & NDR_OUT) {
22288 0 : ndr_print_struct(ndr, "out", "clusapi_CreateGroupSetEnum");
22289 0 : ndr->depth++;
22290 0 : ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
22291 0 : ndr->depth++;
22292 0 : ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
22293 0 : ndr->depth++;
22294 0 : if (*r->out.ReturnEnum) {
22295 0 : ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
22296 : }
22297 0 : ndr->depth--;
22298 0 : ndr->depth--;
22299 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
22300 0 : ndr->depth++;
22301 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
22302 0 : ndr->depth--;
22303 0 : ndr_print_WERROR(ndr, "result", r->out.result);
22304 0 : ndr->depth--;
22305 : }
22306 0 : ndr->depth--;
22307 : }
22308 :
22309 0 : static enum ndr_err_code ndr_push_clusapi_CreateNetInterfaceEnum(struct ndr_push *ndr, int flags, const struct clusapi_CreateNetInterfaceEnum *r)
22310 : {
22311 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
22312 0 : if (flags & NDR_IN) {
22313 0 : if (r->in.lpszNodeName == NULL) {
22314 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22315 : }
22316 0 : if (r->in.lpszNetworkName == NULL) {
22317 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22318 : }
22319 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
22320 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
22321 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
22322 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
22323 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNodeName, ndr_charset_length(r->in.lpszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
22324 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
22325 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
22326 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
22327 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
22328 : }
22329 0 : if (flags & NDR_OUT) {
22330 0 : if (r->out.ReturnEnum == NULL) {
22331 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22332 : }
22333 0 : if (r->out.rpc_status == NULL) {
22334 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22335 : }
22336 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
22337 0 : if (*r->out.ReturnEnum) {
22338 0 : NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
22339 : }
22340 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
22341 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
22342 : }
22343 0 : return NDR_ERR_SUCCESS;
22344 : }
22345 :
22346 0 : static enum ndr_err_code ndr_pull_clusapi_CreateNetInterfaceEnum(struct ndr_pull *ndr, int flags, struct clusapi_CreateNetInterfaceEnum *r)
22347 : {
22348 0 : uint32_t size_lpszNodeName_1 = 0;
22349 0 : uint32_t length_lpszNodeName_1 = 0;
22350 0 : uint32_t size_lpszNetworkName_1 = 0;
22351 0 : uint32_t length_lpszNetworkName_1 = 0;
22352 : uint32_t _ptr_ReturnEnum;
22353 0 : TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
22354 0 : TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
22355 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
22356 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
22357 0 : if (flags & NDR_IN) {
22358 0 : NDR_ZERO_STRUCT(r->out);
22359 :
22360 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
22361 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNodeName));
22362 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNodeName));
22363 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNodeName, &size_lpszNodeName_1));
22364 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNodeName, &length_lpszNodeName_1));
22365 0 : if (length_lpszNodeName_1 > size_lpszNodeName_1) {
22366 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNodeName_1, length_lpszNodeName_1);
22367 : }
22368 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNodeName_1, sizeof(uint16_t)));
22369 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNodeName, length_lpszNodeName_1, sizeof(uint16_t), CH_UTF16));
22370 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
22371 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
22372 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
22373 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
22374 0 : if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
22375 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszNetworkName_1, length_lpszNetworkName_1);
22376 : }
22377 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
22378 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
22379 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
22380 0 : NDR_ZERO_STRUCTP(r->out.ReturnEnum);
22381 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22382 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
22383 : }
22384 0 : if (flags & NDR_OUT) {
22385 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
22386 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
22387 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22388 0 : NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
22389 : }
22390 0 : _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
22391 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
22392 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
22393 0 : if (_ptr_ReturnEnum) {
22394 0 : NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
22395 : } else {
22396 0 : *r->out.ReturnEnum = NULL;
22397 : }
22398 0 : if (*r->out.ReturnEnum) {
22399 0 : _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
22400 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
22401 0 : NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
22402 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
22403 : }
22404 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
22405 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22406 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22407 : }
22408 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
22409 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
22410 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
22411 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
22412 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
22413 : }
22414 0 : return NDR_ERR_SUCCESS;
22415 : }
22416 :
22417 0 : _PUBLIC_ void ndr_print_clusapi_CreateNetInterfaceEnum(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_CreateNetInterfaceEnum *r)
22418 : {
22419 0 : ndr_print_struct(ndr, name, "clusapi_CreateNetInterfaceEnum");
22420 0 : if (r == NULL) { ndr_print_null(ndr); return; }
22421 0 : ndr->depth++;
22422 0 : if (flags & NDR_SET_VALUES) {
22423 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
22424 : }
22425 0 : if (flags & NDR_IN) {
22426 0 : ndr_print_struct(ndr, "in", "clusapi_CreateNetInterfaceEnum");
22427 0 : ndr->depth++;
22428 0 : ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
22429 0 : ndr_print_ptr(ndr, "lpszNodeName", r->in.lpszNodeName);
22430 0 : ndr->depth++;
22431 0 : ndr_print_string(ndr, "lpszNodeName", r->in.lpszNodeName);
22432 0 : ndr->depth--;
22433 0 : ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
22434 0 : ndr->depth++;
22435 0 : ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
22436 0 : ndr->depth--;
22437 0 : ndr->depth--;
22438 : }
22439 0 : if (flags & NDR_OUT) {
22440 0 : ndr_print_struct(ndr, "out", "clusapi_CreateNetInterfaceEnum");
22441 0 : ndr->depth++;
22442 0 : ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
22443 0 : ndr->depth++;
22444 0 : ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
22445 0 : ndr->depth++;
22446 0 : if (*r->out.ReturnEnum) {
22447 0 : ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
22448 : }
22449 0 : ndr->depth--;
22450 0 : ndr->depth--;
22451 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
22452 0 : ndr->depth++;
22453 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
22454 0 : ndr->depth--;
22455 0 : ndr_print_WERROR(ndr, "result", r->out.result);
22456 0 : ndr->depth--;
22457 : }
22458 0 : ndr->depth--;
22459 : }
22460 :
22461 0 : static enum ndr_err_code ndr_push_clusapi_ChangeCsvStateEx(struct ndr_push *ndr, int flags, const struct clusapi_ChangeCsvStateEx *r)
22462 : {
22463 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
22464 0 : if (flags & NDR_IN) {
22465 0 : if (r->in.lpszVolumeName == NULL) {
22466 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22467 : }
22468 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
22469 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwState));
22470 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszVolumeName, CH_UTF16)));
22471 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
22472 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszVolumeName, CH_UTF16)));
22473 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszVolumeName, ndr_charset_length(r->in.lpszVolumeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
22474 : }
22475 0 : if (flags & NDR_OUT) {
22476 0 : if (r->out.rpc_status == NULL) {
22477 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22478 : }
22479 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
22480 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
22481 : }
22482 0 : return NDR_ERR_SUCCESS;
22483 : }
22484 :
22485 0 : static enum ndr_err_code ndr_pull_clusapi_ChangeCsvStateEx(struct ndr_pull *ndr, int flags, struct clusapi_ChangeCsvStateEx *r)
22486 : {
22487 0 : uint32_t size_lpszVolumeName_1 = 0;
22488 0 : uint32_t length_lpszVolumeName_1 = 0;
22489 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
22490 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
22491 0 : if (flags & NDR_IN) {
22492 0 : NDR_ZERO_STRUCT(r->out);
22493 :
22494 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
22495 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwState));
22496 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszVolumeName));
22497 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszVolumeName));
22498 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszVolumeName, &size_lpszVolumeName_1));
22499 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszVolumeName, &length_lpszVolumeName_1));
22500 0 : if (length_lpszVolumeName_1 > size_lpszVolumeName_1) {
22501 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_lpszVolumeName_1, length_lpszVolumeName_1);
22502 : }
22503 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszVolumeName_1, sizeof(uint16_t)));
22504 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszVolumeName, length_lpszVolumeName_1, sizeof(uint16_t), CH_UTF16));
22505 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22506 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
22507 : }
22508 0 : if (flags & NDR_OUT) {
22509 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
22510 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
22511 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22512 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22513 : }
22514 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
22515 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
22516 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
22517 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
22518 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
22519 : }
22520 0 : return NDR_ERR_SUCCESS;
22521 : }
22522 :
22523 0 : _PUBLIC_ void ndr_print_clusapi_ChangeCsvStateEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_ChangeCsvStateEx *r)
22524 : {
22525 0 : ndr_print_struct(ndr, name, "clusapi_ChangeCsvStateEx");
22526 0 : if (r == NULL) { ndr_print_null(ndr); return; }
22527 0 : ndr->depth++;
22528 0 : if (flags & NDR_SET_VALUES) {
22529 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
22530 : }
22531 0 : if (flags & NDR_IN) {
22532 0 : ndr_print_struct(ndr, "in", "clusapi_ChangeCsvStateEx");
22533 0 : ndr->depth++;
22534 0 : ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
22535 0 : ndr_print_uint32(ndr, "dwState", r->in.dwState);
22536 0 : ndr_print_ptr(ndr, "lpszVolumeName", r->in.lpszVolumeName);
22537 0 : ndr->depth++;
22538 0 : ndr_print_string(ndr, "lpszVolumeName", r->in.lpszVolumeName);
22539 0 : ndr->depth--;
22540 0 : ndr->depth--;
22541 : }
22542 0 : if (flags & NDR_OUT) {
22543 0 : ndr_print_struct(ndr, "out", "clusapi_ChangeCsvStateEx");
22544 0 : ndr->depth++;
22545 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
22546 0 : ndr->depth++;
22547 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
22548 0 : ndr->depth--;
22549 0 : ndr_print_WERROR(ndr, "result", r->out.result);
22550 0 : ndr->depth--;
22551 : }
22552 0 : ndr->depth--;
22553 : }
22554 :
22555 0 : static enum ndr_err_code ndr_push_clusapi_AddGroupToGroupSetEx(struct ndr_push *ndr, int flags, const struct clusapi_AddGroupToGroupSetEx *r)
22556 : {
22557 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
22558 0 : if (flags & NDR_IN) {
22559 0 : if (r->in.Reserved == NULL) {
22560 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22561 : }
22562 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
22563 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
22564 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.FaultDomain));
22565 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.UpdateDomain));
22566 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.UseDomains));
22567 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.Reserved));
22568 : }
22569 0 : if (flags & NDR_OUT) {
22570 0 : if (r->out.rpc_status == NULL) {
22571 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
22572 : }
22573 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
22574 0 : NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
22575 : }
22576 0 : return NDR_ERR_SUCCESS;
22577 : }
22578 :
22579 0 : static enum ndr_err_code ndr_pull_clusapi_AddGroupToGroupSetEx(struct ndr_pull *ndr, int flags, struct clusapi_AddGroupToGroupSetEx *r)
22580 : {
22581 0 : TALLOC_CTX *_mem_save_Reserved_0 = NULL;
22582 0 : TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
22583 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
22584 0 : if (flags & NDR_IN) {
22585 0 : NDR_ZERO_STRUCT(r->out);
22586 :
22587 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
22588 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
22589 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.FaultDomain));
22590 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.UpdateDomain));
22591 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.UseDomains));
22592 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22593 0 : NDR_PULL_ALLOC(ndr, r->in.Reserved);
22594 : }
22595 0 : _mem_save_Reserved_0 = NDR_PULL_GET_MEM_CTX(ndr);
22596 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.Reserved, LIBNDR_FLAG_REF_ALLOC);
22597 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.Reserved));
22598 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Reserved_0, LIBNDR_FLAG_REF_ALLOC);
22599 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22600 0 : NDR_ZERO_STRUCTP(r->out.rpc_status);
22601 : }
22602 0 : if (flags & NDR_OUT) {
22603 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
22604 : if (r->in.Reserved == NULL) {
22605 : NDR_PULL_ALLOC(ndr, r->in.Reserved);
22606 : NDR_ZERO_STRUCTP(r->in.Reserved);
22607 : }
22608 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
22609 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
22610 0 : NDR_PULL_ALLOC(ndr, r->out.rpc_status);
22611 : }
22612 0 : _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
22613 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
22614 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
22615 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
22616 0 : NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
22617 : }
22618 0 : return NDR_ERR_SUCCESS;
22619 : }
22620 :
22621 0 : _PUBLIC_ void ndr_print_clusapi_AddGroupToGroupSetEx(struct ndr_print *ndr, const char *name, int flags, const struct clusapi_AddGroupToGroupSetEx *r)
22622 : {
22623 0 : ndr_print_struct(ndr, name, "clusapi_AddGroupToGroupSetEx");
22624 0 : if (r == NULL) { ndr_print_null(ndr); return; }
22625 0 : ndr->depth++;
22626 0 : if (flags & NDR_SET_VALUES) {
22627 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
22628 : }
22629 0 : if (flags & NDR_IN) {
22630 0 : ndr_print_struct(ndr, "in", "clusapi_AddGroupToGroupSetEx");
22631 0 : ndr->depth++;
22632 0 : ndr_print_policy_handle(ndr, "GroupSet", &r->in.GroupSet);
22633 0 : ndr_print_policy_handle(ndr, "Group", &r->in.Group);
22634 0 : ndr_print_uint32(ndr, "FaultDomain", r->in.FaultDomain);
22635 0 : ndr_print_uint32(ndr, "UpdateDomain", r->in.UpdateDomain);
22636 0 : ndr_print_uint8(ndr, "UseDomains", r->in.UseDomains);
22637 0 : ndr_print_ptr(ndr, "Reserved", r->in.Reserved);
22638 0 : ndr->depth++;
22639 0 : ndr_print_uint32(ndr, "Reserved", *r->in.Reserved);
22640 0 : ndr->depth--;
22641 0 : ndr->depth--;
22642 : }
22643 0 : if (flags & NDR_OUT) {
22644 0 : ndr_print_struct(ndr, "out", "clusapi_AddGroupToGroupSetEx");
22645 0 : ndr->depth++;
22646 0 : ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
22647 0 : ndr->depth++;
22648 0 : ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
22649 0 : ndr->depth--;
22650 0 : ndr_print_WERROR(ndr, "result", r->out.result);
22651 0 : ndr->depth--;
22652 : }
22653 0 : ndr->depth--;
22654 : }
22655 :
22656 : #ifndef SKIP_NDR_TABLE_clusapi
22657 : static const struct ndr_interface_public_struct clusapi_public_structs[] = {
22658 : {
22659 : .name = "CLUS_RESOURCE_CLASS_INFO",
22660 : .struct_size = sizeof(struct CLUS_RESOURCE_CLASS_INFO ),
22661 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_CLUS_RESOURCE_CLASS_INFO,
22662 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_CLUS_RESOURCE_CLASS_INFO,
22663 : .ndr_print = (ndr_print_function_t) ndr_print_flags_CLUS_RESOURCE_CLASS_INFO,
22664 : },
22665 : {
22666 : .name = "clusapi_PROPERTY_LIST",
22667 : .struct_size = sizeof(struct clusapi_PROPERTY_LIST ),
22668 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_clusapi_PROPERTY_LIST,
22669 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_clusapi_PROPERTY_LIST,
22670 : .ndr_print = (ndr_print_function_t) ndr_print_flags_clusapi_PROPERTY_LIST,
22671 : },
22672 : { .name = NULL }
22673 : };
22674 :
22675 : static const struct ndr_interface_call clusapi_calls[] = {
22676 : {
22677 : "clusapi_OpenCluster",
22678 : sizeof(struct clusapi_OpenCluster),
22679 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenCluster,
22680 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenCluster,
22681 : (ndr_print_function_t) ndr_print_clusapi_OpenCluster,
22682 : { 0, NULL },
22683 : { 0, NULL },
22684 : },
22685 : {
22686 : "clusapi_CloseCluster",
22687 : sizeof(struct clusapi_CloseCluster),
22688 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseCluster,
22689 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseCluster,
22690 : (ndr_print_function_t) ndr_print_clusapi_CloseCluster,
22691 : { 0, NULL },
22692 : { 0, NULL },
22693 : },
22694 : {
22695 : "clusapi_SetClusterName",
22696 : sizeof(struct clusapi_SetClusterName),
22697 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetClusterName,
22698 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetClusterName,
22699 : (ndr_print_function_t) ndr_print_clusapi_SetClusterName,
22700 : { 0, NULL },
22701 : { 0, NULL },
22702 : },
22703 : {
22704 : "clusapi_GetClusterName",
22705 : sizeof(struct clusapi_GetClusterName),
22706 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetClusterName,
22707 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetClusterName,
22708 : (ndr_print_function_t) ndr_print_clusapi_GetClusterName,
22709 : { 0, NULL },
22710 : { 0, NULL },
22711 : },
22712 : {
22713 : "clusapi_GetClusterVersion",
22714 : sizeof(struct clusapi_GetClusterVersion),
22715 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetClusterVersion,
22716 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetClusterVersion,
22717 : (ndr_print_function_t) ndr_print_clusapi_GetClusterVersion,
22718 : { 0, NULL },
22719 : { 0, NULL },
22720 : },
22721 : {
22722 : "clusapi_GetQuorumResource",
22723 : sizeof(struct clusapi_GetQuorumResource),
22724 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetQuorumResource,
22725 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetQuorumResource,
22726 : (ndr_print_function_t) ndr_print_clusapi_GetQuorumResource,
22727 : { 0, NULL },
22728 : { 0, NULL },
22729 : },
22730 : {
22731 : "clusapi_SetQuorumResource",
22732 : sizeof(struct clusapi_SetQuorumResource),
22733 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetQuorumResource,
22734 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetQuorumResource,
22735 : (ndr_print_function_t) ndr_print_clusapi_SetQuorumResource,
22736 : { 0, NULL },
22737 : { 0, NULL },
22738 : },
22739 : {
22740 : "clusapi_CreateEnum",
22741 : sizeof(struct clusapi_CreateEnum),
22742 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateEnum,
22743 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateEnum,
22744 : (ndr_print_function_t) ndr_print_clusapi_CreateEnum,
22745 : { 0, NULL },
22746 : { 0, NULL },
22747 : },
22748 : {
22749 : "clusapi_OpenResource",
22750 : sizeof(struct clusapi_OpenResource),
22751 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenResource,
22752 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenResource,
22753 : (ndr_print_function_t) ndr_print_clusapi_OpenResource,
22754 : { 0, NULL },
22755 : { 0, NULL },
22756 : },
22757 : {
22758 : "clusapi_CreateResource",
22759 : sizeof(struct clusapi_CreateResource),
22760 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResource,
22761 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResource,
22762 : (ndr_print_function_t) ndr_print_clusapi_CreateResource,
22763 : { 0, NULL },
22764 : { 0, NULL },
22765 : },
22766 : {
22767 : "clusapi_DeleteResource",
22768 : sizeof(struct clusapi_DeleteResource),
22769 : (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteResource,
22770 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteResource,
22771 : (ndr_print_function_t) ndr_print_clusapi_DeleteResource,
22772 : { 0, NULL },
22773 : { 0, NULL },
22774 : },
22775 : {
22776 : "clusapi_CloseResource",
22777 : sizeof(struct clusapi_CloseResource),
22778 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseResource,
22779 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseResource,
22780 : (ndr_print_function_t) ndr_print_clusapi_CloseResource,
22781 : { 0, NULL },
22782 : { 0, NULL },
22783 : },
22784 : {
22785 : "clusapi_GetResourceState",
22786 : sizeof(struct clusapi_GetResourceState),
22787 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceState,
22788 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceState,
22789 : (ndr_print_function_t) ndr_print_clusapi_GetResourceState,
22790 : { 0, NULL },
22791 : { 0, NULL },
22792 : },
22793 : {
22794 : "clusapi_SetResourceName",
22795 : sizeof(struct clusapi_SetResourceName),
22796 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetResourceName,
22797 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetResourceName,
22798 : (ndr_print_function_t) ndr_print_clusapi_SetResourceName,
22799 : { 0, NULL },
22800 : { 0, NULL },
22801 : },
22802 : {
22803 : "clusapi_GetResourceId",
22804 : sizeof(struct clusapi_GetResourceId),
22805 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceId,
22806 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceId,
22807 : (ndr_print_function_t) ndr_print_clusapi_GetResourceId,
22808 : { 0, NULL },
22809 : { 0, NULL },
22810 : },
22811 : {
22812 : "clusapi_GetResourceType",
22813 : sizeof(struct clusapi_GetResourceType),
22814 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceType,
22815 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceType,
22816 : (ndr_print_function_t) ndr_print_clusapi_GetResourceType,
22817 : { 0, NULL },
22818 : { 0, NULL },
22819 : },
22820 : {
22821 : "clusapi_FailResource",
22822 : sizeof(struct clusapi_FailResource),
22823 : (ndr_push_flags_fn_t) ndr_push_clusapi_FailResource,
22824 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_FailResource,
22825 : (ndr_print_function_t) ndr_print_clusapi_FailResource,
22826 : { 0, NULL },
22827 : { 0, NULL },
22828 : },
22829 : {
22830 : "clusapi_OnlineResource",
22831 : sizeof(struct clusapi_OnlineResource),
22832 : (ndr_push_flags_fn_t) ndr_push_clusapi_OnlineResource,
22833 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OnlineResource,
22834 : (ndr_print_function_t) ndr_print_clusapi_OnlineResource,
22835 : { 0, NULL },
22836 : { 0, NULL },
22837 : },
22838 : {
22839 : "clusapi_OfflineResource",
22840 : sizeof(struct clusapi_OfflineResource),
22841 : (ndr_push_flags_fn_t) ndr_push_clusapi_OfflineResource,
22842 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OfflineResource,
22843 : (ndr_print_function_t) ndr_print_clusapi_OfflineResource,
22844 : { 0, NULL },
22845 : { 0, NULL },
22846 : },
22847 : {
22848 : "clusapi_AddResourceDependency",
22849 : sizeof(struct clusapi_AddResourceDependency),
22850 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddResourceDependency,
22851 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddResourceDependency,
22852 : (ndr_print_function_t) ndr_print_clusapi_AddResourceDependency,
22853 : { 0, NULL },
22854 : { 0, NULL },
22855 : },
22856 : {
22857 : "clusapi_RemoveResourceDependency",
22858 : sizeof(struct clusapi_RemoveResourceDependency),
22859 : (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveResourceDependency,
22860 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveResourceDependency,
22861 : (ndr_print_function_t) ndr_print_clusapi_RemoveResourceDependency,
22862 : { 0, NULL },
22863 : { 0, NULL },
22864 : },
22865 : {
22866 : "clusapi_CanResourceBeDependent",
22867 : sizeof(struct clusapi_CanResourceBeDependent),
22868 : (ndr_push_flags_fn_t) ndr_push_clusapi_CanResourceBeDependent,
22869 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CanResourceBeDependent,
22870 : (ndr_print_function_t) ndr_print_clusapi_CanResourceBeDependent,
22871 : { 0, NULL },
22872 : { 0, NULL },
22873 : },
22874 : {
22875 : "clusapi_CreateResEnum",
22876 : sizeof(struct clusapi_CreateResEnum),
22877 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResEnum,
22878 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResEnum,
22879 : (ndr_print_function_t) ndr_print_clusapi_CreateResEnum,
22880 : { 0, NULL },
22881 : { 0, NULL },
22882 : },
22883 : {
22884 : "clusapi_AddResourceNode",
22885 : sizeof(struct clusapi_AddResourceNode),
22886 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddResourceNode,
22887 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddResourceNode,
22888 : (ndr_print_function_t) ndr_print_clusapi_AddResourceNode,
22889 : { 0, NULL },
22890 : { 0, NULL },
22891 : },
22892 : {
22893 : "clusapi_RemoveResourceNode",
22894 : sizeof(struct clusapi_RemoveResourceNode),
22895 : (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveResourceNode,
22896 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveResourceNode,
22897 : (ndr_print_function_t) ndr_print_clusapi_RemoveResourceNode,
22898 : { 0, NULL },
22899 : { 0, NULL },
22900 : },
22901 : {
22902 : "clusapi_ChangeResourceGroup",
22903 : sizeof(struct clusapi_ChangeResourceGroup),
22904 : (ndr_push_flags_fn_t) ndr_push_clusapi_ChangeResourceGroup,
22905 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ChangeResourceGroup,
22906 : (ndr_print_function_t) ndr_print_clusapi_ChangeResourceGroup,
22907 : { 0, NULL },
22908 : { 0, NULL },
22909 : },
22910 : {
22911 : "clusapi_CreateResourceType",
22912 : sizeof(struct clusapi_CreateResourceType),
22913 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResourceType,
22914 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResourceType,
22915 : (ndr_print_function_t) ndr_print_clusapi_CreateResourceType,
22916 : { 0, NULL },
22917 : { 0, NULL },
22918 : },
22919 : {
22920 : "clusapi_DeleteResourceType",
22921 : sizeof(struct clusapi_DeleteResourceType),
22922 : (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteResourceType,
22923 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteResourceType,
22924 : (ndr_print_function_t) ndr_print_clusapi_DeleteResourceType,
22925 : { 0, NULL },
22926 : { 0, NULL },
22927 : },
22928 : {
22929 : "clusapi_GetRootKey",
22930 : sizeof(struct clusapi_GetRootKey),
22931 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetRootKey,
22932 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetRootKey,
22933 : (ndr_print_function_t) ndr_print_clusapi_GetRootKey,
22934 : { 0, NULL },
22935 : { 0, NULL },
22936 : },
22937 : {
22938 : "clusapi_CreateKey",
22939 : sizeof(struct clusapi_CreateKey),
22940 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateKey,
22941 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateKey,
22942 : (ndr_print_function_t) ndr_print_clusapi_CreateKey,
22943 : { 0, NULL },
22944 : { 0, NULL },
22945 : },
22946 : {
22947 : "clusapi_OpenKey",
22948 : sizeof(struct clusapi_OpenKey),
22949 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenKey,
22950 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenKey,
22951 : (ndr_print_function_t) ndr_print_clusapi_OpenKey,
22952 : { 0, NULL },
22953 : { 0, NULL },
22954 : },
22955 : {
22956 : "clusapi_EnumKey",
22957 : sizeof(struct clusapi_EnumKey),
22958 : (ndr_push_flags_fn_t) ndr_push_clusapi_EnumKey,
22959 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_EnumKey,
22960 : (ndr_print_function_t) ndr_print_clusapi_EnumKey,
22961 : { 0, NULL },
22962 : { 0, NULL },
22963 : },
22964 : {
22965 : "clusapi_SetValue",
22966 : sizeof(struct clusapi_SetValue),
22967 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetValue,
22968 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetValue,
22969 : (ndr_print_function_t) ndr_print_clusapi_SetValue,
22970 : { 0, NULL },
22971 : { 0, NULL },
22972 : },
22973 : {
22974 : "clusapi_DeleteValue",
22975 : sizeof(struct clusapi_DeleteValue),
22976 : (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteValue,
22977 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteValue,
22978 : (ndr_print_function_t) ndr_print_clusapi_DeleteValue,
22979 : { 0, NULL },
22980 : { 0, NULL },
22981 : },
22982 : {
22983 : "clusapi_QueryValue",
22984 : sizeof(struct clusapi_QueryValue),
22985 : (ndr_push_flags_fn_t) ndr_push_clusapi_QueryValue,
22986 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_QueryValue,
22987 : (ndr_print_function_t) ndr_print_clusapi_QueryValue,
22988 : { 0, NULL },
22989 : { 0, NULL },
22990 : },
22991 : {
22992 : "clusapi_DeleteKey",
22993 : sizeof(struct clusapi_DeleteKey),
22994 : (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteKey,
22995 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteKey,
22996 : (ndr_print_function_t) ndr_print_clusapi_DeleteKey,
22997 : { 0, NULL },
22998 : { 0, NULL },
22999 : },
23000 : {
23001 : "clusapi_EnumValue",
23002 : sizeof(struct clusapi_EnumValue),
23003 : (ndr_push_flags_fn_t) ndr_push_clusapi_EnumValue,
23004 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_EnumValue,
23005 : (ndr_print_function_t) ndr_print_clusapi_EnumValue,
23006 : { 0, NULL },
23007 : { 0, NULL },
23008 : },
23009 : {
23010 : "clusapi_CloseKey",
23011 : sizeof(struct clusapi_CloseKey),
23012 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseKey,
23013 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseKey,
23014 : (ndr_print_function_t) ndr_print_clusapi_CloseKey,
23015 : { 0, NULL },
23016 : { 0, NULL },
23017 : },
23018 : {
23019 : "clusapi_QueryInfoKey",
23020 : sizeof(struct clusapi_QueryInfoKey),
23021 : (ndr_push_flags_fn_t) ndr_push_clusapi_QueryInfoKey,
23022 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_QueryInfoKey,
23023 : (ndr_print_function_t) ndr_print_clusapi_QueryInfoKey,
23024 : { 0, NULL },
23025 : { 0, NULL },
23026 : },
23027 : {
23028 : "clusapi_SetKeySecurity",
23029 : sizeof(struct clusapi_SetKeySecurity),
23030 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetKeySecurity,
23031 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetKeySecurity,
23032 : (ndr_print_function_t) ndr_print_clusapi_SetKeySecurity,
23033 : { 0, NULL },
23034 : { 0, NULL },
23035 : },
23036 : {
23037 : "clusapi_GetKeySecurity",
23038 : sizeof(struct clusapi_GetKeySecurity),
23039 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetKeySecurity,
23040 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetKeySecurity,
23041 : (ndr_print_function_t) ndr_print_clusapi_GetKeySecurity,
23042 : { 0, NULL },
23043 : { 0, NULL },
23044 : },
23045 : {
23046 : "clusapi_OpenGroup",
23047 : sizeof(struct clusapi_OpenGroup),
23048 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenGroup,
23049 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenGroup,
23050 : (ndr_print_function_t) ndr_print_clusapi_OpenGroup,
23051 : { 0, NULL },
23052 : { 0, NULL },
23053 : },
23054 : {
23055 : "clusapi_CreateGroup",
23056 : sizeof(struct clusapi_CreateGroup),
23057 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroup,
23058 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroup,
23059 : (ndr_print_function_t) ndr_print_clusapi_CreateGroup,
23060 : { 0, NULL },
23061 : { 0, NULL },
23062 : },
23063 : {
23064 : "clusapi_DeleteGroup",
23065 : sizeof(struct clusapi_DeleteGroup),
23066 : (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteGroup,
23067 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteGroup,
23068 : (ndr_print_function_t) ndr_print_clusapi_DeleteGroup,
23069 : { 0, NULL },
23070 : { 0, NULL },
23071 : },
23072 : {
23073 : "clusapi_CloseGroup",
23074 : sizeof(struct clusapi_CloseGroup),
23075 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseGroup,
23076 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseGroup,
23077 : (ndr_print_function_t) ndr_print_clusapi_CloseGroup,
23078 : { 0, NULL },
23079 : { 0, NULL },
23080 : },
23081 : {
23082 : "clusapi_GetGroupState",
23083 : sizeof(struct clusapi_GetGroupState),
23084 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetGroupState,
23085 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetGroupState,
23086 : (ndr_print_function_t) ndr_print_clusapi_GetGroupState,
23087 : { 0, NULL },
23088 : { 0, NULL },
23089 : },
23090 : {
23091 : "clusapi_SetGroupName",
23092 : sizeof(struct clusapi_SetGroupName),
23093 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetGroupName,
23094 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetGroupName,
23095 : (ndr_print_function_t) ndr_print_clusapi_SetGroupName,
23096 : { 0, NULL },
23097 : { 0, NULL },
23098 : },
23099 : {
23100 : "clusapi_GetGroupId",
23101 : sizeof(struct clusapi_GetGroupId),
23102 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetGroupId,
23103 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetGroupId,
23104 : (ndr_print_function_t) ndr_print_clusapi_GetGroupId,
23105 : { 0, NULL },
23106 : { 0, NULL },
23107 : },
23108 : {
23109 : "clusapi_GetNodeId",
23110 : sizeof(struct clusapi_GetNodeId),
23111 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNodeId,
23112 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNodeId,
23113 : (ndr_print_function_t) ndr_print_clusapi_GetNodeId,
23114 : { 0, NULL },
23115 : { 0, NULL },
23116 : },
23117 : {
23118 : "clusapi_OnlineGroup",
23119 : sizeof(struct clusapi_OnlineGroup),
23120 : (ndr_push_flags_fn_t) ndr_push_clusapi_OnlineGroup,
23121 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OnlineGroup,
23122 : (ndr_print_function_t) ndr_print_clusapi_OnlineGroup,
23123 : { 0, NULL },
23124 : { 0, NULL },
23125 : },
23126 : {
23127 : "clusapi_OfflineGroup",
23128 : sizeof(struct clusapi_OfflineGroup),
23129 : (ndr_push_flags_fn_t) ndr_push_clusapi_OfflineGroup,
23130 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OfflineGroup,
23131 : (ndr_print_function_t) ndr_print_clusapi_OfflineGroup,
23132 : { 0, NULL },
23133 : { 0, NULL },
23134 : },
23135 : {
23136 : "clusapi_MoveGroup",
23137 : sizeof(struct clusapi_MoveGroup),
23138 : (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroup,
23139 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroup,
23140 : (ndr_print_function_t) ndr_print_clusapi_MoveGroup,
23141 : { 0, NULL },
23142 : { 0, NULL },
23143 : },
23144 : {
23145 : "clusapi_MoveGroupToNode",
23146 : sizeof(struct clusapi_MoveGroupToNode),
23147 : (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroupToNode,
23148 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroupToNode,
23149 : (ndr_print_function_t) ndr_print_clusapi_MoveGroupToNode,
23150 : { 0, NULL },
23151 : { 0, NULL },
23152 : },
23153 : {
23154 : "clusapi_CreateGroupResourceEnum",
23155 : sizeof(struct clusapi_CreateGroupResourceEnum),
23156 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupResourceEnum,
23157 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupResourceEnum,
23158 : (ndr_print_function_t) ndr_print_clusapi_CreateGroupResourceEnum,
23159 : { 0, NULL },
23160 : { 0, NULL },
23161 : },
23162 : {
23163 : "clusapi_SetGroupNodeList",
23164 : sizeof(struct clusapi_SetGroupNodeList),
23165 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetGroupNodeList,
23166 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetGroupNodeList,
23167 : (ndr_print_function_t) ndr_print_clusapi_SetGroupNodeList,
23168 : { 0, NULL },
23169 : { 0, NULL },
23170 : },
23171 : {
23172 : "clusapi_CreateNotify",
23173 : sizeof(struct clusapi_CreateNotify),
23174 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNotify,
23175 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNotify,
23176 : (ndr_print_function_t) ndr_print_clusapi_CreateNotify,
23177 : { 0, NULL },
23178 : { 0, NULL },
23179 : },
23180 : {
23181 : "clusapi_CloseNotify",
23182 : sizeof(struct clusapi_CloseNotify),
23183 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseNotify,
23184 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseNotify,
23185 : (ndr_print_function_t) ndr_print_clusapi_CloseNotify,
23186 : { 0, NULL },
23187 : { 0, NULL },
23188 : },
23189 : {
23190 : "clusapi_AddNotifyCluster",
23191 : sizeof(struct clusapi_AddNotifyCluster),
23192 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyCluster,
23193 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyCluster,
23194 : (ndr_print_function_t) ndr_print_clusapi_AddNotifyCluster,
23195 : { 0, NULL },
23196 : { 0, NULL },
23197 : },
23198 : {
23199 : "clusapi_AddNotifyNode",
23200 : sizeof(struct clusapi_AddNotifyNode),
23201 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyNode,
23202 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyNode,
23203 : (ndr_print_function_t) ndr_print_clusapi_AddNotifyNode,
23204 : { 0, NULL },
23205 : { 0, NULL },
23206 : },
23207 : {
23208 : "clusapi_AddNotifyGroup",
23209 : sizeof(struct clusapi_AddNotifyGroup),
23210 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyGroup,
23211 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyGroup,
23212 : (ndr_print_function_t) ndr_print_clusapi_AddNotifyGroup,
23213 : { 0, NULL },
23214 : { 0, NULL },
23215 : },
23216 : {
23217 : "clusapi_AddNotifyResource",
23218 : sizeof(struct clusapi_AddNotifyResource),
23219 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyResource,
23220 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyResource,
23221 : (ndr_print_function_t) ndr_print_clusapi_AddNotifyResource,
23222 : { 0, NULL },
23223 : { 0, NULL },
23224 : },
23225 : {
23226 : "clusapi_AddNotifyKey",
23227 : sizeof(struct clusapi_AddNotifyKey),
23228 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyKey,
23229 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyKey,
23230 : (ndr_print_function_t) ndr_print_clusapi_AddNotifyKey,
23231 : { 0, NULL },
23232 : { 0, NULL },
23233 : },
23234 : {
23235 : "clusapi_ReAddNotifyNode",
23236 : sizeof(struct clusapi_ReAddNotifyNode),
23237 : (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyNode,
23238 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyNode,
23239 : (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyNode,
23240 : { 0, NULL },
23241 : { 0, NULL },
23242 : },
23243 : {
23244 : "clusapi_ReAddNotifyGroup",
23245 : sizeof(struct clusapi_ReAddNotifyGroup),
23246 : (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyGroup,
23247 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyGroup,
23248 : (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyGroup,
23249 : { 0, NULL },
23250 : { 0, NULL },
23251 : },
23252 : {
23253 : "clusapi_ReAddNotifyResource",
23254 : sizeof(struct clusapi_ReAddNotifyResource),
23255 : (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyResource,
23256 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyResource,
23257 : (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyResource,
23258 : { 0, NULL },
23259 : { 0, NULL },
23260 : },
23261 : {
23262 : "clusapi_GetNotify",
23263 : sizeof(struct clusapi_GetNotify),
23264 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNotify,
23265 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNotify,
23266 : (ndr_print_function_t) ndr_print_clusapi_GetNotify,
23267 : { 0, NULL },
23268 : { 0, NULL },
23269 : },
23270 : {
23271 : "clusapi_OpenNode",
23272 : sizeof(struct clusapi_OpenNode),
23273 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNode,
23274 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNode,
23275 : (ndr_print_function_t) ndr_print_clusapi_OpenNode,
23276 : { 0, NULL },
23277 : { 0, NULL },
23278 : },
23279 : {
23280 : "clusapi_CloseNode",
23281 : sizeof(struct clusapi_CloseNode),
23282 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseNode,
23283 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseNode,
23284 : (ndr_print_function_t) ndr_print_clusapi_CloseNode,
23285 : { 0, NULL },
23286 : { 0, NULL },
23287 : },
23288 : {
23289 : "clusapi_GetNodeState",
23290 : sizeof(struct clusapi_GetNodeState),
23291 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNodeState,
23292 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNodeState,
23293 : (ndr_print_function_t) ndr_print_clusapi_GetNodeState,
23294 : { 0, NULL },
23295 : { 0, NULL },
23296 : },
23297 : {
23298 : "clusapi_PauseNode",
23299 : sizeof(struct clusapi_PauseNode),
23300 : (ndr_push_flags_fn_t) ndr_push_clusapi_PauseNode,
23301 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_PauseNode,
23302 : (ndr_print_function_t) ndr_print_clusapi_PauseNode,
23303 : { 0, NULL },
23304 : { 0, NULL },
23305 : },
23306 : {
23307 : "clusapi_ResumeNode",
23308 : sizeof(struct clusapi_ResumeNode),
23309 : (ndr_push_flags_fn_t) ndr_push_clusapi_ResumeNode,
23310 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ResumeNode,
23311 : (ndr_print_function_t) ndr_print_clusapi_ResumeNode,
23312 : { 0, NULL },
23313 : { 0, NULL },
23314 : },
23315 : {
23316 : "clusapi_EvictNode",
23317 : sizeof(struct clusapi_EvictNode),
23318 : (ndr_push_flags_fn_t) ndr_push_clusapi_EvictNode,
23319 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_EvictNode,
23320 : (ndr_print_function_t) ndr_print_clusapi_EvictNode,
23321 : { 0, NULL },
23322 : { 0, NULL },
23323 : },
23324 : {
23325 : "clusapi_NodeResourceControl",
23326 : sizeof(struct clusapi_NodeResourceControl),
23327 : (ndr_push_flags_fn_t) ndr_push_clusapi_NodeResourceControl,
23328 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeResourceControl,
23329 : (ndr_print_function_t) ndr_print_clusapi_NodeResourceControl,
23330 : { 0, NULL },
23331 : { 0, NULL },
23332 : },
23333 : {
23334 : "clusapi_ResourceControl",
23335 : sizeof(struct clusapi_ResourceControl),
23336 : (ndr_push_flags_fn_t) ndr_push_clusapi_ResourceControl,
23337 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ResourceControl,
23338 : (ndr_print_function_t) ndr_print_clusapi_ResourceControl,
23339 : { 0, NULL },
23340 : { 0, NULL },
23341 : },
23342 : {
23343 : "clusapi_NodeResourceTypeControl",
23344 : sizeof(struct clusapi_NodeResourceTypeControl),
23345 : (ndr_push_flags_fn_t) ndr_push_clusapi_NodeResourceTypeControl,
23346 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeResourceTypeControl,
23347 : (ndr_print_function_t) ndr_print_clusapi_NodeResourceTypeControl,
23348 : { 0, NULL },
23349 : { 0, NULL },
23350 : },
23351 : {
23352 : "clusapi_ResourceTypeControl",
23353 : sizeof(struct clusapi_ResourceTypeControl),
23354 : (ndr_push_flags_fn_t) ndr_push_clusapi_ResourceTypeControl,
23355 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ResourceTypeControl,
23356 : (ndr_print_function_t) ndr_print_clusapi_ResourceTypeControl,
23357 : { 0, NULL },
23358 : { 0, NULL },
23359 : },
23360 : {
23361 : "clusapi_NodeGroupControl",
23362 : sizeof(struct clusapi_NodeGroupControl),
23363 : (ndr_push_flags_fn_t) ndr_push_clusapi_NodeGroupControl,
23364 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeGroupControl,
23365 : (ndr_print_function_t) ndr_print_clusapi_NodeGroupControl,
23366 : { 0, NULL },
23367 : { 0, NULL },
23368 : },
23369 : {
23370 : "clusapi_GroupControl",
23371 : sizeof(struct clusapi_GroupControl),
23372 : (ndr_push_flags_fn_t) ndr_push_clusapi_GroupControl,
23373 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GroupControl,
23374 : (ndr_print_function_t) ndr_print_clusapi_GroupControl,
23375 : { 0, NULL },
23376 : { 0, NULL },
23377 : },
23378 : {
23379 : "clusapi_NodeNodeControl",
23380 : sizeof(struct clusapi_NodeNodeControl),
23381 : (ndr_push_flags_fn_t) ndr_push_clusapi_NodeNodeControl,
23382 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeNodeControl,
23383 : (ndr_print_function_t) ndr_print_clusapi_NodeNodeControl,
23384 : { 0, NULL },
23385 : { 0, NULL },
23386 : },
23387 : {
23388 : "clusapi_NodeControl",
23389 : sizeof(struct clusapi_NodeControl),
23390 : (ndr_push_flags_fn_t) ndr_push_clusapi_NodeControl,
23391 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeControl,
23392 : (ndr_print_function_t) ndr_print_clusapi_NodeControl,
23393 : { 0, NULL },
23394 : { 0, NULL },
23395 : },
23396 : {
23397 : "Opnum80NotUsedOnWire",
23398 : sizeof(struct Opnum80NotUsedOnWire),
23399 : (ndr_push_flags_fn_t) ndr_push_Opnum80NotUsedOnWire,
23400 : (ndr_pull_flags_fn_t) ndr_pull_Opnum80NotUsedOnWire,
23401 : (ndr_print_function_t) ndr_print_Opnum80NotUsedOnWire,
23402 : { 0, NULL },
23403 : { 0, NULL },
23404 : },
23405 : {
23406 : "clusapi_OpenNetwork",
23407 : sizeof(struct clusapi_OpenNetwork),
23408 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNetwork,
23409 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNetwork,
23410 : (ndr_print_function_t) ndr_print_clusapi_OpenNetwork,
23411 : { 0, NULL },
23412 : { 0, NULL },
23413 : },
23414 : {
23415 : "clusapi_CloseNetwork",
23416 : sizeof(struct clusapi_CloseNetwork),
23417 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseNetwork,
23418 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseNetwork,
23419 : (ndr_print_function_t) ndr_print_clusapi_CloseNetwork,
23420 : { 0, NULL },
23421 : { 0, NULL },
23422 : },
23423 : {
23424 : "clusapi_GetNetworkState",
23425 : sizeof(struct clusapi_GetNetworkState),
23426 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetworkState,
23427 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetworkState,
23428 : (ndr_print_function_t) ndr_print_clusapi_GetNetworkState,
23429 : { 0, NULL },
23430 : { 0, NULL },
23431 : },
23432 : {
23433 : "clusapi_SetNetworkName",
23434 : sizeof(struct clusapi_SetNetworkName),
23435 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetNetworkName,
23436 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetNetworkName,
23437 : (ndr_print_function_t) ndr_print_clusapi_SetNetworkName,
23438 : { 0, NULL },
23439 : { 0, NULL },
23440 : },
23441 : {
23442 : "clusapi_CreateNetworkEnum",
23443 : sizeof(struct clusapi_CreateNetworkEnum),
23444 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNetworkEnum,
23445 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNetworkEnum,
23446 : (ndr_print_function_t) ndr_print_clusapi_CreateNetworkEnum,
23447 : { 0, NULL },
23448 : { 0, NULL },
23449 : },
23450 : {
23451 : "clusapi_GetNetworkId",
23452 : sizeof(struct clusapi_GetNetworkId),
23453 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetworkId,
23454 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetworkId,
23455 : (ndr_print_function_t) ndr_print_clusapi_GetNetworkId,
23456 : { 0, NULL },
23457 : { 0, NULL },
23458 : },
23459 : {
23460 : "clusapi_SetNetworkPriorityOrder",
23461 : sizeof(struct clusapi_SetNetworkPriorityOrder),
23462 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetNetworkPriorityOrder,
23463 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetNetworkPriorityOrder,
23464 : (ndr_print_function_t) ndr_print_clusapi_SetNetworkPriorityOrder,
23465 : { 0, NULL },
23466 : { 0, NULL },
23467 : },
23468 : {
23469 : "clusapi_NodeNetworkControl",
23470 : sizeof(struct clusapi_NodeNetworkControl),
23471 : (ndr_push_flags_fn_t) ndr_push_clusapi_NodeNetworkControl,
23472 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeNetworkControl,
23473 : (ndr_print_function_t) ndr_print_clusapi_NodeNetworkControl,
23474 : { 0, NULL },
23475 : { 0, NULL },
23476 : },
23477 : {
23478 : "clusapi_NetworkControl",
23479 : sizeof(struct clusapi_NetworkControl),
23480 : (ndr_push_flags_fn_t) ndr_push_clusapi_NetworkControl,
23481 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NetworkControl,
23482 : (ndr_print_function_t) ndr_print_clusapi_NetworkControl,
23483 : { 0, NULL },
23484 : { 0, NULL },
23485 : },
23486 : {
23487 : "clusapi_AddNotifyNetwork",
23488 : sizeof(struct clusapi_AddNotifyNetwork),
23489 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyNetwork,
23490 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyNetwork,
23491 : (ndr_print_function_t) ndr_print_clusapi_AddNotifyNetwork,
23492 : { 0, NULL },
23493 : { 0, NULL },
23494 : },
23495 : {
23496 : "clusapi_ReAddNotifyNetwork",
23497 : sizeof(struct clusapi_ReAddNotifyNetwork),
23498 : (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyNetwork,
23499 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyNetwork,
23500 : (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyNetwork,
23501 : { 0, NULL },
23502 : { 0, NULL },
23503 : },
23504 : {
23505 : "clusapi_OpenNetInterface",
23506 : sizeof(struct clusapi_OpenNetInterface),
23507 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNetInterface,
23508 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNetInterface,
23509 : (ndr_print_function_t) ndr_print_clusapi_OpenNetInterface,
23510 : { 0, NULL },
23511 : { 0, NULL },
23512 : },
23513 : {
23514 : "clusapi_CloseNetInterface",
23515 : sizeof(struct clusapi_CloseNetInterface),
23516 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseNetInterface,
23517 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseNetInterface,
23518 : (ndr_print_function_t) ndr_print_clusapi_CloseNetInterface,
23519 : { 0, NULL },
23520 : { 0, NULL },
23521 : },
23522 : {
23523 : "clusapi_GetNetInterfaceState",
23524 : sizeof(struct clusapi_GetNetInterfaceState),
23525 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetInterfaceState,
23526 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetInterfaceState,
23527 : (ndr_print_function_t) ndr_print_clusapi_GetNetInterfaceState,
23528 : { 0, NULL },
23529 : { 0, NULL },
23530 : },
23531 : {
23532 : "clusapi_GetNetInterface",
23533 : sizeof(struct clusapi_GetNetInterface),
23534 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetInterface,
23535 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetInterface,
23536 : (ndr_print_function_t) ndr_print_clusapi_GetNetInterface,
23537 : { 0, NULL },
23538 : { 0, NULL },
23539 : },
23540 : {
23541 : "clusapi_GetNetInterfaceId",
23542 : sizeof(struct clusapi_GetNetInterfaceId),
23543 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetInterfaceId,
23544 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetInterfaceId,
23545 : (ndr_print_function_t) ndr_print_clusapi_GetNetInterfaceId,
23546 : { 0, NULL },
23547 : { 0, NULL },
23548 : },
23549 : {
23550 : "clusapi_NodeNetInterfaceControl",
23551 : sizeof(struct clusapi_NodeNetInterfaceControl),
23552 : (ndr_push_flags_fn_t) ndr_push_clusapi_NodeNetInterfaceControl,
23553 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeNetInterfaceControl,
23554 : (ndr_print_function_t) ndr_print_clusapi_NodeNetInterfaceControl,
23555 : { 0, NULL },
23556 : { 0, NULL },
23557 : },
23558 : {
23559 : "clusapi_NetInterfaceControl",
23560 : sizeof(struct clusapi_NetInterfaceControl),
23561 : (ndr_push_flags_fn_t) ndr_push_clusapi_NetInterfaceControl,
23562 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NetInterfaceControl,
23563 : (ndr_print_function_t) ndr_print_clusapi_NetInterfaceControl,
23564 : { 0, NULL },
23565 : { 0, NULL },
23566 : },
23567 : {
23568 : "clusapi_AddNotifyNetInterface",
23569 : sizeof(struct clusapi_AddNotifyNetInterface),
23570 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyNetInterface,
23571 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyNetInterface,
23572 : (ndr_print_function_t) ndr_print_clusapi_AddNotifyNetInterface,
23573 : { 0, NULL },
23574 : { 0, NULL },
23575 : },
23576 : {
23577 : "clusapi_ReAddNotifyNetInterface",
23578 : sizeof(struct clusapi_ReAddNotifyNetInterface),
23579 : (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyNetInterface,
23580 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyNetInterface,
23581 : (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyNetInterface,
23582 : { 0, NULL },
23583 : { 0, NULL },
23584 : },
23585 : {
23586 : "clusapi_CreateNodeEnum",
23587 : sizeof(struct clusapi_CreateNodeEnum),
23588 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNodeEnum,
23589 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNodeEnum,
23590 : (ndr_print_function_t) ndr_print_clusapi_CreateNodeEnum,
23591 : { 0, NULL },
23592 : { 0, NULL },
23593 : },
23594 : {
23595 : "clusapi_GetClusterVersion2",
23596 : sizeof(struct clusapi_GetClusterVersion2),
23597 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetClusterVersion2,
23598 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetClusterVersion2,
23599 : (ndr_print_function_t) ndr_print_clusapi_GetClusterVersion2,
23600 : { 0, NULL },
23601 : { 0, NULL },
23602 : },
23603 : {
23604 : "clusapi_CreateResTypeEnum",
23605 : sizeof(struct clusapi_CreateResTypeEnum),
23606 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResTypeEnum,
23607 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResTypeEnum,
23608 : (ndr_print_function_t) ndr_print_clusapi_CreateResTypeEnum,
23609 : { 0, NULL },
23610 : { 0, NULL },
23611 : },
23612 : {
23613 : "clusapi_BackupClusterDatabase",
23614 : sizeof(struct clusapi_BackupClusterDatabase),
23615 : (ndr_push_flags_fn_t) ndr_push_clusapi_BackupClusterDatabase,
23616 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_BackupClusterDatabase,
23617 : (ndr_print_function_t) ndr_print_clusapi_BackupClusterDatabase,
23618 : { 0, NULL },
23619 : { 0, NULL },
23620 : },
23621 : {
23622 : "clusapi_NodeClusterControl",
23623 : sizeof(struct clusapi_NodeClusterControl),
23624 : (ndr_push_flags_fn_t) ndr_push_clusapi_NodeClusterControl,
23625 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeClusterControl,
23626 : (ndr_print_function_t) ndr_print_clusapi_NodeClusterControl,
23627 : { 0, NULL },
23628 : { 0, NULL },
23629 : },
23630 : {
23631 : "clusapi_ClusterControl",
23632 : sizeof(struct clusapi_ClusterControl),
23633 : (ndr_push_flags_fn_t) ndr_push_clusapi_ClusterControl,
23634 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ClusterControl,
23635 : (ndr_print_function_t) ndr_print_clusapi_ClusterControl,
23636 : { 0, NULL },
23637 : { 0, NULL },
23638 : },
23639 : {
23640 : "clusapi_UnblockGetNotifyCall",
23641 : sizeof(struct clusapi_UnblockGetNotifyCall),
23642 : (ndr_push_flags_fn_t) ndr_push_clusapi_UnblockGetNotifyCall,
23643 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_UnblockGetNotifyCall,
23644 : (ndr_print_function_t) ndr_print_clusapi_UnblockGetNotifyCall,
23645 : { 0, NULL },
23646 : { 0, NULL },
23647 : },
23648 : {
23649 : "clusapi_SetServiceAccountPassword",
23650 : sizeof(struct clusapi_SetServiceAccountPassword),
23651 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetServiceAccountPassword,
23652 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetServiceAccountPassword,
23653 : (ndr_print_function_t) ndr_print_clusapi_SetServiceAccountPassword,
23654 : { 0, NULL },
23655 : { 0, NULL },
23656 : },
23657 : {
23658 : "clusapi_SetResourceDependencyExpression",
23659 : sizeof(struct clusapi_SetResourceDependencyExpression),
23660 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetResourceDependencyExpression,
23661 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetResourceDependencyExpression,
23662 : (ndr_print_function_t) ndr_print_clusapi_SetResourceDependencyExpression,
23663 : { 0, NULL },
23664 : { 0, NULL },
23665 : },
23666 : {
23667 : "clusapi_GetResourceDependencyExpression",
23668 : sizeof(struct clusapi_GetResourceDependencyExpression),
23669 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceDependencyExpression,
23670 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceDependencyExpression,
23671 : (ndr_print_function_t) ndr_print_clusapi_GetResourceDependencyExpression,
23672 : { 0, NULL },
23673 : { 0, NULL },
23674 : },
23675 : {
23676 : "Opnum111NotUsedOnWire",
23677 : sizeof(struct Opnum111NotUsedOnWire),
23678 : (ndr_push_flags_fn_t) ndr_push_Opnum111NotUsedOnWire,
23679 : (ndr_pull_flags_fn_t) ndr_pull_Opnum111NotUsedOnWire,
23680 : (ndr_print_function_t) ndr_print_Opnum111NotUsedOnWire,
23681 : { 0, NULL },
23682 : { 0, NULL },
23683 : },
23684 : {
23685 : "clusapi_GetResourceNetworkName",
23686 : sizeof(struct clusapi_GetResourceNetworkName),
23687 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceNetworkName,
23688 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceNetworkName,
23689 : (ndr_print_function_t) ndr_print_clusapi_GetResourceNetworkName,
23690 : { 0, NULL },
23691 : { 0, NULL },
23692 : },
23693 : {
23694 : "clusapi_ExecuteBatch",
23695 : sizeof(struct clusapi_ExecuteBatch),
23696 : (ndr_push_flags_fn_t) ndr_push_clusapi_ExecuteBatch,
23697 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ExecuteBatch,
23698 : (ndr_print_function_t) ndr_print_clusapi_ExecuteBatch,
23699 : { 0, NULL },
23700 : { 0, NULL },
23701 : },
23702 : {
23703 : "clusapi_CreateBatchPort",
23704 : sizeof(struct clusapi_CreateBatchPort),
23705 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateBatchPort,
23706 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateBatchPort,
23707 : (ndr_print_function_t) ndr_print_clusapi_CreateBatchPort,
23708 : { 0, NULL },
23709 : { 0, NULL },
23710 : },
23711 : {
23712 : "clusapi_GetBatchNotification",
23713 : sizeof(struct clusapi_GetBatchNotification),
23714 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetBatchNotification,
23715 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetBatchNotification,
23716 : (ndr_print_function_t) ndr_print_clusapi_GetBatchNotification,
23717 : { 0, NULL },
23718 : { 0, NULL },
23719 : },
23720 : {
23721 : "clusapi_CloseBatchPort",
23722 : sizeof(struct clusapi_CloseBatchPort),
23723 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseBatchPort,
23724 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseBatchPort,
23725 : (ndr_print_function_t) ndr_print_clusapi_CloseBatchPort,
23726 : { 0, NULL },
23727 : { 0, NULL },
23728 : },
23729 : {
23730 : "clusapi_OpenClusterEx",
23731 : sizeof(struct clusapi_OpenClusterEx),
23732 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenClusterEx,
23733 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenClusterEx,
23734 : (ndr_print_function_t) ndr_print_clusapi_OpenClusterEx,
23735 : { 0, NULL },
23736 : { 0, NULL },
23737 : },
23738 : {
23739 : "clusapi_OpenNodeEx",
23740 : sizeof(struct clusapi_OpenNodeEx),
23741 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNodeEx,
23742 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNodeEx,
23743 : (ndr_print_function_t) ndr_print_clusapi_OpenNodeEx,
23744 : { 0, NULL },
23745 : { 0, NULL },
23746 : },
23747 : {
23748 : "clusapi_OpenGroupEx",
23749 : sizeof(struct clusapi_OpenGroupEx),
23750 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenGroupEx,
23751 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenGroupEx,
23752 : (ndr_print_function_t) ndr_print_clusapi_OpenGroupEx,
23753 : { 0, NULL },
23754 : { 0, NULL },
23755 : },
23756 : {
23757 : "clusapi_OpenResourceEx",
23758 : sizeof(struct clusapi_OpenResourceEx),
23759 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenResourceEx,
23760 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenResourceEx,
23761 : (ndr_print_function_t) ndr_print_clusapi_OpenResourceEx,
23762 : { 0, NULL },
23763 : { 0, NULL },
23764 : },
23765 : {
23766 : "clusapi_OpenNetworkEx",
23767 : sizeof(struct clusapi_OpenNetworkEx),
23768 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNetworkEx,
23769 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNetworkEx,
23770 : (ndr_print_function_t) ndr_print_clusapi_OpenNetworkEx,
23771 : { 0, NULL },
23772 : { 0, NULL },
23773 : },
23774 : {
23775 : "clusapi_OpenNetInterfaceEx",
23776 : sizeof(struct clusapi_OpenNetInterfaceEx),
23777 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNetInterfaceEx,
23778 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNetInterfaceEx,
23779 : (ndr_print_function_t) ndr_print_clusapi_OpenNetInterfaceEx,
23780 : { 0, NULL },
23781 : { 0, NULL },
23782 : },
23783 : {
23784 : "clusapi_ChangeCsvState",
23785 : sizeof(struct clusapi_ChangeCsvState),
23786 : (ndr_push_flags_fn_t) ndr_push_clusapi_ChangeCsvState,
23787 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ChangeCsvState,
23788 : (ndr_print_function_t) ndr_print_clusapi_ChangeCsvState,
23789 : { 0, NULL },
23790 : { 0, NULL },
23791 : },
23792 : {
23793 : "clusapi_CreateNodeEnumEx",
23794 : sizeof(struct clusapi_CreateNodeEnumEx),
23795 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNodeEnumEx,
23796 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNodeEnumEx,
23797 : (ndr_print_function_t) ndr_print_clusapi_CreateNodeEnumEx,
23798 : { 0, NULL },
23799 : { 0, NULL },
23800 : },
23801 : {
23802 : "clusapi_CreateEnumEx",
23803 : sizeof(struct clusapi_CreateEnumEx),
23804 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateEnumEx,
23805 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateEnumEx,
23806 : (ndr_print_function_t) ndr_print_clusapi_CreateEnumEx,
23807 : { 0, NULL },
23808 : { 0, NULL },
23809 : },
23810 : {
23811 : "clusapi_PauseNodeEx",
23812 : sizeof(struct clusapi_PauseNodeEx),
23813 : (ndr_push_flags_fn_t) ndr_push_clusapi_PauseNodeEx,
23814 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_PauseNodeEx,
23815 : (ndr_print_function_t) ndr_print_clusapi_PauseNodeEx,
23816 : { 0, NULL },
23817 : { 0, NULL },
23818 : },
23819 : {
23820 : "clusapi_PauseNodeWithDrainTarget",
23821 : sizeof(struct clusapi_PauseNodeWithDrainTarget),
23822 : (ndr_push_flags_fn_t) ndr_push_clusapi_PauseNodeWithDrainTarget,
23823 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_PauseNodeWithDrainTarget,
23824 : (ndr_print_function_t) ndr_print_clusapi_PauseNodeWithDrainTarget,
23825 : { 0, NULL },
23826 : { 0, NULL },
23827 : },
23828 : {
23829 : "clusapi_ResumeNodeEx",
23830 : sizeof(struct clusapi_ResumeNodeEx),
23831 : (ndr_push_flags_fn_t) ndr_push_clusapi_ResumeNodeEx,
23832 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ResumeNodeEx,
23833 : (ndr_print_function_t) ndr_print_clusapi_ResumeNodeEx,
23834 : { 0, NULL },
23835 : { 0, NULL },
23836 : },
23837 : {
23838 : "clusapi_CreateGroupEx",
23839 : sizeof(struct clusapi_CreateGroupEx),
23840 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupEx,
23841 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupEx,
23842 : (ndr_print_function_t) ndr_print_clusapi_CreateGroupEx,
23843 : { 0, NULL },
23844 : { 0, NULL },
23845 : },
23846 : {
23847 : "clusapi_OnlineGroupEx",
23848 : sizeof(struct clusapi_OnlineGroupEx),
23849 : (ndr_push_flags_fn_t) ndr_push_clusapi_OnlineGroupEx,
23850 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OnlineGroupEx,
23851 : (ndr_print_function_t) ndr_print_clusapi_OnlineGroupEx,
23852 : { 0, NULL },
23853 : { 0, NULL },
23854 : },
23855 : {
23856 : "clusapi_OfflineGroupEx",
23857 : sizeof(struct clusapi_OfflineGroupEx),
23858 : (ndr_push_flags_fn_t) ndr_push_clusapi_OfflineGroupEx,
23859 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OfflineGroupEx,
23860 : (ndr_print_function_t) ndr_print_clusapi_OfflineGroupEx,
23861 : { 0, NULL },
23862 : { 0, NULL },
23863 : },
23864 : {
23865 : "clusapi_MoveGroupEx",
23866 : sizeof(struct clusapi_MoveGroupEx),
23867 : (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroupEx,
23868 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroupEx,
23869 : (ndr_print_function_t) ndr_print_clusapi_MoveGroupEx,
23870 : { 0, NULL },
23871 : { 0, NULL },
23872 : },
23873 : {
23874 : "clusapi_MoveGroupToNodeEx",
23875 : sizeof(struct clusapi_MoveGroupToNodeEx),
23876 : (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroupToNodeEx,
23877 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroupToNodeEx,
23878 : (ndr_print_function_t) ndr_print_clusapi_MoveGroupToNodeEx,
23879 : { 0, NULL },
23880 : { 0, NULL },
23881 : },
23882 : {
23883 : "clusapi_CancelClusterGroupOperation",
23884 : sizeof(struct clusapi_CancelClusterGroupOperation),
23885 : (ndr_push_flags_fn_t) ndr_push_clusapi_CancelClusterGroupOperation,
23886 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CancelClusterGroupOperation,
23887 : (ndr_print_function_t) ndr_print_clusapi_CancelClusterGroupOperation,
23888 : { 0, NULL },
23889 : { 0, NULL },
23890 : },
23891 : {
23892 : "clusapi_OnlineResourceEx",
23893 : sizeof(struct clusapi_OnlineResourceEx),
23894 : (ndr_push_flags_fn_t) ndr_push_clusapi_OnlineResourceEx,
23895 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OnlineResourceEx,
23896 : (ndr_print_function_t) ndr_print_clusapi_OnlineResourceEx,
23897 : { 0, NULL },
23898 : { 0, NULL },
23899 : },
23900 : {
23901 : "clusapi_OfflineResourceEx",
23902 : sizeof(struct clusapi_OfflineResourceEx),
23903 : (ndr_push_flags_fn_t) ndr_push_clusapi_OfflineResourceEx,
23904 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OfflineResourceEx,
23905 : (ndr_print_function_t) ndr_print_clusapi_OfflineResourceEx,
23906 : { 0, NULL },
23907 : { 0, NULL },
23908 : },
23909 : {
23910 : "clusapi_CreateNotifyV2",
23911 : sizeof(struct clusapi_CreateNotifyV2),
23912 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNotifyV2,
23913 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNotifyV2,
23914 : (ndr_print_function_t) ndr_print_clusapi_CreateNotifyV2,
23915 : { 0, NULL },
23916 : { 0, NULL },
23917 : },
23918 : {
23919 : "clusapi_AddNotifyV2",
23920 : sizeof(struct clusapi_AddNotifyV2),
23921 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyV2,
23922 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyV2,
23923 : (ndr_print_function_t) ndr_print_clusapi_AddNotifyV2,
23924 : { 0, NULL },
23925 : { 0, NULL },
23926 : },
23927 : {
23928 : "clusapi_GetNotifyV2",
23929 : sizeof(struct clusapi_GetNotifyV2),
23930 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNotifyV2,
23931 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNotifyV2,
23932 : (ndr_print_function_t) ndr_print_clusapi_GetNotifyV2,
23933 : { 0, NULL },
23934 : { 0, NULL },
23935 : },
23936 : {
23937 : "clusapi_QueryAllValues",
23938 : sizeof(struct clusapi_QueryAllValues),
23939 : (ndr_push_flags_fn_t) ndr_push_clusapi_QueryAllValues,
23940 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_QueryAllValues,
23941 : (ndr_print_function_t) ndr_print_clusapi_QueryAllValues,
23942 : { 0, NULL },
23943 : { 0, NULL },
23944 : },
23945 : {
23946 : "clusapi_StmFindDisk",
23947 : sizeof(struct clusapi_StmFindDisk),
23948 : (ndr_push_flags_fn_t) ndr_push_clusapi_StmFindDisk,
23949 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_StmFindDisk,
23950 : (ndr_print_function_t) ndr_print_clusapi_StmFindDisk,
23951 : { 0, NULL },
23952 : { 0, NULL },
23953 : },
23954 : {
23955 : "clusapi_ClusterMrr",
23956 : sizeof(struct clusapi_ClusterMrr),
23957 : (ndr_push_flags_fn_t) ndr_push_clusapi_ClusterMrr,
23958 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ClusterMrr,
23959 : (ndr_print_function_t) ndr_print_clusapi_ClusterMrr,
23960 : { 0, NULL },
23961 : { 0, NULL },
23962 : },
23963 : {
23964 : "clusapi_CreateGroupEnum",
23965 : sizeof(struct clusapi_CreateGroupEnum),
23966 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupEnum,
23967 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupEnum,
23968 : (ndr_print_function_t) ndr_print_clusapi_CreateGroupEnum,
23969 : { 0, NULL },
23970 : { 0, NULL },
23971 : },
23972 : {
23973 : "clusapi_CreateResourceEnum",
23974 : sizeof(struct clusapi_CreateResourceEnum),
23975 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResourceEnum,
23976 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResourceEnum,
23977 : (ndr_print_function_t) ndr_print_clusapi_CreateResourceEnum,
23978 : { 0, NULL },
23979 : { 0, NULL },
23980 : },
23981 : {
23982 : "clusapi_ExecuteReadBatch",
23983 : sizeof(struct clusapi_ExecuteReadBatch),
23984 : (ndr_push_flags_fn_t) ndr_push_clusapi_ExecuteReadBatch,
23985 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ExecuteReadBatch,
23986 : (ndr_print_function_t) ndr_print_clusapi_ExecuteReadBatch,
23987 : { 0, NULL },
23988 : { 0, NULL },
23989 : },
23990 : {
23991 : "clusapi_RestartResource",
23992 : sizeof(struct clusapi_RestartResource),
23993 : (ndr_push_flags_fn_t) ndr_push_clusapi_RestartResource,
23994 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_RestartResource,
23995 : (ndr_print_function_t) ndr_print_clusapi_RestartResource,
23996 : { 0, NULL },
23997 : { 0, NULL },
23998 : },
23999 : {
24000 : "clusapi_GetNotifyAsync",
24001 : sizeof(struct clusapi_GetNotifyAsync),
24002 : (ndr_push_flags_fn_t) ndr_push_clusapi_GetNotifyAsync,
24003 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNotifyAsync,
24004 : (ndr_print_function_t) ndr_print_clusapi_GetNotifyAsync,
24005 : { 0, NULL },
24006 : { 0, NULL },
24007 : },
24008 : {
24009 : "Opnum148NotUsedOnWire",
24010 : sizeof(struct Opnum148NotUsedOnWire),
24011 : (ndr_push_flags_fn_t) ndr_push_Opnum148NotUsedOnWire,
24012 : (ndr_pull_flags_fn_t) ndr_pull_Opnum148NotUsedOnWire,
24013 : (ndr_print_function_t) ndr_print_Opnum148NotUsedOnWire,
24014 : { 0, NULL },
24015 : { 0, NULL },
24016 : },
24017 : {
24018 : "Opnum149otUsedOnWire",
24019 : sizeof(struct Opnum149otUsedOnWire),
24020 : (ndr_push_flags_fn_t) ndr_push_Opnum149otUsedOnWire,
24021 : (ndr_pull_flags_fn_t) ndr_pull_Opnum149otUsedOnWire,
24022 : (ndr_print_function_t) ndr_print_Opnum149otUsedOnWire,
24023 : { 0, NULL },
24024 : { 0, NULL },
24025 : },
24026 : {
24027 : "Opnum150NotUsedOnWire",
24028 : sizeof(struct Opnum150NotUsedOnWire),
24029 : (ndr_push_flags_fn_t) ndr_push_Opnum150NotUsedOnWire,
24030 : (ndr_pull_flags_fn_t) ndr_pull_Opnum150NotUsedOnWire,
24031 : (ndr_print_function_t) ndr_print_Opnum150NotUsedOnWire,
24032 : { 0, NULL },
24033 : { 0, NULL },
24034 : },
24035 : {
24036 : "Opnum151NotUsedOnWire",
24037 : sizeof(struct Opnum151NotUsedOnWire),
24038 : (ndr_push_flags_fn_t) ndr_push_Opnum151NotUsedOnWire,
24039 : (ndr_pull_flags_fn_t) ndr_pull_Opnum151NotUsedOnWire,
24040 : (ndr_print_function_t) ndr_print_Opnum151NotUsedOnWire,
24041 : { 0, NULL },
24042 : { 0, NULL },
24043 : },
24044 : {
24045 : "Opnum152NotUsedOnWire",
24046 : sizeof(struct Opnum152NotUsedOnWire),
24047 : (ndr_push_flags_fn_t) ndr_push_Opnum152NotUsedOnWire,
24048 : (ndr_pull_flags_fn_t) ndr_pull_Opnum152NotUsedOnWire,
24049 : (ndr_print_function_t) ndr_print_Opnum152NotUsedOnWire,
24050 : { 0, NULL },
24051 : { 0, NULL },
24052 : },
24053 : {
24054 : "Opnum153NotUsedOnWire",
24055 : sizeof(struct Opnum153NotUsedOnWire),
24056 : (ndr_push_flags_fn_t) ndr_push_Opnum153NotUsedOnWire,
24057 : (ndr_pull_flags_fn_t) ndr_pull_Opnum153NotUsedOnWire,
24058 : (ndr_print_function_t) ndr_print_Opnum153NotUsedOnWire,
24059 : { 0, NULL },
24060 : { 0, NULL },
24061 : },
24062 : {
24063 : "Opnum154NotUsedOnWire",
24064 : sizeof(struct Opnum154NotUsedOnWire),
24065 : (ndr_push_flags_fn_t) ndr_push_Opnum154NotUsedOnWire,
24066 : (ndr_pull_flags_fn_t) ndr_pull_Opnum154NotUsedOnWire,
24067 : (ndr_print_function_t) ndr_print_Opnum154NotUsedOnWire,
24068 : { 0, NULL },
24069 : { 0, NULL },
24070 : },
24071 : {
24072 : "clusapi_AddNotifyResourceTypeV2",
24073 : sizeof(struct clusapi_AddNotifyResourceTypeV2),
24074 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyResourceTypeV2,
24075 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyResourceTypeV2,
24076 : (ndr_print_function_t) ndr_print_clusapi_AddNotifyResourceTypeV2,
24077 : { 0, NULL },
24078 : { 0, NULL },
24079 : },
24080 : {
24081 : "Opnum156NotUsedOnWire",
24082 : sizeof(struct Opnum156NotUsedOnWire),
24083 : (ndr_push_flags_fn_t) ndr_push_Opnum156NotUsedOnWire,
24084 : (ndr_pull_flags_fn_t) ndr_pull_Opnum156NotUsedOnWire,
24085 : (ndr_print_function_t) ndr_print_Opnum156NotUsedOnWire,
24086 : { 0, NULL },
24087 : { 0, NULL },
24088 : },
24089 : {
24090 : "clusapi_ExecuteReadBatchEx",
24091 : sizeof(struct clusapi_ExecuteReadBatchEx),
24092 : (ndr_push_flags_fn_t) ndr_push_clusapi_ExecuteReadBatchEx,
24093 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ExecuteReadBatchEx,
24094 : (ndr_print_function_t) ndr_print_clusapi_ExecuteReadBatchEx,
24095 : { 0, NULL },
24096 : { 0, NULL },
24097 : },
24098 : {
24099 : "Opnum158NotUsedOnWire",
24100 : sizeof(struct Opnum158NotUsedOnWire),
24101 : (ndr_push_flags_fn_t) ndr_push_Opnum158NotUsedOnWire,
24102 : (ndr_pull_flags_fn_t) ndr_pull_Opnum158NotUsedOnWire,
24103 : (ndr_print_function_t) ndr_print_Opnum158NotUsedOnWire,
24104 : { 0, NULL },
24105 : { 0, NULL },
24106 : },
24107 : {
24108 : "Opnum159NotUsedOnWire",
24109 : sizeof(struct Opnum159NotUsedOnWire),
24110 : (ndr_push_flags_fn_t) ndr_push_Opnum159NotUsedOnWire,
24111 : (ndr_pull_flags_fn_t) ndr_pull_Opnum159NotUsedOnWire,
24112 : (ndr_print_function_t) ndr_print_Opnum159NotUsedOnWire,
24113 : { 0, NULL },
24114 : { 0, NULL },
24115 : },
24116 : {
24117 : "Opnum160NotUsedOnWire",
24118 : sizeof(struct Opnum160NotUsedOnWire),
24119 : (ndr_push_flags_fn_t) ndr_push_Opnum160NotUsedOnWire,
24120 : (ndr_pull_flags_fn_t) ndr_pull_Opnum160NotUsedOnWire,
24121 : (ndr_print_function_t) ndr_print_Opnum160NotUsedOnWire,
24122 : { 0, NULL },
24123 : { 0, NULL },
24124 : },
24125 : {
24126 : "Opnum161NotUsedOnWire",
24127 : sizeof(struct Opnum161NotUsedOnWire),
24128 : (ndr_push_flags_fn_t) ndr_push_Opnum161NotUsedOnWire,
24129 : (ndr_pull_flags_fn_t) ndr_pull_Opnum161NotUsedOnWire,
24130 : (ndr_print_function_t) ndr_print_Opnum161NotUsedOnWire,
24131 : { 0, NULL },
24132 : { 0, NULL },
24133 : },
24134 : {
24135 : "Opnum162NotUsedOnWire",
24136 : sizeof(struct Opnum162NotUsedOnWire),
24137 : (ndr_push_flags_fn_t) ndr_push_Opnum162NotUsedOnWire,
24138 : (ndr_pull_flags_fn_t) ndr_pull_Opnum162NotUsedOnWire,
24139 : (ndr_print_function_t) ndr_print_Opnum162NotUsedOnWire,
24140 : { 0, NULL },
24141 : { 0, NULL },
24142 : },
24143 : {
24144 : "clusapi_CreateGroupSet",
24145 : sizeof(struct clusapi_CreateGroupSet),
24146 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupSet,
24147 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupSet,
24148 : (ndr_print_function_t) ndr_print_clusapi_CreateGroupSet,
24149 : { 0, NULL },
24150 : { 0, NULL },
24151 : },
24152 : {
24153 : "clusapi_OpenGroupSet",
24154 : sizeof(struct clusapi_OpenGroupSet),
24155 : (ndr_push_flags_fn_t) ndr_push_clusapi_OpenGroupSet,
24156 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenGroupSet,
24157 : (ndr_print_function_t) ndr_print_clusapi_OpenGroupSet,
24158 : { 0, NULL },
24159 : { 0, NULL },
24160 : },
24161 : {
24162 : "clusapi_CloseGroupSet",
24163 : sizeof(struct clusapi_CloseGroupSet),
24164 : (ndr_push_flags_fn_t) ndr_push_clusapi_CloseGroupSet,
24165 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseGroupSet,
24166 : (ndr_print_function_t) ndr_print_clusapi_CloseGroupSet,
24167 : { 0, NULL },
24168 : { 0, NULL },
24169 : },
24170 : {
24171 : "clusapi_DeleteGroupSet",
24172 : sizeof(struct clusapi_DeleteGroupSet),
24173 : (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteGroupSet,
24174 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteGroupSet,
24175 : (ndr_print_function_t) ndr_print_clusapi_DeleteGroupSet,
24176 : { 0, NULL },
24177 : { 0, NULL },
24178 : },
24179 : {
24180 : "clusapi_AddGroupToGroupSet",
24181 : sizeof(struct clusapi_AddGroupToGroupSet),
24182 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddGroupToGroupSet,
24183 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddGroupToGroupSet,
24184 : (ndr_print_function_t) ndr_print_clusapi_AddGroupToGroupSet,
24185 : { 0, NULL },
24186 : { 0, NULL },
24187 : },
24188 : {
24189 : "clusapi_RemoveGroupFromGroupSet",
24190 : sizeof(struct clusapi_RemoveGroupFromGroupSet),
24191 : (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveGroupFromGroupSet,
24192 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveGroupFromGroupSet,
24193 : (ndr_print_function_t) ndr_print_clusapi_RemoveGroupFromGroupSet,
24194 : { 0, NULL },
24195 : { 0, NULL },
24196 : },
24197 : {
24198 : "clusapi_MoveGroupToGroupSet",
24199 : sizeof(struct clusapi_MoveGroupToGroupSet),
24200 : (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroupToGroupSet,
24201 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroupToGroupSet,
24202 : (ndr_print_function_t) ndr_print_clusapi_MoveGroupToGroupSet,
24203 : { 0, NULL },
24204 : { 0, NULL },
24205 : },
24206 : {
24207 : "Opnum170NotUsedOnWire",
24208 : sizeof(struct Opnum170NotUsedOnWire),
24209 : (ndr_push_flags_fn_t) ndr_push_Opnum170NotUsedOnWire,
24210 : (ndr_pull_flags_fn_t) ndr_pull_Opnum170NotUsedOnWire,
24211 : (ndr_print_function_t) ndr_print_Opnum170NotUsedOnWire,
24212 : { 0, NULL },
24213 : { 0, NULL },
24214 : },
24215 : {
24216 : "clusapi_AddGroupSetDependency",
24217 : sizeof(struct clusapi_AddGroupSetDependency),
24218 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddGroupSetDependency,
24219 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddGroupSetDependency,
24220 : (ndr_print_function_t) ndr_print_clusapi_AddGroupSetDependency,
24221 : { 0, NULL },
24222 : { 0, NULL },
24223 : },
24224 : {
24225 : "clusapi_AddGroupToGroupSetDependency",
24226 : sizeof(struct clusapi_AddGroupToGroupSetDependency),
24227 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddGroupToGroupSetDependency,
24228 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddGroupToGroupSetDependency,
24229 : (ndr_print_function_t) ndr_print_clusapi_AddGroupToGroupSetDependency,
24230 : { 0, NULL },
24231 : { 0, NULL },
24232 : },
24233 : {
24234 : "clusapi_NodeGroupSetControl",
24235 : sizeof(struct clusapi_NodeGroupSetControl),
24236 : (ndr_push_flags_fn_t) ndr_push_clusapi_NodeGroupSetControl,
24237 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeGroupSetControl,
24238 : (ndr_print_function_t) ndr_print_clusapi_NodeGroupSetControl,
24239 : { 0, NULL },
24240 : { 0, NULL },
24241 : },
24242 : {
24243 : "clusapi_GroupSetControl",
24244 : sizeof(struct clusapi_GroupSetControl),
24245 : (ndr_push_flags_fn_t) ndr_push_clusapi_GroupSetControl,
24246 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_GroupSetControl,
24247 : (ndr_print_function_t) ndr_print_clusapi_GroupSetControl,
24248 : { 0, NULL },
24249 : { 0, NULL },
24250 : },
24251 : {
24252 : "clusapi_SetGroupDependencyExpression",
24253 : sizeof(struct clusapi_SetGroupDependencyExpression),
24254 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetGroupDependencyExpression,
24255 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetGroupDependencyExpression,
24256 : (ndr_print_function_t) ndr_print_clusapi_SetGroupDependencyExpression,
24257 : { 0, NULL },
24258 : { 0, NULL },
24259 : },
24260 : {
24261 : "clusapi_RemoveClusterGroupDependency",
24262 : sizeof(struct clusapi_RemoveClusterGroupDependency),
24263 : (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveClusterGroupDependency,
24264 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveClusterGroupDependency,
24265 : (ndr_print_function_t) ndr_print_clusapi_RemoveClusterGroupDependency,
24266 : { 0, NULL },
24267 : { 0, NULL },
24268 : },
24269 : {
24270 : "clusapi_SetGroupSetDependencyExpression",
24271 : sizeof(struct clusapi_SetGroupSetDependencyExpression),
24272 : (ndr_push_flags_fn_t) ndr_push_clusapi_SetGroupSetDependencyExpression,
24273 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetGroupSetDependencyExpression,
24274 : (ndr_print_function_t) ndr_print_clusapi_SetGroupSetDependencyExpression,
24275 : { 0, NULL },
24276 : { 0, NULL },
24277 : },
24278 : {
24279 : "clusapi_RemoveGroupSetDependency",
24280 : sizeof(struct clusapi_RemoveGroupSetDependency),
24281 : (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveGroupSetDependency,
24282 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveGroupSetDependency,
24283 : (ndr_print_function_t) ndr_print_clusapi_RemoveGroupSetDependency,
24284 : { 0, NULL },
24285 : { 0, NULL },
24286 : },
24287 : {
24288 : "clusapi_RemoveClusterGroupToGroupSetDependency",
24289 : sizeof(struct clusapi_RemoveClusterGroupToGroupSetDependency),
24290 : (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveClusterGroupToGroupSetDependency,
24291 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveClusterGroupToGroupSetDependency,
24292 : (ndr_print_function_t) ndr_print_clusapi_RemoveClusterGroupToGroupSetDependency,
24293 : { 0, NULL },
24294 : { 0, NULL },
24295 : },
24296 : {
24297 : "clusapi_CreateGroupSetEnum",
24298 : sizeof(struct clusapi_CreateGroupSetEnum),
24299 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupSetEnum,
24300 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupSetEnum,
24301 : (ndr_print_function_t) ndr_print_clusapi_CreateGroupSetEnum,
24302 : { 0, NULL },
24303 : { 0, NULL },
24304 : },
24305 : {
24306 : "clusapi_CreateNetInterfaceEnum",
24307 : sizeof(struct clusapi_CreateNetInterfaceEnum),
24308 : (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNetInterfaceEnum,
24309 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNetInterfaceEnum,
24310 : (ndr_print_function_t) ndr_print_clusapi_CreateNetInterfaceEnum,
24311 : { 0, NULL },
24312 : { 0, NULL },
24313 : },
24314 : {
24315 : "clusapi_ChangeCsvStateEx",
24316 : sizeof(struct clusapi_ChangeCsvStateEx),
24317 : (ndr_push_flags_fn_t) ndr_push_clusapi_ChangeCsvStateEx,
24318 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_ChangeCsvStateEx,
24319 : (ndr_print_function_t) ndr_print_clusapi_ChangeCsvStateEx,
24320 : { 0, NULL },
24321 : { 0, NULL },
24322 : },
24323 : {
24324 : "clusapi_AddGroupToGroupSetEx",
24325 : sizeof(struct clusapi_AddGroupToGroupSetEx),
24326 : (ndr_push_flags_fn_t) ndr_push_clusapi_AddGroupToGroupSetEx,
24327 : (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddGroupToGroupSetEx,
24328 : (ndr_print_function_t) ndr_print_clusapi_AddGroupToGroupSetEx,
24329 : { 0, NULL },
24330 : { 0, NULL },
24331 : },
24332 : { .name = NULL }
24333 : };
24334 :
24335 : static const char * const clusapi_endpoint_strings[] = {
24336 : "ncacn_ip_tcp:",
24337 : };
24338 :
24339 : static const struct ndr_interface_string_array clusapi_endpoints = {
24340 : .count = 1,
24341 : .names = clusapi_endpoint_strings
24342 : };
24343 :
24344 : static const char * const clusapi_authservice_strings[] = {
24345 : "MSServerClusterMgmtAPI",
24346 : };
24347 :
24348 : static const struct ndr_interface_string_array clusapi_authservices = {
24349 : .count = 1,
24350 : .names = clusapi_authservice_strings
24351 : };
24352 :
24353 :
24354 : const struct ndr_interface_table ndr_table_clusapi = {
24355 : .name = "clusapi",
24356 : .syntax_id = {
24357 : {0xb97db8b2,0x4c63,0x11cf,{0xbf,0xf6},{0x08,0x00,0x2b,0xe2,0x3f,0x2f}},
24358 : NDR_CLUSAPI_VERSION
24359 : },
24360 : .helpstring = NDR_CLUSAPI_HELPSTRING,
24361 : .num_calls = 184,
24362 : .calls = clusapi_calls,
24363 : .num_public_structs = 2,
24364 : .public_structs = clusapi_public_structs,
24365 : .endpoints = &clusapi_endpoints,
24366 : .authservices = &clusapi_authservices
24367 : };
24368 :
24369 : #endif /* SKIP_NDR_TABLE_clusapi */
|