~ubuntu-branches/ubuntu/quantal/samba/quantal

« back to all changes in this revision

Viewing changes to .pc/CVE-2012-1182-2.patch/source3/librpc/gen_ndr/ndr_wmi.c

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-05-15 17:00:56 UTC
  • mfrom: (178.1.1 precise-security) (0.39.27 sid)
  • Revision ID: package-import@ubuntu.com-20120515170056-gludtas4257eb61q
Tags: 2:3.6.5-2ubuntu1
* Merge from Debian unstable, remaining changes: 
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Other changes now in Debian packaging.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.install: install profile.
    - debian/control: have samba suggest ufw.
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba-common-bin.install: install hook.
  + Switch to upstart:
    - Added debian/samba.{nmbd,smbd}.upstart.
    - debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
      Make upstart compatible.
* d/samba.install, d/samba-common-bin.install: Restore apport hook and ufw
  profile (LP: #999764).
* Dropped:
  + debian/patches/CVE-2012-1182-*.patch: fixed in upstream release 3.6.4.
  + debian/patches/CVE-2012-2111.patch: fixed in upstream release 3.6.5.
  + debian/patches/fix-debuglevel-name-conflict.patch: fixed upstream -
    debug_level is no longer used as a global variable name.
  + debian/patches/error-trans.fix-276472: fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* parser auto-generated by pidl */
2
 
 
3
 
#include "includes.h"
4
 
#include "librpc/gen_ndr/ndr_wmi.h"
5
 
 
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)
11
 
{
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));
20
 
        }
21
 
        if (ndr_flags & NDR_BUFFERS) {
22
 
        }
23
 
        return NDR_ERR_SUCCESS;
24
 
}
25
 
 
26
 
static enum ndr_err_code ndr_pull_BSTR(struct ndr_pull *ndr, int ndr_flags, struct BSTR *r)
27
 
{
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));
35
 
                }
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));
39
 
        }
40
 
        if (ndr_flags & NDR_BUFFERS) {
41
 
        }
42
 
        return NDR_ERR_SUCCESS;
43
 
}
44
 
 
45
 
static enum ndr_err_code ndr_push_Delete(struct ndr_push *ndr, int flags, const struct Delete *r)
46
 
{
47
 
        if (flags & NDR_IN) {
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");
51
 
                }
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));
56
 
        }
57
 
        if (flags & NDR_OUT) {
58
 
                if (r->out.ORPCthat == NULL) {
59
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
60
 
                }
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));
63
 
        }
64
 
        return NDR_ERR_SUCCESS;
65
 
}
66
 
 
67
 
static enum ndr_err_code ndr_pull_Delete(struct ndr_pull *ndr, int flags, struct Delete *r)
68
 
{
69
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
70
 
        if (flags & NDR_IN) {
71
 
                ZERO_STRUCT(r->out);
72
 
 
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));
78
 
                }
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);
83
 
        }
84
 
        if (flags & NDR_OUT) {
85
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
86
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
87
 
                }
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));
93
 
        }
94
 
        return NDR_ERR_SUCCESS;
95
 
}
96
 
 
97
 
_PUBLIC_ void ndr_print_Delete(struct ndr_print *ndr, const char *name, int flags, const struct Delete *r)
98
 
{
99
 
        ndr_print_struct(ndr, name, "Delete");
100
 
        if (r == NULL) { ndr_print_null(ndr); return; }
101
 
        ndr->depth++;
102
 
        if (flags & NDR_SET_VALUES) {
103
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
104
 
        }
105
 
        if (flags & NDR_IN) {
106
 
                ndr_print_struct(ndr, "in", "Delete");
107
 
                ndr->depth++;
108
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
109
 
                ndr_print_ptr(ndr, "wszName", r->in.wszName);
110
 
                ndr->depth++;
111
 
                ndr_print_string(ndr, "wszName", r->in.wszName);
112
 
                ndr->depth--;
113
 
                ndr->depth--;
114
 
        }
115
 
        if (flags & NDR_OUT) {
116
 
                ndr_print_struct(ndr, "out", "Delete");
117
 
                ndr->depth++;
118
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
119
 
                ndr->depth++;
120
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
121
 
                ndr->depth--;
122
 
                ndr_print_WERROR(ndr, "result", r->out.result);
123
 
                ndr->depth--;
124
 
        }
125
 
        ndr->depth--;
126
 
}
127
 
 
128
 
static const struct ndr_interface_call IWbemClassObject_calls[] = {
129
 
        {
130
 
                "Delete",
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,
135
 
                { 0, NULL },
136
 
                { 0, NULL },
137
 
        },
138
 
        { NULL, 0, NULL, NULL, NULL }
139
 
};
140
 
 
141
 
static const char * const IWbemClassObject_endpoint_strings[] = {
142
 
        "ncacn_np:[\\pipe\\IWbemClassObject]", 
143
 
};
144
 
 
145
 
static const struct ndr_interface_string_array IWbemClassObject_endpoints = {
146
 
        .count  = 1,
147
 
        .names  = IWbemClassObject_endpoint_strings
148
 
};
149
 
 
150
 
static const char * const IWbemClassObject_authservice_strings[] = {
151
 
        "host", 
152
 
};
153
 
 
154
 
static const struct ndr_interface_string_array IWbemClassObject_authservices = {
155
 
        .count  = 1,
156
 
        .names  = IWbemClassObject_authservice_strings
157
 
};
158
 
 
159
 
 
160
 
const struct ndr_interface_table ndr_table_IWbemClassObject = {
161
 
        .name           = "IWbemClassObject",
162
 
        .syntax_id      = {
163
 
                {0xdc12a681,0x737f,0x11cf,{0x88,0x4d},{0x00,0xaa,0x00,0x4b,0x2e,0x24}},
164
 
                NDR_IWBEMCLASSOBJECT_VERSION
165
 
        },
166
 
        .helpstring     = NDR_IWBEMCLASSOBJECT_HELPSTRING,
167
 
        .num_calls      = 1,
168
 
        .calls          = IWbemClassObject_calls,
169
 
        .endpoints      = &IWbemClassObject_endpoints,
170
 
        .authservices   = &IWbemClassObject_authservices
171
 
};
172
 
 
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)
175
 
{
176
 
        NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
177
 
        return NDR_ERR_SUCCESS;
178
 
}
179
 
 
180
 
_PUBLIC_ enum ndr_err_code ndr_pull_WBEM_GENERIC_FLAG_TYPE(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
181
 
{
182
 
        uint32_t v;
183
 
        NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
184
 
        *r = v;
185
 
        return NDR_ERR_SUCCESS;
186
 
}
187
 
 
188
 
_PUBLIC_ void ndr_print_WBEM_GENERIC_FLAG_TYPE(struct ndr_print *ndr, const char *name, uint32_t r)
189
 
{
190
 
        ndr_print_uint32(ndr, name, r);
191
 
        ndr->depth++;
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);
208
 
        ndr->depth--;
209
 
}
210
 
 
211
 
_PUBLIC_ enum ndr_err_code ndr_push_WBEM_TIMEOUT_TYPE(struct ndr_push *ndr, int ndr_flags, enum WBEM_TIMEOUT_TYPE r)
212
 
{
213
 
        NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
214
 
        return NDR_ERR_SUCCESS;
215
 
}
216
 
 
217
 
_PUBLIC_ enum ndr_err_code ndr_pull_WBEM_TIMEOUT_TYPE(struct ndr_pull *ndr, int ndr_flags, enum WBEM_TIMEOUT_TYPE *r)
218
 
{
219
 
        uint32_t v;
220
 
        NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
221
 
        *r = v;
222
 
        return NDR_ERR_SUCCESS;
223
 
}
224
 
 
225
 
_PUBLIC_ void ndr_print_WBEM_TIMEOUT_TYPE(struct ndr_print *ndr, const char *name, enum WBEM_TIMEOUT_TYPE r)
226
 
{
227
 
        const char *val = NULL;
228
 
 
229
 
        switch (r) {
230
 
                case WBEM_NO_WAIT: val = "WBEM_NO_WAIT"; break;
231
 
                case WBEM_INFINITE: val = "WBEM_INFINITE"; break;
232
 
        }
233
 
        ndr_print_enum(ndr, name, "ENUM", val, r);
234
 
}
235
 
 
236
 
_PUBLIC_ enum ndr_err_code ndr_push_CIMTYPE_ENUMERATION(struct ndr_push *ndr, int ndr_flags, enum CIMTYPE_ENUMERATION r)
237
 
{
238
 
        NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
239
 
        return NDR_ERR_SUCCESS;
240
 
}
241
 
 
242
 
_PUBLIC_ enum ndr_err_code ndr_pull_CIMTYPE_ENUMERATION(struct ndr_pull *ndr, int ndr_flags, enum CIMTYPE_ENUMERATION *r)
243
 
{
244
 
        uint32_t v;
245
 
        NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
246
 
        *r = v;
247
 
        return NDR_ERR_SUCCESS;
248
 
}
249
 
 
250
 
_PUBLIC_ void ndr_print_CIMTYPE_ENUMERATION(struct ndr_print *ndr, const char *name, enum CIMTYPE_ENUMERATION r)
251
 
{
252
 
        const char *val = NULL;
253
 
 
254
 
        switch (r) {
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;
291
 
        }
292
 
        ndr_print_enum(ndr, name, "ENUM", val, r);
293
 
}
294
 
 
295
 
_PUBLIC_ enum ndr_err_code ndr_push_WBEM_FLAVOR_TYPE(struct ndr_push *ndr, int ndr_flags, uint8_t r)
296
 
{
297
 
        NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r));
298
 
        return NDR_ERR_SUCCESS;
299
 
}
300
 
 
301
 
_PUBLIC_ enum ndr_err_code ndr_pull_WBEM_FLAVOR_TYPE(struct ndr_pull *ndr, int ndr_flags, uint8_t *r)
302
 
{
303
 
        uint8_t v;
304
 
        NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &v));
305
 
        *r = v;
306
 
        return NDR_ERR_SUCCESS;
307
 
}
308
 
 
309
 
_PUBLIC_ void ndr_print_WBEM_FLAVOR_TYPE(struct ndr_print *ndr, const char *name, uint8_t r)
310
 
{
311
 
        ndr_print_uint8(ndr, name, r);
312
 
        ndr->depth++;
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);
319
 
        ndr->depth--;
320
 
}
321
 
 
322
 
_PUBLIC_ enum ndr_err_code ndr_push_WCO_FLAGS(struct ndr_push *ndr, int ndr_flags, uint8_t r)
323
 
{
324
 
        NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r));
325
 
        return NDR_ERR_SUCCESS;
326
 
}
327
 
 
328
 
_PUBLIC_ enum ndr_err_code ndr_pull_WCO_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint8_t *r)
329
 
{
330
 
        uint8_t v;
331
 
        NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &v));
332
 
        *r = v;
333
 
        return NDR_ERR_SUCCESS;
334
 
}
335
 
 
336
 
_PUBLIC_ void ndr_print_WCO_FLAGS(struct ndr_print *ndr, const char *name, uint8_t r)
337
 
{
338
 
        ndr_print_uint8(ndr, name, r);
339
 
        ndr->depth++;
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);
344
 
        ndr->depth--;
345
 
}
346
 
 
347
 
_PUBLIC_ enum ndr_err_code ndr_push_DEFAULT_FLAGS(struct ndr_push *ndr, int ndr_flags, uint8_t r)
348
 
{
349
 
        NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r));
350
 
        return NDR_ERR_SUCCESS;
351
 
}
352
 
 
353
 
_PUBLIC_ enum ndr_err_code ndr_pull_DEFAULT_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint8_t *r)
354
 
{
355
 
        uint8_t v;
356
 
        NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &v));
357
 
        *r = v;
358
 
        return NDR_ERR_SUCCESS;
359
 
}
360
 
 
361
 
_PUBLIC_ void ndr_print_DEFAULT_FLAGS(struct ndr_print *ndr, const char *name, uint8_t r)
362
 
{
363
 
        ndr_print_uint8(ndr, name, r);
364
 
        ndr->depth++;
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);
367
 
        ndr->depth--;
368
 
}
369
 
 
370
 
static enum ndr_err_code ndr_push_OpenNamespace(struct ndr_push *ndr, int flags, const struct OpenNamespace *r)
371
 
{
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");
378
 
                }
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));
385
 
                        }
386
 
                }
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));
392
 
                        }
393
 
                }
394
 
        }
395
 
        if (flags & NDR_OUT) {
396
 
                if (r->out.ORPCthat == NULL) {
397
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
398
 
                }
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));
405
 
                        }
406
 
                }
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));
412
 
                        }
413
 
                }
414
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
415
 
        }
416
 
        return NDR_ERR_SUCCESS;
417
 
}
418
 
 
419
 
static enum ndr_err_code ndr_pull_OpenNamespace(struct ndr_pull *ndr, int flags, struct OpenNamespace *r)
420
 
{
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) {
430
 
                ZERO_STRUCT(r->out);
431
 
 
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);
437
 
                }
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);
445
 
                } else {
446
 
                        r->in.ppWorkingNamespace = NULL;
447
 
                }
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);
454
 
                        } else {
455
 
                                *r->in.ppWorkingNamespace = NULL;
456
 
                        }
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);
462
 
                        }
463
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_0, 0);
464
 
                }
465
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
466
 
                if (_ptr_ppResult) {
467
 
                        NDR_PULL_ALLOC(ndr, r->in.ppResult);
468
 
                } else {
469
 
                        r->in.ppResult = NULL;
470
 
                }
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));
475
 
                        if (_ptr_ppResult) {
476
 
                                NDR_PULL_ALLOC(ndr, *r->in.ppResult);
477
 
                        } else {
478
 
                                *r->in.ppResult = NULL;
479
 
                        }
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);
485
 
                        }
486
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_0, 0);
487
 
                }
488
 
                NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
489
 
                ZERO_STRUCTP(r->out.ORPCthat);
490
 
        }
491
 
        if (flags & NDR_OUT) {
492
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
493
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
494
 
                }
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);
502
 
                } else {
503
 
                        r->out.ppWorkingNamespace = NULL;
504
 
                }
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);
511
 
                        } else {
512
 
                                *r->out.ppWorkingNamespace = NULL;
513
 
                        }
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);
519
 
                        }
520
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_0, 0);
521
 
                }
522
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
523
 
                if (_ptr_ppResult) {
524
 
                        NDR_PULL_ALLOC(ndr, r->out.ppResult);
525
 
                } else {
526
 
                        r->out.ppResult = NULL;
527
 
                }
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));
532
 
                        if (_ptr_ppResult) {
533
 
                                NDR_PULL_ALLOC(ndr, *r->out.ppResult);
534
 
                        } else {
535
 
                                *r->out.ppResult = NULL;
536
 
                        }
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);
542
 
                        }
543
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_0, 0);
544
 
                }
545
 
                NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
546
 
        }
547
 
        return NDR_ERR_SUCCESS;
548
 
}
549
 
 
550
 
_PUBLIC_ void ndr_print_OpenNamespace(struct ndr_print *ndr, const char *name, int flags, const struct OpenNamespace *r)
551
 
{
552
 
        ndr_print_struct(ndr, name, "OpenNamespace");
553
 
        if (r == NULL) { ndr_print_null(ndr); return; }
554
 
        ndr->depth++;
555
 
        if (flags & NDR_SET_VALUES) {
556
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
557
 
        }
558
 
        if (flags & NDR_IN) {
559
 
                ndr_print_struct(ndr, "in", "OpenNamespace");
560
 
                ndr->depth++;
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);
565
 
                ndr->depth++;
566
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
567
 
                ndr->depth--;
568
 
                ndr_print_ptr(ndr, "ppWorkingNamespace", r->in.ppWorkingNamespace);
569
 
                ndr->depth++;
570
 
                if (r->in.ppWorkingNamespace) {
571
 
                        ndr_print_ptr(ndr, "ppWorkingNamespace", *r->in.ppWorkingNamespace);
572
 
                        ndr->depth++;
573
 
                        if (*r->in.ppWorkingNamespace) {
574
 
                                ndr_print_MInterfacePointer(ndr, "ppWorkingNamespace", *r->in.ppWorkingNamespace);
575
 
                        }
576
 
                        ndr->depth--;
577
 
                }
578
 
                ndr->depth--;
579
 
                ndr_print_ptr(ndr, "ppResult", r->in.ppResult);
580
 
                ndr->depth++;
581
 
                if (r->in.ppResult) {
582
 
                        ndr_print_ptr(ndr, "ppResult", *r->in.ppResult);
583
 
                        ndr->depth++;
584
 
                        if (*r->in.ppResult) {
585
 
                                ndr_print_MInterfacePointer(ndr, "ppResult", *r->in.ppResult);
586
 
                        }
587
 
                        ndr->depth--;
588
 
                }
589
 
                ndr->depth--;
590
 
                ndr->depth--;
591
 
        }
592
 
        if (flags & NDR_OUT) {
593
 
                ndr_print_struct(ndr, "out", "OpenNamespace");
594
 
                ndr->depth++;
595
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
596
 
                ndr->depth++;
597
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
598
 
                ndr->depth--;
599
 
                ndr_print_ptr(ndr, "ppWorkingNamespace", r->out.ppWorkingNamespace);
600
 
                ndr->depth++;
601
 
                if (r->out.ppWorkingNamespace) {
602
 
                        ndr_print_ptr(ndr, "ppWorkingNamespace", *r->out.ppWorkingNamespace);
603
 
                        ndr->depth++;
604
 
                        if (*r->out.ppWorkingNamespace) {
605
 
                                ndr_print_MInterfacePointer(ndr, "ppWorkingNamespace", *r->out.ppWorkingNamespace);
606
 
                        }
607
 
                        ndr->depth--;
608
 
                }
609
 
                ndr->depth--;
610
 
                ndr_print_ptr(ndr, "ppResult", r->out.ppResult);
611
 
                ndr->depth++;
612
 
                if (r->out.ppResult) {
613
 
                        ndr_print_ptr(ndr, "ppResult", *r->out.ppResult);
614
 
                        ndr->depth++;
615
 
                        if (*r->out.ppResult) {
616
 
                                ndr_print_MInterfacePointer(ndr, "ppResult", *r->out.ppResult);
617
 
                        }
618
 
                        ndr->depth--;
619
 
                }
620
 
                ndr->depth--;
621
 
                ndr_print_WERROR(ndr, "result", r->out.result);
622
 
                ndr->depth--;
623
 
        }
624
 
        ndr->depth--;
625
 
}
626
 
 
627
 
static enum ndr_err_code ndr_push_CancelAsyncCall(struct ndr_push *ndr, int flags, const struct CancelAsyncCall *r)
628
 
{
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");
633
 
                }
634
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
635
 
        }
636
 
        if (flags & NDR_OUT) {
637
 
                if (r->out.ORPCthat == NULL) {
638
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
639
 
                }
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));
642
 
        }
643
 
        return NDR_ERR_SUCCESS;
644
 
}
645
 
 
646
 
static enum ndr_err_code ndr_pull_CancelAsyncCall(struct ndr_pull *ndr, int flags, struct CancelAsyncCall *r)
647
 
{
648
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
649
 
        TALLOC_CTX *_mem_save_pSink_0;
650
 
        if (flags & NDR_IN) {
651
 
                ZERO_STRUCT(r->out);
652
 
 
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);
656
 
                }
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);
663
 
        }
664
 
        if (flags & NDR_OUT) {
665
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
666
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
667
 
                }
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));
673
 
        }
674
 
        return NDR_ERR_SUCCESS;
675
 
}
676
 
 
677
 
_PUBLIC_ void ndr_print_CancelAsyncCall(struct ndr_print *ndr, const char *name, int flags, const struct CancelAsyncCall *r)
678
 
{
679
 
        ndr_print_struct(ndr, name, "CancelAsyncCall");
680
 
        if (r == NULL) { ndr_print_null(ndr); return; }
681
 
        ndr->depth++;
682
 
        if (flags & NDR_SET_VALUES) {
683
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
684
 
        }
685
 
        if (flags & NDR_IN) {
686
 
                ndr_print_struct(ndr, "in", "CancelAsyncCall");
687
 
                ndr->depth++;
688
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
689
 
                ndr_print_ptr(ndr, "pSink", r->in.pSink);
690
 
                ndr->depth++;
691
 
                ndr_print_MInterfacePointer(ndr, "pSink", r->in.pSink);
692
 
                ndr->depth--;
693
 
                ndr->depth--;
694
 
        }
695
 
        if (flags & NDR_OUT) {
696
 
                ndr_print_struct(ndr, "out", "CancelAsyncCall");
697
 
                ndr->depth++;
698
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
699
 
                ndr->depth++;
700
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
701
 
                ndr->depth--;
702
 
                ndr_print_WERROR(ndr, "result", r->out.result);
703
 
                ndr->depth--;
704
 
        }
705
 
        ndr->depth--;
706
 
}
707
 
 
708
 
static enum ndr_err_code ndr_push_QueryObjectSink(struct ndr_push *ndr, int flags, const struct QueryObjectSink *r)
709
 
{
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));
713
 
        }
714
 
        if (flags & NDR_OUT) {
715
 
                if (r->out.ORPCthat == NULL) {
716
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
717
 
                }
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");
721
 
                }
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));
725
 
                }
726
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
727
 
        }
728
 
        return NDR_ERR_SUCCESS;
729
 
}
730
 
 
731
 
static enum ndr_err_code ndr_pull_QueryObjectSink(struct ndr_pull *ndr, int flags, struct QueryObjectSink *r)
732
 
{
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) {
738
 
                ZERO_STRUCT(r->out);
739
 
 
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);
746
 
        }
747
 
        if (flags & NDR_OUT) {
748
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
749
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
750
 
                }
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);
757
 
                }
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);
763
 
                } else {
764
 
                        *r->out.ppResponseHandler = NULL;
765
 
                }
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);
771
 
                }
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));
774
 
        }
775
 
        return NDR_ERR_SUCCESS;
776
 
}
777
 
 
778
 
_PUBLIC_ void ndr_print_QueryObjectSink(struct ndr_print *ndr, const char *name, int flags, const struct QueryObjectSink *r)
779
 
