1
/* parser auto-generated by pidl */
4
#include "librpc/gen_ndr/ndr_wmi.h"
6
#include "librpc/gen_ndr/ndr_orpc.h"
7
#include "librpc/gen_ndr/ndr_dcom.h"
8
#include "librpc/gen_ndr/ndr_misc.h"
9
#include "librpc/gen_ndr/ndr_orpc.h"
10
static enum ndr_err_code ndr_push_BSTR(struct ndr_push *ndr, int ndr_flags, const struct BSTR *r)
12
if (ndr_flags & NDR_SCALARS) {
13
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->data, CH_UTF16)));
14
NDR_CHECK(ndr_push_align(ndr, 4));
15
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x72657355));
16
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
17
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->data, CH_UTF16)));
18
NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->data, ndr_charset_length(r->data, CH_UTF16), sizeof(uint16_t), CH_UTF16));
19
NDR_CHECK(ndr_push_trailer_align(ndr, 4));
21
if (ndr_flags & NDR_BUFFERS) {
23
return NDR_ERR_SUCCESS;
26
static enum ndr_err_code ndr_pull_BSTR(struct ndr_pull *ndr, int ndr_flags, struct BSTR *r)
28
if (ndr_flags & NDR_SCALARS) {
29
NDR_CHECK(ndr_pull_array_size(ndr, &r->data));
30
NDR_CHECK(ndr_pull_align(ndr, 4));
31
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
32
NDR_CHECK(ndr_pull_array_length(ndr, &r->data));
33
if (ndr_get_array_length(ndr, &r->data) > ndr_get_array_size(ndr, &r->data)) {
34
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->data), ndr_get_array_length(ndr, &r->data));
36
NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->data), sizeof(uint16_t)));
37
NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->data, ndr_get_array_length(ndr, &r->data), sizeof(uint16_t), CH_UTF16));
38
NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
40
if (ndr_flags & NDR_BUFFERS) {
42
return NDR_ERR_SUCCESS;
45
static enum ndr_err_code ndr_push_Delete(struct ndr_push *ndr, int flags, const struct Delete *r)
48
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
49
if (r->in.wszName == NULL) {
50
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
52
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszName, CH_UTF16)));
53
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
54
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszName, CH_UTF16)));
55
NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszName, ndr_charset_length(r->in.wszName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
57
if (flags & NDR_OUT) {
58
if (r->out.ORPCthat == NULL) {
59
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
61
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
62
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
64
return NDR_ERR_SUCCESS;
67
static enum ndr_err_code ndr_pull_Delete(struct ndr_pull *ndr, int flags, struct Delete *r)
69
TALLOC_CTX *_mem_save_ORPCthat_0;
73
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
74
NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszName));
75
NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszName));
76
if (ndr_get_array_length(ndr, &r->in.wszName) > ndr_get_array_size(ndr, &r->in.wszName)) {
77
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.wszName), ndr_get_array_length(ndr, &r->in.wszName));
79
NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.wszName), sizeof(uint16_t)));
80
NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszName, ndr_get_array_length(ndr, &r->in.wszName), sizeof(uint16_t), CH_UTF16));
81
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
82
ZERO_STRUCTP(r->out.ORPCthat);
84
if (flags & NDR_OUT) {
85
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
86
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
88
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
89
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
90
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
91
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
92
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
94
return NDR_ERR_SUCCESS;
97
_PUBLIC_ void ndr_print_Delete(struct ndr_print *ndr, const char *name, int flags, const struct Delete *r)
99
ndr_print_struct(ndr, name, "Delete");
100
if (r == NULL) { ndr_print_null(ndr); return; }
102
if (flags & NDR_SET_VALUES) {
103
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
105
if (flags & NDR_IN) {
106
ndr_print_struct(ndr, "in", "Delete");
108
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
109
ndr_print_ptr(ndr, "wszName", r->in.wszName);
111
ndr_print_string(ndr, "wszName", r->in.wszName);
115
if (flags & NDR_OUT) {
116
ndr_print_struct(ndr, "out", "Delete");
118
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
120
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
122
ndr_print_WERROR(ndr, "result", r->out.result);
128
static const struct ndr_interface_call IWbemClassObject_calls[] = {
131
sizeof(struct Delete),
132
(ndr_push_flags_fn_t) ndr_push_Delete,
133
(ndr_pull_flags_fn_t) ndr_pull_Delete,
134
(ndr_print_function_t) ndr_print_Delete,
138
{ NULL, 0, NULL, NULL, NULL }
141
static const char * const IWbemClassObject_endpoint_strings[] = {
142
"ncacn_np:[\\pipe\\IWbemClassObject]",
145
static const struct ndr_interface_string_array IWbemClassObject_endpoints = {
147
.names = IWbemClassObject_endpoint_strings
150
static const char * const IWbemClassObject_authservice_strings[] = {
154
static const struct ndr_interface_string_array IWbemClassObject_authservices = {
156
.names = IWbemClassObject_authservice_strings
160
const struct ndr_interface_table ndr_table_IWbemClassObject = {
161
.name = "IWbemClassObject",
163
{0xdc12a681,0x737f,0x11cf,{0x88,0x4d},{0x00,0xaa,0x00,0x4b,0x2e,0x24}},
164
NDR_IWBEMCLASSOBJECT_VERSION
166
.helpstring = NDR_IWBEMCLASSOBJECT_HELPSTRING,
168
.calls = IWbemClassObject_calls,
169
.endpoints = &IWbemClassObject_endpoints,
170
.authservices = &IWbemClassObject_authservices
173
#include "librpc/gen_ndr/ndr_orpc.h"
174
_PUBLIC_ enum ndr_err_code ndr_push_WBEM_GENERIC_FLAG_TYPE(struct ndr_push *ndr, int ndr_flags, uint32_t r)
176
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
177
return NDR_ERR_SUCCESS;
180
_PUBLIC_ enum ndr_err_code ndr_pull_WBEM_GENERIC_FLAG_TYPE(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
183
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
185
return NDR_ERR_SUCCESS;
188
_PUBLIC_ void ndr_print_WBEM_GENERIC_FLAG_TYPE(struct ndr_print *ndr, const char *name, uint32_t r)
190
ndr_print_uint32(ndr, name, r);
192
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_RETURN_WBEM_COMPLETE", WBEM_FLAG_RETURN_WBEM_COMPLETE, r);
193
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_BIDIRECTIONAL", WBEM_FLAG_BIDIRECTIONAL, r);
194
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_RETURN_IMMEDIATELY", WBEM_FLAG_RETURN_IMMEDIATELY, r);
195
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_FORWARD_ONLY", WBEM_FLAG_FORWARD_ONLY, r);
196
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_NO_ERROR_OBJECT", WBEM_FLAG_NO_ERROR_OBJECT, r);
197
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_SEND_STATUS", WBEM_FLAG_SEND_STATUS, r);
198
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_ENSURE_LOCATABLE", WBEM_FLAG_ENSURE_LOCATABLE, r);
199
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_DIRECT_READ", WBEM_FLAG_DIRECT_READ, r);
200
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_USE_AMENDED_QUALIFIERS", WBEM_FLAG_USE_AMENDED_QUALIFIERS, r);
201
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_STRONG_VALIDATION", WBEM_FLAG_STRONG_VALIDATION, r);
202
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_RETURN_ERROR_OBJECT", WBEM_FLAG_RETURN_ERROR_OBJECT, r);
203
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_DONT_SEND_STATUS", WBEM_FLAG_DONT_SEND_STATUS, r);
204
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_SEND_ONLY_SELECTED", WBEM_FLAG_SEND_ONLY_SELECTED, r);
205
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_RETURN_WHEN_COMPLETE", WBEM_RETURN_WHEN_COMPLETE, r);
206
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_RETURN_IMMEDIATELY", WBEM_RETURN_IMMEDIATELY, r);
207
ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_MASK_RESERVED_FLAGS", WBEM_MASK_RESERVED_FLAGS, r);
211
_PUBLIC_ enum ndr_err_code ndr_push_WBEM_TIMEOUT_TYPE(struct ndr_push *ndr, int ndr_flags, enum WBEM_TIMEOUT_TYPE r)
213
NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
214
return NDR_ERR_SUCCESS;
217
_PUBLIC_ enum ndr_err_code ndr_pull_WBEM_TIMEOUT_TYPE(struct ndr_pull *ndr, int ndr_flags, enum WBEM_TIMEOUT_TYPE *r)
220
NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
222
return NDR_ERR_SUCCESS;
225
_PUBLIC_ void ndr_print_WBEM_TIMEOUT_TYPE(struct ndr_print *ndr, const char *name, enum WBEM_TIMEOUT_TYPE r)
227
const char *val = NULL;
230
case WBEM_NO_WAIT: val = "WBEM_NO_WAIT"; break;
231
case WBEM_INFINITE: val = "WBEM_INFINITE"; break;
233
ndr_print_enum(ndr, name, "ENUM", val, r);
236
_PUBLIC_ enum ndr_err_code ndr_push_CIMTYPE_ENUMERATION(struct ndr_push *ndr, int ndr_flags, enum CIMTYPE_ENUMERATION r)
238
NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
239
return NDR_ERR_SUCCESS;
242
_PUBLIC_ enum ndr_err_code ndr_pull_CIMTYPE_ENUMERATION(struct ndr_pull *ndr, int ndr_flags, enum CIMTYPE_ENUMERATION *r)
245
NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
247
return NDR_ERR_SUCCESS;
250
_PUBLIC_ void ndr_print_CIMTYPE_ENUMERATION(struct ndr_print *ndr, const char *name, enum CIMTYPE_ENUMERATION r)
252
const char *val = NULL;
255
case CIM_EMPTY: val = "CIM_EMPTY"; break;
256
case CIM_SINT16: val = "CIM_SINT16"; break;
257
case CIM_SINT32: val = "CIM_SINT32"; break;
258
case CIM_REAL32: val = "CIM_REAL32"; break;
259
case CIM_REAL64: val = "CIM_REAL64"; break;
260
case CIM_STRING: val = "CIM_STRING"; break;
261
case CIM_BOOLEAN: val = "CIM_BOOLEAN"; break;
262
case CIM_OBJECT: val = "CIM_OBJECT"; break;
263
case CIM_SINT8: val = "CIM_SINT8"; break;
264
case CIM_UINT8: val = "CIM_UINT8"; break;
265
case CIM_UINT16: val = "CIM_UINT16"; break;
266
case CIM_UINT32: val = "CIM_UINT32"; break;
267
case CIM_SINT64: val = "CIM_SINT64"; break;
268
case CIM_UINT64: val = "CIM_UINT64"; break;
269
case CIM_DATETIME: val = "CIM_DATETIME"; break;
270
case CIM_REFERENCE: val = "CIM_REFERENCE"; break;
271
case CIM_CHAR16: val = "CIM_CHAR16"; break;
272
case CIM_FLAG_ARRAY: val = "CIM_FLAG_ARRAY"; break;
273
case CIM_ILLEGAL: val = "CIM_ILLEGAL"; break;
274
case CIM_TYPEMASK: val = "CIM_TYPEMASK"; break;
275
case CIM_ARR_SINT8: val = "CIM_ARR_SINT8"; break;
276
case CIM_ARR_UINT8: val = "CIM_ARR_UINT8"; break;
277
case CIM_ARR_SINT16: val = "CIM_ARR_SINT16"; break;
278
case CIM_ARR_UINT16: val = "CIM_ARR_UINT16"; break;
279
case CIM_ARR_SINT32: val = "CIM_ARR_SINT32"; break;
280
case CIM_ARR_UINT32: val = "CIM_ARR_UINT32"; break;
281
case CIM_ARR_SINT64: val = "CIM_ARR_SINT64"; break;
282
case CIM_ARR_UINT64: val = "CIM_ARR_UINT64"; break;
283
case CIM_ARR_REAL32: val = "CIM_ARR_REAL32"; break;
284
case CIM_ARR_REAL64: val = "CIM_ARR_REAL64"; break;
285
case CIM_ARR_BOOLEAN: val = "CIM_ARR_BOOLEAN"; break;
286
case CIM_ARR_STRING: val = "CIM_ARR_STRING"; break;
287
case CIM_ARR_DATETIME: val = "CIM_ARR_DATETIME"; break;
288
case CIM_ARR_REFERENCE: val = "CIM_ARR_REFERENCE"; break;
289
case CIM_ARR_CHAR16: val = "CIM_ARR_CHAR16"; break;
290
case CIM_ARR_OBJECT: val = "CIM_ARR_OBJECT"; break;
292
ndr_print_enum(ndr, name, "ENUM", val, r);
295
_PUBLIC_ enum ndr_err_code ndr_push_WBEM_FLAVOR_TYPE(struct ndr_push *ndr, int ndr_flags, uint8_t r)
297
NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r));
298
return NDR_ERR_SUCCESS;
301
_PUBLIC_ enum ndr_err_code ndr_pull_WBEM_FLAVOR_TYPE(struct ndr_pull *ndr, int ndr_flags, uint8_t *r)
304
NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &v));
306
return NDR_ERR_SUCCESS;
309
_PUBLIC_ void ndr_print_WBEM_FLAVOR_TYPE(struct ndr_print *ndr, const char *name, uint8_t r)
311
ndr_print_uint8(ndr, name, r);
313
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_FLAG_PROPAGATE_TO_INSTANCE", WBEM_FLAVOR_FLAG_PROPAGATE_TO_INSTANCE, r);
314
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_FLAG_PROPAGATE_TO_DERIVED_CLASS", WBEM_FLAVOR_FLAG_PROPAGATE_TO_DERIVED_CLASS, r);
315
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_NOT_OVERRIDABLE", WBEM_FLAVOR_NOT_OVERRIDABLE, r);
316
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_ORIGIN_PROPAGATED", WBEM_FLAVOR_ORIGIN_PROPAGATED, r);
317
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_ORIGIN_SYSTEM", WBEM_FLAVOR_ORIGIN_SYSTEM, r);
318
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_AMENDED", WBEM_FLAVOR_AMENDED, r);
322
_PUBLIC_ enum ndr_err_code ndr_push_WCO_FLAGS(struct ndr_push *ndr, int ndr_flags, uint8_t r)
324
NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r));
325
return NDR_ERR_SUCCESS;
328
_PUBLIC_ enum ndr_err_code ndr_pull_WCO_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint8_t *r)
331
NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &v));
333
return NDR_ERR_SUCCESS;
336
_PUBLIC_ void ndr_print_WCO_FLAGS(struct ndr_print *ndr, const char *name, uint8_t r)
338
ndr_print_uint8(ndr, name, r);
340
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WCF_DECORATIONS", WCF_DECORATIONS, r);
341
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WCF_INSTANCE", WCF_INSTANCE, r);
342
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WCF_CLASS", WCF_CLASS, r);
343
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WCF_CLASS_PART_INTERNAL", WCF_CLASS_PART_INTERNAL, r);
347
_PUBLIC_ enum ndr_err_code ndr_push_DEFAULT_FLAGS(struct ndr_push *ndr, int ndr_flags, uint8_t r)
349
NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r));
350
return NDR_ERR_SUCCESS;
353
_PUBLIC_ enum ndr_err_code ndr_pull_DEFAULT_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint8_t *r)
356
NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &v));
358
return NDR_ERR_SUCCESS;
361
_PUBLIC_ void ndr_print_DEFAULT_FLAGS(struct ndr_print *ndr, const char *name, uint8_t r)
363
ndr_print_uint8(ndr, name, r);
365
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "DEFAULT_FLAG_EMPTY", DEFAULT_FLAG_EMPTY, r);
366
ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "DEFAULT_FLAG_INHERITED", DEFAULT_FLAG_INHERITED, r);
370
static enum ndr_err_code ndr_push_OpenNamespace(struct ndr_push *ndr, int flags, const struct OpenNamespace *r)
372
if (flags & NDR_IN) {
373
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
374
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strNamespace));
375
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
376
if (r->in.pCtx == NULL) {
377
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
379
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
380
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppWorkingNamespace));
381
if (r->in.ppWorkingNamespace) {
382
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppWorkingNamespace));
383
if (*r->in.ppWorkingNamespace) {
384
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppWorkingNamespace));
387
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppResult));
388
if (r->in.ppResult) {
389
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppResult));
390
if (*r->in.ppResult) {
391
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppResult));
395
if (flags & NDR_OUT) {
396
if (r->out.ORPCthat == NULL) {
397
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
399
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
400
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppWorkingNamespace));
401
if (r->out.ppWorkingNamespace) {
402
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppWorkingNamespace));
403
if (*r->out.ppWorkingNamespace) {
404
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppWorkingNamespace));
407
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppResult));
408
if (r->out.ppResult) {
409
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResult));
410
if (*r->out.ppResult) {
411
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResult));
414
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
416
return NDR_ERR_SUCCESS;
419
static enum ndr_err_code ndr_pull_OpenNamespace(struct ndr_pull *ndr, int flags, struct OpenNamespace *r)
421
uint32_t _ptr_ppWorkingNamespace;
422
uint32_t _ptr_ppResult;
423
TALLOC_CTX *_mem_save_ORPCthat_0;
424
TALLOC_CTX *_mem_save_pCtx_0;
425
TALLOC_CTX *_mem_save_ppWorkingNamespace_0;
426
TALLOC_CTX *_mem_save_ppWorkingNamespace_1;
427
TALLOC_CTX *_mem_save_ppResult_0;
428
TALLOC_CTX *_mem_save_ppResult_1;
429
if (flags & NDR_IN) {
432
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
433
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strNamespace));
434
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
435
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
436
NDR_PULL_ALLOC(ndr, r->in.pCtx);
438
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
439
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
440
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
441
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
442
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppWorkingNamespace));
443
if (_ptr_ppWorkingNamespace) {
444
NDR_PULL_ALLOC(ndr, r->in.ppWorkingNamespace);
446
r->in.ppWorkingNamespace = NULL;
448
if (r->in.ppWorkingNamespace) {
449
_mem_save_ppWorkingNamespace_0 = NDR_PULL_GET_MEM_CTX(ndr);
450
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppWorkingNamespace, 0);
451
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppWorkingNamespace));
452
if (_ptr_ppWorkingNamespace) {
453
NDR_PULL_ALLOC(ndr, *r->in.ppWorkingNamespace);
455
*r->in.ppWorkingNamespace = NULL;
457
if (*r->in.ppWorkingNamespace) {
458
_mem_save_ppWorkingNamespace_1 = NDR_PULL_GET_MEM_CTX(ndr);
459
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppWorkingNamespace, 0);
460
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppWorkingNamespace));
461
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_1, 0);
463
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_0, 0);
465
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
467
NDR_PULL_ALLOC(ndr, r->in.ppResult);
469
r->in.ppResult = NULL;
471
if (r->in.ppResult) {
472
_mem_save_ppResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
473
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppResult, 0);
474
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
476
NDR_PULL_ALLOC(ndr, *r->in.ppResult);
478
*r->in.ppResult = NULL;
480
if (*r->in.ppResult) {
481
_mem_save_ppResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
482
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppResult, 0);
483
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppResult));
484
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_1, 0);
486
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_0, 0);
488
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
489
ZERO_STRUCTP(r->out.ORPCthat);
491
if (flags & NDR_OUT) {
492
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
493
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
495
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
496
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
497
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
498
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
499
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppWorkingNamespace));
500
if (_ptr_ppWorkingNamespace) {
501
NDR_PULL_ALLOC(ndr, r->out.ppWorkingNamespace);
503
r->out.ppWorkingNamespace = NULL;
505
if (r->out.ppWorkingNamespace) {
506
_mem_save_ppWorkingNamespace_0 = NDR_PULL_GET_MEM_CTX(ndr);
507
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppWorkingNamespace, 0);
508
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppWorkingNamespace));
509
if (_ptr_ppWorkingNamespace) {
510
NDR_PULL_ALLOC(ndr, *r->out.ppWorkingNamespace);
512
*r->out.ppWorkingNamespace = NULL;
514
if (*r->out.ppWorkingNamespace) {
515
_mem_save_ppWorkingNamespace_1 = NDR_PULL_GET_MEM_CTX(ndr);
516
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppWorkingNamespace, 0);
517
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppWorkingNamespace));
518
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_1, 0);
520
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_0, 0);
522
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
524
NDR_PULL_ALLOC(ndr, r->out.ppResult);
526
r->out.ppResult = NULL;
528
if (r->out.ppResult) {
529
_mem_save_ppResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
530
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResult, 0);
531
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
533
NDR_PULL_ALLOC(ndr, *r->out.ppResult);
535
*r->out.ppResult = NULL;
537
if (*r->out.ppResult) {
538
_mem_save_ppResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
539
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResult, 0);
540
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResult));
541
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_1, 0);
543
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_0, 0);
545
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
547
return NDR_ERR_SUCCESS;
550
_PUBLIC_ void ndr_print_OpenNamespace(struct ndr_print *ndr, const char *name, int flags, const struct OpenNamespace *r)
552
ndr_print_struct(ndr, name, "OpenNamespace");
553
if (r == NULL) { ndr_print_null(ndr); return; }
555
if (flags & NDR_SET_VALUES) {
556
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
558
if (flags & NDR_IN) {
559
ndr_print_struct(ndr, "in", "OpenNamespace");
561
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
562
ndr_print_BSTR(ndr, "strNamespace", &r->in.strNamespace);
563
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
564
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
566
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
568
ndr_print_ptr(ndr, "ppWorkingNamespace", r->in.ppWorkingNamespace);
570
if (r->in.ppWorkingNamespace) {
571
ndr_print_ptr(ndr, "ppWorkingNamespace", *r->in.ppWorkingNamespace);
573
if (*r->in.ppWorkingNamespace) {
574
ndr_print_MInterfacePointer(ndr, "ppWorkingNamespace", *r->in.ppWorkingNamespace);
579
ndr_print_ptr(ndr, "ppResult", r->in.ppResult);
581
if (r->in.ppResult) {
582
ndr_print_ptr(ndr, "ppResult", *r->in.ppResult);
584
if (*r->in.ppResult) {
585
ndr_print_MInterfacePointer(ndr, "ppResult", *r->in.ppResult);
592
if (flags & NDR_OUT) {
593
ndr_print_struct(ndr, "out", "OpenNamespace");
595
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
597
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
599
ndr_print_ptr(ndr, "ppWorkingNamespace", r->out.ppWorkingNamespace);
601
if (r->out.ppWorkingNamespace) {
602
ndr_print_ptr(ndr, "ppWorkingNamespace", *r->out.ppWorkingNamespace);
604
if (*r->out.ppWorkingNamespace) {
605
ndr_print_MInterfacePointer(ndr, "ppWorkingNamespace", *r->out.ppWorkingNamespace);
610
ndr_print_ptr(ndr, "ppResult", r->out.ppResult);
612
if (r->out.ppResult) {
613
ndr_print_ptr(ndr, "ppResult", *r->out.ppResult);
615
if (*r->out.ppResult) {
616
ndr_print_MInterfacePointer(ndr, "ppResult", *r->out.ppResult);
621
ndr_print_WERROR(ndr, "result", r->out.result);
627
static enum ndr_err_code ndr_push_CancelAsyncCall(struct ndr_push *ndr, int flags, const struct CancelAsyncCall *r)
629
if (flags & NDR_IN) {
630
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
631
if (r->in.pSink == NULL) {
632
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
634
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
636
if (flags & NDR_OUT) {
637
if (r->out.ORPCthat == NULL) {
638
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
640
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
641
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
643
return NDR_ERR_SUCCESS;
646
static enum ndr_err_code ndr_pull_CancelAsyncCall(struct ndr_pull *ndr, int flags, struct CancelAsyncCall *r)
648
TALLOC_CTX *_mem_save_ORPCthat_0;
649
TALLOC_CTX *_mem_save_pSink_0;
650
if (flags & NDR_IN) {
653
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
654
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
655
NDR_PULL_ALLOC(ndr, r->in.pSink);
657
_mem_save_pSink_0 = NDR_PULL_GET_MEM_CTX(ndr);
658
NDR_PULL_SET_MEM_CTX(ndr, r->in.pSink, LIBNDR_FLAG_REF_ALLOC);
659
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
660
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pSink_0, LIBNDR_FLAG_REF_ALLOC);
661
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
662
ZERO_STRUCTP(r->out.ORPCthat);
664
if (flags & NDR_OUT) {
665
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
666
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
668
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
669
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
670
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
671
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
672
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
674
return NDR_ERR_SUCCESS;
677
_PUBLIC_ void ndr_print_CancelAsyncCall(struct ndr_print *ndr, const char *name, int flags, const struct CancelAsyncCall *r)
679
ndr_print_struct(ndr, name, "CancelAsyncCall");
680
if (r == NULL) { ndr_print_null(ndr); return; }
682
if (flags & NDR_SET_VALUES) {
683
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
685
if (flags & NDR_IN) {
686
ndr_print_struct(ndr, "in", "CancelAsyncCall");
688
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
689
ndr_print_ptr(ndr, "pSink", r->in.pSink);
691
ndr_print_MInterfacePointer(ndr, "pSink", r->in.pSink);
695
if (flags & NDR_OUT) {
696
ndr_print_struct(ndr, "out", "CancelAsyncCall");
698
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
700
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
702
ndr_print_WERROR(ndr, "result", r->out.result);
708
static enum ndr_err_code ndr_push_QueryObjectSink(struct ndr_push *ndr, int flags, const struct QueryObjectSink *r)
710
if (flags & NDR_IN) {
711
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
712
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
714
if (flags & NDR_OUT) {
715
if (r->out.ORPCthat == NULL) {
716
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
718
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
719
if (r->out.ppResponseHandler == NULL) {
720
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
722
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResponseHandler));
723
if (*r->out.ppResponseHandler) {
724
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResponseHandler));
726
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
728
return NDR_ERR_SUCCESS;
731
static enum ndr_err_code ndr_pull_QueryObjectSink(struct ndr_pull *ndr, int flags, struct QueryObjectSink *r)
733
uint32_t _ptr_ppResponseHandler;
734
TALLOC_CTX *_mem_save_ORPCthat_0;
735
TALLOC_CTX *_mem_save_ppResponseHandler_0;
736
TALLOC_CTX *_mem_save_ppResponseHandler_1;
737
if (flags & NDR_IN) {
740
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
741
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
742
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
743
ZERO_STRUCTP(r->out.ORPCthat);
744
NDR_PULL_ALLOC(ndr, r->out.ppResponseHandler);
745
ZERO_STRUCTP(r->out.ppResponseHandler);
747
if (flags & NDR_OUT) {
748
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
749
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
751
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
752
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
753
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
754
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
755
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
756
NDR_PULL_ALLOC(ndr, r->out.ppResponseHandler);
758
_mem_save_ppResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
759
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResponseHandler, LIBNDR_FLAG_REF_ALLOC);
760
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResponseHandler));
761
if (_ptr_ppResponseHandler) {
762
NDR_PULL_ALLOC(ndr, *r->out.ppResponseHandler);
764
*r->out.ppResponseHandler = NULL;
766
if (*r->out.ppResponseHandler) {
767
_mem_save_ppResponseHandler_1 = NDR_PULL_GET_MEM_CTX(ndr);
768
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResponseHandler, 0);
769
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResponseHandler));
770
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResponseHandler_1, 0);
772
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
773
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
775
return NDR_ERR_SUCCESS;
778
_PUBLIC_ void ndr_print_QueryObjectSink(struct ndr_print *ndr, const char *name, int flags, const struct QueryObjectSink *r)
780
ndr_print_struct(ndr, name, "QueryObjectSink");
781
if (r == NULL) { ndr_print_null(ndr); return; }
783
if (flags & NDR_SET_VALUES) {
784
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
786
if (flags & NDR_IN) {
787
ndr_print_struct(ndr, "in", "QueryObjectSink");
789
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
790
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
793
if (flags & NDR_OUT) {
794
ndr_print_struct(ndr, "out", "QueryObjectSink");
796
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
798
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
800
ndr_print_ptr(ndr, "ppResponseHandler", r->out.ppResponseHandler);
802
ndr_print_ptr(ndr, "ppResponseHandler", *r->out.ppResponseHandler);
804
if (*r->out.ppResponseHandler) {
805
ndr_print_MInterfacePointer(ndr, "ppResponseHandler", *r->out.ppResponseHandler);
809
ndr_print_WERROR(ndr, "result", r->out.result);
815
static enum ndr_err_code ndr_push_GetObject(struct ndr_push *ndr, int flags, const struct GetObject *r)
817
if (flags & NDR_IN) {
818
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
819
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
820
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
821
if (r->in.pCtx == NULL) {
822
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
824
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
825
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppObject));
826
if (r->in.ppObject) {
827
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppObject));
828
if (*r->in.ppObject) {
829
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppObject));
832
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
833
if (r->in.ppCallResult) {
834
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
835
if (*r->in.ppCallResult) {
836
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
840
if (flags & NDR_OUT) {
841
if (r->out.ORPCthat == NULL) {
842
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
844
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
845
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppObject));
846
if (r->out.ppObject) {
847
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppObject));
848
if (*r->out.ppObject) {
849
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppObject));
852
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
853
if (r->out.ppCallResult) {
854
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
855
if (*r->out.ppCallResult) {
856
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
859
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
861
return NDR_ERR_SUCCESS;
864
static enum ndr_err_code ndr_pull_GetObject(struct ndr_pull *ndr, int flags, struct GetObject *r)
866
uint32_t _ptr_ppObject;
867
uint32_t _ptr_ppCallResult;
868
TALLOC_CTX *_mem_save_ORPCthat_0;
869
TALLOC_CTX *_mem_save_pCtx_0;
870
TALLOC_CTX *_mem_save_ppObject_0;
871
TALLOC_CTX *_mem_save_ppObject_1;
872
TALLOC_CTX *_mem_save_ppCallResult_0;
873
TALLOC_CTX *_mem_save_ppCallResult_1;
874
if (flags & NDR_IN) {
877
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
878
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
879
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
880
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
881
NDR_PULL_ALLOC(ndr, r->in.pCtx);
883
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
884
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
885
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
886
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
887
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppObject));
889
NDR_PULL_ALLOC(ndr, r->in.ppObject);
891
r->in.ppObject = NULL;
893
if (r->in.ppObject) {
894
_mem_save_ppObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
895
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppObject, 0);
896
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppObject));
898
NDR_PULL_ALLOC(ndr, *r->in.ppObject);
900
*r->in.ppObject = NULL;
902
if (*r->in.ppObject) {
903
_mem_save_ppObject_1 = NDR_PULL_GET_MEM_CTX(ndr);
904
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppObject, 0);
905
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppObject));
906
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_1, 0);
908
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_0, 0);
910
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
911
if (_ptr_ppCallResult) {
912
NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
914
r->in.ppCallResult = NULL;
916
if (r->in.ppCallResult) {
917
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
918
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
919
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
920
if (_ptr_ppCallResult) {
921
NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
923
*r->in.ppCallResult = NULL;
925
if (*r->in.ppCallResult) {
926
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
927
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
928
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
929
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
931
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
933
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
934
ZERO_STRUCTP(r->out.ORPCthat);
936
if (flags & NDR_OUT) {
937
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
938
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
940
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
941
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
942
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
943
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
944
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppObject));
946
NDR_PULL_ALLOC(ndr, r->out.ppObject);
948
r->out.ppObject = NULL;
950
if (r->out.ppObject) {
951
_mem_save_ppObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
952
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppObject, 0);
953
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppObject));
955
NDR_PULL_ALLOC(ndr, *r->out.ppObject);
957
*r->out.ppObject = NULL;
959
if (*r->out.ppObject) {
960
_mem_save_ppObject_1 = NDR_PULL_GET_MEM_CTX(ndr);
961
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppObject, 0);
962
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppObject));
963
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_1, 0);
965
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_0, 0);
967
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
968
if (_ptr_ppCallResult) {
969
NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
971
r->out.ppCallResult = NULL;
973
if (r->out.ppCallResult) {
974
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
975
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
976
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
977
if (_ptr_ppCallResult) {
978
NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
980
*r->out.ppCallResult = NULL;
982
if (*r->out.ppCallResult) {
983
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
984
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
985
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
986
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
988
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
990
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
992
return NDR_ERR_SUCCESS;
995
_PUBLIC_ void ndr_print_GetObject(struct ndr_print *ndr, const char *name, int flags, const struct GetObject *r)
997
ndr_print_struct(ndr, name, "GetObject");
998
if (r == NULL) { ndr_print_null(ndr); return; }
1000
if (flags & NDR_SET_VALUES) {
1001
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1003
if (flags & NDR_IN) {
1004
ndr_print_struct(ndr, "in", "GetObject");
1006
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1007
ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
1008
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1009
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1011
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1013
ndr_print_ptr(ndr, "ppObject", r->in.ppObject);
1015
if (r->in.ppObject) {
1016
ndr_print_ptr(ndr, "ppObject", *r->in.ppObject);
1018
if (*r->in.ppObject) {
1019
ndr_print_MInterfacePointer(ndr, "ppObject", *r->in.ppObject);
1024
ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
1026
if (r->in.ppCallResult) {
1027
ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
1029
if (*r->in.ppCallResult) {
1030
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
1037
if (flags & NDR_OUT) {
1038
ndr_print_struct(ndr, "out", "GetObject");
1040
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1042
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1044
ndr_print_ptr(ndr, "ppObject", r->out.ppObject);
1046
if (r->out.ppObject) {
1047
ndr_print_ptr(ndr, "ppObject", *r->out.ppObject);
1049
if (*r->out.ppObject) {
1050
ndr_print_MInterfacePointer(ndr, "ppObject", *r->out.ppObject);
1055
ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
1057
if (r->out.ppCallResult) {
1058
ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
1060
if (*r->out.ppCallResult) {
1061
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
1066
ndr_print_WERROR(ndr, "result", r->out.result);
1072
static enum ndr_err_code ndr_push_GetObjectAsync(struct ndr_push *ndr, int flags, const struct GetObjectAsync *r)
1074
if (flags & NDR_IN) {
1075
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1076
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
1077
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
1078
if (r->in.pCtx == NULL) {
1079
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1081
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1082
if (r->in.pResponseHandler == NULL) {
1083
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1085
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1087
if (flags & NDR_OUT) {
1088
if (r->out.ORPCthat == NULL) {
1089
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1091
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1092
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1094
return NDR_ERR_SUCCESS;
1097
static enum ndr_err_code ndr_pull_GetObjectAsync(struct ndr_pull *ndr, int flags, struct GetObjectAsync *r)
1099
TALLOC_CTX *_mem_save_ORPCthat_0;
1100
TALLOC_CTX *_mem_save_pCtx_0;
1101
TALLOC_CTX *_mem_save_pResponseHandler_0;
1102
if (flags & NDR_IN) {
1103
ZERO_STRUCT(r->out);
1105
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1106
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
1107
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
1108
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1109
NDR_PULL_ALLOC(ndr, r->in.pCtx);
1111
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
1112
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
1113
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1114
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
1115
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1116
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
1118
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
1119
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
1120
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1121
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
1122
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1123
ZERO_STRUCTP(r->out.ORPCthat);
1125
if (flags & NDR_OUT) {
1126
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1127
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1129
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
1130
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
1131
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1132
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
1133
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1135
return NDR_ERR_SUCCESS;
1138
_PUBLIC_ void ndr_print_GetObjectAsync(struct ndr_print *ndr, const char *name, int flags, const struct GetObjectAsync *r)
1140
ndr_print_struct(ndr, name, "GetObjectAsync");
1141
if (r == NULL) { ndr_print_null(ndr); return; }
1143
if (flags & NDR_SET_VALUES) {
1144
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1146
if (flags & NDR_IN) {
1147
ndr_print_struct(ndr, "in", "GetObjectAsync");
1149
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1150
ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
1151
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1152
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1154
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1156
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
1158
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
1162
if (flags & NDR_OUT) {
1163
ndr_print_struct(ndr, "out", "GetObjectAsync");
1165
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1167
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1169
ndr_print_WERROR(ndr, "result", r->out.result);
1175
static enum ndr_err_code ndr_push_PutClass(struct ndr_push *ndr, int flags, const struct PutClass *r)
1177
if (flags & NDR_IN) {
1178
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1179
if (r->in.pObject == NULL) {
1180
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1182
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObject));
1183
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
1184
if (r->in.pCtx == NULL) {
1185
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1187
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1188
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
1189
if (r->in.ppCallResult) {
1190
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
1191
if (*r->in.ppCallResult) {
1192
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
1196
if (flags & NDR_OUT) {
1197
if (r->out.ORPCthat == NULL) {
1198
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1200
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1201
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
1202
if (r->out.ppCallResult) {
1203
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
1204
if (*r->out.ppCallResult) {
1205
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
1208
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1210
return NDR_ERR_SUCCESS;
1213
static enum ndr_err_code ndr_pull_PutClass(struct ndr_pull *ndr, int flags, struct PutClass *r)
1215
uint32_t _ptr_ppCallResult;
1216
TALLOC_CTX *_mem_save_ORPCthat_0;
1217
TALLOC_CTX *_mem_save_pObject_0;
1218
TALLOC_CTX *_mem_save_pCtx_0;
1219
TALLOC_CTX *_mem_save_ppCallResult_0;
1220
TALLOC_CTX *_mem_save_ppCallResult_1;
1221
if (flags & NDR_IN) {
1222
ZERO_STRUCT(r->out);
1224
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1225
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1226
NDR_PULL_ALLOC(ndr, r->in.pObject);
1228
_mem_save_pObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
1229
NDR_PULL_SET_MEM_CTX(ndr, r->in.pObject, LIBNDR_FLAG_REF_ALLOC);
1230
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObject));
1231
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pObject_0, LIBNDR_FLAG_REF_ALLOC);
1232
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
1233
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1234
NDR_PULL_ALLOC(ndr, r->in.pCtx);
1236
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
1237
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
1238
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1239
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
1240
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
1241
if (_ptr_ppCallResult) {
1242
NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
1244
r->in.ppCallResult = NULL;
1246
if (r->in.ppCallResult) {
1247
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
1248
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
1249
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
1250
if (_ptr_ppCallResult) {
1251
NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
1253
*r->in.ppCallResult = NULL;
1255
if (*r->in.ppCallResult) {
1256
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
1257
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
1258
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
1259
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
1261
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
1263
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1264
ZERO_STRUCTP(r->out.ORPCthat);
1266
if (flags & NDR_OUT) {
1267
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1268
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1270
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
1271
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
1272
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1273
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
1274
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
1275
if (_ptr_ppCallResult) {
1276
NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
1278
r->out.ppCallResult = NULL;
1280
if (r->out.ppCallResult) {
1281
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
1282
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
1283
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
1284
if (_ptr_ppCallResult) {
1285
NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
1287
*r->out.ppCallResult = NULL;
1289
if (*r->out.ppCallResult) {
1290
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
1291
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
1292
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
1293
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
1295
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
1297
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1299
return NDR_ERR_SUCCESS;
1302
_PUBLIC_ void ndr_print_PutClass(struct ndr_print *ndr, const char *name, int flags, const struct PutClass *r)
1304
ndr_print_struct(ndr, name, "PutClass");
1305
if (r == NULL) { ndr_print_null(ndr); return; }
1307
if (flags & NDR_SET_VALUES) {
1308
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1310
if (flags & NDR_IN) {
1311
ndr_print_struct(ndr, "in", "PutClass");
1313
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1314
ndr_print_ptr(ndr, "pObject", r->in.pObject);
1316
ndr_print_MInterfacePointer(ndr, "pObject", r->in.pObject);
1318
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1319
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1321
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1323
ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
1325
if (r->in.ppCallResult) {
1326
ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
1328
if (*r->in.ppCallResult) {
1329
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
1336
if (flags & NDR_OUT) {
1337
ndr_print_struct(ndr, "out", "PutClass");
1339
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1341
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1343
ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
1345
if (r->out.ppCallResult) {
1346
ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
1348
if (*r->out.ppCallResult) {
1349
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
1354
ndr_print_WERROR(ndr, "result", r->out.result);
1360
static enum ndr_err_code ndr_push_PutClassAsync(struct ndr_push *ndr, int flags, const struct PutClassAsync *r)
1362
if (flags & NDR_IN) {
1363
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1364
if (r->in.pObject == NULL) {
1365
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1367
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObject));
1368
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
1369
if (r->in.pCtx == NULL) {
1370
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1372
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1373
if (r->in.pResponseHandler == NULL) {
1374
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1376
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1378
if (flags & NDR_OUT) {
1379
if (r->out.ORPCthat == NULL) {
1380
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1382
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1383
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1385
return NDR_ERR_SUCCESS;
1388
static enum ndr_err_code ndr_pull_PutClassAsync(struct ndr_pull *ndr, int flags, struct PutClassAsync *r)
1390
TALLOC_CTX *_mem_save_ORPCthat_0;
1391
TALLOC_CTX *_mem_save_pObject_0;
1392
TALLOC_CTX *_mem_save_pCtx_0;
1393
TALLOC_CTX *_mem_save_pResponseHandler_0;
1394
if (flags & NDR_IN) {
1395
ZERO_STRUCT(r->out);
1397
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1398
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1399
NDR_PULL_ALLOC(ndr, r->in.pObject);
1401
_mem_save_pObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
1402
NDR_PULL_SET_MEM_CTX(ndr, r->in.pObject, LIBNDR_FLAG_REF_ALLOC);
1403
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObject));
1404
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pObject_0, LIBNDR_FLAG_REF_ALLOC);
1405
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
1406
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1407
NDR_PULL_ALLOC(ndr, r->in.pCtx);
1409
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
1410
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
1411
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1412
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
1413
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1414
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
1416
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
1417
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
1418
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1419
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
1420
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1421
ZERO_STRUCTP(r->out.ORPCthat);
1423
if (flags & NDR_OUT) {
1424
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1425
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1427
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
1428
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
1429
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1430
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
1431
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1433
return NDR_ERR_SUCCESS;
1436
_PUBLIC_ void ndr_print_PutClassAsync(struct ndr_print *ndr, const char *name, int flags, const struct PutClassAsync *r)
1438
ndr_print_struct(ndr, name, "PutClassAsync");
1439
if (r == NULL) { ndr_print_null(ndr); return; }
1441
if (flags & NDR_SET_VALUES) {
1442
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1444
if (flags & NDR_IN) {
1445
ndr_print_struct(ndr, "in", "PutClassAsync");
1447
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1448
ndr_print_ptr(ndr, "pObject", r->in.pObject);
1450
ndr_print_MInterfacePointer(ndr, "pObject", r->in.pObject);
1452
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1453
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1455
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1457
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
1459
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
1463
if (flags & NDR_OUT) {
1464
ndr_print_struct(ndr, "out", "PutClassAsync");
1466
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1468
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1470
ndr_print_WERROR(ndr, "result", r->out.result);
1476
static enum ndr_err_code ndr_push_DeleteClass(struct ndr_push *ndr, int flags, const struct DeleteClass *r)
1478
if (flags & NDR_IN) {
1479
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1480
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strClass));
1481
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
1482
if (r->in.pCtx == NULL) {
1483
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1485
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1486
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
1487
if (r->in.ppCallResult) {
1488
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
1489
if (*r->in.ppCallResult) {
1490
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
1494
if (flags & NDR_OUT) {
1495
if (r->out.ORPCthat == NULL) {
1496
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1498
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1499
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
1500
if (r->out.ppCallResult) {
1501
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
1502
if (*r->out.ppCallResult) {
1503
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
1506
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1508
return NDR_ERR_SUCCESS;
1511
static enum ndr_err_code ndr_pull_DeleteClass(struct ndr_pull *ndr, int flags, struct DeleteClass *r)
1513
uint32_t _ptr_ppCallResult;
1514
TALLOC_CTX *_mem_save_ORPCthat_0;
1515
TALLOC_CTX *_mem_save_pCtx_0;
1516
TALLOC_CTX *_mem_save_ppCallResult_0;
1517
TALLOC_CTX *_mem_save_ppCallResult_1;
1518
if (flags & NDR_IN) {
1519
ZERO_STRUCT(r->out);
1521
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1522
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strClass));
1523
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
1524
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1525
NDR_PULL_ALLOC(ndr, r->in.pCtx);
1527
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
1528
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
1529
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1530
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
1531
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
1532
if (_ptr_ppCallResult) {
1533
NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
1535
r->in.ppCallResult = NULL;
1537
if (r->in.ppCallResult) {
1538
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
1539
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
1540
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
1541
if (_ptr_ppCallResult) {
1542
NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
1544
*r->in.ppCallResult = NULL;
1546
if (*r->in.ppCallResult) {
1547
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
1548
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
1549
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
1550
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
1552
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
1554
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1555
ZERO_STRUCTP(r->out.ORPCthat);
1557
if (flags & NDR_OUT) {
1558
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1559
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1561
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
1562
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
1563
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1564
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
1565
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
1566
if (_ptr_ppCallResult) {
1567
NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
1569
r->out.ppCallResult = NULL;
1571
if (r->out.ppCallResult) {
1572
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
1573
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
1574
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
1575
if (_ptr_ppCallResult) {
1576
NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
1578
*r->out.ppCallResult = NULL;
1580
if (*r->out.ppCallResult) {
1581
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
1582
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
1583
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
1584
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
1586
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
1588
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1590
return NDR_ERR_SUCCESS;
1593
_PUBLIC_ void ndr_print_DeleteClass(struct ndr_print *ndr, const char *name, int flags, const struct DeleteClass *r)
1595
ndr_print_struct(ndr, name, "DeleteClass");
1596
if (r == NULL) { ndr_print_null(ndr); return; }
1598
if (flags & NDR_SET_VALUES) {
1599
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1601
if (flags & NDR_IN) {
1602
ndr_print_struct(ndr, "in", "DeleteClass");
1604
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1605
ndr_print_BSTR(ndr, "strClass", &r->in.strClass);
1606
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1607
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1609
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1611
ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
1613
if (r->in.ppCallResult) {
1614
ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
1616
if (*r->in.ppCallResult) {
1617
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
1624
if (flags & NDR_OUT) {
1625
ndr_print_struct(ndr, "out", "DeleteClass");
1627
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1629
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1631
ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
1633
if (r->out.ppCallResult) {
1634
ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
1636
if (*r->out.ppCallResult) {
1637
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
1642
ndr_print_WERROR(ndr, "result", r->out.result);
1648
static enum ndr_err_code ndr_push_DeleteClassAsync(struct ndr_push *ndr, int flags, const struct DeleteClassAsync *r)
1650
if (flags & NDR_IN) {
1651
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1652
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strClass));
1653
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
1654
if (r->in.pCtx == NULL) {
1655
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1657
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1658
if (r->in.pResponseHandler == NULL) {
1659
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1661
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1663
if (flags & NDR_OUT) {
1664
if (r->out.ORPCthat == NULL) {
1665
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1667
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1668
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1670
return NDR_ERR_SUCCESS;
1673
static enum ndr_err_code ndr_pull_DeleteClassAsync(struct ndr_pull *ndr, int flags, struct DeleteClassAsync *r)
1675
TALLOC_CTX *_mem_save_ORPCthat_0;
1676
TALLOC_CTX *_mem_save_pCtx_0;
1677
TALLOC_CTX *_mem_save_pResponseHandler_0;
1678
if (flags & NDR_IN) {
1679
ZERO_STRUCT(r->out);
1681
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1682
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strClass));
1683
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
1684
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1685
NDR_PULL_ALLOC(ndr, r->in.pCtx);
1687
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
1688
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
1689
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1690
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
1691
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1692
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
1694
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
1695
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
1696
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1697
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
1698
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1699
ZERO_STRUCTP(r->out.ORPCthat);
1701
if (flags & NDR_OUT) {
1702
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1703
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1705
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
1706
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
1707
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1708
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
1709
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1711
return NDR_ERR_SUCCESS;
1714
_PUBLIC_ void ndr_print_DeleteClassAsync(struct ndr_print *ndr, const char *name, int flags, const struct DeleteClassAsync *r)
1716
ndr_print_struct(ndr, name, "DeleteClassAsync");
1717
if (r == NULL) { ndr_print_null(ndr); return; }
1719
if (flags & NDR_SET_VALUES) {
1720
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1722
if (flags & NDR_IN) {
1723
ndr_print_struct(ndr, "in", "DeleteClassAsync");
1725
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1726
ndr_print_BSTR(ndr, "strClass", &r->in.strClass);
1727
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1728
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1730
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1732
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
1734
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
1738
if (flags & NDR_OUT) {
1739
ndr_print_struct(ndr, "out", "DeleteClassAsync");
1741
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1743
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1745
ndr_print_WERROR(ndr, "result", r->out.result);
1751
static enum ndr_err_code ndr_push_CreateClassEnum(struct ndr_push *ndr, int flags, const struct CreateClassEnum *r)
1753
if (flags & NDR_IN) {
1754
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1755
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strSuperclass));
1756
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
1757
if (r->in.pCtx == NULL) {
1758
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1760
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1762
if (flags & NDR_OUT) {
1763
if (r->out.ORPCthat == NULL) {
1764
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1766
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1767
if (r->out.ppEnum == NULL) {
1768
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1770
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
1771
if (*r->out.ppEnum) {
1772
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
1774
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1776
return NDR_ERR_SUCCESS;
1779
static enum ndr_err_code ndr_pull_CreateClassEnum(struct ndr_pull *ndr, int flags, struct CreateClassEnum *r)
1781
uint32_t _ptr_ppEnum;
1782
TALLOC_CTX *_mem_save_ORPCthat_0;
1783
TALLOC_CTX *_mem_save_pCtx_0;
1784
TALLOC_CTX *_mem_save_ppEnum_0;
1785
TALLOC_CTX *_mem_save_ppEnum_1;
1786
if (flags & NDR_IN) {
1787
ZERO_STRUCT(r->out);
1789
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1790
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strSuperclass));
1791
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
1792
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1793
NDR_PULL_ALLOC(ndr, r->in.pCtx);
1795
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
1796
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
1797
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1798
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
1799
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1800
ZERO_STRUCTP(r->out.ORPCthat);
1801
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
1802
ZERO_STRUCTP(r->out.ppEnum);
1804
if (flags & NDR_OUT) {
1805
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1806
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1808
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
1809
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
1810
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1811
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
1812
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1813
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
1815
_mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
1816
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
1817
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
1819
NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
1821
*r->out.ppEnum = NULL;
1823
if (*r->out.ppEnum) {
1824
_mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
1825
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
1826
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
1827
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
1829
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
1830
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1832
return NDR_ERR_SUCCESS;
1835
_PUBLIC_ void ndr_print_CreateClassEnum(struct ndr_print *ndr, const char *name, int flags, const struct CreateClassEnum *r)
1837
ndr_print_struct(ndr, name, "CreateClassEnum");
1838
if (r == NULL) { ndr_print_null(ndr); return; }
1840
if (flags & NDR_SET_VALUES) {
1841
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1843
if (flags & NDR_IN) {
1844
ndr_print_struct(ndr, "in", "CreateClassEnum");
1846
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1847
ndr_print_BSTR(ndr, "strSuperclass", &r->in.strSuperclass);
1848
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1849
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1851
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1855
if (flags & NDR_OUT) {
1856
ndr_print_struct(ndr, "out", "CreateClassEnum");
1858
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1860
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1862
ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
1864
ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
1866
if (*r->out.ppEnum) {
1867
ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
1871
ndr_print_WERROR(ndr, "result", r->out.result);
1877
static enum ndr_err_code ndr_push_CreateClassEnumAsync(struct ndr_push *ndr, int flags, const struct CreateClassEnumAsync *r)
1879
if (flags & NDR_IN) {
1880
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1881
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strSuperclass));
1882
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
1883
if (r->in.pCtx == NULL) {
1884
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1886
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1887
if (r->in.pResponseHandler == NULL) {
1888
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1890
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1892
if (flags & NDR_OUT) {
1893
if (r->out.ORPCthat == NULL) {
1894
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1896
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1897
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1899
return NDR_ERR_SUCCESS;
1902
static enum ndr_err_code ndr_pull_CreateClassEnumAsync(struct ndr_pull *ndr, int flags, struct CreateClassEnumAsync *r)
1904
TALLOC_CTX *_mem_save_ORPCthat_0;
1905
TALLOC_CTX *_mem_save_pCtx_0;
1906
TALLOC_CTX *_mem_save_pResponseHandler_0;
1907
if (flags & NDR_IN) {
1908
ZERO_STRUCT(r->out);
1910
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1911
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strSuperclass));
1912
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
1913
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1914
NDR_PULL_ALLOC(ndr, r->in.pCtx);
1916
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
1917
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
1918
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1919
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
1920
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1921
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
1923
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
1924
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
1925
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1926
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
1927
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1928
ZERO_STRUCTP(r->out.ORPCthat);
1930
if (flags & NDR_OUT) {
1931
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1932
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1934
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
1935
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
1936
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
1937
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
1938
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1940
return NDR_ERR_SUCCESS;
1943
_PUBLIC_ void ndr_print_CreateClassEnumAsync(struct ndr_print *ndr, const char *name, int flags, const struct CreateClassEnumAsync *r)
1945
ndr_print_struct(ndr, name, "CreateClassEnumAsync");
1946
if (r == NULL) { ndr_print_null(ndr); return; }
1948
if (flags & NDR_SET_VALUES) {
1949
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1951
if (flags & NDR_IN) {
1952
ndr_print_struct(ndr, "in", "CreateClassEnumAsync");
1954
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1955
ndr_print_BSTR(ndr, "strSuperclass", &r->in.strSuperclass);
1956
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1957
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1959
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1961
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
1963
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
1967
if (flags & NDR_OUT) {
1968
ndr_print_struct(ndr, "out", "CreateClassEnumAsync");
1970
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1972
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1974
ndr_print_WERROR(ndr, "result", r->out.result);
1980
static enum ndr_err_code ndr_push_PutInstance(struct ndr_push *ndr, int flags, const struct PutInstance *r)
1982
if (flags & NDR_IN) {
1983
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
1984
if (r->in.pInst == NULL) {
1985
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1987
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInst));
1988
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
1989
if (r->in.pCtx == NULL) {
1990
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1992
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1993
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
1994
if (r->in.ppCallResult) {
1995
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
1996
if (*r->in.ppCallResult) {
1997
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
2001
if (flags & NDR_OUT) {
2002
if (r->out.ORPCthat == NULL) {
2003
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2005
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2006
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
2007
if (r->out.ppCallResult) {
2008
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
2009
if (*r->out.ppCallResult) {
2010
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
2013
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2015
return NDR_ERR_SUCCESS;
2018
static enum ndr_err_code ndr_pull_PutInstance(struct ndr_pull *ndr, int flags, struct PutInstance *r)
2020
uint32_t _ptr_ppCallResult;
2021
TALLOC_CTX *_mem_save_ORPCthat_0;
2022
TALLOC_CTX *_mem_save_pInst_0;
2023
TALLOC_CTX *_mem_save_pCtx_0;
2024
TALLOC_CTX *_mem_save_ppCallResult_0;
2025
TALLOC_CTX *_mem_save_ppCallResult_1;
2026
if (flags & NDR_IN) {
2027
ZERO_STRUCT(r->out);
2029
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2030
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2031
NDR_PULL_ALLOC(ndr, r->in.pInst);
2033
_mem_save_pInst_0 = NDR_PULL_GET_MEM_CTX(ndr);
2034
NDR_PULL_SET_MEM_CTX(ndr, r->in.pInst, LIBNDR_FLAG_REF_ALLOC);
2035
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInst));
2036
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInst_0, LIBNDR_FLAG_REF_ALLOC);
2037
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
2038
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2039
NDR_PULL_ALLOC(ndr, r->in.pCtx);
2041
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
2042
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
2043
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2044
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
2045
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
2046
if (_ptr_ppCallResult) {
2047
NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
2049
r->in.ppCallResult = NULL;
2051
if (r->in.ppCallResult) {
2052
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
2053
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
2054
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
2055
if (_ptr_ppCallResult) {
2056
NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
2058
*r->in.ppCallResult = NULL;
2060
if (*r->in.ppCallResult) {
2061
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
2062
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
2063
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
2064
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
2066
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
2068
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2069
ZERO_STRUCTP(r->out.ORPCthat);
2071
if (flags & NDR_OUT) {
2072
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2073
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2075
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
2076
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
2077
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2078
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
2079
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
2080
if (_ptr_ppCallResult) {
2081
NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
2083
r->out.ppCallResult = NULL;
2085
if (r->out.ppCallResult) {
2086
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
2087
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
2088
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
2089
if (_ptr_ppCallResult) {
2090
NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
2092
*r->out.ppCallResult = NULL;
2094
if (*r->out.ppCallResult) {
2095
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
2096
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
2097
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
2098
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
2100
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
2102
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2104
return NDR_ERR_SUCCESS;
2107
_PUBLIC_ void ndr_print_PutInstance(struct ndr_print *ndr, const char *name, int flags, const struct PutInstance *r)
2109
ndr_print_struct(ndr, name, "PutInstance");
2110
if (r == NULL) { ndr_print_null(ndr); return; }
2112
if (flags & NDR_SET_VALUES) {
2113
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2115
if (flags & NDR_IN) {
2116
ndr_print_struct(ndr, "in", "PutInstance");
2118
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
2119
ndr_print_ptr(ndr, "pInst", r->in.pInst);
2121
ndr_print_MInterfacePointer(ndr, "pInst", r->in.pInst);
2123
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
2124
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
2126
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2128
ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
2130
if (r->in.ppCallResult) {
2131
ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
2133
if (*r->in.ppCallResult) {
2134
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
2141
if (flags & NDR_OUT) {
2142
ndr_print_struct(ndr, "out", "PutInstance");
2144
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2146
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2148
ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
2150
if (r->out.ppCallResult) {
2151
ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
2153
if (*r->out.ppCallResult) {
2154
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
2159
ndr_print_WERROR(ndr, "result", r->out.result);
2165
static enum ndr_err_code ndr_push_PutInstanceAsync(struct ndr_push *ndr, int flags, const struct PutInstanceAsync *r)
2167
if (flags & NDR_IN) {
2168
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2169
if (r->in.pInst == NULL) {
2170
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2172
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInst));
2173
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
2174
if (r->in.pCtx == NULL) {
2175
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2177
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2178
if (r->in.pResponseHandler == NULL) {
2179
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2181
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2183
if (flags & NDR_OUT) {
2184
if (r->out.ORPCthat == NULL) {
2185
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2187
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2188
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2190
return NDR_ERR_SUCCESS;
2193
static enum ndr_err_code ndr_pull_PutInstanceAsync(struct ndr_pull *ndr, int flags, struct PutInstanceAsync *r)
2195
TALLOC_CTX *_mem_save_ORPCthat_0;
2196
TALLOC_CTX *_mem_save_pInst_0;
2197
TALLOC_CTX *_mem_save_pCtx_0;
2198
TALLOC_CTX *_mem_save_pResponseHandler_0;
2199
if (flags & NDR_IN) {
2200
ZERO_STRUCT(r->out);
2202
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2203
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2204
NDR_PULL_ALLOC(ndr, r->in.pInst);
2206
_mem_save_pInst_0 = NDR_PULL_GET_MEM_CTX(ndr);
2207
NDR_PULL_SET_MEM_CTX(ndr, r->in.pInst, LIBNDR_FLAG_REF_ALLOC);
2208
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInst));
2209
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInst_0, LIBNDR_FLAG_REF_ALLOC);
2210
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
2211
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2212
NDR_PULL_ALLOC(ndr, r->in.pCtx);
2214
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
2215
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
2216
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2217
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
2218
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2219
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
2221
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
2222
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
2223
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2224
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
2225
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2226
ZERO_STRUCTP(r->out.ORPCthat);
2228
if (flags & NDR_OUT) {
2229
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2230
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2232
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
2233
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
2234
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2235
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
2236
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2238
return NDR_ERR_SUCCESS;
2241
_PUBLIC_ void ndr_print_PutInstanceAsync(struct ndr_print *ndr, const char *name, int flags, const struct PutInstanceAsync *r)
2243
ndr_print_struct(ndr, name, "PutInstanceAsync");
2244
if (r == NULL) { ndr_print_null(ndr); return; }
2246
if (flags & NDR_SET_VALUES) {
2247
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2249
if (flags & NDR_IN) {
2250
ndr_print_struct(ndr, "in", "PutInstanceAsync");
2252
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
2253
ndr_print_ptr(ndr, "pInst", r->in.pInst);
2255
ndr_print_MInterfacePointer(ndr, "pInst", r->in.pInst);
2257
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
2258
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
2260
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2262
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
2264
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
2268
if (flags & NDR_OUT) {
2269
ndr_print_struct(ndr, "out", "PutInstanceAsync");
2271
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2273
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2275
ndr_print_WERROR(ndr, "result", r->out.result);
2281
static enum ndr_err_code ndr_push_DeleteInstance(struct ndr_push *ndr, int flags, const struct DeleteInstance *r)
2283
if (flags & NDR_IN) {
2284
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2285
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
2286
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
2287
if (r->in.pCtx == NULL) {
2288
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2290
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2291
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
2292
if (r->in.ppCallResult) {
2293
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
2294
if (*r->in.ppCallResult) {
2295
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
2299
if (flags & NDR_OUT) {
2300
if (r->out.ORPCthat == NULL) {
2301
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2303
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2304
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
2305
if (r->out.ppCallResult) {
2306
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
2307
if (*r->out.ppCallResult) {
2308
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
2311
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2313
return NDR_ERR_SUCCESS;
2316
static enum ndr_err_code ndr_pull_DeleteInstance(struct ndr_pull *ndr, int flags, struct DeleteInstance *r)
2318
uint32_t _ptr_ppCallResult;
2319
TALLOC_CTX *_mem_save_ORPCthat_0;
2320
TALLOC_CTX *_mem_save_pCtx_0;
2321
TALLOC_CTX *_mem_save_ppCallResult_0;
2322
TALLOC_CTX *_mem_save_ppCallResult_1;
2323
if (flags & NDR_IN) {
2324
ZERO_STRUCT(r->out);
2326
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2327
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
2328
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
2329
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2330
NDR_PULL_ALLOC(ndr, r->in.pCtx);
2332
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
2333
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
2334
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2335
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
2336
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
2337
if (_ptr_ppCallResult) {
2338
NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
2340
r->in.ppCallResult = NULL;
2342
if (r->in.ppCallResult) {
2343
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
2344
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
2345
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
2346
if (_ptr_ppCallResult) {
2347
NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
2349
*r->in.ppCallResult = NULL;
2351
if (*r->in.ppCallResult) {
2352
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
2353
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
2354
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
2355
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
2357
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
2359
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2360
ZERO_STRUCTP(r->out.ORPCthat);
2362
if (flags & NDR_OUT) {
2363
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2364
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2366
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
2367
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
2368
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2369
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
2370
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
2371
if (_ptr_ppCallResult) {
2372
NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
2374
r->out.ppCallResult = NULL;
2376
if (r->out.ppCallResult) {
2377
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
2378
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
2379
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
2380
if (_ptr_ppCallResult) {
2381
NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
2383
*r->out.ppCallResult = NULL;
2385
if (*r->out.ppCallResult) {
2386
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
2387
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
2388
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
2389
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
2391
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
2393
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2395
return NDR_ERR_SUCCESS;
2398
_PUBLIC_ void ndr_print_DeleteInstance(struct ndr_print *ndr, const char *name, int flags, const struct DeleteInstance *r)
2400
ndr_print_struct(ndr, name, "DeleteInstance");
2401
if (r == NULL) { ndr_print_null(ndr); return; }
2403
if (flags & NDR_SET_VALUES) {
2404
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2406
if (flags & NDR_IN) {
2407
ndr_print_struct(ndr, "in", "DeleteInstance");
2409
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
2410
ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
2411
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
2412
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
2414
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2416
ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
2418
if (r->in.ppCallResult) {
2419
ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
2421
if (*r->in.ppCallResult) {
2422
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
2429
if (flags & NDR_OUT) {
2430
ndr_print_struct(ndr, "out", "DeleteInstance");
2432
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2434
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2436
ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
2438
if (r->out.ppCallResult) {
2439
ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
2441
if (*r->out.ppCallResult) {
2442
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
2447
ndr_print_WERROR(ndr, "result", r->out.result);
2453
static enum ndr_err_code ndr_push_DeleteInstanceAsync(struct ndr_push *ndr, int flags, const struct DeleteInstanceAsync *r)
2455
if (flags & NDR_IN) {
2456
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2457
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
2458
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
2459
if (r->in.pCtx == NULL) {
2460
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2462
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2463
if (r->in.pResponseHandler == NULL) {
2464
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2466
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2468
if (flags & NDR_OUT) {
2469
if (r->out.ORPCthat == NULL) {
2470
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2472
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2473
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2475
return NDR_ERR_SUCCESS;
2478
static enum ndr_err_code ndr_pull_DeleteInstanceAsync(struct ndr_pull *ndr, int flags, struct DeleteInstanceAsync *r)
2480
TALLOC_CTX *_mem_save_ORPCthat_0;
2481
TALLOC_CTX *_mem_save_pCtx_0;
2482
TALLOC_CTX *_mem_save_pResponseHandler_0;
2483
if (flags & NDR_IN) {
2484
ZERO_STRUCT(r->out);
2486
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2487
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
2488
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
2489
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2490
NDR_PULL_ALLOC(ndr, r->in.pCtx);
2492
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
2493
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
2494
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2495
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
2496
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2497
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
2499
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
2500
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
2501
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2502
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
2503
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2504
ZERO_STRUCTP(r->out.ORPCthat);
2506
if (flags & NDR_OUT) {
2507
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2508
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2510
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
2511
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
2512
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2513
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
2514
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2516
return NDR_ERR_SUCCESS;
2519
_PUBLIC_ void ndr_print_DeleteInstanceAsync(struct ndr_print *ndr, const char *name, int flags, const struct DeleteInstanceAsync *r)
2521
ndr_print_struct(ndr, name, "DeleteInstanceAsync");
2522
if (r == NULL) { ndr_print_null(ndr); return; }
2524
if (flags & NDR_SET_VALUES) {
2525
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2527
if (flags & NDR_IN) {
2528
ndr_print_struct(ndr, "in", "DeleteInstanceAsync");
2530
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
2531
ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
2532
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
2533
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
2535
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2537
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
2539
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
2543
if (flags & NDR_OUT) {
2544
ndr_print_struct(ndr, "out", "DeleteInstanceAsync");
2546
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2548
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2550
ndr_print_WERROR(ndr, "result", r->out.result);
2556
static enum ndr_err_code ndr_push_CreateInstanceEnum(struct ndr_push *ndr, int flags, const struct CreateInstanceEnum *r)
2558
if (flags & NDR_IN) {
2559
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2560
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strFilter));
2561
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
2562
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
2564
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2567
if (flags & NDR_OUT) {
2568
if (r->out.ORPCthat == NULL) {
2569
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2571
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2572
if (r->out.ppEnum == NULL) {
2573
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2575
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
2576
if (*r->out.ppEnum) {
2577
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
2579
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2581
return NDR_ERR_SUCCESS;
2584
static enum ndr_err_code ndr_pull_CreateInstanceEnum(struct ndr_pull *ndr, int flags, struct CreateInstanceEnum *r)
2587
uint32_t _ptr_ppEnum;
2588
TALLOC_CTX *_mem_save_ORPCthat_0;
2589
TALLOC_CTX *_mem_save_pCtx_0;
2590
TALLOC_CTX *_mem_save_ppEnum_0;
2591
TALLOC_CTX *_mem_save_ppEnum_1;
2592
if (flags & NDR_IN) {
2593
ZERO_STRUCT(r->out);
2595
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2596
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strFilter));
2597
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
2598
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
2600
NDR_PULL_ALLOC(ndr, r->in.pCtx);
2605
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
2606
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
2607
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2608
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
2610
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2611
ZERO_STRUCTP(r->out.ORPCthat);
2612
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
2613
ZERO_STRUCTP(r->out.ppEnum);
2615
if (flags & NDR_OUT) {
2616
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2617
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2619
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
2620
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
2621
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2622
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
2623
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2624
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
2626
_mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
2627
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
2628
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
2630
NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
2632
*r->out.ppEnum = NULL;
2634
if (*r->out.ppEnum) {
2635
_mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
2636
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
2637
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
2638
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
2640
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
2641
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2643
return NDR_ERR_SUCCESS;
2646
_PUBLIC_ void ndr_print_CreateInstanceEnum(struct ndr_print *ndr, const char *name, int flags, const struct CreateInstanceEnum *r)
2648
ndr_print_struct(ndr, name, "CreateInstanceEnum");
2649
if (r == NULL) { ndr_print_null(ndr); return; }
2651
if (flags & NDR_SET_VALUES) {
2652
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2654
if (flags & NDR_IN) {
2655
ndr_print_struct(ndr, "in", "CreateInstanceEnum");
2657
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
2658
ndr_print_BSTR(ndr, "strFilter", &r->in.strFilter);
2659
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
2660
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
2663
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2668
if (flags & NDR_OUT) {
2669
ndr_print_struct(ndr, "out", "CreateInstanceEnum");
2671
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2673
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2675
ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
2677
ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
2679
if (*r->out.ppEnum) {
2680
ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
2684
ndr_print_WERROR(ndr, "result", r->out.result);
2690
static enum ndr_err_code ndr_push_CreateInstanceEnumAsync(struct ndr_push *ndr, int flags, const struct CreateInstanceEnumAsync *r)
2692
if (flags & NDR_IN) {
2693
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2694
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strSuperClass));
2695
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
2696
if (r->in.pCtx == NULL) {
2697
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2699
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2700
if (r->in.pResponseHandler == NULL) {
2701
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2703
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2705
if (flags & NDR_OUT) {
2706
if (r->out.ORPCthat == NULL) {
2707
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2709
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2710
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2712
return NDR_ERR_SUCCESS;
2715
static enum ndr_err_code ndr_pull_CreateInstanceEnumAsync(struct ndr_pull *ndr, int flags, struct CreateInstanceEnumAsync *r)
2717
TALLOC_CTX *_mem_save_ORPCthat_0;
2718
TALLOC_CTX *_mem_save_pCtx_0;
2719
TALLOC_CTX *_mem_save_pResponseHandler_0;
2720
if (flags & NDR_IN) {
2721
ZERO_STRUCT(r->out);
2723
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2724
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strSuperClass));
2725
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
2726
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2727
NDR_PULL_ALLOC(ndr, r->in.pCtx);
2729
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
2730
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
2731
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2732
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
2733
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2734
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
2736
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
2737
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
2738
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2739
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
2740
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2741
ZERO_STRUCTP(r->out.ORPCthat);
2743
if (flags & NDR_OUT) {
2744
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2745
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2747
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
2748
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
2749
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2750
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
2751
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2753
return NDR_ERR_SUCCESS;
2756
_PUBLIC_ void ndr_print_CreateInstanceEnumAsync(struct ndr_print *ndr, const char *name, int flags, const struct CreateInstanceEnumAsync *r)
2758
ndr_print_struct(ndr, name, "CreateInstanceEnumAsync");
2759
if (r == NULL) { ndr_print_null(ndr); return; }
2761
if (flags & NDR_SET_VALUES) {
2762
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2764
if (flags & NDR_IN) {
2765
ndr_print_struct(ndr, "in", "CreateInstanceEnumAsync");
2767
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
2768
ndr_print_BSTR(ndr, "strSuperClass", &r->in.strSuperClass);
2769
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
2770
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
2772
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2774
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
2776
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
2780
if (flags & NDR_OUT) {
2781
ndr_print_struct(ndr, "out", "CreateInstanceEnumAsync");
2783
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2785
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2787
ndr_print_WERROR(ndr, "result", r->out.result);
2793
static enum ndr_err_code ndr_push_ExecQuery(struct ndr_push *ndr, int flags, const struct ExecQuery *r)
2795
if (flags & NDR_IN) {
2796
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2797
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
2798
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
2799
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
2800
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
2802
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2805
if (flags & NDR_OUT) {
2806
if (r->out.ORPCthat == NULL) {
2807
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2809
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2810
if (r->out.ppEnum == NULL) {
2811
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2813
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
2814
if (*r->out.ppEnum) {
2815
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
2817
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2819
return NDR_ERR_SUCCESS;
2822
static enum ndr_err_code ndr_pull_ExecQuery(struct ndr_pull *ndr, int flags, struct ExecQuery *r)
2825
uint32_t _ptr_ppEnum;
2826
TALLOC_CTX *_mem_save_ORPCthat_0;
2827
TALLOC_CTX *_mem_save_pCtx_0;
2828
TALLOC_CTX *_mem_save_ppEnum_0;
2829
TALLOC_CTX *_mem_save_ppEnum_1;
2830
if (flags & NDR_IN) {
2831
ZERO_STRUCT(r->out);
2833
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2834
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
2835
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
2836
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
2837
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
2839
NDR_PULL_ALLOC(ndr, r->in.pCtx);
2844
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
2845
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
2846
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2847
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
2849
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2850
ZERO_STRUCTP(r->out.ORPCthat);
2851
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
2852
ZERO_STRUCTP(r->out.ppEnum);
2854
if (flags & NDR_OUT) {
2855
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2856
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2858
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
2859
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
2860
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2861
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
2862
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2863
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
2865
_mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
2866
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
2867
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
2869
NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
2871
*r->out.ppEnum = NULL;
2873
if (*r->out.ppEnum) {
2874
_mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
2875
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
2876
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
2877
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
2879
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
2880
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2882
return NDR_ERR_SUCCESS;
2885
_PUBLIC_ void ndr_print_ExecQuery(struct ndr_print *ndr, const char *name, int flags, const struct ExecQuery *r)
2887
ndr_print_struct(ndr, name, "ExecQuery");
2888
if (r == NULL) { ndr_print_null(ndr); return; }
2890
if (flags & NDR_SET_VALUES) {
2891
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2893
if (flags & NDR_IN) {
2894
ndr_print_struct(ndr, "in", "ExecQuery");
2896
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
2897
ndr_print_BSTR(ndr, "strQueryLanguage", &r->in.strQueryLanguage);
2898
ndr_print_BSTR(ndr, "strQuery", &r->in.strQuery);
2899
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
2900
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
2903
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2908
if (flags & NDR_OUT) {
2909
ndr_print_struct(ndr, "out", "ExecQuery");
2911
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2913
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2915
ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
2917
ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
2919
if (*r->out.ppEnum) {
2920
ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
2924
ndr_print_WERROR(ndr, "result", r->out.result);
2930
static enum ndr_err_code ndr_push_ExecQueryAsync(struct ndr_push *ndr, int flags, const struct ExecQueryAsync *r)
2932
if (flags & NDR_IN) {
2933
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2934
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
2935
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
2936
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
2937
if (r->in.pCtx == NULL) {
2938
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2940
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2941
if (r->in.pResponseHandler == NULL) {
2942
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2944
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2946
if (flags & NDR_OUT) {
2947
if (r->out.ORPCthat == NULL) {
2948
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2950
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2951
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2953
return NDR_ERR_SUCCESS;
2956
static enum ndr_err_code ndr_pull_ExecQueryAsync(struct ndr_pull *ndr, int flags, struct ExecQueryAsync *r)
2958
TALLOC_CTX *_mem_save_ORPCthat_0;
2959
TALLOC_CTX *_mem_save_pCtx_0;
2960
TALLOC_CTX *_mem_save_pResponseHandler_0;
2961
if (flags & NDR_IN) {
2962
ZERO_STRUCT(r->out);
2964
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
2965
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
2966
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
2967
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
2968
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2969
NDR_PULL_ALLOC(ndr, r->in.pCtx);
2971
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
2972
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
2973
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2974
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
2975
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2976
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
2978
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
2979
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
2980
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2981
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
2982
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2983
ZERO_STRUCTP(r->out.ORPCthat);
2985
if (flags & NDR_OUT) {
2986
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2987
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2989
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
2990
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
2991
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
2992
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
2993
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2995
return NDR_ERR_SUCCESS;
2998
_PUBLIC_ void ndr_print_ExecQueryAsync(struct ndr_print *ndr, const char *name, int flags, const struct ExecQueryAsync *r)
3000
ndr_print_struct(ndr, name, "ExecQueryAsync");
3001
if (r == NULL) { ndr_print_null(ndr); return; }
3003
if (flags & NDR_SET_VALUES) {
3004
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3006
if (flags & NDR_IN) {
3007
ndr_print_struct(ndr, "in", "ExecQueryAsync");
3009
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
3010
ndr_print_BSTR(ndr, "strQueryLanguage", &r->in.strQueryLanguage);
3011
ndr_print_BSTR(ndr, "strQuery", &r->in.strQuery);
3012
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
3013
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
3015
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3017
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
3019
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
3023
if (flags & NDR_OUT) {
3024
ndr_print_struct(ndr, "out", "ExecQueryAsync");
3026
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3028
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3030
ndr_print_WERROR(ndr, "result", r->out.result);
3036
static enum ndr_err_code ndr_push_ExecNotificationQuery(struct ndr_push *ndr, int flags, const struct ExecNotificationQuery *r)
3038
if (flags & NDR_IN) {
3039
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3040
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
3041
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
3042
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
3043
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
3045
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3048
if (flags & NDR_OUT) {
3049
if (r->out.ORPCthat == NULL) {
3050
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3052
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3053
if (r->out.ppEnum == NULL) {
3054
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3056
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
3057
if (*r->out.ppEnum) {
3058
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
3060
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3062
return NDR_ERR_SUCCESS;
3065
static enum ndr_err_code ndr_pull_ExecNotificationQuery(struct ndr_pull *ndr, int flags, struct ExecNotificationQuery *r)
3068
uint32_t _ptr_ppEnum;
3069
TALLOC_CTX *_mem_save_ORPCthat_0;
3070
TALLOC_CTX *_mem_save_pCtx_0;
3071
TALLOC_CTX *_mem_save_ppEnum_0;
3072
TALLOC_CTX *_mem_save_ppEnum_1;
3073
if (flags & NDR_IN) {
3074
ZERO_STRUCT(r->out);
3076
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3077
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
3078
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
3079
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
3080
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
3082
NDR_PULL_ALLOC(ndr, r->in.pCtx);
3087
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
3088
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
3089
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3090
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
3092
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3093
ZERO_STRUCTP(r->out.ORPCthat);
3094
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
3095
ZERO_STRUCTP(r->out.ppEnum);
3097
if (flags & NDR_OUT) {
3098
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3099
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3101
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
3102
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
3103
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3104
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
3105
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3106
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
3108
_mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
3109
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
3110
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
3112
NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
3114
*r->out.ppEnum = NULL;
3116
if (*r->out.ppEnum) {
3117
_mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
3118
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
3119
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
3120
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
3122
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
3123
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3125
return NDR_ERR_SUCCESS;
3128
_PUBLIC_ void ndr_print_ExecNotificationQuery(struct ndr_print *ndr, const char *name, int flags, const struct ExecNotificationQuery *r)
3130
ndr_print_struct(ndr, name, "ExecNotificationQuery");
3131
if (r == NULL) { ndr_print_null(ndr); return; }
3133
if (flags & NDR_SET_VALUES) {
3134
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3136
if (flags & NDR_IN) {
3137
ndr_print_struct(ndr, "in", "ExecNotificationQuery");
3139
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
3140
ndr_print_BSTR(ndr, "strQueryLanguage", &r->in.strQueryLanguage);
3141
ndr_print_BSTR(ndr, "strQuery", &r->in.strQuery);
3142
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
3143
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
3146
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3151
if (flags & NDR_OUT) {
3152
ndr_print_struct(ndr, "out", "ExecNotificationQuery");
3154
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3156
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3158
ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
3160
ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
3162
if (*r->out.ppEnum) {
3163
ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
3167
ndr_print_WERROR(ndr, "result", r->out.result);
3173
static enum ndr_err_code ndr_push_ExecNotificationQueryAsync(struct ndr_push *ndr, int flags, const struct ExecNotificationQueryAsync *r)
3175
if (flags & NDR_IN) {
3176
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3177
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
3178
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
3179
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
3180
if (r->in.pCtx == NULL) {
3181
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3183
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3184
if (r->in.pResponseHandler == NULL) {
3185
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3187
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
3189
if (flags & NDR_OUT) {
3190
if (r->out.ORPCthat == NULL) {
3191
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3193
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3194
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3196
return NDR_ERR_SUCCESS;
3199
static enum ndr_err_code ndr_pull_ExecNotificationQueryAsync(struct ndr_pull *ndr, int flags, struct ExecNotificationQueryAsync *r)
3201
TALLOC_CTX *_mem_save_ORPCthat_0;
3202
TALLOC_CTX *_mem_save_pCtx_0;
3203
TALLOC_CTX *_mem_save_pResponseHandler_0;
3204
if (flags & NDR_IN) {
3205
ZERO_STRUCT(r->out);
3207
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3208
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
3209
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
3210
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
3211
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3212
NDR_PULL_ALLOC(ndr, r->in.pCtx);
3214
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
3215
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
3216
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3217
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
3218
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3219
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
3221
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
3222
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
3223
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
3224
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
3225
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3226
ZERO_STRUCTP(r->out.ORPCthat);
3228
if (flags & NDR_OUT) {
3229
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3230
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3232
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
3233
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
3234
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3235
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
3236
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3238
return NDR_ERR_SUCCESS;
3241
_PUBLIC_ void ndr_print_ExecNotificationQueryAsync(struct ndr_print *ndr, const char *name, int flags, const struct ExecNotificationQueryAsync *r)
3243
ndr_print_struct(ndr, name, "ExecNotificationQueryAsync");
3244
if (r == NULL) { ndr_print_null(ndr); return; }
3246
if (flags & NDR_SET_VALUES) {
3247
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3249
if (flags & NDR_IN) {
3250
ndr_print_struct(ndr, "in", "ExecNotificationQueryAsync");
3252
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
3253
ndr_print_BSTR(ndr, "strQueryLanguage", &r->in.strQueryLanguage);
3254
ndr_print_BSTR(ndr, "strQuery", &r->in.strQuery);
3255
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
3256
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
3258
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3260
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
3262
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
3266
if (flags & NDR_OUT) {
3267
ndr_print_struct(ndr, "out", "ExecNotificationQueryAsync");
3269
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3271
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3273
ndr_print_WERROR(ndr, "result", r->out.result);
3279
static enum ndr_err_code ndr_push_ExecMethod(struct ndr_push *ndr, int flags, const struct ExecMethod *r)
3281
if (flags & NDR_IN) {
3282
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3283
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
3284
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strMethodName));
3285
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
3286
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
3288
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3290
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pInParams));
3291
if (r->in.pInParams) {
3292
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInParams));
3294
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppOutParams));
3295
if (r->in.ppOutParams) {
3296
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppOutParams));
3297
if (*r->in.ppOutParams) {
3298
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppOutParams));
3301
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
3302
if (r->in.ppCallResult) {
3303
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
3304
if (*r->in.ppCallResult) {
3305
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
3309
if (flags & NDR_OUT) {
3310
if (r->out.ORPCthat == NULL) {
3311
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3313
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3314
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppOutParams));
3315
if (r->out.ppOutParams) {
3316
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppOutParams));
3317
if (*r->out.ppOutParams) {
3318
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppOutParams));
3321
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
3322
if (r->out.ppCallResult) {
3323
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
3324
if (*r->out.ppCallResult) {
3325
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
3328
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3330
return NDR_ERR_SUCCESS;
3333
static enum ndr_err_code ndr_pull_ExecMethod(struct ndr_pull *ndr, int flags, struct ExecMethod *r)
3336
uint32_t _ptr_pInParams;
3337
uint32_t _ptr_ppOutParams;
3338
uint32_t _ptr_ppCallResult;
3339
TALLOC_CTX *_mem_save_ORPCthat_0;
3340
TALLOC_CTX *_mem_save_pCtx_0;
3341
TALLOC_CTX *_mem_save_pInParams_0;
3342
TALLOC_CTX *_mem_save_ppOutParams_0;
3343
TALLOC_CTX *_mem_save_ppOutParams_1;
3344
TALLOC_CTX *_mem_save_ppCallResult_0;
3345
TALLOC_CTX *_mem_save_ppCallResult_1;
3346
if (flags & NDR_IN) {
3347
ZERO_STRUCT(r->out);
3349
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3350
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
3351
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strMethodName));
3352
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
3353
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
3355
NDR_PULL_ALLOC(ndr, r->in.pCtx);
3360
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
3361
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
3362
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3363
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
3365
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pInParams));
3366
if (_ptr_pInParams) {
3367
NDR_PULL_ALLOC(ndr, r->in.pInParams);
3369
r->in.pInParams = NULL;
3371
if (r->in.pInParams) {
3372
_mem_save_pInParams_0 = NDR_PULL_GET_MEM_CTX(ndr);
3373
NDR_PULL_SET_MEM_CTX(ndr, r->in.pInParams, 0);
3374
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInParams));
3375
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInParams_0, 0);
3377
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppOutParams));
3378
if (_ptr_ppOutParams) {
3379
NDR_PULL_ALLOC(ndr, r->in.ppOutParams);
3381
r->in.ppOutParams = NULL;
3383
if (r->in.ppOutParams) {
3384
_mem_save_ppOutParams_0 = NDR_PULL_GET_MEM_CTX(ndr);
3385
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppOutParams, 0);
3386
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppOutParams));
3387
if (_ptr_ppOutParams) {
3388
NDR_PULL_ALLOC(ndr, *r->in.ppOutParams);
3390
*r->in.ppOutParams = NULL;
3392
if (*r->in.ppOutParams) {
3393
_mem_save_ppOutParams_1 = NDR_PULL_GET_MEM_CTX(ndr);
3394
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppOutParams, 0);
3395
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppOutParams));
3396
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_1, 0);
3398
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_0, 0);
3400
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
3401
if (_ptr_ppCallResult) {
3402
NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
3404
r->in.ppCallResult = NULL;
3406
if (r->in.ppCallResult) {
3407
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
3408
NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
3409
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
3410
if (_ptr_ppCallResult) {
3411
NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
3413
*r->in.ppCallResult = NULL;
3415
if (*r->in.ppCallResult) {
3416
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
3417
NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
3418
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
3419
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
3421
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
3423
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3424
ZERO_STRUCTP(r->out.ORPCthat);
3426
if (flags & NDR_OUT) {
3427
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3428
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3430
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
3431
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
3432
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3433
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
3434
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppOutParams));
3435
if (_ptr_ppOutParams) {
3436
NDR_PULL_ALLOC(ndr, r->out.ppOutParams);
3438
r->out.ppOutParams = NULL;
3440
if (r->out.ppOutParams) {
3441
_mem_save_ppOutParams_0 = NDR_PULL_GET_MEM_CTX(ndr);
3442
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppOutParams, 0);
3443
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppOutParams));
3444
if (_ptr_ppOutParams) {
3445
NDR_PULL_ALLOC(ndr, *r->out.ppOutParams);
3447
*r->out.ppOutParams = NULL;
3449
if (*r->out.ppOutParams) {
3450
_mem_save_ppOutParams_1 = NDR_PULL_GET_MEM_CTX(ndr);
3451
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppOutParams, 0);
3452
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppOutParams));
3453
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_1, 0);
3455
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_0, 0);
3457
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
3458
if (_ptr_ppCallResult) {
3459
NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
3461
r->out.ppCallResult = NULL;
3463
if (r->out.ppCallResult) {
3464
_mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
3465
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
3466
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
3467
if (_ptr_ppCallResult) {
3468
NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
3470
*r->out.ppCallResult = NULL;
3472
if (*r->out.ppCallResult) {
3473
_mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
3474
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
3475
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
3476
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
3478
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
3480
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3482
return NDR_ERR_SUCCESS;
3485
_PUBLIC_ void ndr_print_ExecMethod(struct ndr_print *ndr, const char *name, int flags, const struct ExecMethod *r)
3487
ndr_print_struct(ndr, name, "ExecMethod");
3488
if (r == NULL) { ndr_print_null(ndr); return; }
3490
if (flags & NDR_SET_VALUES) {
3491
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3493
if (flags & NDR_IN) {
3494
ndr_print_struct(ndr, "in", "ExecMethod");
3496
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
3497
ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
3498
ndr_print_BSTR(ndr, "strMethodName", &r->in.strMethodName);
3499
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
3500
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
3503
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3506
ndr_print_ptr(ndr, "pInParams", r->in.pInParams);
3508
if (r->in.pInParams) {
3509
ndr_print_MInterfacePointer(ndr, "pInParams", r->in.pInParams);
3512
ndr_print_ptr(ndr, "ppOutParams", r->in.ppOutParams);
3514
if (r->in.ppOutParams) {
3515
ndr_print_ptr(ndr, "ppOutParams", *r->in.ppOutParams);
3517
if (*r->in.ppOutParams) {
3518
ndr_print_MInterfacePointer(ndr, "ppOutParams", *r->in.ppOutParams);
3523
ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
3525
if (r->in.ppCallResult) {
3526
ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
3528
if (*r->in.ppCallResult) {
3529
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
3536
if (flags & NDR_OUT) {
3537
ndr_print_struct(ndr, "out", "ExecMethod");
3539
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3541
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3543
ndr_print_ptr(ndr, "ppOutParams", r->out.ppOutParams);
3545
if (r->out.ppOutParams) {
3546
ndr_print_ptr(ndr, "ppOutParams", *r->out.ppOutParams);
3548
if (*r->out.ppOutParams) {
3549
ndr_print_MInterfacePointer(ndr, "ppOutParams", *r->out.ppOutParams);
3554
ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
3556
if (r->out.ppCallResult) {
3557
ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
3559
if (*r->out.ppCallResult) {
3560
ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
3565
ndr_print_WERROR(ndr, "result", r->out.result);
3571
static enum ndr_err_code ndr_push_ExecMethodAsync(struct ndr_push *ndr, int flags, const struct ExecMethodAsync *r)
3573
if (flags & NDR_IN) {
3574
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3575
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
3576
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strMethodName));
3577
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.lFlags));
3578
if (r->in.pCtx == NULL) {
3579
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3581
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3582
if (r->in.pInParams == NULL) {
3583
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3585
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInParams));
3586
if (r->in.pResponseHandler == NULL) {
3587
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3589
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
3591
if (flags & NDR_OUT) {
3592
if (r->out.ORPCthat == NULL) {
3593
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3595
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3596
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3598
return NDR_ERR_SUCCESS;
3601
static enum ndr_err_code ndr_pull_ExecMethodAsync(struct ndr_pull *ndr, int flags, struct ExecMethodAsync *r)
3603
TALLOC_CTX *_mem_save_ORPCthat_0;
3604
TALLOC_CTX *_mem_save_pCtx_0;
3605
TALLOC_CTX *_mem_save_pInParams_0;
3606
TALLOC_CTX *_mem_save_pResponseHandler_0;
3607
if (flags & NDR_IN) {
3608
ZERO_STRUCT(r->out);
3610
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3611
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
3612
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strMethodName));
3613
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.lFlags));
3614
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3615
NDR_PULL_ALLOC(ndr, r->in.pCtx);
3617
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
3618
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
3619
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3620
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
3621
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3622
NDR_PULL_ALLOC(ndr, r->in.pInParams);
3624
_mem_save_pInParams_0 = NDR_PULL_GET_MEM_CTX(ndr);
3625
NDR_PULL_SET_MEM_CTX(ndr, r->in.pInParams, LIBNDR_FLAG_REF_ALLOC);
3626
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInParams));
3627
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInParams_0, LIBNDR_FLAG_REF_ALLOC);
3628
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3629
NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
3631
_mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
3632
NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
3633
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
3634
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
3635
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3636
ZERO_STRUCTP(r->out.ORPCthat);
3638
if (flags & NDR_OUT) {
3639
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3640
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3642
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
3643
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
3644
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3645
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
3646
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3648
return NDR_ERR_SUCCESS;
3651
_PUBLIC_ void ndr_print_ExecMethodAsync(struct ndr_print *ndr, const char *name, int flags, const struct ExecMethodAsync *r)
3653
ndr_print_struct(ndr, name, "ExecMethodAsync");
3654
if (r == NULL) { ndr_print_null(ndr); return; }
3656
if (flags & NDR_SET_VALUES) {
3657
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3659
if (flags & NDR_IN) {
3660
ndr_print_struct(ndr, "in", "ExecMethodAsync");
3662
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
3663
ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
3664
ndr_print_BSTR(ndr, "strMethodName", &r->in.strMethodName);
3665
ndr_print_uint32(ndr, "lFlags", r->in.lFlags);
3666
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
3668
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3670
ndr_print_ptr(ndr, "pInParams", r->in.pInParams);
3672
ndr_print_MInterfacePointer(ndr, "pInParams", r->in.pInParams);
3674
ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
3676
ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
3680
if (flags & NDR_OUT) {
3681
ndr_print_struct(ndr, "out", "ExecMethodAsync");
3683
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3685
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3687
ndr_print_WERROR(ndr, "result", r->out.result);
3693
static const struct ndr_interface_call IWbemServices_calls[] = {
3696
sizeof(struct OpenNamespace),
3697
(ndr_push_flags_fn_t) ndr_push_OpenNamespace,
3698
(ndr_pull_flags_fn_t) ndr_pull_OpenNamespace,
3699
(ndr_print_function_t) ndr_print_OpenNamespace,
3705
sizeof(struct CancelAsyncCall),
3706
(ndr_push_flags_fn_t) ndr_push_CancelAsyncCall,
3707
(ndr_pull_flags_fn_t) ndr_pull_CancelAsyncCall,
3708
(ndr_print_function_t) ndr_print_CancelAsyncCall,
3714
sizeof(struct QueryObjectSink),
3715
(ndr_push_flags_fn_t) ndr_push_QueryObjectSink,
3716
(ndr_pull_flags_fn_t) ndr_pull_QueryObjectSink,
3717
(ndr_print_function_t) ndr_print_QueryObjectSink,
3723
sizeof(struct GetObject),
3724
(ndr_push_flags_fn_t) ndr_push_GetObject,
3725
(ndr_pull_flags_fn_t) ndr_pull_GetObject,
3726
(ndr_print_function_t) ndr_print_GetObject,
3732
sizeof(struct GetObjectAsync),
3733
(ndr_push_flags_fn_t) ndr_push_GetObjectAsync,
3734
(ndr_pull_flags_fn_t) ndr_pull_GetObjectAsync,
3735
(ndr_print_function_t) ndr_print_GetObjectAsync,
3741
sizeof(struct PutClass),
3742
(ndr_push_flags_fn_t) ndr_push_PutClass,
3743
(ndr_pull_flags_fn_t) ndr_pull_PutClass,
3744
(ndr_print_function_t) ndr_print_PutClass,
3750
sizeof(struct PutClassAsync),
3751
(ndr_push_flags_fn_t) ndr_push_PutClassAsync,
3752
(ndr_pull_flags_fn_t) ndr_pull_PutClassAsync,
3753
(ndr_print_function_t) ndr_print_PutClassAsync,
3759
sizeof(struct DeleteClass),
3760
(ndr_push_flags_fn_t) ndr_push_DeleteClass,
3761
(ndr_pull_flags_fn_t) ndr_pull_DeleteClass,
3762
(ndr_print_function_t) ndr_print_DeleteClass,
3768
sizeof(struct DeleteClassAsync),
3769
(ndr_push_flags_fn_t) ndr_push_DeleteClassAsync,
3770
(ndr_pull_flags_fn_t) ndr_pull_DeleteClassAsync,
3771
(ndr_print_function_t) ndr_print_DeleteClassAsync,
3777
sizeof(struct CreateClassEnum),
3778
(ndr_push_flags_fn_t) ndr_push_CreateClassEnum,
3779
(ndr_pull_flags_fn_t) ndr_pull_CreateClassEnum,
3780
(ndr_print_function_t) ndr_print_CreateClassEnum,
3785
"CreateClassEnumAsync",
3786
sizeof(struct CreateClassEnumAsync),
3787
(ndr_push_flags_fn_t) ndr_push_CreateClassEnumAsync,
3788
(ndr_pull_flags_fn_t) ndr_pull_CreateClassEnumAsync,
3789
(ndr_print_function_t) ndr_print_CreateClassEnumAsync,
3795
sizeof(struct PutInstance),
3796
(ndr_push_flags_fn_t) ndr_push_PutInstance,
3797
(ndr_pull_flags_fn_t) ndr_pull_PutInstance,
3798
(ndr_print_function_t) ndr_print_PutInstance,
3804
sizeof(struct PutInstanceAsync),
3805
(ndr_push_flags_fn_t) ndr_push_PutInstanceAsync,
3806
(ndr_pull_flags_fn_t) ndr_pull_PutInstanceAsync,
3807
(ndr_print_function_t) ndr_print_PutInstanceAsync,
3813
sizeof(struct DeleteInstance),
3814
(ndr_push_flags_fn_t) ndr_push_DeleteInstance,
3815
(ndr_pull_flags_fn_t) ndr_pull_DeleteInstance,
3816
(ndr_print_function_t) ndr_print_DeleteInstance,
3821
"DeleteInstanceAsync",
3822
sizeof(struct DeleteInstanceAsync),
3823
(ndr_push_flags_fn_t) ndr_push_DeleteInstanceAsync,
3824
(ndr_pull_flags_fn_t) ndr_pull_DeleteInstanceAsync,
3825
(ndr_print_function_t) ndr_print_DeleteInstanceAsync,
3830
"CreateInstanceEnum",
3831
sizeof(struct CreateInstanceEnum),
3832
(ndr_push_flags_fn_t) ndr_push_CreateInstanceEnum,
3833
(ndr_pull_flags_fn_t) ndr_pull_CreateInstanceEnum,
3834
(ndr_print_function_t) ndr_print_CreateInstanceEnum,
3839
"CreateInstanceEnumAsync",
3840
sizeof(struct CreateInstanceEnumAsync),
3841
(ndr_push_flags_fn_t) ndr_push_CreateInstanceEnumAsync,
3842
(ndr_pull_flags_fn_t) ndr_pull_CreateInstanceEnumAsync,
3843
(ndr_print_function_t) ndr_print_CreateInstanceEnumAsync,
3849
sizeof(struct ExecQuery),
3850
(ndr_push_flags_fn_t) ndr_push_ExecQuery,
3851
(ndr_pull_flags_fn_t) ndr_pull_ExecQuery,
3852
(ndr_print_function_t) ndr_print_ExecQuery,
3858
sizeof(struct ExecQueryAsync),
3859
(ndr_push_flags_fn_t) ndr_push_ExecQueryAsync,
3860
(ndr_pull_flags_fn_t) ndr_pull_ExecQueryAsync,
3861
(ndr_print_function_t) ndr_print_ExecQueryAsync,
3866
"ExecNotificationQuery",
3867
sizeof(struct ExecNotificationQuery),
3868
(ndr_push_flags_fn_t) ndr_push_ExecNotificationQuery,
3869
(ndr_pull_flags_fn_t) ndr_pull_ExecNotificationQuery,
3870
(ndr_print_function_t) ndr_print_ExecNotificationQuery,
3875
"ExecNotificationQueryAsync",
3876
sizeof(struct ExecNotificationQueryAsync),
3877
(ndr_push_flags_fn_t) ndr_push_ExecNotificationQueryAsync,
3878
(ndr_pull_flags_fn_t) ndr_pull_ExecNotificationQueryAsync,
3879
(ndr_print_function_t) ndr_print_ExecNotificationQueryAsync,
3885
sizeof(struct ExecMethod),
3886
(ndr_push_flags_fn_t) ndr_push_ExecMethod,
3887
(ndr_pull_flags_fn_t) ndr_pull_ExecMethod,
3888
(ndr_print_function_t) ndr_print_ExecMethod,
3894
sizeof(struct ExecMethodAsync),
3895
(ndr_push_flags_fn_t) ndr_push_ExecMethodAsync,
3896
(ndr_pull_flags_fn_t) ndr_pull_ExecMethodAsync,
3897
(ndr_print_function_t) ndr_print_ExecMethodAsync,
3901
{ NULL, 0, NULL, NULL, NULL }
3904
static const char * const IWbemServices_endpoint_strings[] = {
3905
"ncacn_np:[\\pipe\\IWbemServices]",
3908
static const struct ndr_interface_string_array IWbemServices_endpoints = {
3910
.names = IWbemServices_endpoint_strings
3913
static const char * const IWbemServices_authservice_strings[] = {
3917
static const struct ndr_interface_string_array IWbemServices_authservices = {
3919
.names = IWbemServices_authservice_strings
3923
const struct ndr_interface_table ndr_table_IWbemServices = {
3924
.name = "IWbemServices",
3926
{0x9556dc99,0x828c,0x11cf,{0xa3,0x7e},{0x00,0xaa,0x00,0x32,0x40,0xc7}},
3927
NDR_IWBEMSERVICES_VERSION
3929
.helpstring = NDR_IWBEMSERVICES_HELPSTRING,
3931
.calls = IWbemServices_calls,
3932
.endpoints = &IWbemServices_endpoints,
3933
.authservices = &IWbemServices_authservices
3936
#include "librpc/gen_ndr/ndr_orpc.h"
3937
static enum ndr_err_code ndr_push_Reset(struct ndr_push *ndr, int flags, const struct Reset *r)
3939
if (flags & NDR_IN) {
3940
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3942
if (flags & NDR_OUT) {
3943
if (r->out.ORPCthat == NULL) {
3944
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3946
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3947
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3949
return NDR_ERR_SUCCESS;
3952
static enum ndr_err_code ndr_pull_Reset(struct ndr_pull *ndr, int flags, struct Reset *r)
3954
TALLOC_CTX *_mem_save_ORPCthat_0;
3955
if (flags & NDR_IN) {
3956
ZERO_STRUCT(r->out);
3958
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3959
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3960
ZERO_STRUCTP(r->out.ORPCthat);
3962
if (flags & NDR_OUT) {
3963
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3964
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3966
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
3967
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
3968
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
3969
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
3970
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3972
return NDR_ERR_SUCCESS;
3975
_PUBLIC_ void ndr_print_Reset(struct ndr_print *ndr, const char *name, int flags, const struct Reset *r)
3977
ndr_print_struct(ndr, name, "Reset");
3978
if (r == NULL) { ndr_print_null(ndr); return; }
3980
if (flags & NDR_SET_VALUES) {
3981
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3983
if (flags & NDR_IN) {
3984
ndr_print_struct(ndr, "in", "Reset");
3986
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
3989
if (flags & NDR_OUT) {
3990
ndr_print_struct(ndr, "out", "Reset");
3992
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3994
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3996
ndr_print_WERROR(ndr, "result", r->out.result);
4002
static enum ndr_err_code ndr_push_IEnumWbemClassObject_Next(struct ndr_push *ndr, int flags, const struct IEnumWbemClassObject_Next *r)
4004
uint32_t cntr_apObjects_1;
4005
if (flags & NDR_IN) {
4006
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4007
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
4008
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.uCount));
4010
if (flags & NDR_OUT) {
4011
if (r->out.ORPCthat == NULL) {
4012
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4014
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4015
if (r->out.apObjects == NULL) {
4016
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4018
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.uCount));
4019
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
4020
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.puReturned));
4021
for (cntr_apObjects_1 = 0; cntr_apObjects_1 < *r->out.puReturned; cntr_apObjects_1++) {
4022
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.apObjects[cntr_apObjects_1]));
4024
for (cntr_apObjects_1 = 0; cntr_apObjects_1 < *r->out.puReturned; cntr_apObjects_1++) {
4025
if (r->out.apObjects[cntr_apObjects_1]) {
4026
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.apObjects[cntr_apObjects_1]));
4029
if (r->out.puReturned == NULL) {
4030
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4032
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.puReturned));
4033
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4035
return NDR_ERR_SUCCESS;
4038
static enum ndr_err_code ndr_pull_IEnumWbemClassObject_Next(struct ndr_pull *ndr, int flags, struct IEnumWbemClassObject_Next *r)
4040
uint32_t _ptr_apObjects;
4041
uint32_t cntr_apObjects_1;
4042
TALLOC_CTX *_mem_save_ORPCthat_0;
4043
TALLOC_CTX *_mem_save_apObjects_1;
4044
TALLOC_CTX *_mem_save_apObjects_2;
4045
TALLOC_CTX *_mem_save_puReturned_0;
4046
if (flags & NDR_IN) {
4047
ZERO_STRUCT(r->out);
4049
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4050
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
4051
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.uCount));
4052
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4053
ZERO_STRUCTP(r->out.ORPCthat);
4054
NDR_PULL_ALLOC_N(ndr, r->out.apObjects, r->in.uCount);
4055
memset(r->out.apObjects, 0, (r->in.uCount) * sizeof(*r->out.apObjects));
4056
NDR_PULL_ALLOC(ndr, r->out.puReturned);
4057
ZERO_STRUCTP(r->out.puReturned);
4059
if (flags & NDR_OUT) {
4060
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4061
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4063
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4064
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4065
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4066
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4067
NDR_CHECK(ndr_pull_array_size(ndr, &r->out.apObjects));
4068
NDR_CHECK(ndr_pull_array_length(ndr, &r->out.apObjects));
4069
if (ndr_get_array_length(ndr, &r->out.apObjects) > ndr_get_array_size(ndr, &r->out.apObjects)) {
4070
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->out.apObjects), ndr_get_array_length(ndr, &r->out.apObjects));
4072
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4073
NDR_PULL_ALLOC_N(ndr, r->out.apObjects, ndr_get_array_size(ndr, &r->out.apObjects));
4075
_mem_save_apObjects_1 = NDR_PULL_GET_MEM_CTX(ndr);
4076
NDR_PULL_SET_MEM_CTX(ndr, r->out.apObjects, 0);
4077
for (cntr_apObjects_1 = 0; cntr_apObjects_1 < ndr_get_array_length(ndr, &r->out.apObjects); cntr_apObjects_1++) {
4078
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_apObjects));
4079
if (_ptr_apObjects) {
4080
NDR_PULL_ALLOC(ndr, r->out.apObjects[cntr_apObjects_1]);
4082
r->out.apObjects[cntr_apObjects_1] = NULL;
4085
for (cntr_apObjects_1 = 0; cntr_apObjects_1 < ndr_get_array_length(ndr, &r->out.apObjects); cntr_apObjects_1++) {
4086
if (r->out.apObjects[cntr_apObjects_1]) {
4087
_mem_save_apObjects_2 = NDR_PULL_GET_MEM_CTX(ndr);
4088
NDR_PULL_SET_MEM_CTX(ndr, r->out.apObjects[cntr_apObjects_1], 0);
4089
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.apObjects[cntr_apObjects_1]));
4090
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_apObjects_2, 0);
4093
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_apObjects_1, 0);
4094
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4095
NDR_PULL_ALLOC(ndr, r->out.puReturned);
4097
_mem_save_puReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
4098
NDR_PULL_SET_MEM_CTX(ndr, r->out.puReturned, LIBNDR_FLAG_REF_ALLOC);
4099
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.puReturned));
4100
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_puReturned_0, LIBNDR_FLAG_REF_ALLOC);
4101
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4102
if (r->out.apObjects) {
4103
NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.apObjects, r->in.uCount));
4105
if (r->out.apObjects) {
4106
NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->out.apObjects, *r->out.puReturned));
4109
return NDR_ERR_SUCCESS;
4112
_PUBLIC_ void ndr_print_IEnumWbemClassObject_Next(struct ndr_print *ndr, const char *name, int flags, const struct IEnumWbemClassObject_Next *r)
4114
uint32_t cntr_apObjects_1;
4115
ndr_print_struct(ndr, name, "IEnumWbemClassObject_Next");
4116
if (r == NULL) { ndr_print_null(ndr); return; }
4118
if (flags & NDR_SET_VALUES) {
4119
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4121
if (flags & NDR_IN) {
4122
ndr_print_struct(ndr, "in", "IEnumWbemClassObject_Next");
4124
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4125
ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
4126
ndr_print_uint32(ndr, "uCount", r->in.uCount);
4129
if (flags & NDR_OUT) {
4130
ndr_print_struct(ndr, "out", "IEnumWbemClassObject_Next");
4132
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4134
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4136
ndr_print_ptr(ndr, "apObjects", r->out.apObjects);
4138
ndr->print(ndr, "%s: ARRAY(%d)", "apObjects", (int)*r->out.puReturned);
4140
for (cntr_apObjects_1=0;cntr_apObjects_1<*r->out.puReturned;cntr_apObjects_1++) {
4141
ndr_print_ptr(ndr, "apObjects", r->out.apObjects[cntr_apObjects_1]);
4143
if (r->out.apObjects[cntr_apObjects_1]) {
4144
ndr_print_MInterfacePointer(ndr, "apObjects", r->out.apObjects[cntr_apObjects_1]);
4150
ndr_print_ptr(ndr, "puReturned", r->out.puReturned);
4152
ndr_print_uint32(ndr, "puReturned", *r->out.puReturned);
4154
ndr_print_WERROR(ndr, "result", r->out.result);
4160
static enum ndr_err_code ndr_push_NextAsync(struct ndr_push *ndr, int flags, const struct NextAsync *r)
4162
if (flags & NDR_IN) {
4163
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4164
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.uCount));
4165
if (r->in.pSink == NULL) {
4166
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4168
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
4170
if (flags & NDR_OUT) {
4171
if (r->out.ORPCthat == NULL) {
4172
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4174
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4175
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4177
return NDR_ERR_SUCCESS;
4180
static enum ndr_err_code ndr_pull_NextAsync(struct ndr_pull *ndr, int flags, struct NextAsync *r)
4182
TALLOC_CTX *_mem_save_ORPCthat_0;
4183
TALLOC_CTX *_mem_save_pSink_0;
4184
if (flags & NDR_IN) {
4185
ZERO_STRUCT(r->out);
4187
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4188
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.uCount));
4189
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4190
NDR_PULL_ALLOC(ndr, r->in.pSink);
4192
_mem_save_pSink_0 = NDR_PULL_GET_MEM_CTX(ndr);
4193
NDR_PULL_SET_MEM_CTX(ndr, r->in.pSink, LIBNDR_FLAG_REF_ALLOC);
4194
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
4195
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pSink_0, LIBNDR_FLAG_REF_ALLOC);
4196
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4197
ZERO_STRUCTP(r->out.ORPCthat);
4199
if (flags & NDR_OUT) {
4200
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4201
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4203
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4204
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4205
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4206
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4207
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4209
return NDR_ERR_SUCCESS;
4212
_PUBLIC_ void ndr_print_NextAsync(struct ndr_print *ndr, const char *name, int flags, const struct NextAsync *r)
4214
ndr_print_struct(ndr, name, "NextAsync");
4215
if (r == NULL) { ndr_print_null(ndr); return; }
4217
if (flags & NDR_SET_VALUES) {
4218
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4220
if (flags & NDR_IN) {
4221
ndr_print_struct(ndr, "in", "NextAsync");
4223
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4224
ndr_print_uint32(ndr, "uCount", r->in.uCount);
4225
ndr_print_ptr(ndr, "pSink", r->in.pSink);
4227
ndr_print_MInterfacePointer(ndr, "pSink", r->in.pSink);
4231
if (flags & NDR_OUT) {
4232
ndr_print_struct(ndr, "out", "NextAsync");
4234
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4236
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4238
ndr_print_WERROR(ndr, "result", r->out.result);
4244
static enum ndr_err_code ndr_push_IEnumWbemClassObject_Clone(struct ndr_push *ndr, int flags, const struct IEnumWbemClassObject_Clone *r)
4246
if (flags & NDR_IN) {
4247
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4249
if (flags & NDR_OUT) {
4250
if (r->out.ORPCthat == NULL) {
4251
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4253
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4254
if (r->out.ppEnum == NULL) {
4255
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4257
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
4258
if (*r->out.ppEnum) {
4259
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
4261
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4263
return NDR_ERR_SUCCESS;
4266
static enum ndr_err_code ndr_pull_IEnumWbemClassObject_Clone(struct ndr_pull *ndr, int flags, struct IEnumWbemClassObject_Clone *r)
4268
uint32_t _ptr_ppEnum;
4269
TALLOC_CTX *_mem_save_ORPCthat_0;
4270
TALLOC_CTX *_mem_save_ppEnum_0;
4271
TALLOC_CTX *_mem_save_ppEnum_1;
4272
if (flags & NDR_IN) {
4273
ZERO_STRUCT(r->out);
4275
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4276
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4277
ZERO_STRUCTP(r->out.ORPCthat);
4278
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
4279
ZERO_STRUCTP(r->out.ppEnum);
4281
if (flags & NDR_OUT) {
4282
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4283
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4285
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4286
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4287
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4288
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4289
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4290
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
4292
_mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
4293
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
4294
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
4296
NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
4298
*r->out.ppEnum = NULL;
4300
if (*r->out.ppEnum) {
4301
_mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
4302
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
4303
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
4304
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
4306
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
4307
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4309
return NDR_ERR_SUCCESS;
4312
_PUBLIC_ void ndr_print_IEnumWbemClassObject_Clone(struct ndr_print *ndr, const char *name, int flags, const struct IEnumWbemClassObject_Clone *r)
4314
ndr_print_struct(ndr, name, "IEnumWbemClassObject_Clone");
4315
if (r == NULL) { ndr_print_null(ndr); return; }
4317
if (flags & NDR_SET_VALUES) {
4318
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4320
if (flags & NDR_IN) {
4321
ndr_print_struct(ndr, "in", "IEnumWbemClassObject_Clone");
4323
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4326
if (flags & NDR_OUT) {
4327
ndr_print_struct(ndr, "out", "IEnumWbemClassObject_Clone");
4329
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4331
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4333
ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
4335
ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
4337
if (*r->out.ppEnum) {
4338
ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
4342
ndr_print_WERROR(ndr, "result", r->out.result);
4348
static enum ndr_err_code ndr_push_Skip(struct ndr_push *ndr, int flags, const struct Skip *r)
4350
if (flags & NDR_IN) {
4351
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4352
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
4353
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nCount));
4355
if (flags & NDR_OUT) {
4356
if (r->out.ORPCthat == NULL) {
4357
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4359
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4360
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4362
return NDR_ERR_SUCCESS;
4365
static enum ndr_err_code ndr_pull_Skip(struct ndr_pull *ndr, int flags, struct Skip *r)
4367
TALLOC_CTX *_mem_save_ORPCthat_0;
4368
if (flags & NDR_IN) {
4369
ZERO_STRUCT(r->out);
4371
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4372
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
4373
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nCount));
4374
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4375
ZERO_STRUCTP(r->out.ORPCthat);
4377
if (flags & NDR_OUT) {
4378
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4379
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4381
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4382
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4383
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4384
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4385
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4387
return NDR_ERR_SUCCESS;
4390
_PUBLIC_ void ndr_print_Skip(struct ndr_print *ndr, const char *name, int flags, const struct Skip *r)
4392
ndr_print_struct(ndr, name, "Skip");
4393
if (r == NULL) { ndr_print_null(ndr); return; }
4395
if (flags & NDR_SET_VALUES) {
4396
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4398
if (flags & NDR_IN) {
4399
ndr_print_struct(ndr, "in", "Skip");
4401
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4402
ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
4403
ndr_print_uint32(ndr, "nCount", r->in.nCount);
4406
if (flags & NDR_OUT) {
4407
ndr_print_struct(ndr, "out", "Skip");
4409
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4411
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4413
ndr_print_WERROR(ndr, "result", r->out.result);
4419
static const struct ndr_interface_call IEnumWbemClassObject_calls[] = {
4422
sizeof(struct Reset),
4423
(ndr_push_flags_fn_t) ndr_push_Reset,
4424
(ndr_pull_flags_fn_t) ndr_pull_Reset,
4425
(ndr_print_function_t) ndr_print_Reset,
4430
"IEnumWbemClassObject_Next",
4431
sizeof(struct IEnumWbemClassObject_Next),
4432
(ndr_push_flags_fn_t) ndr_push_IEnumWbemClassObject_Next,
4433
(ndr_pull_flags_fn_t) ndr_pull_IEnumWbemClassObject_Next,
4434
(ndr_print_function_t) ndr_print_IEnumWbemClassObject_Next,
4440
sizeof(struct NextAsync),
4441
(ndr_push_flags_fn_t) ndr_push_NextAsync,
4442
(ndr_pull_flags_fn_t) ndr_pull_NextAsync,
4443
(ndr_print_function_t) ndr_print_NextAsync,
4448
"IEnumWbemClassObject_Clone",
4449
sizeof(struct IEnumWbemClassObject_Clone),
4450
(ndr_push_flags_fn_t) ndr_push_IEnumWbemClassObject_Clone,
4451
(ndr_pull_flags_fn_t) ndr_pull_IEnumWbemClassObject_Clone,
4452
(ndr_print_function_t) ndr_print_IEnumWbemClassObject_Clone,
4458
sizeof(struct Skip),
4459
(ndr_push_flags_fn_t) ndr_push_Skip,
4460
(ndr_pull_flags_fn_t) ndr_pull_Skip,
4461
(ndr_print_function_t) ndr_print_Skip,
4465
{ NULL, 0, NULL, NULL, NULL }
4468
static const char * const IEnumWbemClassObject_endpoint_strings[] = {
4469
"ncacn_np:[\\pipe\\IEnumWbemClassObject]",
4472
static const struct ndr_interface_string_array IEnumWbemClassObject_endpoints = {
4474
.names = IEnumWbemClassObject_endpoint_strings
4477
static const char * const IEnumWbemClassObject_authservice_strings[] = {
4481
static const struct ndr_interface_string_array IEnumWbemClassObject_authservices = {
4483
.names = IEnumWbemClassObject_authservice_strings
4487
const struct ndr_interface_table ndr_table_IEnumWbemClassObject = {
4488
.name = "IEnumWbemClassObject",
4490
{0x027947e1,0xd731,0x11ce,{0xa3,0x57},{0x00,0x00,0x00,0x00,0x00,0x01}},
4491
NDR_IENUMWBEMCLASSOBJECT_VERSION
4493
.helpstring = NDR_IENUMWBEMCLASSOBJECT_HELPSTRING,
4495
.calls = IEnumWbemClassObject_calls,
4496
.endpoints = &IEnumWbemClassObject_endpoints,
4497
.authservices = &IEnumWbemClassObject_authservices
4500
#include "librpc/gen_ndr/ndr_orpc.h"
4501
static enum ndr_err_code ndr_push_Clone(struct ndr_push *ndr, int flags, const struct Clone *r)
4503
if (flags & NDR_IN) {
4504
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4506
if (flags & NDR_OUT) {
4507
if (r->out.ORPCthat == NULL) {
4508
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4510
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4511
if (r->out.ppNewCopy == NULL) {
4512
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4514
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppNewCopy));
4515
if (*r->out.ppNewCopy) {
4516
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNewCopy));
4518
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4520
return NDR_ERR_SUCCESS;
4523
static enum ndr_err_code ndr_pull_Clone(struct ndr_pull *ndr, int flags, struct Clone *r)
4525
uint32_t _ptr_ppNewCopy;
4526
TALLOC_CTX *_mem_save_ORPCthat_0;
4527
TALLOC_CTX *_mem_save_ppNewCopy_0;
4528
TALLOC_CTX *_mem_save_ppNewCopy_1;
4529
if (flags & NDR_IN) {
4530
ZERO_STRUCT(r->out);
4532
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4533
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4534
ZERO_STRUCTP(r->out.ORPCthat);
4535
NDR_PULL_ALLOC(ndr, r->out.ppNewCopy);
4536
ZERO_STRUCTP(r->out.ppNewCopy);
4538
if (flags & NDR_OUT) {
4539
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4540
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4542
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4543
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4544
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4545
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4546
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4547
NDR_PULL_ALLOC(ndr, r->out.ppNewCopy);
4549
_mem_save_ppNewCopy_0 = NDR_PULL_GET_MEM_CTX(ndr);
4550
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppNewCopy, LIBNDR_FLAG_REF_ALLOC);
4551
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppNewCopy));
4552
if (_ptr_ppNewCopy) {
4553
NDR_PULL_ALLOC(ndr, *r->out.ppNewCopy);
4555
*r->out.ppNewCopy = NULL;
4557
if (*r->out.ppNewCopy) {
4558
_mem_save_ppNewCopy_1 = NDR_PULL_GET_MEM_CTX(ndr);
4559
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppNewCopy, 0);
4560
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNewCopy));
4561
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNewCopy_1, 0);
4563
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNewCopy_0, LIBNDR_FLAG_REF_ALLOC);
4564
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4566
return NDR_ERR_SUCCESS;
4569
_PUBLIC_ void ndr_print_Clone(struct ndr_print *ndr, const char *name, int flags, const struct Clone *r)
4571
ndr_print_struct(ndr, name, "Clone");
4572
if (r == NULL) { ndr_print_null(ndr); return; }
4574
if (flags & NDR_SET_VALUES) {
4575
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4577
if (flags & NDR_IN) {
4578
ndr_print_struct(ndr, "in", "Clone");
4580
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4583
if (flags & NDR_OUT) {
4584
ndr_print_struct(ndr, "out", "Clone");
4586
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4588
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4590
ndr_print_ptr(ndr, "ppNewCopy", r->out.ppNewCopy);
4592
ndr_print_ptr(ndr, "ppNewCopy", *r->out.ppNewCopy);
4594
if (*r->out.ppNewCopy) {
4595
ndr_print_MInterfacePointer(ndr, "ppNewCopy", *r->out.ppNewCopy);
4599
ndr_print_WERROR(ndr, "result", r->out.result);
4605
static enum ndr_err_code ndr_push_GetNames(struct ndr_push *ndr, int flags, const struct GetNames *r)
4607
if (flags & NDR_IN) {
4608
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4610
if (flags & NDR_OUT) {
4611
if (r->out.ORPCthat == NULL) {
4612
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4614
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4615
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4617
return NDR_ERR_SUCCESS;
4620
static enum ndr_err_code ndr_pull_GetNames(struct ndr_pull *ndr, int flags, struct GetNames *r)
4622
TALLOC_CTX *_mem_save_ORPCthat_0;
4623
if (flags & NDR_IN) {
4624
ZERO_STRUCT(r->out);
4626
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4627
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4628
ZERO_STRUCTP(r->out.ORPCthat);
4630
if (flags & NDR_OUT) {
4631
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4632
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4634
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4635
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4636
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4637
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4638
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4640
return NDR_ERR_SUCCESS;
4643
_PUBLIC_ void ndr_print_GetNames(struct ndr_print *ndr, const char *name, int flags, const struct GetNames *r)
4645
ndr_print_struct(ndr, name, "GetNames");
4646
if (r == NULL) { ndr_print_null(ndr); return; }
4648
if (flags & NDR_SET_VALUES) {
4649
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4651
if (flags & NDR_IN) {
4652
ndr_print_struct(ndr, "in", "GetNames");
4654
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4657
if (flags & NDR_OUT) {
4658
ndr_print_struct(ndr, "out", "GetNames");
4660
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4662
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4664
ndr_print_WERROR(ndr, "result", r->out.result);
4670
static enum ndr_err_code ndr_push_BeginEnumeration(struct ndr_push *ndr, int flags, const struct BeginEnumeration *r)
4672
if (flags & NDR_IN) {
4673
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4674
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
4676
if (flags & NDR_OUT) {
4677
if (r->out.ORPCthat == NULL) {
4678
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4680
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4681
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4683
return NDR_ERR_SUCCESS;
4686
static enum ndr_err_code ndr_pull_BeginEnumeration(struct ndr_pull *ndr, int flags, struct BeginEnumeration *r)
4688
TALLOC_CTX *_mem_save_ORPCthat_0;
4689
if (flags & NDR_IN) {
4690
ZERO_STRUCT(r->out);
4692
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4693
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
4694
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4695
ZERO_STRUCTP(r->out.ORPCthat);
4697
if (flags & NDR_OUT) {
4698
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4699
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4701
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4702
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4703
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4704
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4705
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4707
return NDR_ERR_SUCCESS;
4710
_PUBLIC_ void ndr_print_BeginEnumeration(struct ndr_print *ndr, const char *name, int flags, const struct BeginEnumeration *r)
4712
ndr_print_struct(ndr, name, "BeginEnumeration");
4713
if (r == NULL) { ndr_print_null(ndr); return; }
4715
if (flags & NDR_SET_VALUES) {
4716
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4718
if (flags & NDR_IN) {
4719
ndr_print_struct(ndr, "in", "BeginEnumeration");
4721
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4722
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
4725
if (flags & NDR_OUT) {
4726
ndr_print_struct(ndr, "out", "BeginEnumeration");
4728
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4730
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4732
ndr_print_WERROR(ndr, "result", r->out.result);
4738
static enum ndr_err_code ndr_push_Next(struct ndr_push *ndr, int flags, const struct Next *r)
4740
if (flags & NDR_IN) {
4741
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4743
if (flags & NDR_OUT) {
4744
if (r->out.ORPCthat == NULL) {
4745
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4747
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4748
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4750
return NDR_ERR_SUCCESS;
4753
static enum ndr_err_code ndr_pull_Next(struct ndr_pull *ndr, int flags, struct Next *r)
4755
TALLOC_CTX *_mem_save_ORPCthat_0;
4756
if (flags & NDR_IN) {
4757
ZERO_STRUCT(r->out);
4759
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4760
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4761
ZERO_STRUCTP(r->out.ORPCthat);
4763
if (flags & NDR_OUT) {
4764
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4765
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4767
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4768
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4769
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4770
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4771
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4773
return NDR_ERR_SUCCESS;
4776
_PUBLIC_ void ndr_print_Next(struct ndr_print *ndr, const char *name, int flags, const struct Next *r)
4778
ndr_print_struct(ndr, name, "Next");
4779
if (r == NULL) { ndr_print_null(ndr); return; }
4781
if (flags & NDR_SET_VALUES) {
4782
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4784
if (flags & NDR_IN) {
4785
ndr_print_struct(ndr, "in", "Next");
4787
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4790
if (flags & NDR_OUT) {
4791
ndr_print_struct(ndr, "out", "Next");
4793
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4795
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4797
ndr_print_WERROR(ndr, "result", r->out.result);
4803
static enum ndr_err_code ndr_push_EndEnumeration(struct ndr_push *ndr, int flags, const struct EndEnumeration *r)
4805
if (flags & NDR_IN) {
4806
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4808
if (flags & NDR_OUT) {
4809
if (r->out.ORPCthat == NULL) {
4810
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4812
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4813
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4815
return NDR_ERR_SUCCESS;
4818
static enum ndr_err_code ndr_pull_EndEnumeration(struct ndr_pull *ndr, int flags, struct EndEnumeration *r)
4820
TALLOC_CTX *_mem_save_ORPCthat_0;
4821
if (flags & NDR_IN) {
4822
ZERO_STRUCT(r->out);
4824
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4825
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4826
ZERO_STRUCTP(r->out.ORPCthat);
4828
if (flags & NDR_OUT) {
4829
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4830
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4832
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4833
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4834
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4835
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4836
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4838
return NDR_ERR_SUCCESS;
4841
_PUBLIC_ void ndr_print_EndEnumeration(struct ndr_print *ndr, const char *name, int flags, const struct EndEnumeration *r)
4843
ndr_print_struct(ndr, name, "EndEnumeration");
4844
if (r == NULL) { ndr_print_null(ndr); return; }
4846
if (flags & NDR_SET_VALUES) {
4847
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4849
if (flags & NDR_IN) {
4850
ndr_print_struct(ndr, "in", "EndEnumeration");
4852
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4855
if (flags & NDR_OUT) {
4856
ndr_print_struct(ndr, "out", "EndEnumeration");
4858
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4860
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4862
ndr_print_WERROR(ndr, "result", r->out.result);
4868
static enum ndr_err_code ndr_push_SetValue(struct ndr_push *ndr, int flags, const struct SetValue *r)
4870
if (flags & NDR_IN) {
4871
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4873
if (flags & NDR_OUT) {
4874
if (r->out.ORPCthat == NULL) {
4875
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4877
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4878
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4880
return NDR_ERR_SUCCESS;
4883
static enum ndr_err_code ndr_pull_SetValue(struct ndr_pull *ndr, int flags, struct SetValue *r)
4885
TALLOC_CTX *_mem_save_ORPCthat_0;
4886
if (flags & NDR_IN) {
4887
ZERO_STRUCT(r->out);
4889
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4890
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4891
ZERO_STRUCTP(r->out.ORPCthat);
4893
if (flags & NDR_OUT) {
4894
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4895
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4897
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4898
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4899
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4900
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4901
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4903
return NDR_ERR_SUCCESS;
4906
_PUBLIC_ void ndr_print_SetValue(struct ndr_print *ndr, const char *name, int flags, const struct SetValue *r)
4908
ndr_print_struct(ndr, name, "SetValue");
4909
if (r == NULL) { ndr_print_null(ndr); return; }
4911
if (flags & NDR_SET_VALUES) {
4912
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4914
if (flags & NDR_IN) {
4915
ndr_print_struct(ndr, "in", "SetValue");
4917
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4920
if (flags & NDR_OUT) {
4921
ndr_print_struct(ndr, "out", "SetValue");
4923
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4925
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4927
ndr_print_WERROR(ndr, "result", r->out.result);
4933
static enum ndr_err_code ndr_push_GetValue(struct ndr_push *ndr, int flags, const struct GetValue *r)
4935
if (flags & NDR_IN) {
4936
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4938
if (flags & NDR_OUT) {
4939
if (r->out.ORPCthat == NULL) {
4940
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4942
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4943
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4945
return NDR_ERR_SUCCESS;
4948
static enum ndr_err_code ndr_pull_GetValue(struct ndr_pull *ndr, int flags, struct GetValue *r)
4950
TALLOC_CTX *_mem_save_ORPCthat_0;
4951
if (flags & NDR_IN) {
4952
ZERO_STRUCT(r->out);
4954
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4955
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4956
ZERO_STRUCTP(r->out.ORPCthat);
4958
if (flags & NDR_OUT) {
4959
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4960
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4962
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
4963
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
4964
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
4965
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
4966
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
4968
return NDR_ERR_SUCCESS;
4971
_PUBLIC_ void ndr_print_GetValue(struct ndr_print *ndr, const char *name, int flags, const struct GetValue *r)
4973
ndr_print_struct(ndr, name, "GetValue");
4974
if (r == NULL) { ndr_print_null(ndr); return; }
4976
if (flags & NDR_SET_VALUES) {
4977
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4979
if (flags & NDR_IN) {
4980
ndr_print_struct(ndr, "in", "GetValue");
4982
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4985
if (flags & NDR_OUT) {
4986
ndr_print_struct(ndr, "out", "GetValue");
4988
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4990
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4992
ndr_print_WERROR(ndr, "result", r->out.result);
4998
static enum ndr_err_code ndr_push_DeleteValue(struct ndr_push *ndr, int flags, const struct DeleteValue *r)
5000
if (flags & NDR_IN) {
5001
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5003
if (flags & NDR_OUT) {
5004
if (r->out.ORPCthat == NULL) {
5005
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5007
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5008
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5010
return NDR_ERR_SUCCESS;
5013
static enum ndr_err_code ndr_pull_DeleteValue(struct ndr_pull *ndr, int flags, struct DeleteValue *r)
5015
TALLOC_CTX *_mem_save_ORPCthat_0;
5016
if (flags & NDR_IN) {
5017
ZERO_STRUCT(r->out);
5019
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5020
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5021
ZERO_STRUCTP(r->out.ORPCthat);
5023
if (flags & NDR_OUT) {
5024
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5025
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5027
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
5028
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
5029
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5030
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
5031
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5033
return NDR_ERR_SUCCESS;
5036
_PUBLIC_ void ndr_print_DeleteValue(struct ndr_print *ndr, const char *name, int flags, const struct DeleteValue *r)
5038
ndr_print_struct(ndr, name, "DeleteValue");
5039
if (r == NULL) { ndr_print_null(ndr); return; }
5041
if (flags & NDR_SET_VALUES) {
5042
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5044
if (flags & NDR_IN) {
5045
ndr_print_struct(ndr, "in", "DeleteValue");
5047
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5050
if (flags & NDR_OUT) {
5051
ndr_print_struct(ndr, "out", "DeleteValue");
5053
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5055
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5057
ndr_print_WERROR(ndr, "result", r->out.result);
5063
static enum ndr_err_code ndr_push_DeleteAll(struct ndr_push *ndr, int flags, const struct DeleteAll *r)
5065
if (flags & NDR_IN) {
5066
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5068
if (flags & NDR_OUT) {
5069
if (r->out.ORPCthat == NULL) {
5070
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5072
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5073
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5075
return NDR_ERR_SUCCESS;
5078
static enum ndr_err_code ndr_pull_DeleteAll(struct ndr_pull *ndr, int flags, struct DeleteAll *r)
5080
TALLOC_CTX *_mem_save_ORPCthat_0;
5081
if (flags & NDR_IN) {
5082
ZERO_STRUCT(r->out);
5084
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5085
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5086
ZERO_STRUCTP(r->out.ORPCthat);
5088
if (flags & NDR_OUT) {
5089
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5090
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5092
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
5093
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
5094
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5095
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
5096
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5098
return NDR_ERR_SUCCESS;
5101
_PUBLIC_ void ndr_print_DeleteAll(struct ndr_print *ndr, const char *name, int flags, const struct DeleteAll *r)
5103
ndr_print_struct(ndr, name, "DeleteAll");
5104
if (r == NULL) { ndr_print_null(ndr); return; }
5106
if (flags & NDR_SET_VALUES) {
5107
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5109
if (flags & NDR_IN) {
5110
ndr_print_struct(ndr, "in", "DeleteAll");
5112
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5115
if (flags & NDR_OUT) {
5116
ndr_print_struct(ndr, "out", "DeleteAll");
5118
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5120
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5122
ndr_print_WERROR(ndr, "result", r->out.result);
5128
static const struct ndr_interface_call IWbemContext_calls[] = {
5131
sizeof(struct Clone),
5132
(ndr_push_flags_fn_t) ndr_push_Clone,
5133
(ndr_pull_flags_fn_t) ndr_pull_Clone,
5134
(ndr_print_function_t) ndr_print_Clone,
5140
sizeof(struct GetNames),
5141
(ndr_push_flags_fn_t) ndr_push_GetNames,
5142
(ndr_pull_flags_fn_t) ndr_pull_GetNames,
5143
(ndr_print_function_t) ndr_print_GetNames,
5149
sizeof(struct BeginEnumeration),
5150
(ndr_push_flags_fn_t) ndr_push_BeginEnumeration,
5151
(ndr_pull_flags_fn_t) ndr_pull_BeginEnumeration,
5152
(ndr_print_function_t) ndr_print_BeginEnumeration,
5158
sizeof(struct Next),
5159
(ndr_push_flags_fn_t) ndr_push_Next,
5160
(ndr_pull_flags_fn_t) ndr_pull_Next,
5161
(ndr_print_function_t) ndr_print_Next,
5167
sizeof(struct EndEnumeration),
5168
(ndr_push_flags_fn_t) ndr_push_EndEnumeration,
5169
(ndr_pull_flags_fn_t) ndr_pull_EndEnumeration,
5170
(ndr_print_function_t) ndr_print_EndEnumeration,
5176
sizeof(struct SetValue),
5177
(ndr_push_flags_fn_t) ndr_push_SetValue,
5178
(ndr_pull_flags_fn_t) ndr_pull_SetValue,
5179
(ndr_print_function_t) ndr_print_SetValue,
5185
sizeof(struct GetValue),
5186
(ndr_push_flags_fn_t) ndr_push_GetValue,
5187
(ndr_pull_flags_fn_t) ndr_pull_GetValue,
5188
(ndr_print_function_t) ndr_print_GetValue,
5194
sizeof(struct DeleteValue),
5195
(ndr_push_flags_fn_t) ndr_push_DeleteValue,
5196
(ndr_pull_flags_fn_t) ndr_pull_DeleteValue,
5197
(ndr_print_function_t) ndr_print_DeleteValue,
5203
sizeof(struct DeleteAll),
5204
(ndr_push_flags_fn_t) ndr_push_DeleteAll,
5205
(ndr_pull_flags_fn_t) ndr_pull_DeleteAll,
5206
(ndr_print_function_t) ndr_print_DeleteAll,
5210
{ NULL, 0, NULL, NULL, NULL }
5213
static const char * const IWbemContext_endpoint_strings[] = {
5214
"ncacn_np:[\\pipe\\IWbemContext]",
5217
static const struct ndr_interface_string_array IWbemContext_endpoints = {
5219
.names = IWbemContext_endpoint_strings
5222
static const char * const IWbemContext_authservice_strings[] = {
5226
static const struct ndr_interface_string_array IWbemContext_authservices = {
5228
.names = IWbemContext_authservice_strings
5232
const struct ndr_interface_table ndr_table_IWbemContext = {
5233
.name = "IWbemContext",
5235
{0x44aca674,0xe8fc,0x11d0,{0xa0,0x7c},{0x00,0xc0,0x4f,0xb6,0x88,0x20}},
5236
NDR_IWBEMCONTEXT_VERSION
5238
.helpstring = NDR_IWBEMCONTEXT_HELPSTRING,
5240
.calls = IWbemContext_calls,
5241
.endpoints = &IWbemContext_endpoints,
5242
.authservices = &IWbemContext_authservices
5245
#include "librpc/gen_ndr/ndr_orpc.h"
5246
static enum ndr_err_code ndr_push_EstablishPosition(struct ndr_push *ndr, int flags, const struct EstablishPosition *r)
5248
if (flags & NDR_IN) {
5249
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5250
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszLocaleList));
5251
if (r->in.wszLocaleList) {
5252
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszLocaleList, CH_UTF16)));
5253
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5254
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszLocaleList, CH_UTF16)));
5255
NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszLocaleList, ndr_charset_length(r->in.wszLocaleList, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5257
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNumLocales));
5259
if (flags & NDR_OUT) {
5260
if (r->out.ORPCthat == NULL) {
5261
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5263
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5264
if (r->out.reserved == NULL) {
5265
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5267
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.reserved));
5268
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5270
return NDR_ERR_SUCCESS;
5273
static enum ndr_err_code ndr_pull_EstablishPosition(struct ndr_pull *ndr, int flags, struct EstablishPosition *r)
5275
uint32_t _ptr_wszLocaleList;
5276
TALLOC_CTX *_mem_save_ORPCthat_0;
5277
TALLOC_CTX *_mem_save_wszLocaleList_0;
5278
TALLOC_CTX *_mem_save_reserved_0;
5279
if (flags & NDR_IN) {
5280
ZERO_STRUCT(r->out);
5282
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5283
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszLocaleList));
5284
if (_ptr_wszLocaleList) {
5285
NDR_PULL_ALLOC(ndr, r->in.wszLocaleList);
5287
r->in.wszLocaleList = NULL;
5289
if (r->in.wszLocaleList) {
5290
_mem_save_wszLocaleList_0 = NDR_PULL_GET_MEM_CTX(ndr);
5291
NDR_PULL_SET_MEM_CTX(ndr, r->in.wszLocaleList, 0);
5292
NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszLocaleList));
5293
NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszLocaleList));
5294
if (ndr_get_array_length(ndr, &r->in.wszLocaleList) > ndr_get_array_size(ndr, &r->in.wszLocaleList)) {
5295
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.wszLocaleList), ndr_get_array_length(ndr, &r->in.wszLocaleList));
5297
NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.wszLocaleList), sizeof(uint16_t)));
5298
NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszLocaleList, ndr_get_array_length(ndr, &r->in.wszLocaleList), sizeof(uint16_t), CH_UTF16));
5299
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszLocaleList_0, 0);
5301
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNumLocales));
5302
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5303
ZERO_STRUCTP(r->out.ORPCthat);
5304
NDR_PULL_ALLOC(ndr, r->out.reserved);
5305
ZERO_STRUCTP(r->out.reserved);
5307
if (flags & NDR_OUT) {
5308
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5309
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5311
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
5312
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
5313
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5314
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
5315
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5316
NDR_PULL_ALLOC(ndr, r->out.reserved);
5318
_mem_save_reserved_0 = NDR_PULL_GET_MEM_CTX(ndr);
5319
NDR_PULL_SET_MEM_CTX(ndr, r->out.reserved, LIBNDR_FLAG_REF_ALLOC);
5320
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.reserved));
5321
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_reserved_0, LIBNDR_FLAG_REF_ALLOC);
5322
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5324
return NDR_ERR_SUCCESS;
5327
_PUBLIC_ void ndr_print_EstablishPosition(struct ndr_print *ndr, const char *name, int flags, const struct EstablishPosition *r)
5329
ndr_print_struct(ndr, name, "EstablishPosition");
5330
if (r == NULL) { ndr_print_null(ndr); return; }
5332
if (flags & NDR_SET_VALUES) {
5333
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5335
if (flags & NDR_IN) {
5336
ndr_print_struct(ndr, "in", "EstablishPosition");
5338
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5339
ndr_print_ptr(ndr, "wszLocaleList", r->in.wszLocaleList);
5341
if (r->in.wszLocaleList) {
5342
ndr_print_string(ndr, "wszLocaleList", r->in.wszLocaleList);
5345
ndr_print_uint32(ndr, "dwNumLocales", r->in.dwNumLocales);
5348
if (flags & NDR_OUT) {
5349
ndr_print_struct(ndr, "out", "EstablishPosition");
5351
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5353
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5355
ndr_print_ptr(ndr, "reserved", r->out.reserved);
5357
ndr_print_uint32(ndr, "reserved", *r->out.reserved);
5359
ndr_print_WERROR(ndr, "result", r->out.result);
5365
static enum ndr_err_code ndr_push_RequestChallenge(struct ndr_push *ndr, int flags, const struct RequestChallenge *r)
5367
if (flags & NDR_IN) {
5368
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5369
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszNetworkResource));
5370
if (r->in.wszNetworkResource) {
5371
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16)));
5372
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5373
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16)));
5374
NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszNetworkResource, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5376
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszUser));
5377
if (r->in.wszUser) {
5378
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszUser, CH_UTF16)));
5379
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5380
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszUser, CH_UTF16)));
5381
NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszUser, ndr_charset_length(r->in.wszUser, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5384
if (flags & NDR_OUT) {
5385
if (r->out.ORPCthat == NULL) {
5386
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5388
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5389
if (r->out.Nonce == NULL) {
5390
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5392
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 16));
5393
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5394
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 16));
5395
NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.Nonce, 16));
5396
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5398
return NDR_ERR_SUCCESS;
5401
static enum ndr_err_code ndr_pull_RequestChallenge(struct ndr_pull *ndr, int flags, struct RequestChallenge *r)
5403
uint32_t _ptr_wszNetworkResource;
5404
uint32_t _ptr_wszUser;
5405
TALLOC_CTX *_mem_save_ORPCthat_0;
5406
TALLOC_CTX *_mem_save_wszNetworkResource_0;
5407
TALLOC_CTX *_mem_save_wszUser_0;
5408
if (flags & NDR_IN) {
5409
ZERO_STRUCT(r->out);
5411
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5412
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszNetworkResource));
5413
if (_ptr_wszNetworkResource) {
5414
NDR_PULL_ALLOC(ndr, r->in.wszNetworkResource);
5416
r->in.wszNetworkResource = NULL;
5418
if (r->in.wszNetworkResource) {
5419
_mem_save_wszNetworkResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
5420
NDR_PULL_SET_MEM_CTX(ndr, r->in.wszNetworkResource, 0);
5421
NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszNetworkResource));
5422
NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszNetworkResource));
5423
if (ndr_get_array_length(ndr, &r->in.wszNetworkResource) > ndr_get_array_size(ndr, &r->in.wszNetworkResource)) {
5424
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.wszNetworkResource), ndr_get_array_length(ndr, &r->in.wszNetworkResource));
5426
NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.wszNetworkResource), sizeof(uint16_t)));
5427
NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszNetworkResource, ndr_get_array_length(ndr, &r->in.wszNetworkResource), sizeof(uint16_t), CH_UTF16));
5428
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszNetworkResource_0, 0);
5430
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszUser));
5432
NDR_PULL_ALLOC(ndr, r->in.wszUser);
5434
r->in.wszUser = NULL;
5436
if (r->in.wszUser) {
5437
_mem_save_wszUser_0 = NDR_PULL_GET_MEM_CTX(ndr);
5438
NDR_PULL_SET_MEM_CTX(ndr, r->in.wszUser, 0);
5439
NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszUser));
5440
NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszUser));
5441
if (ndr_get_array_length(ndr, &r->in.wszUser) > ndr_get_array_size(ndr, &r->in.wszUser)) {
5442
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.wszUser), ndr_get_array_length(ndr, &r->in.wszUser));
5444
NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.wszUser), sizeof(uint16_t)));
5445
NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszUser, ndr_get_array_length(ndr, &r->in.wszUser), sizeof(uint16_t), CH_UTF16));
5446
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszUser_0, 0);
5448
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5449
ZERO_STRUCTP(r->out.ORPCthat);
5450
NDR_PULL_ALLOC_N(ndr, r->out.Nonce, 16);
5451
memset(r->out.Nonce, 0, (16) * sizeof(*r->out.Nonce));
5453
if (flags & NDR_OUT) {
5454
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5455
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5457
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
5458
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
5459
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5460
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
5461
NDR_CHECK(ndr_pull_array_size(ndr, &r->out.Nonce));
5462
NDR_CHECK(ndr_pull_array_length(ndr, &r->out.Nonce));
5463
if (ndr_get_array_length(ndr, &r->out.Nonce) > ndr_get_array_size(ndr, &r->out.Nonce)) {
5464
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->out.Nonce), ndr_get_array_length(ndr, &r->out.Nonce));
5466
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5467
NDR_PULL_ALLOC_N(ndr, r->out.Nonce, ndr_get_array_size(ndr, &r->out.Nonce));
5469
NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.Nonce, ndr_get_array_length(ndr, &r->out.Nonce)));
5470
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5472
NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.Nonce, 16));
5475
NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->out.Nonce, 16));
5478
return NDR_ERR_SUCCESS;
5481
_PUBLIC_ void ndr_print_RequestChallenge(struct ndr_print *ndr, const char *name, int flags, const struct RequestChallenge *r)
5483
ndr_print_struct(ndr, name, "RequestChallenge");
5484
if (r == NULL) { ndr_print_null(ndr); return; }
5486
if (flags & NDR_SET_VALUES) {
5487
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5489
if (flags & NDR_IN) {
5490
ndr_print_struct(ndr, "in", "RequestChallenge");
5492
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5493
ndr_print_ptr(ndr, "wszNetworkResource", r->in.wszNetworkResource);
5495
if (r->in.wszNetworkResource) {
5496
ndr_print_string(ndr, "wszNetworkResource", r->in.wszNetworkResource);
5499
ndr_print_ptr(ndr, "wszUser", r->in.wszUser);
5501
if (r->in.wszUser) {
5502
ndr_print_string(ndr, "wszUser", r->in.wszUser);
5507
if (flags & NDR_OUT) {
5508
ndr_print_struct(ndr, "out", "RequestChallenge");
5510
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5512
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5514
ndr_print_ptr(ndr, "Nonce", r->out.Nonce);
5516
ndr_print_array_uint8(ndr, "Nonce", r->out.Nonce, 16);
5518
ndr_print_WERROR(ndr, "result", r->out.result);
5524
static enum ndr_err_code ndr_push_WBEMLogin(struct ndr_push *ndr, int flags, const struct WBEMLogin *r)
5526
if (flags & NDR_IN) {
5527
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5528
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszPreferredLocale));
5529
if (r->in.wszPreferredLocale) {
5530
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16)));
5531
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5532
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16)));
5533
NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszPreferredLocale, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5535
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.AccessToken));
5536
if (r->in.AccessToken) {
5537
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 16));
5538
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5539
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 16));
5540
NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.AccessToken, 16));
5542
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
5543
if (r->in.pCtx == NULL) {
5544
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5546
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
5548
if (flags & NDR_OUT) {
5549
if (r->out.ORPCthat == NULL) {
5550
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5552
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5553
if (r->out.ppNamespace == NULL) {
5554
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5556
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppNamespace));
5557
if (*r->out.ppNamespace) {
5558
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNamespace));
5560
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5562
return NDR_ERR_SUCCESS;
5565
static enum ndr_err_code ndr_pull_WBEMLogin(struct ndr_pull *ndr, int flags, struct WBEMLogin *r)
5567
uint32_t _ptr_wszPreferredLocale;
5568
uint32_t _ptr_AccessToken;
5569
uint32_t _ptr_ppNamespace;
5570
TALLOC_CTX *_mem_save_ORPCthat_0;
5571
TALLOC_CTX *_mem_save_wszPreferredLocale_0;
5572
TALLOC_CTX *_mem_save_AccessToken_0;
5573
TALLOC_CTX *_mem_save_pCtx_0;
5574
TALLOC_CTX *_mem_save_ppNamespace_0;
5575
TALLOC_CTX *_mem_save_ppNamespace_1;
5576
if (flags & NDR_IN) {
5577
ZERO_STRUCT(r->out);
5579
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5580
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszPreferredLocale));
5581
if (_ptr_wszPreferredLocale) {
5582
NDR_PULL_ALLOC(ndr, r->in.wszPreferredLocale);
5584
r->in.wszPreferredLocale = NULL;
5586
if (r->in.wszPreferredLocale) {
5587
_mem_save_wszPreferredLocale_0 = NDR_PULL_GET_MEM_CTX(ndr);
5588
NDR_PULL_SET_MEM_CTX(ndr, r->in.wszPreferredLocale, 0);
5589
NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszPreferredLocale));
5590
NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszPreferredLocale));
5591
if (ndr_get_array_length(ndr, &r->in.wszPreferredLocale) > ndr_get_array_size(ndr, &r->in.wszPreferredLocale)) {
5592
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.wszPreferredLocale), ndr_get_array_length(ndr, &r->in.wszPreferredLocale));
5594
NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.wszPreferredLocale), sizeof(uint16_t)));
5595
NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszPreferredLocale, ndr_get_array_length(ndr, &r->in.wszPreferredLocale), sizeof(uint16_t), CH_UTF16));
5596
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszPreferredLocale_0, 0);
5598
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_AccessToken));
5599
if (_ptr_AccessToken) {
5600
NDR_PULL_ALLOC(ndr, r->in.AccessToken);
5602
r->in.AccessToken = NULL;
5604
if (r->in.AccessToken) {
5605
_mem_save_AccessToken_0 = NDR_PULL_GET_MEM_CTX(ndr);
5606
NDR_PULL_SET_MEM_CTX(ndr, r->in.AccessToken, 0);
5607
NDR_CHECK(ndr_pull_array_size(ndr, &r->in.AccessToken));
5608
NDR_CHECK(ndr_pull_array_length(ndr, &r->in.AccessToken));
5609
if (ndr_get_array_length(ndr, &r->in.AccessToken) > ndr_get_array_size(ndr, &r->in.AccessToken)) {
5610
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.AccessToken), ndr_get_array_length(ndr, &r->in.AccessToken));
5612
NDR_PULL_ALLOC_N(ndr, r->in.AccessToken, ndr_get_array_size(ndr, &r->in.AccessToken));
5613
NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.AccessToken, ndr_get_array_length(ndr, &r->in.AccessToken)));
5614
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_AccessToken_0, 0);
5616
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
5617
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5618
NDR_PULL_ALLOC(ndr, r->in.pCtx);
5620
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
5621
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
5622
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
5623
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
5624
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5625
ZERO_STRUCTP(r->out.ORPCthat);
5626
NDR_PULL_ALLOC(ndr, r->out.ppNamespace);
5627
ZERO_STRUCTP(r->out.ppNamespace);
5628
if (r->in.AccessToken) {
5629
NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.AccessToken, 16));
5631
if (r->in.AccessToken) {
5632
NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->in.AccessToken, 16));
5635
if (flags & NDR_OUT) {
5636
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5637
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5639
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
5640
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
5641
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5642
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
5643
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5644
NDR_PULL_ALLOC(ndr, r->out.ppNamespace);
5646
_mem_save_ppNamespace_0 = NDR_PULL_GET_MEM_CTX(ndr);
5647
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppNamespace, LIBNDR_FLAG_REF_ALLOC);
5648
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppNamespace));
5649
if (_ptr_ppNamespace) {
5650
NDR_PULL_ALLOC(ndr, *r->out.ppNamespace);
5652
*r->out.ppNamespace = NULL;
5654
if (*r->out.ppNamespace) {
5655
_mem_save_ppNamespace_1 = NDR_PULL_GET_MEM_CTX(ndr);
5656
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppNamespace, 0);
5657
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNamespace));
5658
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNamespace_1, 0);
5660
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNamespace_0, LIBNDR_FLAG_REF_ALLOC);
5661
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5663
return NDR_ERR_SUCCESS;
5666
_PUBLIC_ void ndr_print_WBEMLogin(struct ndr_print *ndr, const char *name, int flags, const struct WBEMLogin *r)
5668
ndr_print_struct(ndr, name, "WBEMLogin");
5669
if (r == NULL) { ndr_print_null(ndr); return; }
5671
if (flags & NDR_SET_VALUES) {
5672
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5674
if (flags & NDR_IN) {
5675
ndr_print_struct(ndr, "in", "WBEMLogin");
5677
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5678
ndr_print_ptr(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
5680
if (r->in.wszPreferredLocale) {
5681
ndr_print_string(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
5684
ndr_print_ptr(ndr, "AccessToken", r->in.AccessToken);
5686
if (r->in.AccessToken) {
5687
ndr_print_array_uint8(ndr, "AccessToken", r->in.AccessToken, 16);
5690
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
5691
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
5693
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
5697
if (flags & NDR_OUT) {
5698
ndr_print_struct(ndr, "out", "WBEMLogin");
5700
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5702
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5704
ndr_print_ptr(ndr, "ppNamespace", r->out.ppNamespace);
5706
ndr_print_ptr(ndr, "ppNamespace", *r->out.ppNamespace);
5708
if (*r->out.ppNamespace) {
5709
ndr_print_MInterfacePointer(ndr, "ppNamespace", *r->out.ppNamespace);
5713
ndr_print_WERROR(ndr, "result", r->out.result);
5719
static enum ndr_err_code ndr_push_NTLMLogin(struct ndr_push *ndr, int flags, const struct NTLMLogin *r)
5721
if (flags & NDR_IN) {
5722
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5723
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszNetworkResource));
5724
if (r->in.wszNetworkResource) {
5725
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16)));
5726
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5727
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16)));
5728
NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszNetworkResource, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5730
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszPreferredLocale));
5731
if (r->in.wszPreferredLocale) {
5732
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16)));
5733
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
5734
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16)));
5735
NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszPreferredLocale, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16), sizeof(uint16_t), CH_UTF16));
5737
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
5738
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
5740
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
5743
if (flags & NDR_OUT) {
5744
if (r->out.ORPCthat == NULL) {
5745
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5747
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5748
if (r->out.ppNamespace == NULL) {
5749
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5751
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppNamespace));
5752
if (*r->out.ppNamespace) {
5753
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNamespace));
5755
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5757
return NDR_ERR_SUCCESS;
5760
static enum ndr_err_code ndr_pull_NTLMLogin(struct ndr_pull *ndr, int flags, struct NTLMLogin *r)
5762
uint32_t _ptr_wszNetworkResource;
5763
uint32_t _ptr_wszPreferredLocale;
5765
uint32_t _ptr_ppNamespace;
5766
TALLOC_CTX *_mem_save_ORPCthat_0;
5767
TALLOC_CTX *_mem_save_wszNetworkResource_0;
5768
TALLOC_CTX *_mem_save_wszPreferredLocale_0;
5769
TALLOC_CTX *_mem_save_pCtx_0;
5770
TALLOC_CTX *_mem_save_ppNamespace_0;
5771
TALLOC_CTX *_mem_save_ppNamespace_1;
5772
if (flags & NDR_IN) {
5773
ZERO_STRUCT(r->out);
5775
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5776
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszNetworkResource));
5777
if (_ptr_wszNetworkResource) {
5778
NDR_PULL_ALLOC(ndr, r->in.wszNetworkResource);
5780
r->in.wszNetworkResource = NULL;
5782
if (r->in.wszNetworkResource) {
5783
_mem_save_wszNetworkResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
5784
NDR_PULL_SET_MEM_CTX(ndr, r->in.wszNetworkResource, 0);
5785
NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszNetworkResource));
5786
NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszNetworkResource));
5787
if (ndr_get_array_length(ndr, &r->in.wszNetworkResource) > ndr_get_array_size(ndr, &r->in.wszNetworkResource)) {
5788
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.wszNetworkResource), ndr_get_array_length(ndr, &r->in.wszNetworkResource));
5790
NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.wszNetworkResource), sizeof(uint16_t)));
5791
NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszNetworkResource, ndr_get_array_length(ndr, &r->in.wszNetworkResource), sizeof(uint16_t), CH_UTF16));
5792
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszNetworkResource_0, 0);
5794
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszPreferredLocale));
5795
if (_ptr_wszPreferredLocale) {
5796
NDR_PULL_ALLOC(ndr, r->in.wszPreferredLocale);
5798
r->in.wszPreferredLocale = NULL;
5800
if (r->in.wszPreferredLocale) {
5801
_mem_save_wszPreferredLocale_0 = NDR_PULL_GET_MEM_CTX(ndr);
5802
NDR_PULL_SET_MEM_CTX(ndr, r->in.wszPreferredLocale, 0);
5803
NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszPreferredLocale));
5804
NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszPreferredLocale));
5805
if (ndr_get_array_length(ndr, &r->in.wszPreferredLocale) > ndr_get_array_size(ndr, &r->in.wszPreferredLocale)) {
5806
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.wszPreferredLocale), ndr_get_array_length(ndr, &r->in.wszPreferredLocale));
5808
NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.wszPreferredLocale), sizeof(uint16_t)));
5809
NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszPreferredLocale, ndr_get_array_length(ndr, &r->in.wszPreferredLocale), sizeof(uint16_t), CH_UTF16));
5810
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszPreferredLocale_0, 0);
5812
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
5813
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
5815
NDR_PULL_ALLOC(ndr, r->in.pCtx);
5820
_mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
5821
NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
5822
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
5823
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
5825
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5826
ZERO_STRUCTP(r->out.ORPCthat);
5827
NDR_PULL_ALLOC(ndr, r->out.ppNamespace);
5828
ZERO_STRUCTP(r->out.ppNamespace);
5830
if (flags & NDR_OUT) {
5831
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5832
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5834
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
5835
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
5836
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
5837
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
5838
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5839
NDR_PULL_ALLOC(ndr, r->out.ppNamespace);
5841
_mem_save_ppNamespace_0 = NDR_PULL_GET_MEM_CTX(ndr);
5842
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppNamespace, LIBNDR_FLAG_REF_ALLOC);
5843
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppNamespace));
5844
if (_ptr_ppNamespace) {
5845
NDR_PULL_ALLOC(ndr, *r->out.ppNamespace);
5847
*r->out.ppNamespace = NULL;
5849
if (*r->out.ppNamespace) {
5850
_mem_save_ppNamespace_1 = NDR_PULL_GET_MEM_CTX(ndr);
5851
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppNamespace, 0);
5852
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNamespace));
5853
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNamespace_1, 0);
5855
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNamespace_0, LIBNDR_FLAG_REF_ALLOC);
5856
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
5858
return NDR_ERR_SUCCESS;
5861
_PUBLIC_ void ndr_print_NTLMLogin(struct ndr_print *ndr, const char *name, int flags, const struct NTLMLogin *r)
5863
ndr_print_struct(ndr, name, "NTLMLogin");
5864
if (r == NULL) { ndr_print_null(ndr); return; }
5866
if (flags & NDR_SET_VALUES) {
5867
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5869
if (flags & NDR_IN) {
5870
ndr_print_struct(ndr, "in", "NTLMLogin");
5872
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5873
ndr_print_ptr(ndr, "wszNetworkResource", r->in.wszNetworkResource);
5875
if (r->in.wszNetworkResource) {
5876
ndr_print_string(ndr, "wszNetworkResource", r->in.wszNetworkResource);
5879
ndr_print_ptr(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
5881
if (r->in.wszPreferredLocale) {
5882
ndr_print_string(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
5885
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
5886
ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
5889
ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
5894
if (flags & NDR_OUT) {
5895
ndr_print_struct(ndr, "out", "NTLMLogin");
5897
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5899
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5901
ndr_print_ptr(ndr, "ppNamespace", r->out.ppNamespace);
5903
ndr_print_ptr(ndr, "ppNamespace", *r->out.ppNamespace);
5905
if (*r->out.ppNamespace) {
5906
ndr_print_MInterfacePointer(ndr, "ppNamespace", *r->out.ppNamespace);
5910
ndr_print_WERROR(ndr, "result", r->out.result);
5916
static const struct ndr_interface_call IWbemLevel1Login_calls[] = {
5918
"EstablishPosition",
5919
sizeof(struct EstablishPosition),
5920
(ndr_push_flags_fn_t) ndr_push_EstablishPosition,
5921
(ndr_pull_flags_fn_t) ndr_pull_EstablishPosition,
5922
(ndr_print_function_t) ndr_print_EstablishPosition,
5928
sizeof(struct RequestChallenge),
5929
(ndr_push_flags_fn_t) ndr_push_RequestChallenge,
5930
(ndr_pull_flags_fn_t) ndr_pull_RequestChallenge,
5931
(ndr_print_function_t) ndr_print_RequestChallenge,
5937
sizeof(struct WBEMLogin),
5938
(ndr_push_flags_fn_t) ndr_push_WBEMLogin,
5939
(ndr_pull_flags_fn_t) ndr_pull_WBEMLogin,
5940
(ndr_print_function_t) ndr_print_WBEMLogin,
5946
sizeof(struct NTLMLogin),
5947
(ndr_push_flags_fn_t) ndr_push_NTLMLogin,
5948
(ndr_pull_flags_fn_t) ndr_pull_NTLMLogin,
5949
(ndr_print_function_t) ndr_print_NTLMLogin,
5953
{ NULL, 0, NULL, NULL, NULL }
5956
static const char * const IWbemLevel1Login_endpoint_strings[] = {
5957
"ncacn_np:[\\pipe\\IWbemLevel1Login]",
5960
static const struct ndr_interface_string_array IWbemLevel1Login_endpoints = {
5962
.names = IWbemLevel1Login_endpoint_strings
5965
static const char * const IWbemLevel1Login_authservice_strings[] = {
5969
static const struct ndr_interface_string_array IWbemLevel1Login_authservices = {
5971
.names = IWbemLevel1Login_authservice_strings
5975
const struct ndr_interface_table ndr_table_IWbemLevel1Login = {
5976
.name = "IWbemLevel1Login",
5978
{0xf309ad18,0xd86a,0x11d0,{0xa0,0x75},{0x00,0xc0,0x4f,0xb6,0x88,0x20}},
5979
NDR_IWBEMLEVEL1LOGIN_VERSION
5981
.helpstring = NDR_IWBEMLEVEL1LOGIN_HELPSTRING,
5983
.calls = IWbemLevel1Login_calls,
5984
.endpoints = &IWbemLevel1Login_endpoints,
5985
.authservices = &IWbemLevel1Login_authservices
5988
#include "librpc/gen_ndr/ndr_orpc.h"
5989
static enum ndr_err_code ndr_push_IWbemWCOSmartEnum_Next(struct ndr_push *ndr, int flags, const struct IWbemWCOSmartEnum_Next *r)
5991
if (flags & NDR_IN) {
5992
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5993
if (r->in.gEWCO == NULL) {
5994
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5996
NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.gEWCO));
5997
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.lTimeOut));
5998
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.uCount));
5999
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.unknown));
6000
if (r->in.gWCO == NULL) {
6001
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6003
NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.gWCO));
6005
if (flags & NDR_OUT) {
6006
if (r->out.ORPCthat == NULL) {
6007
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6009
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6010
if (r->out.puReturned == NULL) {
6011
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6013
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.puReturned));
6014
if (r->out.pSize == NULL) {
6015
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6017
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.pSize));
6018
if (r->out.pData == NULL) {
6019
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6021
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pData));
6022
if (*r->out.pData) {
6023
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.pSize));
6024
NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, *r->out.pData, *r->out.pSize));
6026
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6028
return NDR_ERR_SUCCESS;
6031
static enum ndr_err_code ndr_pull_IWbemWCOSmartEnum_Next(struct ndr_pull *ndr, int flags, struct IWbemWCOSmartEnum_Next *r)
6033
uint32_t _ptr_pData;
6034
TALLOC_CTX *_mem_save_ORPCthat_0;
6035
TALLOC_CTX *_mem_save_gEWCO_0;
6036
TALLOC_CTX *_mem_save_gWCO_0;
6037
TALLOC_CTX *_mem_save_puReturned_0;
6038
TALLOC_CTX *_mem_save_pSize_0;
6039
TALLOC_CTX *_mem_save_pData_0;
6040
TALLOC_CTX *_mem_save_pData_1;
6041
if (flags & NDR_IN) {
6042
ZERO_STRUCT(r->out);
6044
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6045
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6046
NDR_PULL_ALLOC(ndr, r->in.gEWCO);
6048
_mem_save_gEWCO_0 = NDR_PULL_GET_MEM_CTX(ndr);
6049
NDR_PULL_SET_MEM_CTX(ndr, r->in.gEWCO, LIBNDR_FLAG_REF_ALLOC);
6050
NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.gEWCO));
6051
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_gEWCO_0, LIBNDR_FLAG_REF_ALLOC);
6052
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.lTimeOut));
6053
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.uCount));
6054
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.unknown));
6055
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6056
NDR_PULL_ALLOC(ndr, r->in.gWCO);
6058
_mem_save_gWCO_0 = NDR_PULL_GET_MEM_CTX(ndr);
6059
NDR_PULL_SET_MEM_CTX(ndr, r->in.gWCO, LIBNDR_FLAG_REF_ALLOC);
6060
NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.gWCO));
6061
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_gWCO_0, LIBNDR_FLAG_REF_ALLOC);
6062
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6063
ZERO_STRUCTP(r->out.ORPCthat);
6064
NDR_PULL_ALLOC(ndr, r->out.puReturned);
6065
ZERO_STRUCTP(r->out.puReturned);
6066
NDR_PULL_ALLOC(ndr, r->out.pSize);
6067
ZERO_STRUCTP(r->out.pSize);
6068
NDR_PULL_ALLOC(ndr, r->out.pData);
6069
ZERO_STRUCTP(r->out.pData);
6071
if (flags & NDR_OUT) {
6072
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6073
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6075
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
6076
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
6077
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6078
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
6079
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6080
NDR_PULL_ALLOC(ndr, r->out.puReturned);
6082
_mem_save_puReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
6083
NDR_PULL_SET_MEM_CTX(ndr, r->out.puReturned, LIBNDR_FLAG_REF_ALLOC);
6084
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.puReturned));
6085
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_puReturned_0, LIBNDR_FLAG_REF_ALLOC);
6086
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6087
NDR_PULL_ALLOC(ndr, r->out.pSize);
6089
_mem_save_pSize_0 = NDR_PULL_GET_MEM_CTX(ndr);
6090
NDR_PULL_SET_MEM_CTX(ndr, r->out.pSize, LIBNDR_FLAG_REF_ALLOC);
6091
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.pSize));
6092
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pSize_0, LIBNDR_FLAG_REF_ALLOC);
6093
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6094
NDR_PULL_ALLOC(ndr, r->out.pData);
6096
_mem_save_pData_0 = NDR_PULL_GET_MEM_CTX(ndr);
6097
NDR_PULL_SET_MEM_CTX(ndr, r->out.pData, LIBNDR_FLAG_REF_ALLOC);
6098
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pData));
6100
NDR_PULL_ALLOC(ndr, *r->out.pData);
6102
*r->out.pData = NULL;
6104
if (*r->out.pData) {
6105
_mem_save_pData_1 = NDR_PULL_GET_MEM_CTX(ndr);
6106
NDR_PULL_SET_MEM_CTX(ndr, *r->out.pData, 0);
6107
NDR_CHECK(ndr_pull_array_size(ndr, r->out.pData));
6108
NDR_PULL_ALLOC_N(ndr, *r->out.pData, ndr_get_array_size(ndr, r->out.pData));
6109
NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, *r->out.pData, ndr_get_array_size(ndr, r->out.pData)));
6110
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pData_1, 0);
6112
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pData_0, LIBNDR_FLAG_REF_ALLOC);
6113
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6114
if (*r->out.pData) {
6115
NDR_CHECK(ndr_check_array_size(ndr, (void*)r->out.pData, *r->out.pSize));
6118
return NDR_ERR_SUCCESS;
6121
_PUBLIC_ void ndr_print_IWbemWCOSmartEnum_Next(struct ndr_print *ndr, const char *name, int flags, const struct IWbemWCOSmartEnum_Next *r)
6123
ndr_print_struct(ndr, name, "IWbemWCOSmartEnum_Next");
6124
if (r == NULL) { ndr_print_null(ndr); return; }
6126
if (flags & NDR_SET_VALUES) {
6127
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6129
if (flags & NDR_IN) {
6130
ndr_print_struct(ndr, "in", "IWbemWCOSmartEnum_Next");
6132
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6133
ndr_print_ptr(ndr, "gEWCO", r->in.gEWCO);
6135
ndr_print_GUID(ndr, "gEWCO", r->in.gEWCO);
6137
ndr_print_uint32(ndr, "lTimeOut", r->in.lTimeOut);
6138
ndr_print_uint32(ndr, "uCount", r->in.uCount);
6139
ndr_print_uint32(ndr, "unknown", r->in.unknown);
6140
ndr_print_ptr(ndr, "gWCO", r->in.gWCO);
6142
ndr_print_GUID(ndr, "gWCO", r->in.gWCO);
6146
if (flags & NDR_OUT) {
6147
ndr_print_struct(ndr, "out", "IWbemWCOSmartEnum_Next");
6149
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6151
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6153
ndr_print_ptr(ndr, "puReturned", r->out.puReturned);
6155
ndr_print_uint32(ndr, "puReturned", *r->out.puReturned);
6157
ndr_print_ptr(ndr, "pSize", r->out.pSize);
6159
ndr_print_uint32(ndr, "pSize", *r->out.pSize);
6161
ndr_print_ptr(ndr, "pData", r->out.pData);
6163
ndr_print_ptr(ndr, "pData", *r->out.pData);
6165
if (*r->out.pData) {
6166
ndr_print_array_uint8(ndr, "pData", *r->out.pData, *r->out.pSize);
6170
ndr_print_WERROR(ndr, "result", r->out.result);
6176
static const struct ndr_interface_call IWbemWCOSmartEnum_calls[] = {
6178
"IWbemWCOSmartEnum_Next",
6179
sizeof(struct IWbemWCOSmartEnum_Next),
6180
(ndr_push_flags_fn_t) ndr_push_IWbemWCOSmartEnum_Next,
6181
(ndr_pull_flags_fn_t) ndr_pull_IWbemWCOSmartEnum_Next,
6182
(ndr_print_function_t) ndr_print_IWbemWCOSmartEnum_Next,
6186
{ NULL, 0, NULL, NULL, NULL }
6189
static const char * const IWbemWCOSmartEnum_endpoint_strings[] = {
6190
"ncacn_np:[\\pipe\\IWbemWCOSmartEnum]",
6193
static const struct ndr_interface_string_array IWbemWCOSmartEnum_endpoints = {
6195
.names = IWbemWCOSmartEnum_endpoint_strings
6198
static const char * const IWbemWCOSmartEnum_authservice_strings[] = {
6202
static const struct ndr_interface_string_array IWbemWCOSmartEnum_authservices = {
6204
.names = IWbemWCOSmartEnum_authservice_strings
6208
const struct ndr_interface_table ndr_table_IWbemWCOSmartEnum = {
6209
.name = "IWbemWCOSmartEnum",
6211
{0x423ec01e,0x2e35,0x11d2,{0xb6,0x04},{0x00,0x10,0x4b,0x70,0x3e,0xfd}},
6212
NDR_IWBEMWCOSMARTENUM_VERSION
6214
.helpstring = NDR_IWBEMWCOSMARTENUM_HELPSTRING,
6216
.calls = IWbemWCOSmartEnum_calls,
6217
.endpoints = &IWbemWCOSmartEnum_endpoints,
6218
.authservices = &IWbemWCOSmartEnum_authservices
6221
#include "librpc/gen_ndr/ndr_orpc.h"
6222
static enum ndr_err_code ndr_push_Fetch(struct ndr_push *ndr, int flags, const struct Fetch *r)
6224
if (flags & NDR_IN) {
6225
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6227
if (flags & NDR_OUT) {
6228
if (r->out.ORPCthat == NULL) {
6229
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6231
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6232
if (r->out.ppEnum == NULL) {
6233
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6235
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
6236
if (*r->out.ppEnum) {
6237
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
6239
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6241
return NDR_ERR_SUCCESS;
6244
static enum ndr_err_code ndr_pull_Fetch(struct ndr_pull *ndr, int flags, struct Fetch *r)
6246
uint32_t _ptr_ppEnum;
6247
TALLOC_CTX *_mem_save_ORPCthat_0;
6248
TALLOC_CTX *_mem_save_ppEnum_0;
6249
TALLOC_CTX *_mem_save_ppEnum_1;
6250
if (flags & NDR_IN) {
6251
ZERO_STRUCT(r->out);
6253
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6254
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6255
ZERO_STRUCTP(r->out.ORPCthat);
6256
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
6257
ZERO_STRUCTP(r->out.ppEnum);
6259
if (flags & NDR_OUT) {
6260
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6261
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6263
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
6264
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
6265
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6266
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
6267
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6268
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
6270
_mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
6271
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
6272
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
6274
NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
6276
*r->out.ppEnum = NULL;
6278
if (*r->out.ppEnum) {
6279
_mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
6280
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
6281
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
6282
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
6284
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
6285
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6287
return NDR_ERR_SUCCESS;
6290
_PUBLIC_ void ndr_print_Fetch(struct ndr_print *ndr, const char *name, int flags, const struct Fetch *r)
6292
ndr_print_struct(ndr, name, "Fetch");
6293
if (r == NULL) { ndr_print_null(ndr); return; }
6295
if (flags & NDR_SET_VALUES) {
6296
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6298
if (flags & NDR_IN) {
6299
ndr_print_struct(ndr, "in", "Fetch");
6301
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6304
if (flags & NDR_OUT) {
6305
ndr_print_struct(ndr, "out", "Fetch");
6307
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6309
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6311
ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
6313
ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
6315
if (*r->out.ppEnum) {
6316
ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
6320
ndr_print_WERROR(ndr, "result", r->out.result);
6326
static enum ndr_err_code ndr_push_Test(struct ndr_push *ndr, int flags, const struct Test *r)
6328
if (flags & NDR_IN) {
6329
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6331
if (flags & NDR_OUT) {
6332
if (r->out.ORPCthat == NULL) {
6333
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6335
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6336
if (r->out.ppEnum == NULL) {
6337
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6339
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
6340
if (*r->out.ppEnum) {
6341
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
6343
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6345
return NDR_ERR_SUCCESS;
6348
static enum ndr_err_code ndr_pull_Test(struct ndr_pull *ndr, int flags, struct Test *r)
6350
uint32_t _ptr_ppEnum;
6351
TALLOC_CTX *_mem_save_ORPCthat_0;
6352
TALLOC_CTX *_mem_save_ppEnum_0;
6353
TALLOC_CTX *_mem_save_ppEnum_1;
6354
if (flags & NDR_IN) {
6355
ZERO_STRUCT(r->out);
6357
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6358
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6359
ZERO_STRUCTP(r->out.ORPCthat);
6360
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
6361
ZERO_STRUCTP(r->out.ppEnum);
6363
if (flags & NDR_OUT) {
6364
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6365
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6367
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
6368
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
6369
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6370
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
6371
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6372
NDR_PULL_ALLOC(ndr, r->out.ppEnum);
6374
_mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
6375
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
6376
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
6378
NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
6380
*r->out.ppEnum = NULL;
6382
if (*r->out.ppEnum) {
6383
_mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
6384
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
6385
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
6386
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
6388
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
6389
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6391
return NDR_ERR_SUCCESS;
6394
_PUBLIC_ void ndr_print_Test(struct ndr_print *ndr, const char *name, int flags, const struct Test *r)
6396
ndr_print_struct(ndr, name, "Test");
6397
if (r == NULL) { ndr_print_null(ndr); return; }
6399
if (flags & NDR_SET_VALUES) {
6400
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6402
if (flags & NDR_IN) {
6403
ndr_print_struct(ndr, "in", "Test");
6405
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6408
if (flags & NDR_OUT) {
6409
ndr_print_struct(ndr, "out", "Test");
6411
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6413
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6415
ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
6417
ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
6419
if (*r->out.ppEnum) {
6420
ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
6424
ndr_print_WERROR(ndr, "result", r->out.result);
6430
static const struct ndr_interface_call IWbemFetchSmartEnum_calls[] = {
6433
sizeof(struct Fetch),
6434
(ndr_push_flags_fn_t) ndr_push_Fetch,
6435
(ndr_pull_flags_fn_t) ndr_pull_Fetch,
6436
(ndr_print_function_t) ndr_print_Fetch,
6442
sizeof(struct Test),
6443
(ndr_push_flags_fn_t) ndr_push_Test,
6444
(ndr_pull_flags_fn_t) ndr_pull_Test,
6445
(ndr_print_function_t) ndr_print_Test,
6449
{ NULL, 0, NULL, NULL, NULL }
6452
static const char * const IWbemFetchSmartEnum_endpoint_strings[] = {
6453
"ncacn_np:[\\pipe\\IWbemFetchSmartEnum]",
6456
static const struct ndr_interface_string_array IWbemFetchSmartEnum_endpoints = {
6458
.names = IWbemFetchSmartEnum_endpoint_strings
6461
static const char * const IWbemFetchSmartEnum_authservice_strings[] = {
6465
static const struct ndr_interface_string_array IWbemFetchSmartEnum_authservices = {
6467
.names = IWbemFetchSmartEnum_authservice_strings
6471
const struct ndr_interface_table ndr_table_IWbemFetchSmartEnum = {
6472
.name = "IWbemFetchSmartEnum",
6474
{0x1c1c45ee,0x4395,0x11d2,{0xb6,0x0b},{0x00,0x10,0x4b,0x70,0x3e,0xfd}},
6475
NDR_IWBEMFETCHSMARTENUM_VERSION
6477
.helpstring = NDR_IWBEMFETCHSMARTENUM_HELPSTRING,
6479
.calls = IWbemFetchSmartEnum_calls,
6480
.endpoints = &IWbemFetchSmartEnum_endpoints,
6481
.authservices = &IWbemFetchSmartEnum_authservices
6484
#include "librpc/gen_ndr/ndr_orpc.h"
6485
static enum ndr_err_code ndr_push_GetResultObject(struct ndr_push *ndr, int flags, const struct GetResultObject *r)
6487
if (flags & NDR_IN) {
6488
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6489
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
6491
if (flags & NDR_OUT) {
6492
if (r->out.ORPCthat == NULL) {
6493
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6495
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6496
if (r->out.ppResultObject == NULL) {
6497
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6499
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResultObject));
6500
if (*r->out.ppResultObject) {
6501
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultObject));
6503
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6505
return NDR_ERR_SUCCESS;
6508
static enum ndr_err_code ndr_pull_GetResultObject(struct ndr_pull *ndr, int flags, struct GetResultObject *r)
6510
uint32_t _ptr_ppResultObject;
6511
TALLOC_CTX *_mem_save_ORPCthat_0;
6512
TALLOC_CTX *_mem_save_ppResultObject_0;
6513
TALLOC_CTX *_mem_save_ppResultObject_1;
6514
if (flags & NDR_IN) {
6515
ZERO_STRUCT(r->out);
6517
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6518
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
6519
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6520
ZERO_STRUCTP(r->out.ORPCthat);
6521
NDR_PULL_ALLOC(ndr, r->out.ppResultObject);
6522
ZERO_STRUCTP(r->out.ppResultObject);
6524
if (flags & NDR_OUT) {
6525
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6526
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6528
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
6529
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
6530
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6531
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
6532
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6533
NDR_PULL_ALLOC(ndr, r->out.ppResultObject);
6535
_mem_save_ppResultObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
6536
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResultObject, LIBNDR_FLAG_REF_ALLOC);
6537
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResultObject));
6538
if (_ptr_ppResultObject) {
6539
NDR_PULL_ALLOC(ndr, *r->out.ppResultObject);
6541
*r->out.ppResultObject = NULL;
6543
if (*r->out.ppResultObject) {
6544
_mem_save_ppResultObject_1 = NDR_PULL_GET_MEM_CTX(ndr);
6545
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResultObject, 0);
6546
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultObject));
6547
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultObject_1, 0);
6549
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultObject_0, LIBNDR_FLAG_REF_ALLOC);
6550
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6552
return NDR_ERR_SUCCESS;
6555
_PUBLIC_ void ndr_print_GetResultObject(struct ndr_print *ndr, const char *name, int flags, const struct GetResultObject *r)
6557
ndr_print_struct(ndr, name, "GetResultObject");
6558
if (r == NULL) { ndr_print_null(ndr); return; }
6560
if (flags & NDR_SET_VALUES) {
6561
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6563
if (flags & NDR_IN) {
6564
ndr_print_struct(ndr, "in", "GetResultObject");
6566
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6567
ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
6570
if (flags & NDR_OUT) {
6571
ndr_print_struct(ndr, "out", "GetResultObject");
6573
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6575
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6577
ndr_print_ptr(ndr, "ppResultObject", r->out.ppResultObject);
6579
ndr_print_ptr(ndr, "ppResultObject", *r->out.ppResultObject);
6581
if (*r->out.ppResultObject) {
6582
ndr_print_MInterfacePointer(ndr, "ppResultObject", *r->out.ppResultObject);
6586
ndr_print_WERROR(ndr, "result", r->out.result);
6592
static enum ndr_err_code ndr_push_GetResultString(struct ndr_push *ndr, int flags, const struct GetResultString *r)
6594
if (flags & NDR_IN) {
6595
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6596
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
6598
if (flags & NDR_OUT) {
6599
if (r->out.ORPCthat == NULL) {
6600
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6602
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6603
if (r->out.pstrResultString == NULL) {
6604
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6606
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, r->out.pstrResultString));
6607
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6609
return NDR_ERR_SUCCESS;
6612
static enum ndr_err_code ndr_pull_GetResultString(struct ndr_pull *ndr, int flags, struct GetResultString *r)
6614
TALLOC_CTX *_mem_save_ORPCthat_0;
6615
TALLOC_CTX *_mem_save_pstrResultString_0;
6616
if (flags & NDR_IN) {
6617
ZERO_STRUCT(r->out);
6619
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6620
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
6621
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6622
ZERO_STRUCTP(r->out.ORPCthat);
6623
NDR_PULL_ALLOC(ndr, r->out.pstrResultString);
6624
ZERO_STRUCTP(r->out.pstrResultString);
6626
if (flags & NDR_OUT) {
6627
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6628
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6630
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
6631
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
6632
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6633
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
6634
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6635
NDR_PULL_ALLOC(ndr, r->out.pstrResultString);
6637
_mem_save_pstrResultString_0 = NDR_PULL_GET_MEM_CTX(ndr);
6638
NDR_PULL_SET_MEM_CTX(ndr, r->out.pstrResultString, LIBNDR_FLAG_REF_ALLOC);
6639
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, r->out.pstrResultString));
6640
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pstrResultString_0, LIBNDR_FLAG_REF_ALLOC);
6641
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6643
return NDR_ERR_SUCCESS;
6646
_PUBLIC_ void ndr_print_GetResultString(struct ndr_print *ndr, const char *name, int flags, const struct GetResultString *r)
6648
ndr_print_struct(ndr, name, "GetResultString");
6649
if (r == NULL) { ndr_print_null(ndr); return; }
6651
if (flags & NDR_SET_VALUES) {
6652
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6654
if (flags & NDR_IN) {
6655
ndr_print_struct(ndr, "in", "GetResultString");
6657
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6658
ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
6661
if (flags & NDR_OUT) {
6662
ndr_print_struct(ndr, "out", "GetResultString");
6664
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6666
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6668
ndr_print_ptr(ndr, "pstrResultString", r->out.pstrResultString);
6670
ndr_print_BSTR(ndr, "pstrResultString", r->out.pstrResultString);
6672
ndr_print_WERROR(ndr, "result", r->out.result);
6678
static enum ndr_err_code ndr_push_GetResultServices(struct ndr_push *ndr, int flags, const struct GetResultServices *r)
6680
if (flags & NDR_IN) {
6681
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6682
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
6684
if (flags & NDR_OUT) {
6685
if (r->out.ORPCthat == NULL) {
6686
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6688
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6689
if (r->out.ppServices == NULL) {
6690
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6692
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppServices));
6693
if (*r->out.ppServices) {
6694
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppServices));
6696
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6698
return NDR_ERR_SUCCESS;
6701
static enum ndr_err_code ndr_pull_GetResultServices(struct ndr_pull *ndr, int flags, struct GetResultServices *r)
6703
uint32_t _ptr_ppServices;
6704
TALLOC_CTX *_mem_save_ORPCthat_0;
6705
TALLOC_CTX *_mem_save_ppServices_0;
6706
TALLOC_CTX *_mem_save_ppServices_1;
6707
if (flags & NDR_IN) {
6708
ZERO_STRUCT(r->out);
6710
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6711
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
6712
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6713
ZERO_STRUCTP(r->out.ORPCthat);
6714
NDR_PULL_ALLOC(ndr, r->out.ppServices);
6715
ZERO_STRUCTP(r->out.ppServices);
6717
if (flags & NDR_OUT) {
6718
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6719
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6721
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
6722
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
6723
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6724
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
6725
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6726
NDR_PULL_ALLOC(ndr, r->out.ppServices);
6728
_mem_save_ppServices_0 = NDR_PULL_GET_MEM_CTX(ndr);
6729
NDR_PULL_SET_MEM_CTX(ndr, r->out.ppServices, LIBNDR_FLAG_REF_ALLOC);
6730
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppServices));
6731
if (_ptr_ppServices) {
6732
NDR_PULL_ALLOC(ndr, *r->out.ppServices);
6734
*r->out.ppServices = NULL;
6736
if (*r->out.ppServices) {
6737
_mem_save_ppServices_1 = NDR_PULL_GET_MEM_CTX(ndr);
6738
NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppServices, 0);
6739
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppServices));
6740
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppServices_1, 0);
6742
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppServices_0, LIBNDR_FLAG_REF_ALLOC);
6743
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6745
return NDR_ERR_SUCCESS;
6748
_PUBLIC_ void ndr_print_GetResultServices(struct ndr_print *ndr, const char *name, int flags, const struct GetResultServices *r)
6750
ndr_print_struct(ndr, name, "GetResultServices");
6751
if (r == NULL) { ndr_print_null(ndr); return; }
6753
if (flags & NDR_SET_VALUES) {
6754
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6756
if (flags & NDR_IN) {
6757
ndr_print_struct(ndr, "in", "GetResultServices");
6759
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6760
ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
6763
if (flags & NDR_OUT) {
6764
ndr_print_struct(ndr, "out", "GetResultServices");
6766
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6768
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6770
ndr_print_ptr(ndr, "ppServices", r->out.ppServices);
6772
ndr_print_ptr(ndr, "ppServices", *r->out.ppServices);
6774
if (*r->out.ppServices) {
6775
ndr_print_MInterfacePointer(ndr, "ppServices", *r->out.ppServices);
6779
ndr_print_WERROR(ndr, "result", r->out.result);
6785
static enum ndr_err_code ndr_push_GetCallStatus(struct ndr_push *ndr, int flags, const struct GetCallStatus *r)
6787
if (flags & NDR_IN) {
6788
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6789
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
6791
if (flags & NDR_OUT) {
6792
if (r->out.ORPCthat == NULL) {
6793
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6795
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6796
if (r->out.plStatus == NULL) {
6797
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6799
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, *r->out.plStatus));
6800
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6802
return NDR_ERR_SUCCESS;
6805
static enum ndr_err_code ndr_pull_GetCallStatus(struct ndr_pull *ndr, int flags, struct GetCallStatus *r)
6807
TALLOC_CTX *_mem_save_ORPCthat_0;
6808
TALLOC_CTX *_mem_save_plStatus_0;
6809
if (flags & NDR_IN) {
6810
ZERO_STRUCT(r->out);
6812
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6813
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
6814
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6815
ZERO_STRUCTP(r->out.ORPCthat);
6816
NDR_PULL_ALLOC(ndr, r->out.plStatus);
6817
ZERO_STRUCTP(r->out.plStatus);
6819
if (flags & NDR_OUT) {
6820
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6821
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6823
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
6824
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
6825
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6826
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
6827
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6828
NDR_PULL_ALLOC(ndr, r->out.plStatus);
6830
_mem_save_plStatus_0 = NDR_PULL_GET_MEM_CTX(ndr);
6831
NDR_PULL_SET_MEM_CTX(ndr, r->out.plStatus, LIBNDR_FLAG_REF_ALLOC);
6832
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, r->out.plStatus));
6833
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_plStatus_0, LIBNDR_FLAG_REF_ALLOC);
6834
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6836
return NDR_ERR_SUCCESS;
6839
_PUBLIC_ void ndr_print_GetCallStatus(struct ndr_print *ndr, const char *name, int flags, const struct GetCallStatus *r)
6841
ndr_print_struct(ndr, name, "GetCallStatus");
6842
if (r == NULL) { ndr_print_null(ndr); return; }
6844
if (flags & NDR_SET_VALUES) {
6845
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6847
if (flags & NDR_IN) {
6848
ndr_print_struct(ndr, "in", "GetCallStatus");
6850
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6851
ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
6854
if (flags & NDR_OUT) {
6855
ndr_print_struct(ndr, "out", "GetCallStatus");
6857
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6859
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6861
ndr_print_ptr(ndr, "plStatus", r->out.plStatus);
6863
ndr_print_int32(ndr, "plStatus", *r->out.plStatus);
6865
ndr_print_WERROR(ndr, "result", r->out.result);
6871
static const struct ndr_interface_call IWbemCallResult_calls[] = {
6874
sizeof(struct GetResultObject),
6875
(ndr_push_flags_fn_t) ndr_push_GetResultObject,
6876
(ndr_pull_flags_fn_t) ndr_pull_GetResultObject,
6877
(ndr_print_function_t) ndr_print_GetResultObject,
6883
sizeof(struct GetResultString),
6884
(ndr_push_flags_fn_t) ndr_push_GetResultString,
6885
(ndr_pull_flags_fn_t) ndr_pull_GetResultString,
6886
(ndr_print_function_t) ndr_print_GetResultString,
6891
"GetResultServices",
6892
sizeof(struct GetResultServices),
6893
(ndr_push_flags_fn_t) ndr_push_GetResultServices,
6894
(ndr_pull_flags_fn_t) ndr_pull_GetResultServices,
6895
(ndr_print_function_t) ndr_print_GetResultServices,
6901
sizeof(struct GetCallStatus),
6902
(ndr_push_flags_fn_t) ndr_push_GetCallStatus,
6903
(ndr_pull_flags_fn_t) ndr_pull_GetCallStatus,
6904
(ndr_print_function_t) ndr_print_GetCallStatus,
6908
{ NULL, 0, NULL, NULL, NULL }
6911
static const char * const IWbemCallResult_endpoint_strings[] = {
6912
"ncacn_np:[\\pipe\\IWbemCallResult]",
6915
static const struct ndr_interface_string_array IWbemCallResult_endpoints = {
6917
.names = IWbemCallResult_endpoint_strings
6920
static const char * const IWbemCallResult_authservice_strings[] = {
6924
static const struct ndr_interface_string_array IWbemCallResult_authservices = {
6926
.names = IWbemCallResult_authservice_strings
6930
const struct ndr_interface_table ndr_table_IWbemCallResult = {
6931
.name = "IWbemCallResult",
6933
{0x44aca675,0xe8fc,0x11d0,{0xa0,0x7c},{0x00,0xc0,0x4f,0xb6,0x88,0x20}},
6934
NDR_IWBEMCALLRESULT_VERSION
6936
.helpstring = NDR_IWBEMCALLRESULT_HELPSTRING,
6938
.calls = IWbemCallResult_calls,
6939
.endpoints = &IWbemCallResult_endpoints,
6940
.authservices = &IWbemCallResult_authservices
6943
#include "librpc/gen_ndr/ndr_orpc.h"
6944
static enum ndr_err_code ndr_push_SetStatus(struct ndr_push *ndr, int flags, const struct SetStatus *r)
6946
if (flags & NDR_IN) {
6947
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6948
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
6949
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->in.hResult));
6950
NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strParam));
6951
if (r->in.pObjParam == NULL) {
6952
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6954
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObjParam));
6956
if (flags & NDR_OUT) {
6957
if (r->out.ORPCthat == NULL) {
6958
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6960
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6961
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6963
return NDR_ERR_SUCCESS;
6966
static enum ndr_err_code ndr_pull_SetStatus(struct ndr_pull *ndr, int flags, struct SetStatus *r)
6968
TALLOC_CTX *_mem_save_ORPCthat_0;
6969
TALLOC_CTX *_mem_save_pObjParam_0;
6970
if (flags & NDR_IN) {
6971
ZERO_STRUCT(r->out);
6973
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6974
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
6975
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->in.hResult));
6976
NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strParam));
6977
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6978
NDR_PULL_ALLOC(ndr, r->in.pObjParam);
6980
_mem_save_pObjParam_0 = NDR_PULL_GET_MEM_CTX(ndr);
6981
NDR_PULL_SET_MEM_CTX(ndr, r->in.pObjParam, LIBNDR_FLAG_REF_ALLOC);
6982
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObjParam));
6983
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pObjParam_0, LIBNDR_FLAG_REF_ALLOC);
6984
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6985
ZERO_STRUCTP(r->out.ORPCthat);
6987
if (flags & NDR_OUT) {
6988
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6989
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6991
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
6992
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
6993
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
6994
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
6995
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
6997
return NDR_ERR_SUCCESS;
7000
_PUBLIC_ void ndr_print_SetStatus(struct ndr_print *ndr, const char *name, int flags, const struct SetStatus *r)
7002
ndr_print_struct(ndr, name, "SetStatus");
7003
if (r == NULL) { ndr_print_null(ndr); return; }
7005
if (flags & NDR_SET_VALUES) {
7006
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7008
if (flags & NDR_IN) {
7009
ndr_print_struct(ndr, "in", "SetStatus");
7011
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
7012
ndr_print_int32(ndr, "lFlags", r->in.lFlags);
7013
ndr_print_WERROR(ndr, "hResult", r->in.hResult);
7014
ndr_print_BSTR(ndr, "strParam", &r->in.strParam);
7015
ndr_print_ptr(ndr, "pObjParam", r->in.pObjParam);
7017
ndr_print_MInterfacePointer(ndr, "pObjParam", r->in.pObjParam);
7021
if (flags & NDR_OUT) {
7022
ndr_print_struct(ndr, "out", "SetStatus");
7024
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
7026
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
7028
ndr_print_WERROR(ndr, "result", r->out.result);
7034
static enum ndr_err_code ndr_push_Indicate(struct ndr_push *ndr, int flags, const struct Indicate *r)
7036
uint32_t cntr_apObjArray_1;
7037
if (flags & NDR_IN) {
7038
NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
7039
NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lObjectCount));
7040
if (r->in.apObjArray == NULL) {
7041
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7043
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.lObjectCount));
7044
for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < r->in.lObjectCount; cntr_apObjArray_1++) {
7045
NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.apObjArray[cntr_apObjArray_1]));
7047
for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < r->in.lObjectCount; cntr_apObjArray_1++) {
7048
if (r->in.apObjArray[cntr_apObjArray_1]) {
7049
NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.apObjArray[cntr_apObjArray_1]));
7053
if (flags & NDR_OUT) {
7054
if (r->out.ORPCthat == NULL) {
7055
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7057
NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
7058
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
7060
return NDR_ERR_SUCCESS;
7063
static enum ndr_err_code ndr_pull_Indicate(struct ndr_pull *ndr, int flags, struct Indicate *r)
7065
uint32_t _ptr_apObjArray;
7066
uint32_t cntr_apObjArray_1;
7067
TALLOC_CTX *_mem_save_ORPCthat_0;
7068
TALLOC_CTX *_mem_save_apObjArray_1;
7069
TALLOC_CTX *_mem_save_apObjArray_2;
7070
if (flags & NDR_IN) {
7071
ZERO_STRUCT(r->out);
7073
NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
7074
NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lObjectCount));
7075
NDR_CHECK(ndr_pull_array_size(ndr, &r->in.apObjArray));
7076
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7077
NDR_PULL_ALLOC_N(ndr, r->in.apObjArray, ndr_get_array_size(ndr, &r->in.apObjArray));
7079
_mem_save_apObjArray_1 = NDR_PULL_GET_MEM_CTX(ndr);
7080
NDR_PULL_SET_MEM_CTX(ndr, r->in.apObjArray, 0);
7081
for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < r->in.lObjectCount; cntr_apObjArray_1++) {
7082
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_apObjArray));
7083
if (_ptr_apObjArray) {
7084
NDR_PULL_ALLOC(ndr, r->in.apObjArray[cntr_apObjArray_1]);
7086
r->in.apObjArray[cntr_apObjArray_1] = NULL;
7089
for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < r->in.lObjectCount; cntr_apObjArray_1++) {
7090
if (r->in.apObjArray[cntr_apObjArray_1]) {
7091
_mem_save_apObjArray_2 = NDR_PULL_GET_MEM_CTX(ndr);
7092
NDR_PULL_SET_MEM_CTX(ndr, r->in.apObjArray[cntr_apObjArray_1], 0);
7093
NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.apObjArray[cntr_apObjArray_1]));
7094
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_apObjArray_2, 0);
7097
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_apObjArray_1, 0);
7098
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
7099
ZERO_STRUCTP(r->out.ORPCthat);
7100
if (r->in.apObjArray) {
7101
NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.apObjArray, r->in.lObjectCount));
7104
if (flags & NDR_OUT) {
7105
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7106
NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
7108
_mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
7109
NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
7110
NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
7111
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
7112
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
7114
return NDR_ERR_SUCCESS;
7117
_PUBLIC_ void ndr_print_Indicate(struct ndr_print *ndr, const char *name, int flags, const struct Indicate *r)
7119
uint32_t cntr_apObjArray_1;
7120
ndr_print_struct(ndr, name, "Indicate");
7121
if (r == NULL) { ndr_print_null(ndr); return; }
7123
if (flags & NDR_SET_VALUES) {
7124
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7126
if (flags & NDR_IN) {
7127
ndr_print_struct(ndr, "in", "Indicate");
7129
ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
7130
ndr_print_int32(ndr, "lObjectCount", r->in.lObjectCount);
7131
ndr_print_ptr(ndr, "apObjArray", r->in.apObjArray);
7133
ndr->print(ndr, "%s: ARRAY(%d)", "apObjArray", (int)r->in.lObjectCount);
7135
for (cntr_apObjArray_1=0;cntr_apObjArray_1<r->in.lObjectCount;cntr_apObjArray_1++) {
7136
ndr_print_ptr(ndr, "apObjArray", r->in.apObjArray[cntr_apObjArray_1]);
7138
if (r->in.apObjArray[cntr_apObjArray_1]) {
7139
ndr_print_MInterfacePointer(ndr, "apObjArray", r->in.apObjArray[cntr_apObjArray_1]);
7147
if (flags & NDR_OUT) {
7148
ndr_print_struct(ndr, "out", "Indicate");
7150
ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
7152
ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
7154
ndr_print_WERROR(ndr, "result", r->out.result);
7160
static const struct ndr_interface_call IWbemObjectSink_calls[] = {
7163
sizeof(struct SetStatus),
7164
(ndr_push_flags_fn_t) ndr_push_SetStatus,
7165
(ndr_pull_flags_fn_t) ndr_pull_SetStatus,
7166
(ndr_print_function_t) ndr_print_SetStatus,
7172
sizeof(struct Indicate),
7173
(ndr_push_flags_fn_t) ndr_push_Indicate,
7174
(ndr_pull_flags_fn_t) ndr_pull_Indicate,
7175
(ndr_print_function_t) ndr_print_Indicate,
7179
{ NULL, 0, NULL, NULL, NULL }
7182
static const char * const IWbemObjectSink_endpoint_strings[] = {
7183
"ncacn_np:[\\pipe\\IWbemObjectSink]",
7186
static const struct ndr_interface_string_array IWbemObjectSink_endpoints = {
7188
.names = IWbemObjectSink_endpoint_strings
7191
static const char * const IWbemObjectSink_authservice_strings[] = {
7195
static const struct ndr_interface_string_array IWbemObjectSink_authservices = {
7197
.names = IWbemObjectSink_authservice_strings
7201
const struct ndr_interface_table ndr_table_IWbemObjectSink = {
7202
.name = "IWbemObjectSink",
7204
{0x7c857801,0x7381,0x11cf,{0x88,0x4d},{0x00,0xaa,0x00,0x4b,0x2e,0x24}},
7205
NDR_IWBEMOBJECTSINK_VERSION
7207
.helpstring = NDR_IWBEMOBJECTSINK_HELPSTRING,
7209
.calls = IWbemObjectSink_calls,
7210
.endpoints = &IWbemObjectSink_endpoints,
7211
.authservices = &IWbemObjectSink_authservices