{
780
 
        ndr_print_struct(ndr, name, "QueryObjectSink");
781
 
        if (r == NULL) { ndr_print_null(ndr); return; }
782
 
        ndr->depth++;
783
 
        if (flags & NDR_SET_VALUES) {
784
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
785
 
        }
786
 
        if (flags & NDR_IN) {
787
 
                ndr_print_struct(ndr, "in", "QueryObjectSink");
788
 
                ndr->depth++;
789
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
790
 
                ndr_print_int32(ndr, "lFlags", r->in.lFlags);
791
 
                ndr->depth--;
792
 
        }
793
 
        if (flags & NDR_OUT) {
794
 
                ndr_print_struct(ndr, "out", "QueryObjectSink");
795
 
                ndr->depth++;
796
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
797
 
                ndr->depth++;
798
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
799
 
                ndr->depth--;
800
 
                ndr_print_ptr(ndr, "ppResponseHandler", r->out.ppResponseHandler);
801
 
                ndr->depth++;
802
 
                ndr_print_ptr(ndr, "ppResponseHandler", *r->out.ppResponseHandler);
803
 
                ndr->depth++;
804
 
                if (*r->out.ppResponseHandler) {
805
 
                        ndr_print_MInterfacePointer(ndr, "ppResponseHandler", *r->out.ppResponseHandler);
806
 
                }
807
 
                ndr->depth--;
808
 
                ndr->depth--;
809
 
                ndr_print_WERROR(ndr, "result", r->out.result);
810
 
                ndr->depth--;
811
 
        }
812
 
        ndr->depth--;
813
 
}
814
 
 
815
 
static enum ndr_err_code ndr_push_GetObject(struct ndr_push *ndr, int flags, const struct GetObject *r)
816
 
{
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");
823
 
                }
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));
830
 
                        }
831
 
                }
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));
837
 
                        }
838
 
                }
839
 
        }
840
 
        if (flags & NDR_OUT) {
841
 
                if (r->out.ORPCthat == NULL) {
842
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
843
 
                }
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));
850
 
                        }
851
 
                }
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));
857
 
                        }
858
 
                }
859
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
860
 
        }
861
 
        return NDR_ERR_SUCCESS;
862
 
}
863
 
 
864
 
static enum ndr_err_code ndr_pull_GetObject(struct ndr_pull *ndr, int flags, struct GetObject *r)
865
 
{
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) {
875
 
                ZERO_STRUCT(r->out);
876
 
 
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);
882
 
                }
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));
888
 
                if (_ptr_ppObject) {
889
 
                        NDR_PULL_ALLOC(ndr, r->in.ppObject);
890
 
                } else {
891
 
                        r->in.ppObject = NULL;
892
 
                }
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));
897
 
                        if (_ptr_ppObject) {
898
 
                                NDR_PULL_ALLOC(ndr, *r->in.ppObject);
899
 
                        } else {
900
 
                                *r->in.ppObject = NULL;
901
 
                        }
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);
907
 
                        }
908
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_0, 0);
909
 
                }
910
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
911
 
                if (_ptr_ppCallResult) {
912
 
                        NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
913
 
                } else {
914
 
                        r->in.ppCallResult = NULL;
915
 
                }
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);
922
 
                        } else {
923
 
                                *r->in.ppCallResult = NULL;
924
 
                        }
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);
930
 
                        }
931
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
932
 
                }
933
 
                NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
934
 
                ZERO_STRUCTP(r->out.ORPCthat);
935
 
        }
936
 
        if (flags & NDR_OUT) {
937
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
938
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
939
 
                }
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));
945
 
                if (_ptr_ppObject) {
946
 
                        NDR_PULL_ALLOC(ndr, r->out.ppObject);
947
 
                } else {
948
 
                        r->out.ppObject = NULL;
949
 
                }
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));
954
 
                        if (_ptr_ppObject) {
955
 
                                NDR_PULL_ALLOC(ndr, *r->out.ppObject);
956
 
                        } else {
957
 
                                *r->out.ppObject = NULL;
958
 
                        }
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);
964
 
                        }
965
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_0, 0);
966
 
                }
967
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
968
 
                if (_ptr_ppCallResult) {
969
 
                        NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
970
 
                } else {
971
 
                        r->out.ppCallResult = NULL;
972
 
                }
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);
979
 
                        } else {
980
 
                                *r->out.ppCallResult = NULL;
981
 
                        }
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);
987
 
                        }
988
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
989
 
                }
990
 
                NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
991
 
        }
992
 
        return NDR_ERR_SUCCESS;
993
 
}
994
 
 
995
 
_PUBLIC_ void ndr_print_GetObject(struct ndr_print *ndr, const char *name, int flags, const struct GetObject *r)
996
 
{
997
 
        ndr_print_struct(ndr, name, "GetObject");
998
 
        if (r == NULL) { ndr_print_null(ndr); return; }
999
 
        ndr->depth++;
1000
 
        if (flags & NDR_SET_VALUES) {
1001
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1002
 
        }
1003
 
        if (flags & NDR_IN) {
1004
 
                ndr_print_struct(ndr, "in", "GetObject");
1005
 
                ndr->depth++;
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);
1010
 
                ndr->depth++;
1011
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1012
 
                ndr->depth--;
1013
 
                ndr_print_ptr(ndr, "ppObject", r->in.ppObject);
1014
 
                ndr->depth++;
1015
 
                if (r->in.ppObject) {
1016
 
                        ndr_print_ptr(ndr, "ppObject", *r->in.ppObject);
1017
 
                        ndr->depth++;
1018
 
                        if (*r->in.ppObject) {
1019
 
                                ndr_print_MInterfacePointer(ndr, "ppObject", *r->in.ppObject);
1020
 
                        }
1021
 
                        ndr->depth--;
1022
 
                }
1023
 
                ndr->depth--;
1024
 
                ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
1025
 
                ndr->depth++;
1026
 
                if (r->in.ppCallResult) {
1027
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
1028
 
                        ndr->depth++;
1029
 
                        if (*r->in.ppCallResult) {
1030
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
1031
 
                        }
1032
 
                        ndr->depth--;
1033
 
                }
1034
 
                ndr->depth--;
1035
 
                ndr->depth--;
1036
 
        }
1037
 
        if (flags & NDR_OUT) {
1038
 
                ndr_print_struct(ndr, "out", "GetObject");
1039
 
                ndr->depth++;
1040
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1041
 
                ndr->depth++;
1042
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1043
 
                ndr->depth--;
1044
 
                ndr_print_ptr(ndr, "ppObject", r->out.ppObject);
1045
 
                ndr->depth++;
1046
 
                if (r->out.ppObject) {
1047
 
                        ndr_print_ptr(ndr, "ppObject", *r->out.ppObject);
1048
 
                        ndr->depth++;
1049
 
                        if (*r->out.ppObject) {
1050
 
                                ndr_print_MInterfacePointer(ndr, "ppObject", *r->out.ppObject);
1051
 
                        }
1052
 
                        ndr->depth--;
1053
 
                }
1054
 
                ndr->depth--;
1055
 
                ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
1056
 
                ndr->depth++;
1057
 
                if (r->out.ppCallResult) {
1058
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
1059
 
                        ndr->depth++;
1060
 
                        if (*r->out.ppCallResult) {
1061
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
1062
 
                        }
1063
 
                        ndr->depth--;
1064
 
                }
1065
 
                ndr->depth--;
1066
 
                ndr_print_WERROR(ndr, "result", r->out.result);
1067
 
                ndr->depth--;
1068
 
        }
1069
 
        ndr->depth--;
1070
 
}
1071
 
 
1072
 
static enum ndr_err_code ndr_push_GetObjectAsync(struct ndr_push *ndr, int flags, const struct GetObjectAsync *r)
1073
 
{
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");
1080
 
                }
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");
1084
 
                }
1085
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1086
 
        }
1087
 
        if (flags & NDR_OUT) {
1088
 
                if (r->out.ORPCthat == NULL) {
1089
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1090
 
                }
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));
1093
 
        }
1094
 
        return NDR_ERR_SUCCESS;
1095
 
}
1096
 
 
1097
 
static enum ndr_err_code ndr_pull_GetObjectAsync(struct ndr_pull *ndr, int flags, struct GetObjectAsync *r)
1098
 
{
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);
1104
 
 
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);
1110
 
                }
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);
1117
 
                }
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);
1124
 
        }
1125
 
        if (flags & NDR_OUT) {
1126
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1127
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1128
 
                }
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));
1134
 
        }
1135
 
        return NDR_ERR_SUCCESS;
1136
 
}
1137
 
 
1138
 
_PUBLIC_ void ndr_print_GetObjectAsync(struct ndr_print *ndr, const char *name, int flags, const struct GetObjectAsync *r)
1139
 
{
1140
 
        ndr_print_struct(ndr, name, "GetObjectAsync");
1141
 
        if (r == NULL) { ndr_print_null(ndr); return; }
1142
 
        ndr->depth++;
1143
 
        if (flags & NDR_SET_VALUES) {
1144
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1145
 
        }
1146
 
        if (flags & NDR_IN) {
1147
 
                ndr_print_struct(ndr, "in", "GetObjectAsync");
1148
 
                ndr->depth++;
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);
1153
 
                ndr->depth++;
1154
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1155
 
                ndr->depth--;
1156
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
1157
 
                ndr->depth++;
1158
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
1159
 
                ndr->depth--;
1160
 
                ndr->depth--;
1161
 
        }
1162
 
        if (flags & NDR_OUT) {
1163
 
                ndr_print_struct(ndr, "out", "GetObjectAsync");
1164
 
                ndr->depth++;
1165
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1166
 
                ndr->depth++;
1167
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1168
 
                ndr->depth--;
1169
 
                ndr_print_WERROR(ndr, "result", r->out.result);
1170
 
                ndr->depth--;
1171
 
        }
1172
 
        ndr->depth--;
1173
 
}
1174
 
 
1175
 
static enum ndr_err_code ndr_push_PutClass(struct ndr_push *ndr, int flags, const struct PutClass *r)
1176
 
{
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");
1181
 
                }
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");
1186
 
                }
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));
1193
 
                        }
1194
 
                }
1195
 
        }
1196
 
        if (flags & NDR_OUT) {
1197
 
                if (r->out.ORPCthat == NULL) {
1198
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1199
 
                }
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));
1206
 
                        }
1207
 
                }
1208
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1209
 
        }
1210
 
        return NDR_ERR_SUCCESS;
1211
 
}
1212
 
 
1213
 
static enum ndr_err_code ndr_pull_PutClass(struct ndr_pull *ndr, int flags, struct PutClass *r)
1214
 
{
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);
1223
 
 
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);
1227
 
                }
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);
1235
 
                }
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);
1243
 
                } else {
1244
 
                        r->in.ppCallResult = NULL;
1245
 
                }
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);
1252
 
                        } else {
1253
 
                                *r->in.ppCallResult = NULL;
1254
 
                        }
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);
1260
 
                        }
1261
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
1262
 
                }
1263
 
                NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1264
 
                ZERO_STRUCTP(r->out.ORPCthat);
1265
 
        }
1266
 
        if (flags & NDR_OUT) {
1267
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1268
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1269
 
                }
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);
1277
 
                } else {
1278
 
                        r->out.ppCallResult = NULL;
1279
 
                }
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);
1286
 
                        } else {
1287
 
                                *r->out.ppCallResult = NULL;
1288
 
                        }
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);
1294
 
                        }
1295
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
1296
 
                }
1297
 
                NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1298
 
        }
1299
 
        return NDR_ERR_SUCCESS;
1300
 
}
1301
 
 
1302
 
_PUBLIC_ void ndr_print_PutClass(struct ndr_print *ndr, const char *name, int flags, const struct PutClass *r)
1303
 
{
1304
 
        ndr_print_struct(ndr, name, "PutClass");
1305
 
        if (r == NULL) { ndr_print_null(ndr); return; }
1306
 
        ndr->depth++;
1307
 
        if (flags & NDR_SET_VALUES) {
1308
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1309
 
        }
1310
 
        if (flags & NDR_IN) {
1311
 
                ndr_print_struct(ndr, "in", "PutClass");
1312
 
                ndr->depth++;
1313
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1314
 
                ndr_print_ptr(ndr, "pObject", r->in.pObject);
1315
 
                ndr->depth++;
1316
 
                ndr_print_MInterfacePointer(ndr, "pObject", r->in.pObject);
1317
 
                ndr->depth--;
1318
 
                ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1319
 
                ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1320
 
                ndr->depth++;
1321
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1322
 
                ndr->depth--;
1323
 
                ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
1324
 
                ndr->depth++;
1325
 
                if (r->in.ppCallResult) {
1326
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
1327
 
                        ndr->depth++;
1328
 
                        if (*r->in.ppCallResult) {
1329
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
1330
 
                        }
1331
 
                        ndr->depth--;
1332
 
                }
1333
 
                ndr->depth--;
1334
 
                ndr->depth--;
1335
 
        }
1336
 
        if (flags & NDR_OUT) {
1337
 
                ndr_print_struct(ndr, "out", "PutClass");
1338
 
                ndr->depth++;
1339
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1340
 
                ndr->depth++;
1341
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1342
 
                ndr->depth--;
1343
 
                ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
1344
 
                ndr->depth++;
1345
 
                if (r->out.ppCallResult) {
1346
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
1347
 
                        ndr->depth++;
1348
 
                        if (*r->out.ppCallResult) {
1349
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
1350
 
                        }
1351
 
                        ndr->depth--;
1352
 
                }
1353
 
                ndr->depth--;
1354
 
                ndr_print_WERROR(ndr, "result", r->out.result);
1355
 
                ndr->depth--;
1356
 
        }
1357
 
        ndr->depth--;
1358
 
}
1359
 
 
1360
 
static enum ndr_err_code ndr_push_PutClassAsync(struct ndr_push *ndr, int flags, const struct PutClassAsync *r)
1361
 
{
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");
1366
 
                }
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");
1371
 
                }
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");
1375
 
                }
1376
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1377
 
        }
1378
 
        if (flags & NDR_OUT) {
1379
 
                if (r->out.ORPCthat == NULL) {
1380
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1381
 
                }
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));
1384
 
        }
1385
 
        return NDR_ERR_SUCCESS;
1386
 
}
1387
 
 
1388
 
static enum ndr_err_code ndr_pull_PutClassAsync(struct ndr_pull *ndr, int flags, struct PutClassAsync *r)
1389
 
{
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);
1396
 
 
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);
1400
 
                }
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);
1408
 
                }
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);
1415
 
                }
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);
1422
 
        }
1423
 
        if (flags & NDR_OUT) {
1424
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1425
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1426
 
                }
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));
1432
 
        }
1433
 
        return NDR_ERR_SUCCESS;
1434
 
}
1435
 
 
1436
 
_PUBLIC_ void ndr_print_PutClassAsync(struct ndr_print *ndr, const char *name, int flags, const struct PutClassAsync *r)
1437
 
{
1438
 
        ndr_print_struct(ndr, name, "PutClassAsync");
1439
 
        if (r == NULL) { ndr_print_null(ndr); return; }
1440
 
        ndr->depth++;
1441
 
        if (flags & NDR_SET_VALUES) {
1442
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1443
 
        }
1444
 
        if (flags & NDR_IN) {
1445
 
                ndr_print_struct(ndr, "in", "PutClassAsync");
1446
 
                ndr->depth++;
1447
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
1448
 
                ndr_print_ptr(ndr, "pObject", r->in.pObject);
1449
 
                ndr->depth++;
1450
 
                ndr_print_MInterfacePointer(ndr, "pObject", r->in.pObject);
1451
 
                ndr->depth--;
1452
 
                ndr_print_int32(ndr, "lFlags", r->in.lFlags);
1453
 
                ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
1454
 
                ndr->depth++;
1455
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1456
 
                ndr->depth--;
1457
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
1458
 
                ndr->depth++;
1459
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
1460
 
                ndr->depth--;
1461
 
                ndr->depth--;
1462
 
        }
1463
 
        if (flags & NDR_OUT) {
1464
 
                ndr_print_struct(ndr, "out", "PutClassAsync");
1465
 
                ndr->depth++;
1466
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1467
 
                ndr->depth++;
1468
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1469
 
                ndr->depth--;
1470
 
                ndr_print_WERROR(ndr, "result", r->out.result);
1471
 
                ndr->depth--;
1472
 
        }
1473
 
        ndr->depth--;
1474
 
}
1475
 
 
1476
 
static enum ndr_err_code ndr_push_DeleteClass(struct ndr_push *ndr, int flags, const struct DeleteClass *r)
1477
 
{
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");
1484
 
                }
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));
1491
 
                        }
1492
 
                }
1493
 
        }
1494
 
        if (flags & NDR_OUT) {
1495
 
                if (r->out.ORPCthat == NULL) {
1496
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1497
 
                }
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));
1504
 
                        }
1505
 
                }
1506
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1507
 
        }
1508
 
        return NDR_ERR_SUCCESS;
1509
 
}
1510
 
 
1511
 
static enum ndr_err_code ndr_pull_DeleteClass(struct ndr_pull *ndr, int flags, struct DeleteClass *r)
1512
 
{
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);
1520
 
 
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);
1526
 
                }
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);
1534
 
                } else {
1535
 
                        r->in.ppCallResult = NULL;
1536
 
                }
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);
1543
 
                        } else {
1544
 
                                *r->in.ppCallResult = NULL;
1545
 
                        }
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);
1551
 
                        }
1552
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
1553
 
                }
1554
 
                NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1555
 
                ZERO_STRUCTP(r->out.ORPCthat);
1556
 
        }
1557
 
        if (flags & NDR_OUT) {
1558
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1559
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1560
 
                }
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);
1568
 
                } else {
1569
 
                        r->out.ppCallResult = NULL;
1570
 
                }
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);
1577
 
                        } else {
1578
 
                                *r->out.ppCallResult = NULL;
1579
 
                        }
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);
1585
 
                        }
1586
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
1587
 
                }
1588
 
                NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
1589
 
        }
1590
 
        return NDR_ERR_SUCCESS;
1591
 
}
1592
 
 
1593
 
_PUBLIC_ void ndr_print_DeleteClass(struct ndr_print *ndr, const char *name, int flags, const struct DeleteClass *r)
1594
 
{
1595
 
        ndr_print_struct(ndr, name, "DeleteClass");
1596
 
        if (r == NULL) { ndr_print_null(ndr); return; }
1597
 
        ndr->depth++;
1598
 
        if (flags & NDR_SET_VALUES) {
1599
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1600
 
        }
1601
 
        if (flags & NDR_IN) {
1602
 
                ndr_print_struct(ndr, "in", "DeleteClass");
1603
 
                ndr->depth++;
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);
1608
 
                ndr->depth++;
1609
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1610
 
                ndr->depth--;
1611
 
                ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
1612
 
                ndr->depth++;
1613
 
                if (r->in.ppCallResult) {
1614
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
1615
 
                        ndr->depth++;
1616
 
                        if (*r->in.ppCallResult) {
1617
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
1618
 
                        }
1619
 
                        ndr->depth--;
1620
 
                }
1621
 
                ndr->depth--;
1622
 
                ndr->depth--;
1623
 
        }
1624
 
        if (flags & NDR_OUT) {
1625
 
                ndr_print_struct(ndr, "out", "DeleteClass");
1626
 
                ndr->depth++;
1627
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1628
 
                ndr->depth++;
1629
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1630
 
                ndr->depth--;
1631
 
                ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
1632
 
                ndr->depth++;
1633
 
                if (r->out.ppCallResult) {
1634
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
1635
 
                        ndr->depth++;
1636
 
                        if (*r->out.ppCallResult) {
1637
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
1638
 
                        }
1639
 
                        ndr->depth--;
1640
 
                }
1641
 
                ndr->depth--;
1642
 
                ndr_print_WERROR(ndr, "result", r->out.result);
1643
 
                ndr->depth--;
1644
 
        }
1645
 
        ndr->depth--;
1646
 
}
1647
 
 
1648
 
static enum ndr_err_code ndr_push_DeleteClassAsync(struct ndr_push *ndr, int flags, const struct DeleteClassAsync *r)
1649
 
{
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");
1656
 
                }
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");
1660
 
                }
1661
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1662
 
        }
1663
 
        if (flags & NDR_OUT) {
1664
 
                if (r->out.ORPCthat == NULL) {
1665
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1666
 
                }
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));
1669
 
        }
1670
 
        return NDR_ERR_SUCCESS;
1671
 
}
1672
 
 
1673
 
static enum ndr_err_code ndr_pull_DeleteClassAsync(struct ndr_pull *ndr, int flags, struct DeleteClassAsync *r)
1674
 
{
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);
1680
 
 
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);
1686
 
                }
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);
1693
 
                }
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);
1700
 
        }
1701
 
        if (flags & NDR_OUT) {
1702
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1703
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1704
 
                }
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));
1710
 
        }
1711
 
        return NDR_ERR_SUCCESS;
1712
 
}
1713
 
 
1714
 
_PUBLIC_ void ndr_print_DeleteClassAsync(struct ndr_print *ndr, const char *name, int flags, const struct DeleteClassAsync *r)
1715
 
{
1716
 
        ndr_print_struct(ndr, name, "DeleteClassAsync");
1717
 
        if (r == NULL) { ndr_print_null(ndr); return; }
1718
 
        ndr->depth++;
1719
 
        if (flags & NDR_SET_VALUES) {
1720
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1721
 
        }
1722
 
        if (flags & NDR_IN) {
1723
 
                ndr_print_struct(ndr, "in", "DeleteClassAsync");
1724
 
                ndr->depth++;
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);
1729
 
                ndr->depth++;
1730
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1731
 
                ndr->depth--;
1732
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
1733
 
                ndr->depth++;
1734
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
1735
 
                ndr->depth--;
1736
 
                ndr->depth--;
1737
 
        }
1738
 
        if (flags & NDR_OUT) {
1739
 
                ndr_print_struct(ndr, "out", "DeleteClassAsync");
1740
 
                ndr->depth++;
1741
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1742
 
                ndr->depth++;
1743
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1744
 
                ndr->depth--;
1745
 
                ndr_print_WERROR(ndr, "result", r->out.result);
1746
 
                ndr->depth--;
1747
 
        }
1748
 
        ndr->depth--;
1749
 
}
1750
 
 
1751
 
static enum ndr_err_code ndr_push_CreateClassEnum(struct ndr_push *ndr, int flags, const struct CreateClassEnum *r)
1752
 
{
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");
1759
 
                }
1760
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
1761
 
        }
1762
 
        if (flags & NDR_OUT) {
1763
 
                if (r->out.ORPCthat == NULL) {
1764
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1765
 
                }
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");
1769
 
                }
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));
1773
 
                }
1774
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
1775
 
        }
1776
 
        return NDR_ERR_SUCCESS;
1777
 
}
1778
 
 
1779
 
static enum ndr_err_code ndr_pull_CreateClassEnum(struct ndr_pull *ndr, int flags, struct CreateClassEnum *r)
1780
 
{
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);
1788
 
 
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);
1794
 
                }
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);
1803
 
        }
1804
 
        if (flags & NDR_OUT) {
1805
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1806
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1807
 
                }
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);
1814
 
                }
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));
1818
 
                if (_ptr_ppEnum) {
1819
 
                        NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
1820
 
                } else {
1821
 
                        *r->out.ppEnum = NULL;
1822
 
                }
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);
1828
 
                }
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));
1831
 
        }
1832
 
        return NDR_ERR_SUCCESS;
1833
 
}
1834
 
 
1835
 
_PUBLIC_ void ndr_print_CreateClassEnum(struct ndr_print *ndr, const char *name, int flags, const struct CreateClassEnum *r)
1836
 
{
1837
 
        ndr_print_struct(ndr, name, "CreateClassEnum");
1838
 
        if (r == NULL) { ndr_print_null(ndr); return; }
1839
 
        ndr->depth++;
1840
 
        if (flags & NDR_SET_VALUES) {
1841
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1842
 
        }
1843
 
        if (flags & NDR_IN) {
1844
 
                ndr_print_struct(ndr, "in", "CreateClassEnum");
1845
 
                ndr->depth++;
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);
1850
 
                ndr->depth++;
1851
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1852
 
                ndr->depth--;
1853
 
                ndr->depth--;
1854
 
        }
1855
 
        if (flags & NDR_OUT) {
1856
 
                ndr_print_struct(ndr, "out", "CreateClassEnum");
1857
 
                ndr->depth++;
1858
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1859
 
                ndr->depth++;
1860
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1861
 
                ndr->depth--;
1862
 
                ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
1863
 
                ndr->depth++;
1864
 
                ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
1865
 
                ndr->depth++;
1866
 
                if (*r->out.ppEnum) {
1867
 
                        ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
1868
 
                }
1869
 
                ndr->depth--;
1870
 
                ndr->depth--;
1871
 
                ndr_print_WERROR(ndr, "result", r->out.result);
1872
 
                ndr->depth--;
1873
 
        }
1874
 
        ndr->depth--;
1875
 
}
1876
 
 
1877
 
static enum ndr_err_code ndr_push_CreateClassEnumAsync(struct ndr_push *ndr, int flags, const struct CreateClassEnumAsync *r)
1878
 
{
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");
1885
 
                }
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");
1889
 
                }
1890
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
1891
 
        }
1892
 
        if (flags & NDR_OUT) {
1893
 
                if (r->out.ORPCthat == NULL) {
1894
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1895
 
                }
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));
1898
 
        }
1899
 
        return NDR_ERR_SUCCESS;
1900
 
}
1901
 
 
1902
 
static enum ndr_err_code ndr_pull_CreateClassEnumAsync(struct ndr_pull *ndr, int flags, struct CreateClassEnumAsync *r)
1903
 
{
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);
1909
 
 
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);
1915
 
                }
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);
1922
 
                }
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);
1929
 
        }
1930
 
        if (flags & NDR_OUT) {
1931
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1932
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
1933
 
                }
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));
1939
 
        }
1940
 
        return NDR_ERR_SUCCESS;
1941
 
}
1942
 
 
1943
 
_PUBLIC_ void ndr_print_CreateClassEnumAsync(struct ndr_print *ndr, const char *name, int flags, const struct CreateClassEnumAsync *r)
1944
 
{
1945
 
        ndr_print_struct(ndr, name, "CreateClassEnumAsync");
1946
 
        if (r == NULL) { ndr_print_null(ndr); return; }
1947
 
        ndr->depth++;
1948
 
        if (flags & NDR_SET_VALUES) {
1949
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1950
 
        }
1951
 
        if (flags & NDR_IN) {
1952
 
                ndr_print_struct(ndr, "in", "CreateClassEnumAsync");
1953
 
                ndr->depth++;
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);
1958
 
                ndr->depth++;
1959
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
1960
 
                ndr->depth--;
1961
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
1962
 
                ndr->depth++;
1963
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
1964
 
                ndr->depth--;
1965
 
                ndr->depth--;
1966
 
        }
1967
 
        if (flags & NDR_OUT) {
1968
 
                ndr_print_struct(ndr, "out", "CreateClassEnumAsync");
1969
 
                ndr->depth++;
1970
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
1971
 
                ndr->depth++;
1972
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
1973
 
                ndr->depth--;
1974
 
                ndr_print_WERROR(ndr, "result", r->out.result);
1975
 
                ndr->depth--;
1976
 
        }
1977
 
        ndr->depth--;
1978
 
}
1979
 
 
1980
 
static enum ndr_err_code ndr_push_PutInstance(struct ndr_push *ndr, int flags, const struct PutInstance *r)
1981
 
{
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");
1986
 
                }
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");
1991
 
                }
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));
1998
 
                        }
1999
 
                }
2000
 
        }
2001
 
        if (flags & NDR_OUT) {
2002
 
                if (r->out.ORPCthat == NULL) {
2003
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2004
 
                }
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));
2011
 
                        }
2012
 
                }
2013
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2014
 
        }
2015
 
        return NDR_ERR_SUCCESS;
2016
 
}
2017
 
 
2018
 
static enum ndr_err_code ndr_pull_PutInstance(struct ndr_pull *ndr, int flags, struct PutInstance *r)
2019
 
{
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);
2028
 
 
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);
2032
 
                }
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);
2040
 
                }
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);
2048
 
                } else {
2049
 
                        r->in.ppCallResult = NULL;
2050
 
                }
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);
2057
 
                        } else {
2058
 
                                *r->in.ppCallResult = NULL;
2059
 
                        }
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);
2065
 
                        }
2066
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
2067
 
                }
2068
 
                NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2069
 
                ZERO_STRUCTP(r->out.ORPCthat);
2070
 
        }
2071
 
        if (flags & NDR_OUT) {
2072
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2073
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2074
 
                }
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);
2082
 
                } else {
2083
 
                        r->out.ppCallResult = NULL;
2084
 
                }
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);
2091
 
                        } else {
2092
 
                                *r->out.ppCallResult = NULL;
2093
 
                        }
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);
2099
 
                        }
2100
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
2101
 
                }
2102
 
                NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2103
 
        }
2104
 
        return NDR_ERR_SUCCESS;
2105
 
}
2106
 
 
2107
 
_PUBLIC_ void ndr_print_PutInstance(struct ndr_print *ndr, const char *name, int flags, const struct PutInstance *r)
2108
 
{
2109
 
        ndr_print_struct(ndr, name, "PutInstance");
2110
 
        if (r == NULL) { ndr_print_null(ndr); return; }
2111
 
        ndr->depth++;
2112
 
        if (flags & NDR_SET_VALUES) {
2113
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2114
 
        }
2115
 
        if (flags & NDR_IN) {
2116
 
                ndr_print_struct(ndr, "in", "PutInstance");
2117
 
                ndr->depth++;
2118
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
2119
 
                ndr_print_ptr(ndr, "pInst", r->in.pInst);
2120
 
                ndr->depth++;
2121
 
                ndr_print_MInterfacePointer(ndr, "pInst", r->in.pInst);
2122
 
                ndr->depth--;
2123
 
                ndr_print_int32(ndr, "lFlags", r->in.lFlags);
2124
 
                ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
2125
 
                ndr->depth++;
2126
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2127
 
                ndr->depth--;
2128
 
                ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
2129
 
                ndr->depth++;
2130
 
                if (r->in.ppCallResult) {
2131
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
2132
 
                        ndr->depth++;
2133
 
                        if (*r->in.ppCallResult) {
2134
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
2135
 
                        }
2136
 
                        ndr->depth--;
2137
 
                }
2138
 
                ndr->depth--;
2139
 
                ndr->depth--;
2140
 
        }
2141
 
        if (flags & NDR_OUT) {
2142
 
                ndr_print_struct(ndr, "out", "PutInstance");
2143
 
                ndr->depth++;
2144
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2145
 
                ndr->depth++;
2146
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2147
 
                ndr->depth--;
2148
 
                ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
2149
 
                ndr->depth++;
2150
 
                if (r->out.ppCallResult) {
2151
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
2152
 
                        ndr->depth++;
2153
 
                        if (*r->out.ppCallResult) {
2154
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
2155
 
                        }
2156
 
                        ndr->depth--;
2157
 
                }
2158
 
                ndr->depth--;
2159
 
                ndr_print_WERROR(ndr, "result", r->out.result);
2160
 
                ndr->depth--;
2161
 
        }
2162
 
        ndr->depth--;
2163
 
}
2164
 
 
2165
 
static enum ndr_err_code ndr_push_PutInstanceAsync(struct ndr_push *ndr, int flags, const struct PutInstanceAsync *r)
2166
 
{
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");
2171
 
                }
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");
2176
 
                }
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");
2180
 
                }
2181
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2182
 
        }
2183
 
        if (flags & NDR_OUT) {
2184
 
                if (r->out.ORPCthat == NULL) {
2185
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2186
 
                }
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));
2189
 
        }
2190
 
        return NDR_ERR_SUCCESS;
2191
 
}
2192
 
 
2193
 
static enum ndr_err_code ndr_pull_PutInstanceAsync(struct ndr_pull *ndr, int flags, struct PutInstanceAsync *r)
2194
 
{
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);
2201
 
 
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);
2205
 
                }
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);
2213
 
                }
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);
2220
 
                }
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);
2227
 
        }
2228
 
        if (flags & NDR_OUT) {
2229
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2230
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2231
 
                }
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));
2237
 
        }
2238
 
        return NDR_ERR_SUCCESS;
2239
 
}
2240
 
 
2241
 
_PUBLIC_ void ndr_print_PutInstanceAsync(struct ndr_print *ndr, const char *name, int flags, const struct PutInstanceAsync *r)
2242
 
{
2243
 
        ndr_print_struct(ndr, name, "PutInstanceAsync");
2244
 
        if (r == NULL) { ndr_print_null(ndr); return; }
2245
 
        ndr->depth++;
2246
 
        if (flags & NDR_SET_VALUES) {
2247
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2248
 
        }
2249
 
        if (flags & NDR_IN) {
2250
 
                ndr_print_struct(ndr, "in", "PutInstanceAsync");
2251
 
                ndr->depth++;
2252
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
2253
 
                ndr_print_ptr(ndr, "pInst", r->in.pInst);
2254
 
                ndr->depth++;
2255
 
                ndr_print_MInterfacePointer(ndr, "pInst", r->in.pInst);
2256
 
                ndr->depth--;
2257
 
                ndr_print_int32(ndr, "lFlags", r->in.lFlags);
2258
 
                ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
2259
 
                ndr->depth++;
2260
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2261
 
                ndr->depth--;
2262
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
2263
 
                ndr->depth++;
2264
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
2265
 
                ndr->depth--;
2266
 
                ndr->depth--;
2267
 
        }
2268
 
        if (flags & NDR_OUT) {
2269
 
                ndr_print_struct(ndr, "out", "PutInstanceAsync");
2270
 
                ndr->depth++;
2271
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2272
 
                ndr->depth++;
2273
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2274
 
                ndr->depth--;
2275
 
                ndr_print_WERROR(ndr, "result", r->out.result);
2276
 
                ndr->depth--;
2277
 
        }
2278
 
        ndr->depth--;
2279
 
}
2280
 
 
2281
 
static enum ndr_err_code ndr_push_DeleteInstance(struct ndr_push *ndr, int flags, const struct DeleteInstance *r)
2282
 
{
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");
2289
 
                }
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));
2296
 
                        }
2297
 
                }
2298
 
        }
2299
 
        if (flags & NDR_OUT) {
2300
 
                if (r->out.ORPCthat == NULL) {
2301
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2302
 
                }
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));
2309
 
                        }
2310
 
                }
2311
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2312
 
        }
2313
 
        return NDR_ERR_SUCCESS;
2314
 
}
2315
 
 
2316
 
static enum ndr_err_code ndr_pull_DeleteInstance(struct ndr_pull *ndr, int flags, struct DeleteInstance *r)
2317
 
{
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);
2325
 
 
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);
2331
 
                }
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);
2339
 
                } else {
2340
 
                        r->in.ppCallResult = NULL;
2341
 
                }
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);
2348
 
                        } else {
2349
 
                                *r->in.ppCallResult = NULL;
2350
 
                        }
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);
2356
 
                        }
2357
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
2358
 
                }
2359
 
                NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2360
 
                ZERO_STRUCTP(r->out.ORPCthat);
2361
 
        }
2362
 
        if (flags & NDR_OUT) {
2363
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2364
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2365
 
                }
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);
2373
 
                } else {
2374
 
                        r->out.ppCallResult = NULL;
2375
 
                }
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);
2382
 
                        } else {
2383
 
                                *r->out.ppCallResult = NULL;
2384
 
                        }
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);
2390
 
                        }
2391
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
2392
 
                }
2393
 
                NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
2394
 
        }
2395
 
        return NDR_ERR_SUCCESS;
2396
 
}
2397
 
 
2398
 
_PUBLIC_ void ndr_print_DeleteInstance(struct ndr_print *ndr, const char *name, int flags, const struct DeleteInstance *r)
2399
 
{
2400
 
        ndr_print_struct(ndr, name, "DeleteInstance");
2401
 
        if (r == NULL) { ndr_print_null(ndr); return; }
2402
 
        ndr->depth++;
2403
 
        if (flags & NDR_SET_VALUES) {
2404
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2405
 
        }
2406
 
        if (flags & NDR_IN) {
2407
 
                ndr_print_struct(ndr, "in", "DeleteInstance");
2408
 
                ndr->depth++;
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);
2413
 
                ndr->depth++;
2414
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2415
 
                ndr->depth--;
2416
 
                ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
2417
 
                ndr->depth++;
2418
 
                if (r->in.ppCallResult) {
2419
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
2420
 
                        ndr->depth++;
2421
 
                        if (*r->in.ppCallResult) {
2422
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
2423
 
                        }
2424
 
                        ndr->depth--;
2425
 
                }
2426
 
                ndr->depth--;
2427
 
                ndr->depth--;
2428
 
        }
2429
 
        if (flags & NDR_OUT) {
2430
 
                ndr_print_struct(ndr, "out", "DeleteInstance");
2431
 
                ndr->depth++;
2432
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2433
 
                ndr->depth++;
2434
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2435
 
                ndr->depth--;
2436
 
                ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
2437
 
                ndr->depth++;
2438
 
                if (r->out.ppCallResult) {
2439
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
2440
 
                        ndr->depth++;
2441
 
                        if (*r->out.ppCallResult) {
2442
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
2443
 
                        }
2444
 
                        ndr->depth--;
2445
 
                }
2446
 
                ndr->depth--;
2447
 
                ndr_print_WERROR(ndr, "result", r->out.result);
2448
 
                ndr->depth--;
2449
 
        }
2450
 
        ndr->depth--;
2451
 
}
2452
 
 
2453
 
static enum ndr_err_code ndr_push_DeleteInstanceAsync(struct ndr_push *ndr, int flags, const struct DeleteInstanceAsync *r)
2454
 
{
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");
2461
 
                }
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");
2465
 
                }
2466
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2467
 
        }
2468
 
        if (flags & NDR_OUT) {
2469
 
                if (r->out.ORPCthat == NULL) {
2470
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2471
 
                }
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));
2474
 
        }
2475
 
        return NDR_ERR_SUCCESS;
2476
 
}
2477
 
 
2478
 
static enum ndr_err_code ndr_pull_DeleteInstanceAsync(struct ndr_pull *ndr, int flags, struct DeleteInstanceAsync *r)
2479
 
{
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);
2485
 
 
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);
2491
 
                }
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);
2498
 
                }
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);
2505
 
        }
2506
 
        if (flags & NDR_OUT) {
2507
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2508
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2509
 
                }
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));
2515
 
        }
2516
 
        return NDR_ERR_SUCCESS;
2517
 
}
2518
 
 
2519
 
_PUBLIC_ void ndr_print_DeleteInstanceAsync(struct ndr_print *ndr, const char *name, int flags, const struct DeleteInstanceAsync *r)
2520
 
{
2521
 
        ndr_print_struct(ndr, name, "DeleteInstanceAsync");
2522
 
        if (r == NULL) { ndr_print_null(ndr); return; }
2523
 
        ndr->depth++;
2524
 
        if (flags & NDR_SET_VALUES) {
2525
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2526
 
        }
2527
 
        if (flags & NDR_IN) {
2528
 
                ndr_print_struct(ndr, "in", "DeleteInstanceAsync");
2529
 
                ndr->depth++;
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);
2534
 
                ndr->depth++;
2535
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2536
 
                ndr->depth--;
2537
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
2538
 
                ndr->depth++;
2539
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
2540
 
                ndr->depth--;
2541
 
                ndr->depth--;
2542
 
        }
2543
 
        if (flags & NDR_OUT) {
2544
 
                ndr_print_struct(ndr, "out", "DeleteInstanceAsync");
2545
 
                ndr->depth++;
2546
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2547
 
                ndr->depth++;
2548
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2549
 
                ndr->depth--;
2550
 
                ndr_print_WERROR(ndr, "result", r->out.result);
2551
 
                ndr->depth--;
2552
 
        }
2553
 
        ndr->depth--;
2554
 
}
2555
 
 
2556
 
static enum ndr_err_code ndr_push_CreateInstanceEnum(struct ndr_push *ndr, int flags, const struct CreateInstanceEnum *r)
2557
 
{
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));
2563
 
                if (r->in.pCtx) {
2564
 
                        NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2565
 
                }
2566
 
        }
2567
 
        if (flags & NDR_OUT) {
2568
 
                if (r->out.ORPCthat == NULL) {
2569
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2570
 
                }
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");
2574
 
                }
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));
2578
 
                }
2579
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2580
 
        }
2581
 
        return NDR_ERR_SUCCESS;
2582
 
}
2583
 
 
2584
 
static enum ndr_err_code ndr_pull_CreateInstanceEnum(struct ndr_pull *ndr, int flags, struct CreateInstanceEnum *r)
2585
 
{
2586
 
        uint32_t _ptr_pCtx;
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);
2594
 
 
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));
2599
 
                if (_ptr_pCtx) {
2600
 
                        NDR_PULL_ALLOC(ndr, r->in.pCtx);
2601
 
                } else {
2602
 
                        r->in.pCtx = NULL;
2603
 
                }
2604
 
                if (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);
2609
 
                }
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);
2614
 
        }
2615
 
        if (flags & NDR_OUT) {
2616
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2617
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2618
 
                }
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);
2625
 
                }
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));
2629
 
                if (_ptr_ppEnum) {
2630
 
                        NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
2631
 
                } else {
2632
 
                        *r->out.ppEnum = NULL;
2633
 
                }
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);
2639
 
                }
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));
2642
 
        }
2643
 
        return NDR_ERR_SUCCESS;
2644
 
}
2645
 
 
2646
 
_PUBLIC_ void ndr_print_CreateInstanceEnum(struct ndr_print *ndr, const char *name, int flags, const struct CreateInstanceEnum *r)
2647
 
{
2648
 
        ndr_print_struct(ndr, name, "CreateInstanceEnum");
2649
 
        if (r == NULL) { ndr_print_null(ndr); return; }
2650
 
        ndr->depth++;
2651
 
        if (flags & NDR_SET_VALUES) {
2652
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2653
 
        }
2654
 
        if (flags & NDR_IN) {
2655
 
                ndr_print_struct(ndr, "in", "CreateInstanceEnum");
2656
 
                ndr->depth++;
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);
2661
 
                ndr->depth++;
2662
 
                if (r->in.pCtx) {
2663
 
                        ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2664
 
                }
2665
 
                ndr->depth--;
2666
 
                ndr->depth--;
2667
 
        }
2668
 
        if (flags & NDR_OUT) {
2669
 
                ndr_print_struct(ndr, "out", "CreateInstanceEnum");
2670
 
                ndr->depth++;
2671
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2672
 
                ndr->depth++;
2673
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2674
 
                ndr->depth--;
2675
 
                ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
2676
 
                ndr->depth++;
2677
 
                ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
2678
 
                ndr->depth++;
2679
 
                if (*r->out.ppEnum) {
2680
 
                        ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
2681
 
                }
2682
 
                ndr->depth--;
2683
 
                ndr->depth--;
2684
 
                ndr_print_WERROR(ndr, "result", r->out.result);
2685
 
                ndr->depth--;
2686
 
        }
2687
 
        ndr->depth--;
2688
 
}
2689
 
 
2690
 
static enum ndr_err_code ndr_push_CreateInstanceEnumAsync(struct ndr_push *ndr, int flags, const struct CreateInstanceEnumAsync *r)
2691
 
{
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");
2698
 
                }
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");
2702
 
                }
2703
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2704
 
        }
2705
 
        if (flags & NDR_OUT) {
2706
 
                if (r->out.ORPCthat == NULL) {
2707
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2708
 
                }
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));
2711
 
        }
2712
 
        return NDR_ERR_SUCCESS;
2713
 
}
2714
 
 
2715
 
static enum ndr_err_code ndr_pull_CreateInstanceEnumAsync(struct ndr_pull *ndr, int flags, struct CreateInstanceEnumAsync *r)
2716
 
{
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);
2722
 
 
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);
2728
 
                }
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);
2735
 
                }
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);
2742
 
        }
2743
 
        if (flags & NDR_OUT) {
2744
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2745
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2746
 
                }
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));
2752
 
        }
2753
 
        return NDR_ERR_SUCCESS;
2754
 
}
2755
 
 
2756
 
_PUBLIC_ void ndr_print_CreateInstanceEnumAsync(struct ndr_print *ndr, const char *name, int flags, const struct CreateInstanceEnumAsync *r)
2757
 
{
2758
 
        ndr_print_struct(ndr, name, "CreateInstanceEnumAsync");
2759
 
        if (r == NULL) { ndr_print_null(ndr); return; }
2760
 
        ndr->depth++;
2761
 
        if (flags & NDR_SET_VALUES) {
2762
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2763
 
        }
2764
 
        if (flags & NDR_IN) {
2765
 
                ndr_print_struct(ndr, "in", "CreateInstanceEnumAsync");
2766
 
                ndr->depth++;
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);
2771
 
                ndr->depth++;
2772
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2773
 
                ndr->depth--;
2774
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
2775
 
                ndr->depth++;
2776
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
2777
 
                ndr->depth--;
2778
 
                ndr->depth--;
2779
 
        }
2780
 
        if (flags & NDR_OUT) {
2781
 
                ndr_print_struct(ndr, "out", "CreateInstanceEnumAsync");
2782
 
                ndr->depth++;
2783
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2784
 
                ndr->depth++;
2785
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2786
 
                ndr->depth--;
2787
 
                ndr_print_WERROR(ndr, "result", r->out.result);
2788
 
                ndr->depth--;
2789
 
        }
2790
 
        ndr->depth--;
2791
 
}
2792
 
 
2793
 
static enum ndr_err_code ndr_push_ExecQuery(struct ndr_push *ndr, int flags, const struct ExecQuery *r)
2794
 
{
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));
2801
 
                if (r->in.pCtx) {
2802
 
                        NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
2803
 
                }
2804
 
        }
2805
 
        if (flags & NDR_OUT) {
2806
 
                if (r->out.ORPCthat == NULL) {
2807
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2808
 
                }
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");
2812
 
                }
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));
2816
 
                }
2817
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
2818
 
        }
2819
 
        return NDR_ERR_SUCCESS;
2820
 
}
2821
 
 
2822
 
static enum ndr_err_code ndr_pull_ExecQuery(struct ndr_pull *ndr, int flags, struct ExecQuery *r)
2823
 
{
2824
 
        uint32_t _ptr_pCtx;
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);
2832
 
 
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));
2838
 
                if (_ptr_pCtx) {
2839
 
                        NDR_PULL_ALLOC(ndr, r->in.pCtx);
2840
 
                } else {
2841
 
                        r->in.pCtx = NULL;
2842
 
                }
2843
 
                if (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);
2848
 
                }
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);
2853
 
        }
2854
 
        if (flags & NDR_OUT) {
2855
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2856
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2857
 
                }
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);
2864
 
                }
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));
2868
 
                if (_ptr_ppEnum) {
2869
 
                        NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
2870
 
                } else {
2871
 
                        *r->out.ppEnum = NULL;
2872
 
                }
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);
2878
 
                }
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));
2881
 
        }
2882
 
        return NDR_ERR_SUCCESS;
2883
 
}
2884
 
 
2885
 
_PUBLIC_ void ndr_print_ExecQuery(struct ndr_print *ndr, const char *name, int flags, const struct ExecQuery *r)
2886
 
{
2887
 
        ndr_print_struct(ndr, name, "ExecQuery");
2888
 
        if (r == NULL) { ndr_print_null(ndr); return; }
2889
 
        ndr->depth++;
2890
 
        if (flags & NDR_SET_VALUES) {
2891
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2892
 
        }
2893
 
        if (flags & NDR_IN) {
2894
 
                ndr_print_struct(ndr, "in", "ExecQuery");
2895
 
                ndr->depth++;
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);
2901
 
                ndr->depth++;
2902
 
                if (r->in.pCtx) {
2903
 
                        ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
2904
 
                }
2905
 
                ndr->depth--;
2906
 
                ndr->depth--;
2907
 
        }
2908
 
        if (flags & NDR_OUT) {
2909
 
                ndr_print_struct(ndr, "out", "ExecQuery");
2910
 
                ndr->depth++;
2911
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
2912
 
                ndr->depth++;
2913
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
2914
 
                ndr->depth--;
2915
 
                ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
2916
 
                ndr->depth++;
2917
 
                ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
2918
 
                ndr->depth++;
2919
 
                if (*r->out.ppEnum) {
2920
 
                        ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
2921
 
                }
2922
 
                ndr->depth--;
2923
 
                ndr->depth--;
2924
 
                ndr_print_WERROR(ndr, "result", r->out.result);
2925
 
                ndr->depth--;
2926
 
        }
2927
 
        ndr->depth--;
2928
 
}
2929
 
 
2930
 
static enum ndr_err_code ndr_push_ExecQueryAsync(struct ndr_push *ndr, int flags, const struct ExecQueryAsync *r)
2931
 
{
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");
2939
 
                }
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");
2943
 
                }
2944
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
2945
 
        }
2946
 
        if (flags & NDR_OUT) {
2947
 
                if (r->out.ORPCthat == NULL) {
2948
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2949
 
                }
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));
2952
 
        }
2953
 
        return NDR_ERR_SUCCESS;
2954
 
}
2955
 
 
2956
 
static enum ndr_err_code ndr_pull_ExecQueryAsync(struct ndr_pull *ndr, int flags, struct ExecQueryAsync *r)
2957
 
{
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);
2963
 
 
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);
2970
 
                }
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);
2977
 
                }
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);
2984
 
        }
2985
 
        if (flags & NDR_OUT) {
2986
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2987
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
2988
 
                }
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));
2994
 
        }
2995
 
        return NDR_ERR_SUCCESS;
2996
 
}
2997
 
 
2998
 
_PUBLIC_ void ndr_print_ExecQueryAsync(struct ndr_print *ndr, const char *name, int flags, const struct ExecQueryAsync *r)
2999
 
{
3000
 
        ndr_print_struct(ndr, name, "ExecQueryAsync");
3001
 
        if (r == NULL) { ndr_print_null(ndr); return; }
3002
 
        ndr->depth++;
3003
 
        if (flags & NDR_SET_VALUES) {
3004
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3005
 
        }
3006
 
        if (flags & NDR_IN) {
3007
 
                ndr_print_struct(ndr, "in", "ExecQueryAsync");
3008
 
                ndr->depth++;
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);
3014
 
                ndr->depth++;
3015
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3016
 
                ndr->depth--;
3017
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
3018
 
                ndr->depth++;
3019
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
3020
 
                ndr->depth--;
3021
 
                ndr->depth--;
3022
 
        }
3023
 
        if (flags & NDR_OUT) {
3024
 
                ndr_print_struct(ndr, "out", "ExecQueryAsync");
3025
 
                ndr->depth++;
3026
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3027
 
                ndr->depth++;
3028
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3029
 
                ndr->depth--;
3030
 
                ndr_print_WERROR(ndr, "result", r->out.result);
3031
 
                ndr->depth--;
3032
 
        }
3033
 
        ndr->depth--;
3034
 
}
3035
 
 
3036
 
static enum ndr_err_code ndr_push_ExecNotificationQuery(struct ndr_push *ndr, int flags, const struct ExecNotificationQuery *r)
3037
 
{
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));
3044
 
                if (r->in.pCtx) {
3045
 
                        NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3046
 
                }
3047
 
        }
3048
 
        if (flags & NDR_OUT) {
3049
 
                if (r->out.ORPCthat == NULL) {
3050
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3051
 
                }
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");
3055
 
                }
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));
3059
 
                }
3060
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3061
 
        }
3062
 
        return NDR_ERR_SUCCESS;
3063
 
}
3064
 
 
3065
 
static enum ndr_err_code ndr_pull_ExecNotificationQuery(struct ndr_pull *ndr, int flags, struct ExecNotificationQuery *r)
3066
 
{
3067
 
        uint32_t _ptr_pCtx;
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);
3075
 
 
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));
3081
 
                if (_ptr_pCtx) {
3082
 
                        NDR_PULL_ALLOC(ndr, r->in.pCtx);
3083
 
                } else {
3084
 
                        r->in.pCtx = NULL;
3085
 
                }
3086
 
                if (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);
3091
 
                }
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);
3096
 
        }
3097
 
        if (flags & NDR_OUT) {
3098
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3099
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3100
 
                }
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);
3107
 
                }
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));
3111
 
                if (_ptr_ppEnum) {
3112
 
                        NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
3113
 
                } else {
3114
 
                        *r->out.ppEnum = NULL;
3115
 
                }
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);
3121
 
                }
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));
3124
 
        }
3125
 
        return NDR_ERR_SUCCESS;
3126
 
}
3127
 
 
3128
 
_PUBLIC_ void ndr_print_ExecNotificationQuery(struct ndr_print *ndr, const char *name, int flags, const struct ExecNotificationQuery *r)
3129
 
{
3130
 
        ndr_print_struct(ndr, name, "ExecNotificationQuery");
3131
 
        if (r == NULL) { ndr_print_null(ndr); return; }
3132
 
        ndr->depth++;
3133
 
        if (flags & NDR_SET_VALUES) {
3134
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3135
 
        }
3136
 
        if (flags & NDR_IN) {
3137
 
                ndr_print_struct(ndr, "in", "ExecNotificationQuery");
3138
 
                ndr->depth++;
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);
3144
 
                ndr->depth++;
3145
 
                if (r->in.pCtx) {
3146
 
                        ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3147
 
                }
3148
 
                ndr->depth--;
3149
 
                ndr->depth--;
3150
 
        }
3151
 
        if (flags & NDR_OUT) {
3152
 
                ndr_print_struct(ndr, "out", "ExecNotificationQuery");
3153
 
                ndr->depth++;
3154
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3155
 
                ndr->depth++;
3156
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3157
 
                ndr->depth--;
3158
 
                ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
3159
 
                ndr->depth++;
3160
 
                ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
3161
 
                ndr->depth++;
3162
 
                if (*r->out.ppEnum) {
3163
 
                        ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
3164
 
                }
3165
 
                ndr->depth--;
3166
 
                ndr->depth--;
3167
 
                ndr_print_WERROR(ndr, "result", r->out.result);
3168
 
                ndr->depth--;
3169
 
        }
3170
 
        ndr->depth--;
3171
 
}
3172
 
 
3173
 
static enum ndr_err_code ndr_push_ExecNotificationQueryAsync(struct ndr_push *ndr, int flags, const struct ExecNotificationQueryAsync *r)
3174
 
{
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");
3182
 
                }
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");
3186
 
                }
3187
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
3188
 
        }
3189
 
        if (flags & NDR_OUT) {
3190
 
                if (r->out.ORPCthat == NULL) {
3191
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3192
 
                }
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));
3195
 
        }
3196
 
        return NDR_ERR_SUCCESS;
3197
 
}
3198
 
 
3199
 
static enum ndr_err_code ndr_pull_ExecNotificationQueryAsync(struct ndr_pull *ndr, int flags, struct ExecNotificationQueryAsync *r)
3200
 
{
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);
3206
 
 
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);
3213
 
                }
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);
3220
 
                }
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);
3227
 
        }
3228
 
        if (flags & NDR_OUT) {
3229
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3230
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3231
 
                }
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));
3237
 
        }
3238
 
        return NDR_ERR_SUCCESS;
3239
 
}
3240
 
 
3241
 
_PUBLIC_ void ndr_print_ExecNotificationQueryAsync(struct ndr_print *ndr, const char *name, int flags, const struct ExecNotificationQueryAsync *r)
3242
 
{
3243
 
        ndr_print_struct(ndr, name, "ExecNotificationQueryAsync");
3244
 
        if (r == NULL) { ndr_print_null(ndr); return; }
3245
 
        ndr->depth++;
3246
 
        if (flags & NDR_SET_VALUES) {
3247
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3248
 
        }
3249
 
        if (flags & NDR_IN) {
3250
 
                ndr_print_struct(ndr, "in", "ExecNotificationQueryAsync");
3251
 
                ndr->depth++;
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);
3257
 
                ndr->depth++;
3258
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3259
 
                ndr->depth--;
3260
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
3261
 
                ndr->depth++;
3262
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
3263
 
                ndr->depth--;
3264
 
                ndr->depth--;
3265
 
        }
3266
 
        if (flags & NDR_OUT) {
3267
 
                ndr_print_struct(ndr, "out", "ExecNotificationQueryAsync");
3268
 
                ndr->depth++;
3269
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3270
 
                ndr->depth++;
3271
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3272
 
                ndr->depth--;
3273
 
                ndr_print_WERROR(ndr, "result", r->out.result);
3274
 
                ndr->depth--;
3275
 
        }
3276
 
        ndr->depth--;
3277
 
}
3278
 
 
3279
 
static enum ndr_err_code ndr_push_ExecMethod(struct ndr_push *ndr, int flags, const struct ExecMethod *r)
3280
 
{
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));
3287
 
                if (r->in.pCtx) {
3288
 
                        NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
3289
 
                }
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));
3293
 
                }
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));
3299
 
                        }
3300
 
                }
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));
3306
 
                        }
3307
 
                }
3308
 
        }
3309
 
        if (flags & NDR_OUT) {
3310
 
                if (r->out.ORPCthat == NULL) {
3311
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3312
 
                }
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));
3319
 
                        }
3320
 
                }
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));
3326
 
                        }
3327
 
                }
3328
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
3329
 
        }
3330
 
        return NDR_ERR_SUCCESS;
3331
 
}
3332
 
 
3333
 
static enum ndr_err_code ndr_pull_ExecMethod(struct ndr_pull *ndr, int flags, struct ExecMethod *r)
3334
 
{
3335
 
        uint32_t _ptr_pCtx;
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);
3348
 
 
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));
3354
 
                if (_ptr_pCtx) {
3355
 
                        NDR_PULL_ALLOC(ndr, r->in.pCtx);
3356
 
                } else {
3357
 
                        r->in.pCtx = NULL;
3358
 
                }
3359
 
                if (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);
3364
 
                }
3365
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pInParams));
3366
 
                if (_ptr_pInParams) {
3367
 
                        NDR_PULL_ALLOC(ndr, r->in.pInParams);
3368
 
                } else {
3369
 
                        r->in.pInParams = NULL;
3370
 
                }
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);
3376
 
                }
3377
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppOutParams));
3378
 
                if (_ptr_ppOutParams) {
3379
 
                        NDR_PULL_ALLOC(ndr, r->in.ppOutParams);
3380
 
                } else {
3381
 
                        r->in.ppOutParams = NULL;
3382
 
                }
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);
3389
 
                        } else {
3390
 
                                *r->in.ppOutParams = NULL;
3391
 
                        }
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);
3397
 
                        }
3398
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_0, 0);
3399
 
                }
3400
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
3401
 
                if (_ptr_ppCallResult) {
3402
 
                        NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
3403
 
                } else {
3404
 
                        r->in.ppCallResult = NULL;
3405
 
                }
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);
3412
 
                        } else {
3413
 
                                *r->in.ppCallResult = NULL;
3414
 
                        }
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);
3420
 
                        }
3421
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
3422
 
                }
3423
 
                NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3424
 
                ZERO_STRUCTP(r->out.ORPCthat);
3425
 
        }
3426
 
        if (flags & NDR_OUT) {
3427
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3428
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3429
 
                }
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);
3437
 
                } else {
3438
 
                        r->out.ppOutParams = NULL;
3439
 
                }
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);
3446
 
                        } else {
3447
 
                                *r->out.ppOutParams = NULL;
3448
 
                        }
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);
3454
 
                        }
3455
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_0, 0);
3456
 
                }
3457
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
3458
 
                if (_ptr_ppCallResult) {
3459
 
                        NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
3460
 
                } else {
3461
 
                        r->out.ppCallResult = NULL;
3462
 
                }
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);
3469
 
                        } else {
3470
 
                                *r->out.ppCallResult = NULL;
3471
 
                        }
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);
3477
 
                        }
3478
 
                        NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
3479
 
                }
3480
 
                NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
3481
 
        }
3482
 
        return NDR_ERR_SUCCESS;
3483
 
}
3484
 
 
3485
 
_PUBLIC_ void ndr_print_ExecMethod(struct ndr_print *ndr, const char *name, int flags, const struct ExecMethod *r)
3486
 
{
3487
 
        ndr_print_struct(ndr, name, "ExecMethod");
3488
 
        if (r == NULL) { ndr_print_null(ndr); return; }
3489
 
        ndr->depth++;
3490
 
        if (flags & NDR_SET_VALUES) {
3491
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3492
 
        }
3493
 
        if (flags & NDR_IN) {
3494
 
                ndr_print_struct(ndr, "in", "ExecMethod");
3495
 
                ndr->depth++;
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);
3501
 
                ndr->depth++;
3502
 
                if (r->in.pCtx) {
3503
 
                        ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3504
 
                }
3505
 
                ndr->depth--;
3506
 
                ndr_print_ptr(ndr, "pInParams", r->in.pInParams);
3507
 
                ndr->depth++;
3508
 
                if (r->in.pInParams) {
3509
 
                        ndr_print_MInterfacePointer(ndr, "pInParams", r->in.pInParams);
3510
 
                }
3511
 
                ndr->depth--;
3512
 
                ndr_print_ptr(ndr, "ppOutParams", r->in.ppOutParams);
3513
 
                ndr->depth++;
3514
 
                if (r->in.ppOutParams) {
3515
 
                        ndr_print_ptr(ndr, "ppOutParams", *r->in.ppOutParams);
3516
 
                        ndr->depth++;
3517
 
                        if (*r->in.ppOutParams) {
3518
 
                                ndr_print_MInterfacePointer(ndr, "ppOutParams", *r->in.ppOutParams);
3519
 
                        }
3520
 
                        ndr->depth--;
3521
 
                }
3522
 
                ndr->depth--;
3523
 
                ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
3524
 
                ndr->depth++;
3525
 
                if (r->in.ppCallResult) {
3526
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
3527
 
                        ndr->depth++;
3528
 
                        if (*r->in.ppCallResult) {
3529
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
3530
 
                        }
3531
 
                        ndr->depth--;
3532
 
                }
3533
 
                ndr->depth--;
3534
 
                ndr->depth--;
3535
 
        }
3536
 
        if (flags & NDR_OUT) {
3537
 
                ndr_print_struct(ndr, "out", "ExecMethod");
3538
 
                ndr->depth++;
3539
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3540
 
                ndr->depth++;
3541
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3542
 
                ndr->depth--;
3543
 
                ndr_print_ptr(ndr, "ppOutParams", r->out.ppOutParams);
3544
 
                ndr->depth++;
3545
 
                if (r->out.ppOutParams) {
3546
 
                        ndr_print_ptr(ndr, "ppOutParams", *r->out.ppOutParams);
3547
 
                        ndr->depth++;
3548
 
                        if (*r->out.ppOutParams) {
3549
 
                                ndr_print_MInterfacePointer(ndr, "ppOutParams", *r->out.ppOutParams);
3550
 
                        }
3551
 
                        ndr->depth--;
3552
 
                }
3553
 
                ndr->depth--;
3554
 
                ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
3555
 
                ndr->depth++;
3556
 
                if (r->out.ppCallResult) {
3557
 
                        ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
3558
 
                        ndr->depth++;
3559
 
                        if (*r->out.ppCallResult) {
3560
 
                                ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
3561
 
                        }
3562
 
                        ndr->depth--;
3563
 
                }
3564
 
                ndr->depth--;
3565
 
                ndr_print_WERROR(ndr, "result", r->out.result);
3566
 
                ndr->depth--;
3567
 
        }
3568
 
        ndr->depth--;
3569
 
}
3570
 
 
3571
 
static enum ndr_err_code ndr_push_ExecMethodAsync(struct ndr_push *ndr, int flags, const struct ExecMethodAsync *r)
3572
 
{
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");
3580
 
                }
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");
3584
 
                }
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");
3588
 
                }
3589
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
3590
 
        }
3591
 
        if (flags & NDR_OUT) {
3592
 
                if (r->out.ORPCthat == NULL) {
3593
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3594
 
                }
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));
3597
 
        }
3598
 
        return NDR_ERR_SUCCESS;
3599
 
}
3600
 
 
3601
 
static enum ndr_err_code ndr_pull_ExecMethodAsync(struct ndr_pull *ndr, int flags, struct ExecMethodAsync *r)
3602
 
{
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);
3609
 
 
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);
3616
 
                }
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);
3623
 
                }
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);
3630
 
                }
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);
3637
 
        }
3638
 
        if (flags & NDR_OUT) {
3639
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3640
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3641
 
                }
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));
3647
 
        }
3648
 
        return NDR_ERR_SUCCESS;
3649
 
}
3650
 
 
3651
 
_PUBLIC_ void ndr_print_ExecMethodAsync(struct ndr_print *ndr, const char *name, int flags, const struct ExecMethodAsync *r)
3652
 
{
3653
 
        ndr_print_struct(ndr, name, "ExecMethodAsync");
3654
 
        if (r == NULL) { ndr_print_null(ndr); return; }
3655
 
        ndr->depth++;
3656
 
        if (flags & NDR_SET_VALUES) {
3657
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3658
 
        }
3659
 
        if (flags & NDR_IN) {
3660
 
                ndr_print_struct(ndr, "in", "ExecMethodAsync");
3661
 
                ndr->depth++;
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);
3667
 
                ndr->depth++;
3668
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
3669
 
                ndr->depth--;
3670
 
                ndr_print_ptr(ndr, "pInParams", r->in.pInParams);
3671
 
                ndr->depth++;
3672
 
                ndr_print_MInterfacePointer(ndr, "pInParams", r->in.pInParams);
3673
 
                ndr->depth--;
3674
 
                ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
3675
 
                ndr->depth++;
3676
 
                ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
3677
 
                ndr->depth--;
3678
 
                ndr->depth--;
3679
 
        }
3680
 
        if (flags & NDR_OUT) {
3681
 
                ndr_print_struct(ndr, "out", "ExecMethodAsync");
3682
 
                ndr->depth++;
3683
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3684
 
                ndr->depth++;
3685
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3686
 
                ndr->depth--;
3687
 
                ndr_print_WERROR(ndr, "result", r->out.result);
3688
 
                ndr->depth--;
3689
 
        }
3690
 
        ndr->depth--;
3691
 
}
3692
 
 
3693
 
static const struct ndr_interface_call IWbemServices_calls[] = {
3694
 
        {
3695
 
                "OpenNamespace",
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,
3700
 
                { 0, NULL },
3701
 
                { 0, NULL },
3702
 
        },
3703
 
        {
3704
 
                "CancelAsyncCall",
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,
3709
 
                { 0, NULL },
3710
 
                { 0, NULL },
3711
 
        },
3712
 
        {
3713
 
                "QueryObjectSink",
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,
3718
 
                { 0, NULL },
3719
 
                { 0, NULL },
3720
 
        },
3721
 
        {
3722
 
                "GetObject",
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,
3727
 
                { 0, NULL },
3728
 
                { 0, NULL },
3729
 
        },
3730
 
        {
3731
 
                "GetObjectAsync",
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,
3736
 
                { 0, NULL },
3737
 
                { 0, NULL },
3738
 
        },
3739
 
        {
3740
 
                "PutClass",
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,
3745
 
                { 0, NULL },
3746
 
                { 0, NULL },
3747
 
        },
3748
 
        {
3749
 
                "PutClassAsync",
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,
3754
 
                { 0, NULL },
3755
 
                { 0, NULL },
3756
 
        },
3757
 
        {
3758
 
                "DeleteClass",
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,
3763
 
                { 0, NULL },
3764
 
                { 0, NULL },
3765
 
        },
3766
 
        {
3767
 
                "DeleteClassAsync",
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,
3772
 
                { 0, NULL },
3773
 
                { 0, NULL },
3774
 
        },
3775
 
        {
3776
 
                "CreateClassEnum",
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,
3781
 
                { 0, NULL },
3782
 
                { 0, NULL },
3783
 
        },
3784
 
        {
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,
3790
 
                { 0, NULL },
3791
 
                { 0, NULL },
3792
 
        },
3793
 
        {
3794
 
                "PutInstance",
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,
3799
 
                { 0, NULL },
3800
 
                { 0, NULL },
3801
 
        },
3802
 
        {
3803
 
                "PutInstanceAsync",
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,
3808
 
                { 0, NULL },
3809
 
                { 0, NULL },
3810
 
        },
3811
 
        {
3812
 
                "DeleteInstance",
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,
3817
 
                { 0, NULL },
3818
 
                { 0, NULL },
3819
 
        },
3820
 
        {
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,
3826
 
                { 0, NULL },
3827
 
                { 0, NULL },
3828
 
        },
3829
 
        {
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,
3835
 
                { 0, NULL },
3836
 
                { 0, NULL },
3837
 
        },
3838
 
        {
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,
3844
 
                { 0, NULL },
3845
 
                { 0, NULL },
3846
 
        },
3847
 
        {
3848
 
                "ExecQuery",
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,
3853
 
                { 0, NULL },
3854
 
                { 0, NULL },
3855
 
        },
3856
 
        {
3857
 
                "ExecQueryAsync",
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,
3862
 
                { 0, NULL },
3863
 
                { 0, NULL },
3864
 
        },
3865
 
        {
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,
3871
 
                { 0, NULL },
3872
 
                { 0, NULL },
3873
 
        },
3874
 
        {
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,
3880
 
                { 0, NULL },
3881
 
                { 0, NULL },
3882
 
        },
3883
 
        {
3884
 
                "ExecMethod",
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,
3889
 
                { 0, NULL },
3890
 
                { 0, NULL },
3891
 
        },
3892
 
        {
3893
 
                "ExecMethodAsync",
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,
3898
 
                { 0, NULL },
3899
 
                { 0, NULL },
3900
 
        },
3901
 
        { NULL, 0, NULL, NULL, NULL }
3902
 
};
3903
 
 
3904
 
static const char * const IWbemServices_endpoint_strings[] = {
3905
 
        "ncacn_np:[\\pipe\\IWbemServices]", 
3906
 
};
3907
 
 
3908
 
static const struct ndr_interface_string_array IWbemServices_endpoints = {
3909
 
        .count  = 1,
3910
 
        .names  = IWbemServices_endpoint_strings
3911
 
};
3912
 
 
3913
 
static const char * const IWbemServices_authservice_strings[] = {
3914
 
        "host", 
3915
 
};
3916
 
 
3917
 
static const struct ndr_interface_string_array IWbemServices_authservices = {
3918
 
        .count  = 1,
3919
 
        .names  = IWbemServices_authservice_strings
3920
 
};
3921
 
 
3922
 
 
3923
 
const struct ndr_interface_table ndr_table_IWbemServices = {
3924
 
        .name           = "IWbemServices",
3925
 
        .syntax_id      = {
3926
 
                {0x9556dc99,0x828c,0x11cf,{0xa3,0x7e},{0x00,0xaa,0x00,0x32,0x40,0xc7}},
3927
 
                NDR_IWBEMSERVICES_VERSION
3928
 
        },
3929
 
        .helpstring     = NDR_IWBEMSERVICES_HELPSTRING,
3930
 
        .num_calls      = 23,
3931
 
        .calls          = IWbemServices_calls,
3932
 
        .endpoints      = &IWbemServices_endpoints,
3933
 
        .authservices   = &IWbemServices_authservices
3934
 
};
3935
 
 
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)
3938
 
{
3939
 
        if (flags & NDR_IN) {
3940
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
3941
 
        }
3942
 
        if (flags & NDR_OUT) {
3943
 
                if (r->out.ORPCthat == NULL) {
3944
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
3945
 
                }
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));
3948
 
        }
3949
 
        return NDR_ERR_SUCCESS;
3950
 
}
3951
 
 
3952
 
static enum ndr_err_code ndr_pull_Reset(struct ndr_pull *ndr, int flags, struct Reset *r)
3953
 
{
3954
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
3955
 
        if (flags & NDR_IN) {
3956
 
                ZERO_STRUCT(r->out);
3957
 
 
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);
3961
 
        }
3962
 
        if (flags & NDR_OUT) {
3963
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
3964
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
3965
 
                }
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));
3971
 
        }
3972
 
        return NDR_ERR_SUCCESS;
3973
 
}
3974
 
 
3975
 
_PUBLIC_ void ndr_print_Reset(struct ndr_print *ndr, const char *name, int flags, const struct Reset *r)
3976
 
{
3977
 
        ndr_print_struct(ndr, name, "Reset");
3978
 
        if (r == NULL) { ndr_print_null(ndr); return; }
3979
 
        ndr->depth++;
3980
 
        if (flags & NDR_SET_VALUES) {
3981
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3982
 
        }
3983
 
        if (flags & NDR_IN) {
3984
 
                ndr_print_struct(ndr, "in", "Reset");
3985
 
                ndr->depth++;
3986
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
3987
 
                ndr->depth--;
3988
 
        }
3989
 
        if (flags & NDR_OUT) {
3990
 
                ndr_print_struct(ndr, "out", "Reset");
3991
 
                ndr->depth++;
3992
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
3993
 
                ndr->depth++;
3994
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
3995
 
                ndr->depth--;
3996
 
                ndr_print_WERROR(ndr, "result", r->out.result);
3997
 
                ndr->depth--;
3998
 
        }
3999
 
        ndr->depth--;
4000
 
}
4001
 
 
4002
 
static enum ndr_err_code ndr_push_IEnumWbemClassObject_Next(struct ndr_push *ndr, int flags, const struct IEnumWbemClassObject_Next *r)
4003
 
{
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));
4009
 
        }
4010
 
        if (flags & NDR_OUT) {
4011
 
                if (r->out.ORPCthat == NULL) {
4012
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4013
 
                }
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");
4017
 
                }
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]));
4023
 
                }
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]));
4027
 
                        }
4028
 
                }
4029
 
                if (r->out.puReturned == NULL) {
4030
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4031
 
                }
4032
 
                NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.puReturned));
4033
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4034
 
        }
4035
 
        return NDR_ERR_SUCCESS;
4036
 
}
4037
 
 
4038
 
static enum ndr_err_code ndr_pull_IEnumWbemClassObject_Next(struct ndr_pull *ndr, int flags, struct IEnumWbemClassObject_Next *r)
4039
 
{
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);
4048
 
 
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);
4058
 
        }
4059
 
        if (flags & NDR_OUT) {
4060
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4061
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4062
 
                }
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));
4071
 
                }
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));
4074
 
                }
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]);
4081
 
                        } else {
4082
 
                                r->out.apObjects[cntr_apObjects_1] = NULL;
4083
 
                        }
4084
 
                }
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);
4091
 
                        }
4092
 
                }
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);
4096
 
                }
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));
4104
 
                }
4105
 
                if (r->out.apObjects) {
4106
 
                        NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->out.apObjects, *r->out.puReturned));
4107
 
                }
4108
 
        }
4109
 
        return NDR_ERR_SUCCESS;
4110
 
}
4111
 
 
4112
 
_PUBLIC_ void ndr_print_IEnumWbemClassObject_Next(struct ndr_print *ndr, const char *name, int flags, const struct IEnumWbemClassObject_Next *r)
4113
 
{
4114
 
        uint32_t cntr_apObjects_1;
4115
 
        ndr_print_struct(ndr, name, "IEnumWbemClassObject_Next");
4116
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4117
 
        ndr->depth++;
4118
 
        if (flags & NDR_SET_VALUES) {
4119
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4120
 
        }
4121
 
        if (flags & NDR_IN) {
4122
 
                ndr_print_struct(ndr, "in", "IEnumWbemClassObject_Next");
4123
 
                ndr->depth++;
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);
4127
 
                ndr->depth--;
4128
 
        }
4129
 
        if (flags & NDR_OUT) {
4130
 
                ndr_print_struct(ndr, "out", "IEnumWbemClassObject_Next");
4131
 
                ndr->depth++;
4132
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4133
 
                ndr->depth++;
4134
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4135
 
                ndr->depth--;
4136
 
                ndr_print_ptr(ndr, "apObjects", r->out.apObjects);
4137
 
                ndr->depth++;
4138
 
                ndr->print(ndr, "%s: ARRAY(%d)", "apObjects", (int)*r->out.puReturned);
4139
 
                ndr->depth++;
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]);
4142
 
                        ndr->depth++;
4143
 
                        if (r->out.apObjects[cntr_apObjects_1]) {
4144
 
                                ndr_print_MInterfacePointer(ndr, "apObjects", r->out.apObjects[cntr_apObjects_1]);
4145
 
                        }
4146
 
                        ndr->depth--;
4147
 
                }
4148
 
                ndr->depth--;
4149
 
                ndr->depth--;
4150
 
                ndr_print_ptr(ndr, "puReturned", r->out.puReturned);
4151
 
                ndr->depth++;
4152
 
                ndr_print_uint32(ndr, "puReturned", *r->out.puReturned);
4153
 
                ndr->depth--;
4154
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4155
 
                ndr->depth--;
4156
 
        }
4157
 
        ndr->depth--;
4158
 
}
4159
 
 
4160
 
static enum ndr_err_code ndr_push_NextAsync(struct ndr_push *ndr, int flags, const struct NextAsync *r)
4161
 
{
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");
4167
 
                }
4168
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
4169
 
        }
4170
 
        if (flags & NDR_OUT) {
4171
 
                if (r->out.ORPCthat == NULL) {
4172
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4173
 
                }
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));
4176
 
        }
4177
 
        return NDR_ERR_SUCCESS;
4178
 
}
4179
 
 
4180
 
static enum ndr_err_code ndr_pull_NextAsync(struct ndr_pull *ndr, int flags, struct NextAsync *r)
4181
 
{
4182
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
4183
 
        TALLOC_CTX *_mem_save_pSink_0;
4184
 
        if (flags & NDR_IN) {
4185
 
                ZERO_STRUCT(r->out);
4186
 
 
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);
4191
 
                }
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);
4198
 
        }
4199
 
        if (flags & NDR_OUT) {
4200
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4201
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4202
 
                }
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));
4208
 
        }
4209
 
        return NDR_ERR_SUCCESS;
4210
 
}
4211
 
 
4212
 
_PUBLIC_ void ndr_print_NextAsync(struct ndr_print *ndr, const char *name, int flags, const struct NextAsync *r)
4213
 
{
4214
 
        ndr_print_struct(ndr, name, "NextAsync");
4215
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4216
 
        ndr->depth++;
4217
 
        if (flags & NDR_SET_VALUES) {
4218
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4219
 
        }
4220
 
        if (flags & NDR_IN) {
4221
 
                ndr_print_struct(ndr, "in", "NextAsync");
4222
 
                ndr->depth++;
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);
4226
 
                ndr->depth++;
4227
 
                ndr_print_MInterfacePointer(ndr, "pSink", r->in.pSink);
4228
 
                ndr->depth--;
4229
 
                ndr->depth--;
4230
 
        }
4231
 
        if (flags & NDR_OUT) {
4232
 
                ndr_print_struct(ndr, "out", "NextAsync");
4233
 
                ndr->depth++;
4234
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4235
 
                ndr->depth++;
4236
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4237
 
                ndr->depth--;
4238
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4239
 
                ndr->depth--;
4240
 
        }
4241
 
        ndr->depth--;
4242
 
}
4243
 
 
4244
 
static enum ndr_err_code ndr_push_IEnumWbemClassObject_Clone(struct ndr_push *ndr, int flags, const struct IEnumWbemClassObject_Clone *r)
4245
 
{
4246
 
        if (flags & NDR_IN) {
4247
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4248
 
        }
4249
 
        if (flags & NDR_OUT) {
4250
 
                if (r->out.ORPCthat == NULL) {
4251
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4252
 
                }
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");
4256
 
                }
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));
4260
 
                }
4261
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4262
 
        }
4263
 
        return NDR_ERR_SUCCESS;
4264
 
}
4265
 
 
4266
 
static enum ndr_err_code ndr_pull_IEnumWbemClassObject_Clone(struct ndr_pull *ndr, int flags, struct IEnumWbemClassObject_Clone *r)
4267
 
{
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);
4274
 
 
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);
4280
 
        }
4281
 
        if (flags & NDR_OUT) {
4282
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4283
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4284
 
                }
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);
4291
 
                }
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));
4295
 
                if (_ptr_ppEnum) {
4296
 
                        NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
4297
 
                } else {
4298
 
                        *r->out.ppEnum = NULL;
4299
 
                }
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);
4305
 
                }
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));
4308
 
        }
4309
 
        return NDR_ERR_SUCCESS;
4310
 
}
4311
 
 
4312
 
_PUBLIC_ void ndr_print_IEnumWbemClassObject_Clone(struct ndr_print *ndr, const char *name, int flags, const struct IEnumWbemClassObject_Clone *r)
4313
 
{
4314
 
        ndr_print_struct(ndr, name, "IEnumWbemClassObject_Clone");
4315
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4316
 
        ndr->depth++;
4317
 
        if (flags & NDR_SET_VALUES) {
4318
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4319
 
        }
4320
 
        if (flags & NDR_IN) {
4321
 
                ndr_print_struct(ndr, "in", "IEnumWbemClassObject_Clone");
4322
 
                ndr->depth++;
4323
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4324
 
                ndr->depth--;
4325
 
        }
4326
 
        if (flags & NDR_OUT) {
4327
 
                ndr_print_struct(ndr, "out", "IEnumWbemClassObject_Clone");
4328
 
                ndr->depth++;
4329
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4330
 
                ndr->depth++;
4331
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4332
 
                ndr->depth--;
4333
 
                ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
4334
 
                ndr->depth++;
4335
 
                ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
4336
 
                ndr->depth++;
4337
 
                if (*r->out.ppEnum) {
4338
 
                        ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
4339
 
                }
4340
 
                ndr->depth--;
4341
 
                ndr->depth--;
4342
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4343
 
                ndr->depth--;
4344
 
        }
4345
 
        ndr->depth--;
4346
 
}
4347
 
 
4348
 
static enum ndr_err_code ndr_push_Skip(struct ndr_push *ndr, int flags, const struct Skip *r)
4349
 
{
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));
4354
 
        }
4355
 
        if (flags & NDR_OUT) {
4356
 
                if (r->out.ORPCthat == NULL) {
4357
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4358
 
                }
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));
4361
 
        }
4362
 
        return NDR_ERR_SUCCESS;
4363
 
}
4364
 
 
4365
 
static enum ndr_err_code ndr_pull_Skip(struct ndr_pull *ndr, int flags, struct Skip *r)
4366
 
{
4367
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
4368
 
        if (flags & NDR_IN) {
4369
 
                ZERO_STRUCT(r->out);
4370
 
 
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);
4376
 
        }
4377
 
        if (flags & NDR_OUT) {
4378
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4379
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4380
 
                }
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));
4386
 
        }
4387
 
        return NDR_ERR_SUCCESS;
4388
 
}
4389
 
 
4390
 
_PUBLIC_ void ndr_print_Skip(struct ndr_print *ndr, const char *name, int flags, const struct Skip *r)
4391
 
{
4392
 
        ndr_print_struct(ndr, name, "Skip");
4393
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4394
 
        ndr->depth++;
4395
 
        if (flags & NDR_SET_VALUES) {
4396
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4397
 
        }
4398
 
        if (flags & NDR_IN) {
4399
 
                ndr_print_struct(ndr, "in", "Skip");
4400
 
                ndr->depth++;
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);
4404
 
                ndr->depth--;
4405
 
        }
4406
 
        if (flags & NDR_OUT) {
4407
 
                ndr_print_struct(ndr, "out", "Skip");
4408
 
                ndr->depth++;
4409
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4410
 
                ndr->depth++;
4411
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4412
 
                ndr->depth--;
4413
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4414
 
                ndr->depth--;
4415
 
        }
4416
 
        ndr->depth--;
4417
 
}
4418
 
 
4419
 
static const struct ndr_interface_call IEnumWbemClassObject_calls[] = {
4420
 
        {
4421
 
                "Reset",
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,
4426
 
                { 0, NULL },
4427
 
                { 0, NULL },
4428
 
        },
4429
 
        {
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,
4435
 
                { 0, NULL },
4436
 
                { 0, NULL },
4437
 
        },
4438
 
        {
4439
 
                "NextAsync",
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,
4444
 
                { 0, NULL },
4445
 
                { 0, NULL },
4446
 
        },
4447
 
        {
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,
4453
 
                { 0, NULL },
4454
 
                { 0, NULL },
4455
 
        },
4456
 
        {
4457
 
                "Skip",
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,
4462
 
                { 0, NULL },
4463
 
                { 0, NULL },
4464
 
        },
4465
 
        { NULL, 0, NULL, NULL, NULL }
4466
 
};
4467
 
 
4468
 
static const char * const IEnumWbemClassObject_endpoint_strings[] = {
4469
 
        "ncacn_np:[\\pipe\\IEnumWbemClassObject]", 
4470
 
};
4471
 
 
4472
 
static const struct ndr_interface_string_array IEnumWbemClassObject_endpoints = {
4473
 
        .count  = 1,
4474
 
        .names  = IEnumWbemClassObject_endpoint_strings
4475
 
};
4476
 
 
4477
 
static const char * const IEnumWbemClassObject_authservice_strings[] = {
4478
 
        "host", 
4479
 
};
4480
 
 
4481
 
static const struct ndr_interface_string_array IEnumWbemClassObject_authservices = {
4482
 
        .count  = 1,
4483
 
        .names  = IEnumWbemClassObject_authservice_strings
4484
 
};
4485
 
 
4486
 
 
4487
 
const struct ndr_interface_table ndr_table_IEnumWbemClassObject = {
4488
 
        .name           = "IEnumWbemClassObject",
4489
 
        .syntax_id      = {
4490
 
                {0x027947e1,0xd731,0x11ce,{0xa3,0x57},{0x00,0x00,0x00,0x00,0x00,0x01}},
4491
 
                NDR_IENUMWBEMCLASSOBJECT_VERSION
4492
 
        },
4493
 
        .helpstring     = NDR_IENUMWBEMCLASSOBJECT_HELPSTRING,
4494
 
        .num_calls      = 5,
4495
 
        .calls          = IEnumWbemClassObject_calls,
4496
 
        .endpoints      = &IEnumWbemClassObject_endpoints,
4497
 
        .authservices   = &IEnumWbemClassObject_authservices
4498
 
};
4499
 
 
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)
4502
 
{
4503
 
        if (flags & NDR_IN) {
4504
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4505
 
        }
4506
 
        if (flags & NDR_OUT) {
4507
 
                if (r->out.ORPCthat == NULL) {
4508
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4509
 
                }
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");
4513
 
                }
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));
4517
 
                }
4518
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
4519
 
        }
4520
 
        return NDR_ERR_SUCCESS;
4521
 
}
4522
 
 
4523
 
static enum ndr_err_code ndr_pull_Clone(struct ndr_pull *ndr, int flags, struct Clone *r)
4524
 
{
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);
4531
 
 
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);
4537
 
        }
4538
 
        if (flags & NDR_OUT) {
4539
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4540
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4541
 
                }
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);
4548
 
                }
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);
4554
 
                } else {
4555
 
                        *r->out.ppNewCopy = NULL;
4556
 
                }
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);
4562
 
                }
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));
4565
 
        }
4566
 
        return NDR_ERR_SUCCESS;
4567
 
}
4568
 
 
4569
 
_PUBLIC_ void ndr_print_Clone(struct ndr_print *ndr, const char *name, int flags, const struct Clone *r)
4570
 
{
4571
 
        ndr_print_struct(ndr, name, "Clone");
4572
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4573
 
        ndr->depth++;
4574
 
        if (flags & NDR_SET_VALUES) {
4575
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4576
 
        }
4577
 
        if (flags & NDR_IN) {
4578
 
                ndr_print_struct(ndr, "in", "Clone");
4579
 
                ndr->depth++;
4580
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4581
 
                ndr->depth--;
4582
 
        }
4583
 
        if (flags & NDR_OUT) {
4584
 
                ndr_print_struct(ndr, "out", "Clone");
4585
 
                ndr->depth++;
4586
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4587
 
                ndr->depth++;
4588
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4589
 
                ndr->depth--;
4590
 
                ndr_print_ptr(ndr, "ppNewCopy", r->out.ppNewCopy);
4591
 
                ndr->depth++;
4592
 
                ndr_print_ptr(ndr, "ppNewCopy", *r->out.ppNewCopy);
4593
 
                ndr->depth++;
4594
 
                if (*r->out.ppNewCopy) {
4595
 
                        ndr_print_MInterfacePointer(ndr, "ppNewCopy", *r->out.ppNewCopy);
4596
 
                }
4597
 
                ndr->depth--;
4598
 
                ndr->depth--;
4599
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4600
 
                ndr->depth--;
4601
 
        }
4602
 
        ndr->depth--;
4603
 
}
4604
 
 
4605
 
static enum ndr_err_code ndr_push_GetNames(struct ndr_push *ndr, int flags, const struct GetNames *r)
4606
 
{
4607
 
        if (flags & NDR_IN) {
4608
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4609
 
        }
4610
 
        if (flags & NDR_OUT) {
4611
 
                if (r->out.ORPCthat == NULL) {
4612
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4613
 
                }
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));
4616
 
        }
4617
 
        return NDR_ERR_SUCCESS;
4618
 
}
4619
 
 
4620
 
static enum ndr_err_code ndr_pull_GetNames(struct ndr_pull *ndr, int flags, struct GetNames *r)
4621
 
{
4622
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
4623
 
        if (flags & NDR_IN) {
4624
 
                ZERO_STRUCT(r->out);
4625
 
 
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);
4629
 
        }
4630
 
        if (flags & NDR_OUT) {
4631
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4632
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4633
 
                }
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));
4639
 
        }
4640
 
        return NDR_ERR_SUCCESS;
4641
 
}
4642
 
 
4643
 
_PUBLIC_ void ndr_print_GetNames(struct ndr_print *ndr, const char *name, int flags, const struct GetNames *r)
4644
 
{
4645
 
        ndr_print_struct(ndr, name, "GetNames");
4646
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4647
 
        ndr->depth++;
4648
 
        if (flags & NDR_SET_VALUES) {
4649
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4650
 
        }
4651
 
        if (flags & NDR_IN) {
4652
 
                ndr_print_struct(ndr, "in", "GetNames");
4653
 
                ndr->depth++;
4654
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4655
 
                ndr->depth--;
4656
 
        }
4657
 
        if (flags & NDR_OUT) {
4658
 
                ndr_print_struct(ndr, "out", "GetNames");
4659
 
                ndr->depth++;
4660
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4661
 
                ndr->depth++;
4662
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4663
 
                ndr->depth--;
4664
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4665
 
                ndr->depth--;
4666
 
        }
4667
 
        ndr->depth--;
4668
 
}
4669
 
 
4670
 
static enum ndr_err_code ndr_push_BeginEnumeration(struct ndr_push *ndr, int flags, const struct BeginEnumeration *r)
4671
 
{
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));
4675
 
        }
4676
 
        if (flags & NDR_OUT) {
4677
 
                if (r->out.ORPCthat == NULL) {
4678
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4679
 
                }
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));
4682
 
        }
4683
 
        return NDR_ERR_SUCCESS;
4684
 
}
4685
 
 
4686
 
static enum ndr_err_code ndr_pull_BeginEnumeration(struct ndr_pull *ndr, int flags, struct BeginEnumeration *r)
4687
 
{
4688
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
4689
 
        if (flags & NDR_IN) {
4690
 
                ZERO_STRUCT(r->out);
4691
 
 
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);
4696
 
        }
4697
 
        if (flags & NDR_OUT) {
4698
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4699
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4700
 
                }
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));
4706
 
        }
4707
 
        return NDR_ERR_SUCCESS;
4708
 
}
4709
 
 
4710
 
_PUBLIC_ void ndr_print_BeginEnumeration(struct ndr_print *ndr, const char *name, int flags, const struct BeginEnumeration *r)
4711
 
{
4712
 
        ndr_print_struct(ndr, name, "BeginEnumeration");
4713
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4714
 
        ndr->depth++;
4715
 
        if (flags & NDR_SET_VALUES) {
4716
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4717
 
        }
4718
 
        if (flags & NDR_IN) {
4719
 
                ndr_print_struct(ndr, "in", "BeginEnumeration");
4720
 
                ndr->depth++;
4721
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4722
 
                ndr_print_int32(ndr, "lFlags", r->in.lFlags);
4723
 
                ndr->depth--;
4724
 
        }
4725
 
        if (flags & NDR_OUT) {
4726
 
                ndr_print_struct(ndr, "out", "BeginEnumeration");
4727
 
                ndr->depth++;
4728
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4729
 
                ndr->depth++;
4730
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4731
 
                ndr->depth--;
4732
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4733
 
                ndr->depth--;
4734
 
        }
4735
 
        ndr->depth--;
4736
 
}
4737
 
 
4738
 
static enum ndr_err_code ndr_push_Next(struct ndr_push *ndr, int flags, const struct Next *r)
4739
 
{
4740
 
        if (flags & NDR_IN) {
4741
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4742
 
        }
4743
 
        if (flags & NDR_OUT) {
4744
 
                if (r->out.ORPCthat == NULL) {
4745
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4746
 
                }
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));
4749
 
        }
4750
 
        return NDR_ERR_SUCCESS;
4751
 
}
4752
 
 
4753
 
static enum ndr_err_code ndr_pull_Next(struct ndr_pull *ndr, int flags, struct Next *r)
4754
 
{
4755
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
4756
 
        if (flags & NDR_IN) {
4757
 
                ZERO_STRUCT(r->out);
4758
 
 
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);
4762
 
        }
4763
 
        if (flags & NDR_OUT) {
4764
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4765
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4766
 
                }
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));
4772
 
        }
4773
 
        return NDR_ERR_SUCCESS;
4774
 
}
4775
 
 
4776
 
_PUBLIC_ void ndr_print_Next(struct ndr_print *ndr, const char *name, int flags, const struct Next *r)
4777
 
{
4778
 
        ndr_print_struct(ndr, name, "Next");
4779
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4780
 
        ndr->depth++;
4781
 
        if (flags & NDR_SET_VALUES) {
4782
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4783
 
        }
4784
 
        if (flags & NDR_IN) {
4785
 
                ndr_print_struct(ndr, "in", "Next");
4786
 
                ndr->depth++;
4787
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4788
 
                ndr->depth--;
4789
 
        }
4790
 
        if (flags & NDR_OUT) {
4791
 
                ndr_print_struct(ndr, "out", "Next");
4792
 
                ndr->depth++;
4793
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4794
 
                ndr->depth++;
4795
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4796
 
                ndr->depth--;
4797
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4798
 
                ndr->depth--;
4799
 
        }
4800
 
        ndr->depth--;
4801
 
}
4802
 
 
4803
 
static enum ndr_err_code ndr_push_EndEnumeration(struct ndr_push *ndr, int flags, const struct EndEnumeration *r)
4804
 
{
4805
 
        if (flags & NDR_IN) {
4806
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4807
 
        }
4808
 
        if (flags & NDR_OUT) {
4809
 
                if (r->out.ORPCthat == NULL) {
4810
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4811
 
                }
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));
4814
 
        }
4815
 
        return NDR_ERR_SUCCESS;
4816
 
}
4817
 
 
4818
 
static enum ndr_err_code ndr_pull_EndEnumeration(struct ndr_pull *ndr, int flags, struct EndEnumeration *r)
4819
 
{
4820
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
4821
 
        if (flags & NDR_IN) {
4822
 
                ZERO_STRUCT(r->out);
4823
 
 
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);
4827
 
        }
4828
 
        if (flags & NDR_OUT) {
4829
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4830
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4831
 
                }
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));
4837
 
        }
4838
 
        return NDR_ERR_SUCCESS;
4839
 
}
4840
 
 
4841
 
_PUBLIC_ void ndr_print_EndEnumeration(struct ndr_print *ndr, const char *name, int flags, const struct EndEnumeration *r)
4842
 
{
4843
 
        ndr_print_struct(ndr, name, "EndEnumeration");
4844
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4845
 
        ndr->depth++;
4846
 
        if (flags & NDR_SET_VALUES) {
4847
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4848
 
        }
4849
 
        if (flags & NDR_IN) {
4850
 
                ndr_print_struct(ndr, "in", "EndEnumeration");
4851
 
                ndr->depth++;
4852
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4853
 
                ndr->depth--;
4854
 
        }
4855
 
        if (flags & NDR_OUT) {
4856
 
                ndr_print_struct(ndr, "out", "EndEnumeration");
4857
 
                ndr->depth++;
4858
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4859
 
                ndr->depth++;
4860
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4861
 
                ndr->depth--;
4862
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4863
 
                ndr->depth--;
4864
 
        }
4865
 
        ndr->depth--;
4866
 
}
4867
 
 
4868
 
static enum ndr_err_code ndr_push_SetValue(struct ndr_push *ndr, int flags, const struct SetValue *r)
4869
 
{
4870
 
        if (flags & NDR_IN) {
4871
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4872
 
        }
4873
 
        if (flags & NDR_OUT) {
4874
 
                if (r->out.ORPCthat == NULL) {
4875
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4876
 
                }
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));
4879
 
        }
4880
 
        return NDR_ERR_SUCCESS;
4881
 
}
4882
 
 
4883
 
static enum ndr_err_code ndr_pull_SetValue(struct ndr_pull *ndr, int flags, struct SetValue *r)
4884
 
{
4885
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
4886
 
        if (flags & NDR_IN) {
4887
 
                ZERO_STRUCT(r->out);
4888
 
 
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);
4892
 
        }
4893
 
        if (flags & NDR_OUT) {
4894
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4895
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4896
 
                }
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));
4902
 
        }
4903
 
        return NDR_ERR_SUCCESS;
4904
 
}
4905
 
 
4906
 
_PUBLIC_ void ndr_print_SetValue(struct ndr_print *ndr, const char *name, int flags, const struct SetValue *r)
4907
 
{
4908
 
        ndr_print_struct(ndr, name, "SetValue");
4909
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4910
 
        ndr->depth++;
4911
 
        if (flags & NDR_SET_VALUES) {
4912
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4913
 
        }
4914
 
        if (flags & NDR_IN) {
4915
 
                ndr_print_struct(ndr, "in", "SetValue");
4916
 
                ndr->depth++;
4917
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4918
 
                ndr->depth--;
4919
 
        }
4920
 
        if (flags & NDR_OUT) {
4921
 
                ndr_print_struct(ndr, "out", "SetValue");
4922
 
                ndr->depth++;
4923
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4924
 
                ndr->depth++;
4925
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4926
 
                ndr->depth--;
4927
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4928
 
                ndr->depth--;
4929
 
        }
4930
 
        ndr->depth--;
4931
 
}
4932
 
 
4933
 
static enum ndr_err_code ndr_push_GetValue(struct ndr_push *ndr, int flags, const struct GetValue *r)
4934
 
{
4935
 
        if (flags & NDR_IN) {
4936
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
4937
 
        }
4938
 
        if (flags & NDR_OUT) {
4939
 
                if (r->out.ORPCthat == NULL) {
4940
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
4941
 
                }
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));
4944
 
        }
4945
 
        return NDR_ERR_SUCCESS;
4946
 
}
4947
 
 
4948
 
static enum ndr_err_code ndr_pull_GetValue(struct ndr_pull *ndr, int flags, struct GetValue *r)
4949
 
{
4950
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
4951
 
        if (flags & NDR_IN) {
4952
 
                ZERO_STRUCT(r->out);
4953
 
 
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);
4957
 
        }
4958
 
        if (flags & NDR_OUT) {
4959
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
4960
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
4961
 
                }
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));
4967
 
        }
4968
 
        return NDR_ERR_SUCCESS;
4969
 
}
4970
 
 
4971
 
_PUBLIC_ void ndr_print_GetValue(struct ndr_print *ndr, const char *name, int flags, const struct GetValue *r)
4972
 
{
4973
 
        ndr_print_struct(ndr, name, "GetValue");
4974
 
        if (r == NULL) { ndr_print_null(ndr); return; }
4975
 
        ndr->depth++;
4976
 
        if (flags & NDR_SET_VALUES) {
4977
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
4978
 
        }
4979
 
        if (flags & NDR_IN) {
4980
 
                ndr_print_struct(ndr, "in", "GetValue");
4981
 
                ndr->depth++;
4982
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
4983
 
                ndr->depth--;
4984
 
        }
4985
 
        if (flags & NDR_OUT) {
4986
 
                ndr_print_struct(ndr, "out", "GetValue");
4987
 
                ndr->depth++;
4988
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
4989
 
                ndr->depth++;
4990
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
4991
 
                ndr->depth--;
4992
 
                ndr_print_WERROR(ndr, "result", r->out.result);
4993
 
                ndr->depth--;
4994
 
        }
4995
 
        ndr->depth--;
4996
 
}
4997
 
 
4998
 
static enum ndr_err_code ndr_push_DeleteValue(struct ndr_push *ndr, int flags, const struct DeleteValue *r)
4999
 
{
5000
 
        if (flags & NDR_IN) {
5001
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5002
 
        }
5003
 
        if (flags & NDR_OUT) {
5004
 
                if (r->out.ORPCthat == NULL) {
5005
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5006
 
                }
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));
5009
 
        }
5010
 
        return NDR_ERR_SUCCESS;
5011
 
}
5012
 
 
5013
 
static enum ndr_err_code ndr_pull_DeleteValue(struct ndr_pull *ndr, int flags, struct DeleteValue *r)
5014
 
{
5015
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
5016
 
        if (flags & NDR_IN) {
5017
 
                ZERO_STRUCT(r->out);
5018
 
 
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);
5022
 
        }
5023
 
        if (flags & NDR_OUT) {
5024
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5025
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5026
 
                }
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));
5032
 
        }
5033
 
        return NDR_ERR_SUCCESS;
5034
 
}
5035
 
 
5036
 
_PUBLIC_ void ndr_print_DeleteValue(struct ndr_print *ndr, const char *name, int flags, const struct DeleteValue *r)
5037
 
{
5038
 
        ndr_print_struct(ndr, name, "DeleteValue");
5039
 
        if (r == NULL) { ndr_print_null(ndr); return; }
5040
 
        ndr->depth++;
5041
 
        if (flags & NDR_SET_VALUES) {
5042
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5043
 
        }
5044
 
        if (flags & NDR_IN) {
5045
 
                ndr_print_struct(ndr, "in", "DeleteValue");
5046
 
                ndr->depth++;
5047
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5048
 
                ndr->depth--;
5049
 
        }
5050
 
        if (flags & NDR_OUT) {
5051
 
                ndr_print_struct(ndr, "out", "DeleteValue");
5052
 
                ndr->depth++;
5053
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5054
 
                ndr->depth++;
5055
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5056
 
                ndr->depth--;
5057
 
                ndr_print_WERROR(ndr, "result", r->out.result);
5058
 
                ndr->depth--;
5059
 
        }
5060
 
        ndr->depth--;
5061
 
}
5062
 
 
5063
 
static enum ndr_err_code ndr_push_DeleteAll(struct ndr_push *ndr, int flags, const struct DeleteAll *r)
5064
 
{
5065
 
        if (flags & NDR_IN) {
5066
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
5067
 
        }
5068
 
        if (flags & NDR_OUT) {
5069
 
                if (r->out.ORPCthat == NULL) {
5070
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5071
 
                }
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));
5074
 
        }
5075
 
        return NDR_ERR_SUCCESS;
5076
 
}
5077
 
 
5078
 
static enum ndr_err_code ndr_pull_DeleteAll(struct ndr_pull *ndr, int flags, struct DeleteAll *r)
5079
 
{
5080
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
5081
 
        if (flags & NDR_IN) {
5082
 
                ZERO_STRUCT(r->out);
5083
 
 
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);
5087
 
        }
5088
 
        if (flags & NDR_OUT) {
5089
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5090
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5091
 
                }
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));
5097
 
        }
5098
 
        return NDR_ERR_SUCCESS;
5099
 
}
5100
 
 
5101
 
_PUBLIC_ void ndr_print_DeleteAll(struct ndr_print *ndr, const char *name, int flags, const struct DeleteAll *r)
5102
 
{
5103
 
        ndr_print_struct(ndr, name, "DeleteAll");
5104
 
        if (r == NULL) { ndr_print_null(ndr); return; }
5105
 
        ndr->depth++;
5106
 
        if (flags & NDR_SET_VALUES) {
5107
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5108
 
        }
5109
 
        if (flags & NDR_IN) {
5110
 
                ndr_print_struct(ndr, "in", "DeleteAll");
5111
 
                ndr->depth++;
5112
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5113
 
                ndr->depth--;
5114
 
        }
5115
 
        if (flags & NDR_OUT) {
5116
 
                ndr_print_struct(ndr, "out", "DeleteAll");
5117
 
                ndr->depth++;
5118
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5119
 
                ndr->depth++;
5120
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5121
 
                ndr->depth--;
5122
 
                ndr_print_WERROR(ndr, "result", r->out.result);
5123
 
                ndr->depth--;
5124
 
        }
5125
 
        ndr->depth--;
5126
 
}
5127
 
 
5128
 
static const struct ndr_interface_call IWbemContext_calls[] = {
5129
 
        {
5130
 
                "Clone",
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,
5135
 
                { 0, NULL },
5136
 
                { 0, NULL },
5137
 
        },
5138
 
        {
5139
 
                "GetNames",
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,
5144
 
                { 0, NULL },
5145
 
                { 0, NULL },
5146
 
        },
5147
 
        {
5148
 
                "BeginEnumeration",
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,
5153
 
                { 0, NULL },
5154
 
                { 0, NULL },
5155
 
        },
5156
 
        {
5157
 
                "Next",
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,
5162
 
                { 0, NULL },
5163
 
                { 0, NULL },
5164
 
        },
5165
 
        {
5166
 
                "EndEnumeration",
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,
5171
 
                { 0, NULL },
5172
 
                { 0, NULL },
5173
 
        },
5174
 
        {
5175
 
                "SetValue",
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,
5180
 
                { 0, NULL },
5181
 
                { 0, NULL },
5182
 
        },
5183
 
        {
5184
 
                "GetValue",
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,
5189
 
                { 0, NULL },
5190
 
                { 0, NULL },
5191
 
        },
5192
 
        {
5193
 
                "DeleteValue",
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,
5198
 
                { 0, NULL },
5199
 
                { 0, NULL },
5200
 
        },
5201
 
        {
5202
 
                "DeleteAll",
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,
5207
 
                { 0, NULL },
5208
 
                { 0, NULL },
5209
 
        },
5210
 
        { NULL, 0, NULL, NULL, NULL }
5211
 
};
5212
 
 
5213
 
static const char * const IWbemContext_endpoint_strings[] = {
5214
 
        "ncacn_np:[\\pipe\\IWbemContext]", 
5215
 
};
5216
 
 
5217
 
static const struct ndr_interface_string_array IWbemContext_endpoints = {
5218
 
        .count  = 1,
5219
 
        .names  = IWbemContext_endpoint_strings
5220
 
};
5221
 
 
5222
 
static const char * const IWbemContext_authservice_strings[] = {
5223
 
        "host", 
5224
 
};
5225
 
 
5226
 
static const struct ndr_interface_string_array IWbemContext_authservices = {
5227
 
        .count  = 1,
5228
 
        .names  = IWbemContext_authservice_strings
5229
 
};
5230
 
 
5231
 
 
5232
 
const struct ndr_interface_table ndr_table_IWbemContext = {
5233
 
        .name           = "IWbemContext",
5234
 
        .syntax_id      = {
5235
 
                {0x44aca674,0xe8fc,0x11d0,{0xa0,0x7c},{0x00,0xc0,0x4f,0xb6,0x88,0x20}},
5236
 
                NDR_IWBEMCONTEXT_VERSION
5237
 
        },
5238
 
        .helpstring     = NDR_IWBEMCONTEXT_HELPSTRING,
5239
 
        .num_calls      = 9,
5240
 
        .calls          = IWbemContext_calls,
5241
 
        .endpoints      = &IWbemContext_endpoints,
5242
 
        .authservices   = &IWbemContext_authservices
5243
 
};
5244
 
 
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)
5247
 
{
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));
5256
 
                }
5257
 
                NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNumLocales));
5258
 
        }
5259
 
        if (flags & NDR_OUT) {
5260
 
                if (r->out.ORPCthat == NULL) {
5261
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5262
 
                }
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");
5266
 
                }
5267
 
                NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.reserved));
5268
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5269
 
        }
5270
 
        return NDR_ERR_SUCCESS;
5271
 
}
5272
 
 
5273
 
static enum ndr_err_code ndr_pull_EstablishPosition(struct ndr_pull *ndr, int flags, struct EstablishPosition *r)
5274
 
{
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);
5281
 
 
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);
5286
 
                } else {
5287
 
                        r->in.wszLocaleList = NULL;
5288
 
                }
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));
5296
 
                        }
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);
5300
 
                }
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);
5306
 
        }
5307
 
        if (flags & NDR_OUT) {
5308
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5309
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5310
 
                }
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);
5317
 
                }
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));
5323
 
        }
5324
 
        return NDR_ERR_SUCCESS;
5325
 
}
5326
 
 
5327
 
_PUBLIC_ void ndr_print_EstablishPosition(struct ndr_print *ndr, const char *name, int flags, const struct EstablishPosition *r)
5328
 
{
5329
 
        ndr_print_struct(ndr, name, "EstablishPosition");
5330
 
        if (r == NULL) { ndr_print_null(ndr); return; }
5331
 
        ndr->depth++;
5332
 
        if (flags & NDR_SET_VALUES) {
5333
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5334
 
        }
5335
 
        if (flags & NDR_IN) {
5336
 
                ndr_print_struct(ndr, "in", "EstablishPosition");
5337
 
                ndr->depth++;
5338
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5339
 
                ndr_print_ptr(ndr, "wszLocaleList", r->in.wszLocaleList);
5340
 
                ndr->depth++;
5341
 
                if (r->in.wszLocaleList) {
5342
 
                        ndr_print_string(ndr, "wszLocaleList", r->in.wszLocaleList);
5343
 
                }
5344
 
                ndr->depth--;
5345
 
                ndr_print_uint32(ndr, "dwNumLocales", r->in.dwNumLocales);
5346
 
                ndr->depth--;
5347
 
        }
5348
 
        if (flags & NDR_OUT) {
5349
 
                ndr_print_struct(ndr, "out", "EstablishPosition");
5350
 
                ndr->depth++;
5351
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5352
 
                ndr->depth++;
5353
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5354
 
                ndr->depth--;
5355
 
                ndr_print_ptr(ndr, "reserved", r->out.reserved);
5356
 
                ndr->depth++;
5357
 
                ndr_print_uint32(ndr, "reserved", *r->out.reserved);
5358
 
                ndr->depth--;
5359
 
                ndr_print_WERROR(ndr, "result", r->out.result);
5360
 
                ndr->depth--;
5361
 
        }
5362
 
        ndr->depth--;
5363
 
}
5364
 
 
5365
 
static enum ndr_err_code ndr_push_RequestChallenge(struct ndr_push *ndr, int flags, const struct RequestChallenge *r)
5366
 
{
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));
5375
 
                }
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));
5382
 
                }
5383
 
        }
5384
 
        if (flags & NDR_OUT) {
5385
 
                if (r->out.ORPCthat == NULL) {
5386
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5387
 
                }
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");
5391
 
                }
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));
5397
 
        }
5398
 
        return NDR_ERR_SUCCESS;
5399
 
}
5400
 
 
5401
 
static enum ndr_err_code ndr_pull_RequestChallenge(struct ndr_pull *ndr, int flags, struct RequestChallenge *r)
5402
 
{
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);
5410
 
 
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);
5415
 
                } else {
5416
 
                        r->in.wszNetworkResource = NULL;
5417
 
                }
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));
5425
 
                        }
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);
5429
 
                }
5430
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszUser));
5431
 
                if (_ptr_wszUser) {
5432
 
                        NDR_PULL_ALLOC(ndr, r->in.wszUser);
5433
 
                } else {
5434
 
                        r->in.wszUser = NULL;
5435
 
                }
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));
5443
 
                        }
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);
5447
 
                }
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));
5452
 
        }
5453
 
        if (flags & NDR_OUT) {
5454
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5455
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5456
 
                }
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));
5465
 
                }
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));
5468
 
                }
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));
5471
 
                if (r->out.Nonce) {
5472
 
                        NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.Nonce, 16));
5473
 
                }
5474
 
                if (r->out.Nonce) {
5475
 
                        NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->out.Nonce, 16));
5476
 
                }
5477
 
        }
5478
 
        return NDR_ERR_SUCCESS;
5479
 
}
5480
 
 
5481
 
_PUBLIC_ void ndr_print_RequestChallenge(struct ndr_print *ndr, const char *name, int flags, const struct RequestChallenge *r)
5482
 
{
5483
 
        ndr_print_struct(ndr, name, "RequestChallenge");
5484
 
        if (r == NULL) { ndr_print_null(ndr); return; }
5485
 
        ndr->depth++;
5486
 
        if (flags & NDR_SET_VALUES) {
5487
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5488
 
        }
5489
 
        if (flags & NDR_IN) {
5490
 
                ndr_print_struct(ndr, "in", "RequestChallenge");
5491
 
                ndr->depth++;
5492
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5493
 
                ndr_print_ptr(ndr, "wszNetworkResource", r->in.wszNetworkResource);
5494
 
                ndr->depth++;
5495
 
                if (r->in.wszNetworkResource) {
5496
 
                        ndr_print_string(ndr, "wszNetworkResource", r->in.wszNetworkResource);
5497
 
                }
5498
 
                ndr->depth--;
5499
 
                ndr_print_ptr(ndr, "wszUser", r->in.wszUser);
5500
 
                ndr->depth++;
5501
 
                if (r->in.wszUser) {
5502
 
                        ndr_print_string(ndr, "wszUser", r->in.wszUser);
5503
 
                }
5504
 
                ndr->depth--;
5505
 
                ndr->depth--;
5506
 
        }
5507
 
        if (flags & NDR_OUT) {
5508
 
                ndr_print_struct(ndr, "out", "RequestChallenge");
5509
 
                ndr->depth++;
5510
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5511
 
                ndr->depth++;
5512
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5513
 
                ndr->depth--;
5514
 
                ndr_print_ptr(ndr, "Nonce", r->out.Nonce);
5515
 
                ndr->depth++;
5516
 
                ndr_print_array_uint8(ndr, "Nonce", r->out.Nonce, 16);
5517
 
                ndr->depth--;
5518
 
                ndr_print_WERROR(ndr, "result", r->out.result);
5519
 
                ndr->depth--;
5520
 
        }
5521
 
        ndr->depth--;
5522
 
}
5523
 
 
5524
 
static enum ndr_err_code ndr_push_WBEMLogin(struct ndr_push *ndr, int flags, const struct WBEMLogin *r)
5525
 
{
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));
5534
 
                }
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));
5541
 
                }
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");
5545
 
                }
5546
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
5547
 
        }
5548
 
        if (flags & NDR_OUT) {
5549
 
                if (r->out.ORPCthat == NULL) {
5550
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5551
 
                }
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");
5555
 
                }
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));
5559
 
                }
5560
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5561
 
        }
5562
 
        return NDR_ERR_SUCCESS;
5563
 
}
5564
 
 
5565
 
static enum ndr_err_code ndr_pull_WBEMLogin(struct ndr_pull *ndr, int flags, struct WBEMLogin *r)
5566
 
{
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);
5578
 
 
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);
5583
 
                } else {
5584
 
                        r->in.wszPreferredLocale = NULL;
5585
 
                }
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));
5593
 
                        }
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);
5597
 
                }
5598
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_AccessToken));
5599
 
                if (_ptr_AccessToken) {
5600
 
                        NDR_PULL_ALLOC(ndr, r->in.AccessToken);
5601
 
                } else {
5602
 
                        r->in.AccessToken = NULL;
5603
 
                }
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));
5611
 
                        }
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);
5615
 
                }
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);
5619
 
                }
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));
5630
 
                }
5631
 
                if (r->in.AccessToken) {
5632
 
                        NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->in.AccessToken, 16));
5633
 
                }
5634
 
        }
5635
 
        if (flags & NDR_OUT) {
5636
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5637
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5638
 
                }
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);
5645
 
                }
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);
5651
 
                } else {
5652
 
                        *r->out.ppNamespace = NULL;
5653
 
                }
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);
5659
 
                }
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));
5662
 
        }
5663
 
        return NDR_ERR_SUCCESS;
5664
 
}
5665
 
 
5666
 
_PUBLIC_ void ndr_print_WBEMLogin(struct ndr_print *ndr, const char *name, int flags, const struct WBEMLogin *r)
5667
 
{
5668
 
        ndr_print_struct(ndr, name, "WBEMLogin");
5669
 
        if (r == NULL) { ndr_print_null(ndr); return; }
5670
 
        ndr->depth++;
5671
 
        if (flags & NDR_SET_VALUES) {
5672
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5673
 
        }
5674
 
        if (flags & NDR_IN) {
5675
 
                ndr_print_struct(ndr, "in", "WBEMLogin");
5676
 
                ndr->depth++;
5677
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5678
 
                ndr_print_ptr(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
5679
 
                ndr->depth++;
5680
 
                if (r->in.wszPreferredLocale) {
5681
 
                        ndr_print_string(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
5682
 
                }
5683
 
                ndr->depth--;
5684
 
                ndr_print_ptr(ndr, "AccessToken", r->in.AccessToken);
5685
 
                ndr->depth++;
5686
 
                if (r->in.AccessToken) {
5687
 
                        ndr_print_array_uint8(ndr, "AccessToken", r->in.AccessToken, 16);
5688
 
                }
5689
 
                ndr->depth--;
5690
 
                ndr_print_int32(ndr, "lFlags", r->in.lFlags);
5691
 
                ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
5692
 
                ndr->depth++;
5693
 
                ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
5694
 
                ndr->depth--;
5695
 
                ndr->depth--;
5696
 
        }
5697
 
        if (flags & NDR_OUT) {
5698
 
                ndr_print_struct(ndr, "out", "WBEMLogin");
5699
 
                ndr->depth++;
5700
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5701
 
                ndr->depth++;
5702
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5703
 
                ndr->depth--;
5704
 
                ndr_print_ptr(ndr, "ppNamespace", r->out.ppNamespace);
5705
 
                ndr->depth++;
5706
 
                ndr_print_ptr(ndr, "ppNamespace", *r->out.ppNamespace);
5707
 
                ndr->depth++;
5708
 
                if (*r->out.ppNamespace) {
5709
 
                        ndr_print_MInterfacePointer(ndr, "ppNamespace", *r->out.ppNamespace);
5710
 
                }
5711
 
                ndr->depth--;
5712
 
                ndr->depth--;
5713
 
                ndr_print_WERROR(ndr, "result", r->out.result);
5714
 
                ndr->depth--;
5715
 
        }
5716
 
        ndr->depth--;
5717
 
}
5718
 
 
5719
 
static enum ndr_err_code ndr_push_NTLMLogin(struct ndr_push *ndr, int flags, const struct NTLMLogin *r)
5720
 
{
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));
5729
 
                }
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));
5736
 
                }
5737
 
                NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
5738
 
                NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
5739
 
                if (r->in.pCtx) {
5740
 
                        NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
5741
 
                }
5742
 
        }
5743
 
        if (flags & NDR_OUT) {
5744
 
                if (r->out.ORPCthat == NULL) {
5745
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
5746
 
                }
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");
5750
 
                }
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));
5754
 
                }
5755
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
5756
 
        }
5757
 
        return NDR_ERR_SUCCESS;
5758
 
}
5759
 
 
5760
 
static enum ndr_err_code ndr_pull_NTLMLogin(struct ndr_pull *ndr, int flags, struct NTLMLogin *r)
5761
 
{
5762
 
        uint32_t _ptr_wszNetworkResource;
5763
 
        uint32_t _ptr_wszPreferredLocale;
5764
 
        uint32_t _ptr_pCtx;
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);
5774
 
 
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);
5779
 
                } else {
5780
 
                        r->in.wszNetworkResource = NULL;
5781
 
                }
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));
5789
 
                        }
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);
5793
 
                }
5794
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszPreferredLocale));
5795
 
                if (_ptr_wszPreferredLocale) {
5796
 
                        NDR_PULL_ALLOC(ndr, r->in.wszPreferredLocale);
5797
 
                } else {
5798
 
                        r->in.wszPreferredLocale = NULL;
5799
 
                }
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));
5807
 
                        }
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);
5811
 
                }
5812
 
                NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
5813
 
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
5814
 
                if (_ptr_pCtx) {
5815
 
                        NDR_PULL_ALLOC(ndr, r->in.pCtx);
5816
 
                } else {
5817
 
                        r->in.pCtx = NULL;
5818
 
                }
5819
 
                if (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);
5824
 
                }
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);
5829
 
        }
5830
 
        if (flags & NDR_OUT) {
5831
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
5832
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
5833
 
                }
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);
5840
 
                }
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);
5846
 
                } else {
5847
 
                        *r->out.ppNamespace = NULL;
5848
 
                }
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);
5854
 
                }
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));
5857
 
        }
5858
 
        return NDR_ERR_SUCCESS;
5859
 
}
5860
 
 
5861
 
_PUBLIC_ void ndr_print_NTLMLogin(struct ndr_print *ndr, const char *name, int flags, const struct NTLMLogin *r)
5862
 
{
5863
 
        ndr_print_struct(ndr, name, "NTLMLogin");
5864
 
        if (r == NULL) { ndr_print_null(ndr); return; }
5865
 
        ndr->depth++;
5866
 
        if (flags & NDR_SET_VALUES) {
5867
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
5868
 
        }
5869
 
        if (flags & NDR_IN) {
5870
 
                ndr_print_struct(ndr, "in", "NTLMLogin");
5871
 
                ndr->depth++;
5872
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
5873
 
                ndr_print_ptr(ndr, "wszNetworkResource", r->in.wszNetworkResource);
5874
 
                ndr->depth++;
5875
 
                if (r->in.wszNetworkResource) {
5876
 
                        ndr_print_string(ndr, "wszNetworkResource", r->in.wszNetworkResource);
5877
 
                }
5878
 
                ndr->depth--;
5879
 
                ndr_print_ptr(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
5880
 
                ndr->depth++;
5881
 
                if (r->in.wszPreferredLocale) {
5882
 
                        ndr_print_string(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
5883
 
                }
5884
 
                ndr->depth--;
5885
 
                ndr_print_int32(ndr, "lFlags", r->in.lFlags);
5886
 
                ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
5887
 
                ndr->depth++;
5888
 
                if (r->in.pCtx) {
5889
 
                        ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
5890
 
                }
5891
 
                ndr->depth--;
5892
 
                ndr->depth--;
5893
 
        }
5894
 
        if (flags & NDR_OUT) {
5895
 
                ndr_print_struct(ndr, "out", "NTLMLogin");
5896
 
                ndr->depth++;
5897
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
5898
 
                ndr->depth++;
5899
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
5900
 
                ndr->depth--;
5901
 
                ndr_print_ptr(ndr, "ppNamespace", r->out.ppNamespace);
5902
 
                ndr->depth++;
5903
 
                ndr_print_ptr(ndr, "ppNamespace", *r->out.ppNamespace);
5904
 
                ndr->depth++;
5905
 
                if (*r->out.ppNamespace) {
5906
 
                        ndr_print_MInterfacePointer(ndr, "ppNamespace", *r->out.ppNamespace);
5907
 
                }
5908
 
                ndr->depth--;
5909
 
                ndr->depth--;
5910
 
                ndr_print_WERROR(ndr, "result", r->out.result);
5911
 
                ndr->depth--;
5912
 
        }
5913
 
        ndr->depth--;
5914
 
}
5915
 
 
5916
 
static const struct ndr_interface_call IWbemLevel1Login_calls[] = {
5917
 
        {
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,
5923
 
                { 0, NULL },
5924
 
                { 0, NULL },
5925
 
        },
5926
 
        {
5927
 
                "RequestChallenge",
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,
5932
 
                { 0, NULL },
5933
 
                { 0, NULL },
5934
 
        },
5935
 
        {
5936
 
                "WBEMLogin",
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,
5941
 
                { 0, NULL },
5942
 
                { 0, NULL },
5943
 
        },
5944
 
        {
5945
 
                "NTLMLogin",
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,
5950
 
                { 0, NULL },
5951
 
                { 0, NULL },
5952
 
        },
5953
 
        { NULL, 0, NULL, NULL, NULL }
5954
 
};
5955
 
 
5956
 
static const char * const IWbemLevel1Login_endpoint_strings[] = {
5957
 
        "ncacn_np:[\\pipe\\IWbemLevel1Login]", 
5958
 
};
5959
 
 
5960
 
static const struct ndr_interface_string_array IWbemLevel1Login_endpoints = {
5961
 
        .count  = 1,
5962
 
        .names  = IWbemLevel1Login_endpoint_strings
5963
 
};
5964
 
 
5965
 
static const char * const IWbemLevel1Login_authservice_strings[] = {
5966
 
        "host", 
5967
 
};
5968
 
 
5969
 
static const struct ndr_interface_string_array IWbemLevel1Login_authservices = {
5970
 
        .count  = 1,
5971
 
        .names  = IWbemLevel1Login_authservice_strings
5972
 
};
5973
 
 
5974
 
 
5975
 
const struct ndr_interface_table ndr_table_IWbemLevel1Login = {
5976
 
        .name           = "IWbemLevel1Login",
5977
 
        .syntax_id      = {
5978
 
                {0xf309ad18,0xd86a,0x11d0,{0xa0,0x75},{0x00,0xc0,0x4f,0xb6,0x88,0x20}},
5979
 
                NDR_IWBEMLEVEL1LOGIN_VERSION
5980
 
        },
5981
 
        .helpstring     = NDR_IWBEMLEVEL1LOGIN_HELPSTRING,
5982
 
        .num_calls      = 4,
5983
 
        .calls          = IWbemLevel1Login_calls,
5984
 
        .endpoints      = &IWbemLevel1Login_endpoints,
5985
 
        .authservices   = &IWbemLevel1Login_authservices
5986
 
};
5987
 
 
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)
5990
 
{
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");
5995
 
                }
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");
6002
 
                }
6003
 
                NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.gWCO));
6004
 
        }
6005
 
        if (flags & NDR_OUT) {
6006
 
                if (r->out.ORPCthat == NULL) {
6007
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6008
 
                }
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");
6012
 
                }
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");
6016
 
                }
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");
6020
 
                }
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));
6025
 
                }
6026
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6027
 
        }
6028
 
        return NDR_ERR_SUCCESS;
6029
 
}
6030
 
 
6031
 
static enum ndr_err_code ndr_pull_IWbemWCOSmartEnum_Next(struct ndr_pull *ndr, int flags, struct IWbemWCOSmartEnum_Next *r)
6032
 
{
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);
6043
 
 
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);
6047
 
                }
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);
6057
 
                }
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);
6070
 
        }
6071
 
        if (flags & NDR_OUT) {
6072
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6073
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6074
 
                }
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);
6081
 
                }
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);
6088
 
                }
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);
6095
 
                }
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));
6099
 
                if (_ptr_pData) {
6100
 
                        NDR_PULL_ALLOC(ndr, *r->out.pData);
6101
 
                } else {
6102
 
                        *r->out.pData = NULL;
6103
 
                }
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);
6111
 
                }
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));
6116
 
                }
6117
 
        }
6118
 
        return NDR_ERR_SUCCESS;
6119
 
}
6120
 
 
6121
 
_PUBLIC_ void ndr_print_IWbemWCOSmartEnum_Next(struct ndr_print *ndr, const char *name, int flags, const struct IWbemWCOSmartEnum_Next *r)
6122
 
{
6123
 
        ndr_print_struct(ndr, name, "IWbemWCOSmartEnum_Next");
6124
 
        if (r == NULL) { ndr_print_null(ndr); return; }
6125
 
        ndr->depth++;
6126
 
        if (flags & NDR_SET_VALUES) {
6127
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6128
 
        }
6129
 
        if (flags & NDR_IN) {
6130
 
                ndr_print_struct(ndr, "in", "IWbemWCOSmartEnum_Next");
6131
 
                ndr->depth++;
6132
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6133
 
                ndr_print_ptr(ndr, "gEWCO", r->in.gEWCO);
6134
 
                ndr->depth++;
6135
 
                ndr_print_GUID(ndr, "gEWCO", r->in.gEWCO);
6136
 
                ndr->depth--;
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);
6141
 
                ndr->depth++;
6142
 
                ndr_print_GUID(ndr, "gWCO", r->in.gWCO);
6143
 
                ndr->depth--;
6144
 
                ndr->depth--;
6145
 
        }
6146
 
        if (flags & NDR_OUT) {
6147
 
                ndr_print_struct(ndr, "out", "IWbemWCOSmartEnum_Next");
6148
 
                ndr->depth++;
6149
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6150
 
                ndr->depth++;
6151
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6152
 
                ndr->depth--;
6153
 
                ndr_print_ptr(ndr, "puReturned", r->out.puReturned);
6154
 
                ndr->depth++;
6155
 
                ndr_print_uint32(ndr, "puReturned", *r->out.puReturned);
6156
 
                ndr->depth--;
6157
 
                ndr_print_ptr(ndr, "pSize", r->out.pSize);
6158
 
                ndr->depth++;
6159
 
                ndr_print_uint32(ndr, "pSize", *r->out.pSize);
6160
 
                ndr->depth--;
6161
 
                ndr_print_ptr(ndr, "pData", r->out.pData);
6162
 
                ndr->depth++;
6163
 
                ndr_print_ptr(ndr, "pData", *r->out.pData);
6164
 
                ndr->depth++;
6165
 
                if (*r->out.pData) {
6166
 
                        ndr_print_array_uint8(ndr, "pData", *r->out.pData, *r->out.pSize);
6167
 
                }
6168
 
                ndr->depth--;
6169
 
                ndr->depth--;
6170
 
                ndr_print_WERROR(ndr, "result", r->out.result);
6171
 
                ndr->depth--;
6172
 
        }
6173
 
        ndr->depth--;
6174
 
}
6175
 
 
6176
 
static const struct ndr_interface_call IWbemWCOSmartEnum_calls[] = {
6177
 
        {
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,
6183
 
                { 0, NULL },
6184
 
                { 0, NULL },
6185
 
        },
6186
 
        { NULL, 0, NULL, NULL, NULL }
6187
 
};
6188
 
 
6189
 
static const char * const IWbemWCOSmartEnum_endpoint_strings[] = {
6190
 
        "ncacn_np:[\\pipe\\IWbemWCOSmartEnum]", 
6191
 
};
6192
 
 
6193
 
static const struct ndr_interface_string_array IWbemWCOSmartEnum_endpoints = {
6194
 
        .count  = 1,
6195
 
        .names  = IWbemWCOSmartEnum_endpoint_strings
6196
 
};
6197
 
 
6198
 
static const char * const IWbemWCOSmartEnum_authservice_strings[] = {
6199
 
        "host", 
6200
 
};
6201
 
 
6202
 
static const struct ndr_interface_string_array IWbemWCOSmartEnum_authservices = {
6203
 
        .count  = 1,
6204
 
        .names  = IWbemWCOSmartEnum_authservice_strings
6205
 
};
6206
 
 
6207
 
 
6208
 
const struct ndr_interface_table ndr_table_IWbemWCOSmartEnum = {
6209
 
        .name           = "IWbemWCOSmartEnum",
6210
 
        .syntax_id      = {
6211
 
                {0x423ec01e,0x2e35,0x11d2,{0xb6,0x04},{0x00,0x10,0x4b,0x70,0x3e,0xfd}},
6212
 
                NDR_IWBEMWCOSMARTENUM_VERSION
6213
 
        },
6214
 
        .helpstring     = NDR_IWBEMWCOSMARTENUM_HELPSTRING,
6215
 
        .num_calls      = 1,
6216
 
        .calls          = IWbemWCOSmartEnum_calls,
6217
 
        .endpoints      = &IWbemWCOSmartEnum_endpoints,
6218
 
        .authservices   = &IWbemWCOSmartEnum_authservices
6219
 
};
6220
 
 
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)
6223
 
{
6224
 
        if (flags & NDR_IN) {
6225
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6226
 
        }
6227
 
        if (flags & NDR_OUT) {
6228
 
                if (r->out.ORPCthat == NULL) {
6229
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6230
 
                }
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");
6234
 
                }
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));
6238
 
                }
6239
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6240
 
        }
6241
 
        return NDR_ERR_SUCCESS;
6242
 
}
6243
 
 
6244
 
static enum ndr_err_code ndr_pull_Fetch(struct ndr_pull *ndr, int flags, struct Fetch *r)
6245
 
{
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);
6252
 
 
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);
6258
 
        }
6259
 
        if (flags & NDR_OUT) {
6260
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6261
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6262
 
                }
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);
6269
 
                }
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));
6273
 
                if (_ptr_ppEnum) {
6274
 
                        NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
6275
 
                } else {
6276
 
                        *r->out.ppEnum = NULL;
6277
 
                }
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);
6283
 
                }
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));
6286
 
        }
6287
 
        return NDR_ERR_SUCCESS;
6288
 
}
6289
 
 
6290
 
_PUBLIC_ void ndr_print_Fetch(struct ndr_print *ndr, const char *name, int flags, const struct Fetch *r)
6291
 
{
6292
 
        ndr_print_struct(ndr, name, "Fetch");
6293
 
        if (r == NULL) { ndr_print_null(ndr); return; }
6294
 
        ndr->depth++;
6295
 
        if (flags & NDR_SET_VALUES) {
6296
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6297
 
        }
6298
 
        if (flags & NDR_IN) {
6299
 
                ndr_print_struct(ndr, "in", "Fetch");
6300
 
                ndr->depth++;
6301
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6302
 
                ndr->depth--;
6303
 
        }
6304
 
        if (flags & NDR_OUT) {
6305
 
                ndr_print_struct(ndr, "out", "Fetch");
6306
 
                ndr->depth++;
6307
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6308
 
                ndr->depth++;
6309
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6310
 
                ndr->depth--;
6311
 
                ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
6312
 
                ndr->depth++;
6313
 
                ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
6314
 
                ndr->depth++;
6315
 
                if (*r->out.ppEnum) {
6316
 
                        ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
6317
 
                }
6318
 
                ndr->depth--;
6319
 
                ndr->depth--;
6320
 
                ndr_print_WERROR(ndr, "result", r->out.result);
6321
 
                ndr->depth--;
6322
 
        }
6323
 
        ndr->depth--;
6324
 
}
6325
 
 
6326
 
static enum ndr_err_code ndr_push_Test(struct ndr_push *ndr, int flags, const struct Test *r)
6327
 
{
6328
 
        if (flags & NDR_IN) {
6329
 
                NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
6330
 
        }
6331
 
        if (flags & NDR_OUT) {
6332
 
                if (r->out.ORPCthat == NULL) {
6333
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6334
 
                }
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");
6338
 
                }
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));
6342
 
                }
6343
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6344
 
        }
6345
 
        return NDR_ERR_SUCCESS;
6346
 
}
6347
 
 
6348
 
static enum ndr_err_code ndr_pull_Test(struct ndr_pull *ndr, int flags, struct Test *r)
6349
 
{
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);
6356
 
 
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);
6362
 
        }
6363
 
        if (flags & NDR_OUT) {
6364
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6365
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6366
 
                }
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);
6373
 
                }
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));
6377
 
                if (_ptr_ppEnum) {
6378
 
                        NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
6379
 
                } else {
6380
 
                        *r->out.ppEnum = NULL;
6381
 
                }
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);
6387
 
                }
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));
6390
 
        }
6391
 
        return NDR_ERR_SUCCESS;
6392
 
}
6393
 
 
6394
 
_PUBLIC_ void ndr_print_Test(struct ndr_print *ndr, const char *name, int flags, const struct Test *r)
6395
 
{
6396
 
        ndr_print_struct(ndr, name, "Test");
6397
 
        if (r == NULL) { ndr_print_null(ndr); return; }
6398
 
        ndr->depth++;
6399
 
        if (flags & NDR_SET_VALUES) {
6400
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6401
 
        }
6402
 
        if (flags & NDR_IN) {
6403
 
                ndr_print_struct(ndr, "in", "Test");
6404
 
                ndr->depth++;
6405
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6406
 
                ndr->depth--;
6407
 
        }
6408
 
        if (flags & NDR_OUT) {
6409
 
                ndr_print_struct(ndr, "out", "Test");
6410
 
                ndr->depth++;
6411
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6412
 
                ndr->depth++;
6413
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6414
 
                ndr->depth--;
6415
 
                ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
6416
 
                ndr->depth++;
6417
 
                ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
6418
 
                ndr->depth++;
6419
 
                if (*r->out.ppEnum) {
6420
 
                        ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
6421
 
                }
6422
 
                ndr->depth--;
6423
 
                ndr->depth--;
6424
 
                ndr_print_WERROR(ndr, "result", r->out.result);
6425
 
                ndr->depth--;
6426
 
        }
6427
 
        ndr->depth--;
6428
 
}
6429
 
 
6430
 
static const struct ndr_interface_call IWbemFetchSmartEnum_calls[] = {
6431
 
        {
6432
 
                "Fetch",
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,
6437
 
                { 0, NULL },
6438
 
                { 0, NULL },
6439
 
        },
6440
 
        {
6441
 
                "Test",
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,
6446
 
                { 0, NULL },
6447
 
                { 0, NULL },
6448
 
        },
6449
 
        { NULL, 0, NULL, NULL, NULL }
6450
 
};
6451
 
 
6452
 
static const char * const IWbemFetchSmartEnum_endpoint_strings[] = {
6453
 
        "ncacn_np:[\\pipe\\IWbemFetchSmartEnum]", 
6454
 
};
6455
 
 
6456
 
static const struct ndr_interface_string_array IWbemFetchSmartEnum_endpoints = {
6457
 
        .count  = 1,
6458
 
        .names  = IWbemFetchSmartEnum_endpoint_strings
6459
 
};
6460
 
 
6461
 
static const char * const IWbemFetchSmartEnum_authservice_strings[] = {
6462
 
        "host", 
6463
 
};
6464
 
 
6465
 
static const struct ndr_interface_string_array IWbemFetchSmartEnum_authservices = {
6466
 
        .count  = 1,
6467
 
        .names  = IWbemFetchSmartEnum_authservice_strings
6468
 
};
6469
 
 
6470
 
 
6471
 
const struct ndr_interface_table ndr_table_IWbemFetchSmartEnum = {
6472
 
        .name           = "IWbemFetchSmartEnum",
6473
 
        .syntax_id      = {
6474
 
                {0x1c1c45ee,0x4395,0x11d2,{0xb6,0x0b},{0x00,0x10,0x4b,0x70,0x3e,0xfd}},
6475
 
                NDR_IWBEMFETCHSMARTENUM_VERSION
6476
 
        },
6477
 
        .helpstring     = NDR_IWBEMFETCHSMARTENUM_HELPSTRING,
6478
 
        .num_calls      = 2,
6479
 
        .calls          = IWbemFetchSmartEnum_calls,
6480
 
        .endpoints      = &IWbemFetchSmartEnum_endpoints,
6481
 
        .authservices   = &IWbemFetchSmartEnum_authservices
6482
 
};
6483
 
 
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)
6486
 
{
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));
6490
 
        }
6491
 
        if (flags & NDR_OUT) {
6492
 
                if (r->out.ORPCthat == NULL) {
6493
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6494
 
                }
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");
6498
 
                }
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));
6502
 
                }
6503
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6504
 
        }
6505
 
        return NDR_ERR_SUCCESS;
6506
 
}
6507
 
 
6508
 
static enum ndr_err_code ndr_pull_GetResultObject(struct ndr_pull *ndr, int flags, struct GetResultObject *r)
6509
 
{
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);
6516
 
 
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);
6523
 
        }
6524
 
        if (flags & NDR_OUT) {
6525
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6526
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6527
 
                }
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);
6534
 
                }
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);
6540
 
                } else {
6541
 
                        *r->out.ppResultObject = NULL;
6542
 
                }
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);
6548
 
                }
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));
6551
 
        }
6552
 
        return NDR_ERR_SUCCESS;
6553
 
}
6554
 
 
6555
 
_PUBLIC_ void ndr_print_GetResultObject(struct ndr_print *ndr, const char *name, int flags, const struct GetResultObject *r)
6556
 
{
6557
 
        ndr_print_struct(ndr, name, "GetResultObject");
6558
 
        if (r == NULL) { ndr_print_null(ndr); return; }
6559
 
        ndr->depth++;
6560
 
        if (flags & NDR_SET_VALUES) {
6561
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6562
 
        }
6563
 
        if (flags & NDR_IN) {
6564
 
                ndr_print_struct(ndr, "in", "GetResultObject");
6565
 
                ndr->depth++;
6566
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6567
 
                ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
6568
 
                ndr->depth--;
6569
 
        }
6570
 
        if (flags & NDR_OUT) {
6571
 
                ndr_print_struct(ndr, "out", "GetResultObject");
6572
 
                ndr->depth++;
6573
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6574
 
                ndr->depth++;
6575
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6576
 
                ndr->depth--;
6577
 
                ndr_print_ptr(ndr, "ppResultObject", r->out.ppResultObject);
6578
 
                ndr->depth++;
6579
 
                ndr_print_ptr(ndr, "ppResultObject", *r->out.ppResultObject);
6580
 
                ndr->depth++;
6581
 
                if (*r->out.ppResultObject) {
6582
 
                        ndr_print_MInterfacePointer(ndr, "ppResultObject", *r->out.ppResultObject);
6583
 
                }
6584
 
                ndr->depth--;
6585
 
                ndr->depth--;
6586
 
                ndr_print_WERROR(ndr, "result", r->out.result);
6587
 
                ndr->depth--;
6588
 
        }
6589
 
        ndr->depth--;
6590
 
}
6591
 
 
6592
 
static enum ndr_err_code ndr_push_GetResultString(struct ndr_push *ndr, int flags, const struct GetResultString *r)
6593
 
{
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));
6597
 
        }
6598
 
        if (flags & NDR_OUT) {
6599
 
                if (r->out.ORPCthat == NULL) {
6600
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6601
 
                }
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");
6605
 
                }
6606
 
                NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, r->out.pstrResultString));
6607
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6608
 
        }
6609
 
        return NDR_ERR_SUCCESS;
6610
 
}
6611
 
 
6612
 
static enum ndr_err_code ndr_pull_GetResultString(struct ndr_pull *ndr, int flags, struct GetResultString *r)
6613
 
{
6614
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
6615
 
        TALLOC_CTX *_mem_save_pstrResultString_0;
6616
 
        if (flags & NDR_IN) {
6617
 
                ZERO_STRUCT(r->out);
6618
 
 
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);
6625
 
        }
6626
 
        if (flags & NDR_OUT) {
6627
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6628
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6629
 
                }
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);
6636
 
                }
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));
6642
 
        }
6643
 
        return NDR_ERR_SUCCESS;
6644
 
}
6645
 
 
6646
 
_PUBLIC_ void ndr_print_GetResultString(struct ndr_print *ndr, const char *name, int flags, const struct GetResultString *r)
6647
 
{
6648
 
        ndr_print_struct(ndr, name, "GetResultString");
6649
 
        if (r == NULL) { ndr_print_null(ndr); return; }
6650
 
        ndr->depth++;
6651
 
        if (flags & NDR_SET_VALUES) {
6652
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6653
 
        }
6654
 
        if (flags & NDR_IN) {
6655
 
                ndr_print_struct(ndr, "in", "GetResultString");
6656
 
                ndr->depth++;
6657
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6658
 
                ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
6659
 
                ndr->depth--;
6660
 
        }
6661
 
        if (flags & NDR_OUT) {
6662
 
                ndr_print_struct(ndr, "out", "GetResultString");
6663
 
                ndr->depth++;
6664
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6665
 
                ndr->depth++;
6666
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6667
 
                ndr->depth--;
6668
 
                ndr_print_ptr(ndr, "pstrResultString", r->out.pstrResultString);
6669
 
                ndr->depth++;
6670
 
                ndr_print_BSTR(ndr, "pstrResultString", r->out.pstrResultString);
6671
 
                ndr->depth--;
6672
 
                ndr_print_WERROR(ndr, "result", r->out.result);
6673
 
                ndr->depth--;
6674
 
        }
6675
 
        ndr->depth--;
6676
 
}
6677
 
 
6678
 
static enum ndr_err_code ndr_push_GetResultServices(struct ndr_push *ndr, int flags, const struct GetResultServices *r)
6679
 
{
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));
6683
 
        }
6684
 
        if (flags & NDR_OUT) {
6685
 
                if (r->out.ORPCthat == NULL) {
6686
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6687
 
                }
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");
6691
 
                }
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));
6695
 
                }
6696
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6697
 
        }
6698
 
        return NDR_ERR_SUCCESS;
6699
 
}
6700
 
 
6701
 
static enum ndr_err_code ndr_pull_GetResultServices(struct ndr_pull *ndr, int flags, struct GetResultServices *r)
6702
 
{
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);
6709
 
 
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);
6716
 
        }
6717
 
        if (flags & NDR_OUT) {
6718
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6719
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6720
 
                }
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);
6727
 
                }
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);
6733
 
                } else {
6734
 
                        *r->out.ppServices = NULL;
6735
 
                }
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);
6741
 
                }
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));
6744
 
        }
6745
 
        return NDR_ERR_SUCCESS;
6746
 
}
6747
 
 
6748
 
_PUBLIC_ void ndr_print_GetResultServices(struct ndr_print *ndr, const char *name, int flags, const struct GetResultServices *r)
6749
 
{
6750
 
        ndr_print_struct(ndr, name, "GetResultServices");
6751
 
        if (r == NULL) { ndr_print_null(ndr); return; }
6752
 
        ndr->depth++;
6753
 
        if (flags & NDR_SET_VALUES) {
6754
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6755
 
        }
6756
 
        if (flags & NDR_IN) {
6757
 
                ndr_print_struct(ndr, "in", "GetResultServices");
6758
 
                ndr->depth++;
6759
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6760
 
                ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
6761
 
                ndr->depth--;
6762
 
        }
6763
 
        if (flags & NDR_OUT) {
6764
 
                ndr_print_struct(ndr, "out", "GetResultServices");
6765
 
                ndr->depth++;
6766
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6767
 
                ndr->depth++;
6768
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6769
 
                ndr->depth--;
6770
 
                ndr_print_ptr(ndr, "ppServices", r->out.ppServices);
6771
 
                ndr->depth++;
6772
 
                ndr_print_ptr(ndr, "ppServices", *r->out.ppServices);
6773
 
                ndr->depth++;
6774
 
                if (*r->out.ppServices) {
6775
 
                        ndr_print_MInterfacePointer(ndr, "ppServices", *r->out.ppServices);
6776
 
                }
6777
 
                ndr->depth--;
6778
 
                ndr->depth--;
6779
 
                ndr_print_WERROR(ndr, "result", r->out.result);
6780
 
                ndr->depth--;
6781
 
        }
6782
 
        ndr->depth--;
6783
 
}
6784
 
 
6785
 
static enum ndr_err_code ndr_push_GetCallStatus(struct ndr_push *ndr, int flags, const struct GetCallStatus *r)
6786
 
{
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));
6790
 
        }
6791
 
        if (flags & NDR_OUT) {
6792
 
                if (r->out.ORPCthat == NULL) {
6793
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6794
 
                }
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");
6798
 
                }
6799
 
                NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, *r->out.plStatus));
6800
 
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
6801
 
        }
6802
 
        return NDR_ERR_SUCCESS;
6803
 
}
6804
 
 
6805
 
static enum ndr_err_code ndr_pull_GetCallStatus(struct ndr_pull *ndr, int flags, struct GetCallStatus *r)
6806
 
{
6807
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
6808
 
        TALLOC_CTX *_mem_save_plStatus_0;
6809
 
        if (flags & NDR_IN) {
6810
 
                ZERO_STRUCT(r->out);
6811
 
 
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);
6818
 
        }
6819
 
        if (flags & NDR_OUT) {
6820
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6821
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6822
 
                }
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);
6829
 
                }
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));
6835
 
        }
6836
 
        return NDR_ERR_SUCCESS;
6837
 
}
6838
 
 
6839
 
_PUBLIC_ void ndr_print_GetCallStatus(struct ndr_print *ndr, const char *name, int flags, const struct GetCallStatus *r)
6840
 
{
6841
 
        ndr_print_struct(ndr, name, "GetCallStatus");
6842
 
        if (r == NULL) { ndr_print_null(ndr); return; }
6843
 
        ndr->depth++;
6844
 
        if (flags & NDR_SET_VALUES) {
6845
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6846
 
        }
6847
 
        if (flags & NDR_IN) {
6848
 
                ndr_print_struct(ndr, "in", "GetCallStatus");
6849
 
                ndr->depth++;
6850
 
                ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
6851
 
                ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
6852
 
                ndr->depth--;
6853
 
        }
6854
 
        if (flags & NDR_OUT) {
6855
 
                ndr_print_struct(ndr, "out", "GetCallStatus");
6856
 
                ndr->depth++;
6857
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
6858
 
                ndr->depth++;
6859
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
6860
 
                ndr->depth--;
6861
 
                ndr_print_ptr(ndr, "plStatus", r->out.plStatus);
6862
 
                ndr->depth++;
6863
 
                ndr_print_int32(ndr, "plStatus", *r->out.plStatus);
6864
 
                ndr->depth--;
6865
 
                ndr_print_WERROR(ndr, "result", r->out.result);
6866
 
                ndr->depth--;
6867
 
        }
6868
 
        ndr->depth--;
6869
 
}
6870
 
 
6871
 
static const struct ndr_interface_call IWbemCallResult_calls[] = {
6872
 
        {
6873
 
                "GetResultObject",
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,
6878
 
                { 0, NULL },
6879
 
                { 0, NULL },
6880
 
        },
6881
 
        {
6882
 
                "GetResultString",
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,
6887
 
                { 0, NULL },
6888
 
                { 0, NULL },
6889
 
        },
6890
 
        {
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,
6896
 
                { 0, NULL },
6897
 
                { 0, NULL },
6898
 
        },
6899
 
        {
6900
 
                "GetCallStatus",
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,
6905
 
                { 0, NULL },
6906
 
                { 0, NULL },
6907
 
        },
6908
 
        { NULL, 0, NULL, NULL, NULL }
6909
 
};
6910
 
 
6911
 
static const char * const IWbemCallResult_endpoint_strings[] = {
6912
 
        "ncacn_np:[\\pipe\\IWbemCallResult]", 
6913
 
};
6914
 
 
6915
 
static const struct ndr_interface_string_array IWbemCallResult_endpoints = {
6916
 
        .count  = 1,
6917
 
        .names  = IWbemCallResult_endpoint_strings
6918
 
};
6919
 
 
6920
 
static const char * const IWbemCallResult_authservice_strings[] = {
6921
 
        "host", 
6922
 
};
6923
 
 
6924
 
static const struct ndr_interface_string_array IWbemCallResult_authservices = {
6925
 
        .count  = 1,
6926
 
        .names  = IWbemCallResult_authservice_strings
6927
 
};
6928
 
 
6929
 
 
6930
 
const struct ndr_interface_table ndr_table_IWbemCallResult = {
6931
 
        .name           = "IWbemCallResult",
6932
 
        .syntax_id      = {
6933
 
                {0x44aca675,0xe8fc,0x11d0,{0xa0,0x7c},{0x00,0xc0,0x4f,0xb6,0x88,0x20}},
6934
 
                NDR_IWBEMCALLRESULT_VERSION
6935
 
        },
6936
 
        .helpstring     = NDR_IWBEMCALLRESULT_HELPSTRING,
6937
 
        .num_calls      = 4,
6938
 
        .calls          = IWbemCallResult_calls,
6939
 
        .endpoints      = &IWbemCallResult_endpoints,
6940
 
        .authservices   = &IWbemCallResult_authservices
6941
 
};
6942
 
 
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)
6945
 
{
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");
6953
 
                }
6954
 
                NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObjParam));
6955
 
        }
6956
 
        if (flags & NDR_OUT) {
6957
 
                if (r->out.ORPCthat == NULL) {
6958
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6959
 
                }
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));
6962
 
        }
6963
 
        return NDR_ERR_SUCCESS;
6964
 
}
6965
 
 
6966
 
static enum ndr_err_code ndr_pull_SetStatus(struct ndr_pull *ndr, int flags, struct SetStatus *r)
6967
 
{
6968
 
        TALLOC_CTX *_mem_save_ORPCthat_0;
6969
 
        TALLOC_CTX *_mem_save_pObjParam_0;
6970
 
        if (flags & NDR_IN) {
6971
 
                ZERO_STRUCT(r->out);
6972
 
 
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);
6979
 
                }
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);
6986
 
        }
6987
 
        if (flags & NDR_OUT) {
6988
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6989
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
6990
 
                }
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));
6996
 
        }
6997
 
        return NDR_ERR_SUCCESS;
6998
 
}
6999
 
 
7000
 
_PUBLIC_ void ndr_print_SetStatus(struct ndr_print *ndr, const char *name, int flags, const struct SetStatus *r)
7001
 
{
7002
 
        ndr_print_struct(ndr, name, "SetStatus");
7003
 
        if (r == NULL) { ndr_print_null(ndr); return; }
7004
 
        ndr->depth++;
7005
 
        if (flags & NDR_SET_VALUES) {
7006
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7007
 
        }
7008
 
        if (flags & NDR_IN) {
7009
 
                ndr_print_struct(ndr, "in", "SetStatus");
7010
 
                ndr->depth++;
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);
7016
 
                ndr->depth++;
7017
 
                ndr_print_MInterfacePointer(ndr, "pObjParam", r->in.pObjParam);
7018
 
                ndr->depth--;
7019
 
                ndr->depth--;
7020
 
        }
7021
 
        if (flags & NDR_OUT) {
7022
 
                ndr_print_struct(ndr, "out", "SetStatus");
7023
 
                ndr->depth++;
7024
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
7025
 
                ndr->depth++;
7026
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
7027
 
                ndr->depth--;
7028
 
                ndr_print_WERROR(ndr, "result", r->out.result);
7029
 
                ndr->depth--;
7030
 
        }
7031
 
        ndr->depth--;
7032
 
}
7033
 
 
7034
 
static enum ndr_err_code ndr_push_Indicate(struct ndr_push *ndr, int flags, const struct Indicate *r)
7035
 
{
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");
7042
 
                }
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]));
7046
 
                }
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]));
7050
 
                        }
7051
 
                }
7052
 
        }
7053
 
        if (flags & NDR_OUT) {
7054
 
                if (r->out.ORPCthat == NULL) {
7055
 
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7056
 
                }
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));
7059
 
        }
7060
 
        return NDR_ERR_SUCCESS;
7061
 
}
7062
 
 
7063
 
static enum ndr_err_code ndr_pull_Indicate(struct ndr_pull *ndr, int flags, struct Indicate *r)
7064
 
{
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);
7072
 
 
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));
7078
 
                }
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]);
7085
 
                        } else {
7086
 
                                r->in.apObjArray[cntr_apObjArray_1] = NULL;
7087
 
                        }
7088
 
                }
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);
7095
 
                        }
7096
 
                }
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));
7102
 
                }
7103
 
        }
7104
 
        if (flags & NDR_OUT) {
7105
 
                if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7106
 
                        NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
7107
 
                }
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));
7113
 
        }
7114
 
        return NDR_ERR_SUCCESS;
7115
 
}
7116
 
 
7117
 
_PUBLIC_ void ndr_print_Indicate(struct ndr_print *ndr, const char *name, int flags, const struct Indicate *r)
7118
 
{
7119
 
        uint32_t cntr_apObjArray_1;
7120
 
        ndr_print_struct(ndr, name, "Indicate");
7121
 
        if (r == NULL) { ndr_print_null(ndr); return; }
7122
 
        ndr->depth++;
7123
 
        if (flags & NDR_SET_VALUES) {
7124
 
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7125
 
        }
7126
 
        if (flags & NDR_IN) {
7127
 
                ndr_print_struct(ndr, "in", "Indicate");
7128
 
                ndr->depth++;
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);
7132
 
                ndr->depth++;
7133
 
                ndr->print(ndr, "%s: ARRAY(%d)", "apObjArray", (int)r->in.lObjectCount);
7134
 
                ndr->depth++;
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]);
7137
 
                        ndr->depth++;
7138
 
                        if (r->in.apObjArray[cntr_apObjArray_1]) {
7139
 
                                ndr_print_MInterfacePointer(ndr, "apObjArray", r->in.apObjArray[cntr_apObjArray_1]);
7140
 
                        }
7141
 
                        ndr->depth--;
7142
 
                }
7143
 
                ndr->depth--;
7144
 
                ndr->depth--;
7145
 
                ndr->depth--;
7146
 
        }
7147
 
        if (flags & NDR_OUT) {
7148
 
                ndr_print_struct(ndr, "out", "Indicate");
7149
 
                ndr->depth++;
7150
 
                ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
7151
 
                ndr->depth++;
7152
 
                ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
7153
 
                ndr->depth--;
7154
 
                ndr_print_WERROR(ndr, "result", r->out.result);
7155
 
                ndr->depth--;
7156
 
        }
7157
 
        ndr->depth--;
7158
 
}
7159
 
 
7160
 
static const struct ndr_interface_call IWbemObjectSink_calls[] = {
7161
 
        {
7162
 
                "SetStatus",
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,
7167
 
                { 0, NULL },
7168
 
                { 0, NULL },
7169
 
        },
7170
 
        {
7171
 
                "Indicate",
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,
7176
 
                { 0, NULL },
7177
 
                { 0, NULL },
7178
 
        },
7179
 
        { NULL, 0, NULL, NULL, NULL }
7180
 
};
7181
 
 
7182
 
static const char * const IWbemObjectSink_endpoint_strings[] = {
7183
 
        "ncacn_np:[\\pipe\\IWbemObjectSink]", 
7184
 
};
7185
 
 
7186
 
static const struct ndr_interface_string_array IWbemObjectSink_endpoints = {
7187
 
        .count  = 1,
7188
 
        .names  = IWbemObjectSink_endpoint_strings
7189
 
};
7190
 
 
7191
 
static const char * const IWbemObjectSink_authservice_strings[] = {
7192
 
        "host", 
7193
 
};
7194
 
 
7195
 
static const struct ndr_interface_string_array IWbemObjectSink_authservices = {
7196
 
        .count  = 1,
7197
 
        .names  = IWbemObjectSink_authservice_strings
7198
 
};
7199
 
 
7200
 
 
7201
 
const struct ndr_interface_table ndr_table_IWbemObjectSink = {
7202
 
        .name           = "IWbemObjectSink",
7203
 
        .syntax_id      = {
7204
 
                {0x7c857801,0x7381,0x11cf,{0x88,0x4d},{0x00,0xaa,0x00,0x4b,0x2e,0x24}},
7205
 
                NDR_IWBEMOBJECTSINK_VERSION
7206
 
        },
7207
 
        .helpstring     = NDR_IWBEMOBJECTSINK_HELPSTRING,
7208
 
        .num_calls      = 2,
7209
 
        .calls          = IWbemObjectSink_calls,
7210
 
        .endpoints      = &IWbemObjectSink_endpoints,
7211
 
        .authservices   = &IWbemObjectSink_authservices
7212
 
};
7213