~lefteris-nikoltsios/+junk/samba-lp1016895

« back to all changes in this revision

Viewing changes to source3/librpc/gen_ndr/ndr_dsbackup.c

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + 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.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + 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.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

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_dsbackup.h"
 
5
 
 
6
static enum ndr_err_code ndr_push_HrRBackupPrepare(struct ndr_push *ndr, int flags, const struct HrRBackupPrepare *r)
 
7
{
 
8
        if (flags & NDR_IN) {
 
9
        }
 
10
        if (flags & NDR_OUT) {
 
11
        }
 
12
        return NDR_ERR_SUCCESS;
 
13
}
 
14
 
 
15
static enum ndr_err_code ndr_pull_HrRBackupPrepare(struct ndr_pull *ndr, int flags, struct HrRBackupPrepare *r)
 
16
{
 
17
        if (flags & NDR_IN) {
 
18
        }
 
19
        if (flags & NDR_OUT) {
 
20
        }
 
21
        return NDR_ERR_SUCCESS;
 
22
}
 
23
 
 
24
_PUBLIC_ void ndr_print_HrRBackupPrepare(struct ndr_print *ndr, const char *name, int flags, const struct HrRBackupPrepare *r)
 
25
{
 
26
        ndr_print_struct(ndr, name, "HrRBackupPrepare");
 
27
        if (r == NULL) { ndr_print_null(ndr); return; }
 
28
        ndr->depth++;
 
29
        if (flags & NDR_SET_VALUES) {
 
30
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
31
        }
 
32
        if (flags & NDR_IN) {
 
33
                ndr_print_struct(ndr, "in", "HrRBackupPrepare");
 
34
                ndr->depth++;
 
35
                ndr->depth--;
 
36
        }
 
37
        if (flags & NDR_OUT) {
 
38
                ndr_print_struct(ndr, "out", "HrRBackupPrepare");
 
39
                ndr->depth++;
 
40
                ndr->depth--;
 
41
        }
 
42
        ndr->depth--;
 
43
}
 
44
 
 
45
static enum ndr_err_code ndr_push_HrRBackupEnd(struct ndr_push *ndr, int flags, const struct HrRBackupEnd *r)
 
46
{
 
47
        if (flags & NDR_IN) {
 
48
        }
 
49
        if (flags & NDR_OUT) {
 
50
        }
 
51
        return NDR_ERR_SUCCESS;
 
52
}
 
53
 
 
54
static enum ndr_err_code ndr_pull_HrRBackupEnd(struct ndr_pull *ndr, int flags, struct HrRBackupEnd *r)
 
55
{
 
56
        if (flags & NDR_IN) {
 
57
        }
 
58
        if (flags & NDR_OUT) {
 
59
        }
 
60
        return NDR_ERR_SUCCESS;
 
61
}
 
62
 
 
63
_PUBLIC_ void ndr_print_HrRBackupEnd(struct ndr_print *ndr, const char *name, int flags, const struct HrRBackupEnd *r)
 
64
{
 
65
        ndr_print_struct(ndr, name, "HrRBackupEnd");
 
66
        if (r == NULL) { ndr_print_null(ndr); return; }
 
67
        ndr->depth++;
 
68
        if (flags & NDR_SET_VALUES) {
 
69
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
70
        }
 
71
        if (flags & NDR_IN) {
 
72
                ndr_print_struct(ndr, "in", "HrRBackupEnd");
 
73
                ndr->depth++;
 
74
                ndr->depth--;
 
75
        }
 
76
        if (flags & NDR_OUT) {
 
77
                ndr_print_struct(ndr, "out", "HrRBackupEnd");
 
78
                ndr->depth++;
 
79
                ndr->depth--;
 
80
        }
 
81
        ndr->depth--;
 
82
}
 
83
 
 
84
static enum ndr_err_code ndr_push_HrRBackupGetAttachmentInformation(struct ndr_push *ndr, int flags, const struct HrRBackupGetAttachmentInformation *r)
 
85
{
 
86
        if (flags & NDR_IN) {
 
87
        }
 
88
        if (flags & NDR_OUT) {
 
89
        }
 
90
        return NDR_ERR_SUCCESS;
 
91
}
 
92
 
 
93
static enum ndr_err_code ndr_pull_HrRBackupGetAttachmentInformation(struct ndr_pull *ndr, int flags, struct HrRBackupGetAttachmentInformation *r)
 
94
{
 
95
        if (flags & NDR_IN) {
 
96
        }
 
97
        if (flags & NDR_OUT) {
 
98
        }
 
99
        return NDR_ERR_SUCCESS;
 
100
}
 
101
 
 
102
_PUBLIC_ void ndr_print_HrRBackupGetAttachmentInformation(struct ndr_print *ndr, const char *name, int flags, const struct HrRBackupGetAttachmentInformation *r)
 
103
{
 
104
        ndr_print_struct(ndr, name, "HrRBackupGetAttachmentInformation");
 
105
        if (r == NULL) { ndr_print_null(ndr); return; }
 
106
        ndr->depth++;
 
107
        if (flags & NDR_SET_VALUES) {
 
108
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
109
        }
 
110
        if (flags & NDR_IN) {
 
111
                ndr_print_struct(ndr, "in", "HrRBackupGetAttachmentInformation");
 
112
                ndr->depth++;
 
113
                ndr->depth--;
 
114
        }
 
115
        if (flags & NDR_OUT) {
 
116
                ndr_print_struct(ndr, "out", "HrRBackupGetAttachmentInformation");
 
117
                ndr->depth++;
 
118
                ndr->depth--;
 
119
        }
 
120
        ndr->depth--;
 
121
}
 
122
 
 
123
static enum ndr_err_code ndr_push_HrRBackupOpenFile(struct ndr_push *ndr, int flags, const struct HrRBackupOpenFile *r)
 
124
{
 
125
        if (flags & NDR_IN) {
 
126
        }
 
127
        if (flags & NDR_OUT) {
 
128
        }
 
129
        return NDR_ERR_SUCCESS;
 
130
}
 
131
 
 
132
static enum ndr_err_code ndr_pull_HrRBackupOpenFile(struct ndr_pull *ndr, int flags, struct HrRBackupOpenFile *r)
 
133
{
 
134
        if (flags & NDR_IN) {
 
135
        }
 
136
        if (flags & NDR_OUT) {
 
137
        }
 
138
        return NDR_ERR_SUCCESS;
 
139
}
 
140
 
 
141
_PUBLIC_ void ndr_print_HrRBackupOpenFile(struct ndr_print *ndr, const char *name, int flags, const struct HrRBackupOpenFile *r)
 
142
{
 
143
        ndr_print_struct(ndr, name, "HrRBackupOpenFile");
 
144
        if (r == NULL) { ndr_print_null(ndr); return; }
 
145
        ndr->depth++;
 
146
        if (flags & NDR_SET_VALUES) {
 
147
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
148
        }
 
149
        if (flags & NDR_IN) {
 
150
                ndr_print_struct(ndr, "in", "HrRBackupOpenFile");
 
151
                ndr->depth++;
 
152
                ndr->depth--;
 
153
        }
 
154
        if (flags & NDR_OUT) {
 
155
                ndr_print_struct(ndr, "out", "HrRBackupOpenFile");
 
156
                ndr->depth++;
 
157
                ndr->depth--;
 
158
        }
 
159
        ndr->depth--;
 
160
}
 
161
 
 
162
static enum ndr_err_code ndr_push_HrRBackupRead(struct ndr_push *ndr, int flags, const struct HrRBackupRead *r)
 
163
{
 
164
        if (flags & NDR_IN) {
 
165
        }
 
166
        if (flags & NDR_OUT) {
 
167
        }
 
168
        return NDR_ERR_SUCCESS;
 
169
}
 
170
 
 
171
static enum ndr_err_code ndr_pull_HrRBackupRead(struct ndr_pull *ndr, int flags, struct HrRBackupRead *r)
 
172
{
 
173
        if (flags & NDR_IN) {
 
174
        }
 
175
        if (flags & NDR_OUT) {
 
176
        }
 
177
        return NDR_ERR_SUCCESS;
 
178
}
 
179
 
 
180
_PUBLIC_ void ndr_print_HrRBackupRead(struct ndr_print *ndr, const char *name, int flags, const struct HrRBackupRead *r)
 
181
{
 
182
        ndr_print_struct(ndr, name, "HrRBackupRead");
 
183
        if (r == NULL) { ndr_print_null(ndr); return; }
 
184
        ndr->depth++;
 
185
        if (flags & NDR_SET_VALUES) {
 
186
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
187
        }
 
188
        if (flags & NDR_IN) {
 
189
                ndr_print_struct(ndr, "in", "HrRBackupRead");
 
190
                ndr->depth++;
 
191
                ndr->depth--;
 
192
        }
 
193
        if (flags & NDR_OUT) {
 
194
                ndr_print_struct(ndr, "out", "HrRBackupRead");
 
195
                ndr->depth++;
 
196
                ndr->depth--;
 
197
        }
 
198
        ndr->depth--;
 
199
}
 
200
 
 
201
static enum ndr_err_code ndr_push_HrRBackupClose(struct ndr_push *ndr, int flags, const struct HrRBackupClose *r)
 
202
{
 
203
        if (flags & NDR_IN) {
 
204
        }
 
205
        if (flags & NDR_OUT) {
 
206
        }
 
207
        return NDR_ERR_SUCCESS;
 
208
}
 
209
 
 
210
static enum ndr_err_code ndr_pull_HrRBackupClose(struct ndr_pull *ndr, int flags, struct HrRBackupClose *r)
 
211
{
 
212
        if (flags & NDR_IN) {
 
213
        }
 
214
        if (flags & NDR_OUT) {
 
215
        }
 
216
        return NDR_ERR_SUCCESS;
 
217
}
 
218
 
 
219
_PUBLIC_ void ndr_print_HrRBackupClose(struct ndr_print *ndr, const char *name, int flags, const struct HrRBackupClose *r)
 
220
{
 
221
        ndr_print_struct(ndr, name, "HrRBackupClose");
 
222
        if (r == NULL) { ndr_print_null(ndr); return; }
 
223
        ndr->depth++;
 
224
        if (flags & NDR_SET_VALUES) {
 
225
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
226
        }
 
227
        if (flags & NDR_IN) {
 
228
                ndr_print_struct(ndr, "in", "HrRBackupClose");
 
229
                ndr->depth++;
 
230
                ndr->depth--;
 
231
        }
 
232
        if (flags & NDR_OUT) {
 
233
                ndr_print_struct(ndr, "out", "HrRBackupClose");
 
234
                ndr->depth++;
 
235
                ndr->depth--;
 
236
        }
 
237
        ndr->depth--;
 
238
}
 
239
 
 
240
static enum ndr_err_code ndr_push_HrRBackupGetBackupLogs(struct ndr_push *ndr, int flags, const struct HrRBackupGetBackupLogs *r)
 
241
{
 
242
        if (flags & NDR_IN) {
 
243
        }
 
244
        if (flags & NDR_OUT) {
 
245
        }
 
246
        return NDR_ERR_SUCCESS;
 
247
}
 
248
 
 
249
static enum ndr_err_code ndr_pull_HrRBackupGetBackupLogs(struct ndr_pull *ndr, int flags, struct HrRBackupGetBackupLogs *r)
 
250
{
 
251
        if (flags & NDR_IN) {
 
252
        }
 
253
        if (flags & NDR_OUT) {
 
254
        }
 
255
        return NDR_ERR_SUCCESS;
 
256
}
 
257
 
 
258
_PUBLIC_ void ndr_print_HrRBackupGetBackupLogs(struct ndr_print *ndr, const char *name, int flags, const struct HrRBackupGetBackupLogs *r)
 
259
{
 
260
        ndr_print_struct(ndr, name, "HrRBackupGetBackupLogs");
 
261
        if (r == NULL) { ndr_print_null(ndr); return; }
 
262
        ndr->depth++;
 
263
        if (flags & NDR_SET_VALUES) {
 
264
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
265
        }
 
266
        if (flags & NDR_IN) {
 
267
                ndr_print_struct(ndr, "in", "HrRBackupGetBackupLogs");
 
268
                ndr->depth++;
 
269
                ndr->depth--;
 
270
        }
 
271
        if (flags & NDR_OUT) {
 
272
                ndr_print_struct(ndr, "out", "HrRBackupGetBackupLogs");
 
273
                ndr->depth++;
 
274
                ndr->depth--;
 
275
        }
 
276
        ndr->depth--;
 
277
}
 
278
 
 
279
static enum ndr_err_code ndr_push_HrRBackupTruncateLogs(struct ndr_push *ndr, int flags, const struct HrRBackupTruncateLogs *r)
 
280
{
 
281
        if (flags & NDR_IN) {
 
282
        }
 
283
        if (flags & NDR_OUT) {
 
284
        }
 
285
        return NDR_ERR_SUCCESS;
 
286
}
 
287
 
 
288
static enum ndr_err_code ndr_pull_HrRBackupTruncateLogs(struct ndr_pull *ndr, int flags, struct HrRBackupTruncateLogs *r)
 
289
{
 
290
        if (flags & NDR_IN) {
 
291
        }
 
292
        if (flags & NDR_OUT) {
 
293
        }
 
294
        return NDR_ERR_SUCCESS;
 
295
}
 
296
 
 
297
_PUBLIC_ void ndr_print_HrRBackupTruncateLogs(struct ndr_print *ndr, const char *name, int flags, const struct HrRBackupTruncateLogs *r)
 
298
{
 
299
        ndr_print_struct(ndr, name, "HrRBackupTruncateLogs");
 
300
        if (r == NULL) { ndr_print_null(ndr); return; }
 
301
        ndr->depth++;
 
302
        if (flags & NDR_SET_VALUES) {
 
303
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
304
        }
 
305
        if (flags & NDR_IN) {
 
306
                ndr_print_struct(ndr, "in", "HrRBackupTruncateLogs");
 
307
                ndr->depth++;
 
308
                ndr->depth--;
 
309
        }
 
310
        if (flags & NDR_OUT) {
 
311
                ndr_print_struct(ndr, "out", "HrRBackupTruncateLogs");
 
312
                ndr->depth++;
 
313
                ndr->depth--;
 
314
        }
 
315
        ndr->depth--;
 
316
}
 
317
 
 
318
static enum ndr_err_code ndr_push_HrRBackupPing(struct ndr_push *ndr, int flags, const struct HrRBackupPing *r)
 
319
{
 
320
        if (flags & NDR_IN) {
 
321
        }
 
322
        if (flags & NDR_OUT) {
 
323
        }
 
324
        return NDR_ERR_SUCCESS;
 
325
}
 
326
 
 
327
static enum ndr_err_code ndr_pull_HrRBackupPing(struct ndr_pull *ndr, int flags, struct HrRBackupPing *r)
 
328
{
 
329
        if (flags & NDR_IN) {
 
330
        }
 
331
        if (flags & NDR_OUT) {
 
332
        }
 
333
        return NDR_ERR_SUCCESS;
 
334
}
 
335
 
 
336
_PUBLIC_ void ndr_print_HrRBackupPing(struct ndr_print *ndr, const char *name, int flags, const struct HrRBackupPing *r)
 
337
{
 
338
        ndr_print_struct(ndr, name, "HrRBackupPing");
 
339
        if (r == NULL) { ndr_print_null(ndr); return; }
 
340
        ndr->depth++;
 
341
        if (flags & NDR_SET_VALUES) {
 
342
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
343
        }
 
344
        if (flags & NDR_IN) {
 
345
                ndr_print_struct(ndr, "in", "HrRBackupPing");
 
346
                ndr->depth++;
 
347
                ndr->depth--;
 
348
        }
 
349
        if (flags & NDR_OUT) {
 
350
                ndr_print_struct(ndr, "out", "HrRBackupPing");
 
351
                ndr->depth++;
 
352
                ndr->depth--;
 
353
        }
 
354
        ndr->depth--;
 
355
}
 
356
 
 
357
static const struct ndr_interface_call ad_backup_calls[] = {
 
358
        {
 
359
                "HrRBackupPrepare",
 
360
                sizeof(struct HrRBackupPrepare),
 
361
                (ndr_push_flags_fn_t) ndr_push_HrRBackupPrepare,
 
362
                (ndr_pull_flags_fn_t) ndr_pull_HrRBackupPrepare,
 
363
                (ndr_print_function_t) ndr_print_HrRBackupPrepare,
 
364
                { 0, NULL },
 
365
                { 0, NULL },
 
366
        },
 
367
        {
 
368
                "HrRBackupEnd",
 
369
                sizeof(struct HrRBackupEnd),
 
370
                (ndr_push_flags_fn_t) ndr_push_HrRBackupEnd,
 
371
                (ndr_pull_flags_fn_t) ndr_pull_HrRBackupEnd,
 
372
                (ndr_print_function_t) ndr_print_HrRBackupEnd,
 
373
                { 0, NULL },
 
374
                { 0, NULL },
 
375
        },
 
376
        {
 
377
                "HrRBackupGetAttachmentInformation",
 
378
                sizeof(struct HrRBackupGetAttachmentInformation),
 
379
                (ndr_push_flags_fn_t) ndr_push_HrRBackupGetAttachmentInformation,
 
380
                (ndr_pull_flags_fn_t) ndr_pull_HrRBackupGetAttachmentInformation,
 
381
                (ndr_print_function_t) ndr_print_HrRBackupGetAttachmentInformation,
 
382
                { 0, NULL },
 
383
                { 0, NULL },
 
384
        },
 
385
        {
 
386
                "HrRBackupOpenFile",
 
387
                sizeof(struct HrRBackupOpenFile),
 
388
                (ndr_push_flags_fn_t) ndr_push_HrRBackupOpenFile,
 
389
                (ndr_pull_flags_fn_t) ndr_pull_HrRBackupOpenFile,
 
390
                (ndr_print_function_t) ndr_print_HrRBackupOpenFile,
 
391
                { 0, NULL },
 
392
                { 0, NULL },
 
393
        },
 
394
        {
 
395
                "HrRBackupRead",
 
396
                sizeof(struct HrRBackupRead),
 
397
                (ndr_push_flags_fn_t) ndr_push_HrRBackupRead,
 
398
                (ndr_pull_flags_fn_t) ndr_pull_HrRBackupRead,
 
399
                (ndr_print_function_t) ndr_print_HrRBackupRead,
 
400
                { 0, NULL },
 
401
                { 0, NULL },
 
402
        },
 
403
        {
 
404
                "HrRBackupClose",
 
405
                sizeof(struct HrRBackupClose),
 
406
                (ndr_push_flags_fn_t) ndr_push_HrRBackupClose,
 
407
                (ndr_pull_flags_fn_t) ndr_pull_HrRBackupClose,
 
408
                (ndr_print_function_t) ndr_print_HrRBackupClose,
 
409
                { 0, NULL },
 
410
                { 0, NULL },
 
411
        },
 
412
        {
 
413
                "HrRBackupGetBackupLogs",
 
414
                sizeof(struct HrRBackupGetBackupLogs),
 
415
                (ndr_push_flags_fn_t) ndr_push_HrRBackupGetBackupLogs,
 
416
                (ndr_pull_flags_fn_t) ndr_pull_HrRBackupGetBackupLogs,
 
417
                (ndr_print_function_t) ndr_print_HrRBackupGetBackupLogs,
 
418
                { 0, NULL },
 
419
                { 0, NULL },
 
420
        },
 
421
        {
 
422
                "HrRBackupTruncateLogs",
 
423
                sizeof(struct HrRBackupTruncateLogs),
 
424
                (ndr_push_flags_fn_t) ndr_push_HrRBackupTruncateLogs,
 
425
                (ndr_pull_flags_fn_t) ndr_pull_HrRBackupTruncateLogs,
 
426
                (ndr_print_function_t) ndr_print_HrRBackupTruncateLogs,
 
427
                { 0, NULL },
 
428
                { 0, NULL },
 
429
        },
 
430
        {
 
431
                "HrRBackupPing",
 
432
                sizeof(struct HrRBackupPing),
 
433
                (ndr_push_flags_fn_t) ndr_push_HrRBackupPing,
 
434
                (ndr_pull_flags_fn_t) ndr_pull_HrRBackupPing,
 
435
                (ndr_print_function_t) ndr_print_HrRBackupPing,
 
436
                { 0, NULL },
 
437
                { 0, NULL },
 
438
        },
 
439
        { NULL, 0, NULL, NULL, NULL }
 
440
};
 
441
 
 
442
static const char * const ad_backup_endpoint_strings[] = {
 
443
        "ncacn_np:[\\pipe\\ad_backup]", 
 
444
};
 
445
 
 
446
static const struct ndr_interface_string_array ad_backup_endpoints = {
 
447
        .count  = 1,
 
448
        .names  = ad_backup_endpoint_strings
 
449
};
 
450
 
 
451
static const char * const ad_backup_authservice_strings[] = {
 
452
        "host", 
 
453
};
 
454
 
 
455
static const struct ndr_interface_string_array ad_backup_authservices = {
 
456
        .count  = 1,
 
457
        .names  = ad_backup_authservice_strings
 
458
};
 
459
 
 
460
 
 
461
const struct ndr_interface_table ndr_table_ad_backup = {
 
462
        .name           = "ad_backup",
 
463
        .syntax_id      = {
 
464
                {0xecec0d70,0xa603,0x11d0,{0x96,0xb1},{0x00,0xa0,0xc9,0x1e,0xce,0x30}},
 
465
                NDR_AD_BACKUP_VERSION
 
466
        },
 
467
        .helpstring     = NDR_AD_BACKUP_HELPSTRING,
 
468
        .num_calls      = 9,
 
469
        .calls          = ad_backup_calls,
 
470
        .endpoints      = &ad_backup_endpoints,
 
471
        .authservices   = &ad_backup_authservices
 
472
};
 
473
 
 
474
static enum ndr_err_code ndr_push_HrRIsNTDSOnline(struct ndr_push *ndr, int flags, const struct HrRIsNTDSOnline *r)
 
475
{
 
476
        if (flags & NDR_IN) {
 
477
        }
 
478
        if (flags & NDR_OUT) {
 
479
        }
 
480
        return NDR_ERR_SUCCESS;
 
481
}
 
482
 
 
483
static enum ndr_err_code ndr_pull_HrRIsNTDSOnline(struct ndr_pull *ndr, int flags, struct HrRIsNTDSOnline *r)
 
484
{
 
485
        if (flags & NDR_IN) {
 
486
        }
 
487
        if (flags & NDR_OUT) {
 
488
        }
 
489
        return NDR_ERR_SUCCESS;
 
490
}
 
491
 
 
492
_PUBLIC_ void ndr_print_HrRIsNTDSOnline(struct ndr_print *ndr, const char *name, int flags, const struct HrRIsNTDSOnline *r)
 
493
{
 
494
        ndr_print_struct(ndr, name, "HrRIsNTDSOnline");
 
495
        if (r == NULL) { ndr_print_null(ndr); return; }
 
496
        ndr->depth++;
 
497
        if (flags & NDR_SET_VALUES) {
 
498
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
499
        }
 
500
        if (flags & NDR_IN) {
 
501
                ndr_print_struct(ndr, "in", "HrRIsNTDSOnline");
 
502
                ndr->depth++;
 
503
                ndr->depth--;
 
504
        }
 
505
        if (flags & NDR_OUT) {
 
506
                ndr_print_struct(ndr, "out", "HrRIsNTDSOnline");
 
507
                ndr->depth++;
 
508
                ndr->depth--;
 
509
        }
 
510
        ndr->depth--;
 
511
}
 
512
 
 
513
static enum ndr_err_code ndr_push_HrRRestorePrepare(struct ndr_push *ndr, int flags, const struct HrRRestorePrepare *r)
 
514
{
 
515
        if (flags & NDR_IN) {
 
516
        }
 
517
        if (flags & NDR_OUT) {
 
518
        }
 
519
        return NDR_ERR_SUCCESS;
 
520
}
 
521
 
 
522
static enum ndr_err_code ndr_pull_HrRRestorePrepare(struct ndr_pull *ndr, int flags, struct HrRRestorePrepare *r)
 
523
{
 
524
        if (flags & NDR_IN) {
 
525
        }
 
526
        if (flags & NDR_OUT) {
 
527
        }
 
528
        return NDR_ERR_SUCCESS;
 
529
}
 
530
 
 
531
_PUBLIC_ void ndr_print_HrRRestorePrepare(struct ndr_print *ndr, const char *name, int flags, const struct HrRRestorePrepare *r)
 
532
{
 
533
        ndr_print_struct(ndr, name, "HrRRestorePrepare");
 
534
        if (r == NULL) { ndr_print_null(ndr); return; }
 
535
        ndr->depth++;
 
536
        if (flags & NDR_SET_VALUES) {
 
537
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
538
        }
 
539
        if (flags & NDR_IN) {
 
540
                ndr_print_struct(ndr, "in", "HrRRestorePrepare");
 
541
                ndr->depth++;
 
542
                ndr->depth--;
 
543
        }
 
544
        if (flags & NDR_OUT) {
 
545
                ndr_print_struct(ndr, "out", "HrRRestorePrepare");
 
546
                ndr->depth++;
 
547
                ndr->depth--;
 
548
        }
 
549
        ndr->depth--;
 
550
}
 
551
 
 
552
static enum ndr_err_code ndr_push_HrRRestoreRegister(struct ndr_push *ndr, int flags, const struct HrRRestoreRegister *r)
 
553
{
 
554
        if (flags & NDR_IN) {
 
555
        }
 
556
        if (flags & NDR_OUT) {
 
557
        }
 
558
        return NDR_ERR_SUCCESS;
 
559
}
 
560
 
 
561
static enum ndr_err_code ndr_pull_HrRRestoreRegister(struct ndr_pull *ndr, int flags, struct HrRRestoreRegister *r)
 
562
{
 
563
        if (flags & NDR_IN) {
 
564
        }
 
565
        if (flags & NDR_OUT) {
 
566
        }
 
567
        return NDR_ERR_SUCCESS;
 
568
}
 
569
 
 
570
_PUBLIC_ void ndr_print_HrRRestoreRegister(struct ndr_print *ndr, const char *name, int flags, const struct HrRRestoreRegister *r)
 
571
{
 
572
        ndr_print_struct(ndr, name, "HrRRestoreRegister");
 
573
        if (r == NULL) { ndr_print_null(ndr); return; }
 
574
        ndr->depth++;
 
575
        if (flags & NDR_SET_VALUES) {
 
576
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
577
        }
 
578
        if (flags & NDR_IN) {
 
579
                ndr_print_struct(ndr, "in", "HrRRestoreRegister");
 
580
                ndr->depth++;
 
581
                ndr->depth--;
 
582
        }
 
583
        if (flags & NDR_OUT) {
 
584
                ndr_print_struct(ndr, "out", "HrRRestoreRegister");
 
585
                ndr->depth++;
 
586
                ndr->depth--;
 
587
        }
 
588
        ndr->depth--;
 
589
}
 
590
 
 
591
static enum ndr_err_code ndr_push_HrRRestoreRegisterComplete(struct ndr_push *ndr, int flags, const struct HrRRestoreRegisterComplete *r)
 
592
{
 
593
        if (flags & NDR_IN) {
 
594
        }
 
595
        if (flags & NDR_OUT) {
 
596
        }
 
597
        return NDR_ERR_SUCCESS;
 
598
}
 
599
 
 
600
static enum ndr_err_code ndr_pull_HrRRestoreRegisterComplete(struct ndr_pull *ndr, int flags, struct HrRRestoreRegisterComplete *r)
 
601
{
 
602
        if (flags & NDR_IN) {
 
603
        }
 
604
        if (flags & NDR_OUT) {
 
605
        }
 
606
        return NDR_ERR_SUCCESS;
 
607
}
 
608
 
 
609
_PUBLIC_ void ndr_print_HrRRestoreRegisterComplete(struct ndr_print *ndr, const char *name, int flags, const struct HrRRestoreRegisterComplete *r)
 
610
{
 
611
        ndr_print_struct(ndr, name, "HrRRestoreRegisterComplete");
 
612
        if (r == NULL) { ndr_print_null(ndr); return; }
 
613
        ndr->depth++;
 
614
        if (flags & NDR_SET_VALUES) {
 
615
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
616
        }
 
617
        if (flags & NDR_IN) {
 
618
                ndr_print_struct(ndr, "in", "HrRRestoreRegisterComplete");
 
619
                ndr->depth++;
 
620
                ndr->depth--;
 
621
        }
 
622
        if (flags & NDR_OUT) {
 
623
                ndr_print_struct(ndr, "out", "HrRRestoreRegisterComplete");
 
624
                ndr->depth++;
 
625
                ndr->depth--;
 
626
        }
 
627
        ndr->depth--;
 
628
}
 
629
 
 
630
static enum ndr_err_code ndr_push_HrRRestoreGetDatabaseLocations(struct ndr_push *ndr, int flags, const struct HrRRestoreGetDatabaseLocations *r)
 
631
{
 
632
        if (flags & NDR_IN) {
 
633
        }
 
634
        if (flags & NDR_OUT) {
 
635
        }
 
636
        return NDR_ERR_SUCCESS;
 
637
}
 
638
 
 
639
static enum ndr_err_code ndr_pull_HrRRestoreGetDatabaseLocations(struct ndr_pull *ndr, int flags, struct HrRRestoreGetDatabaseLocations *r)
 
640
{
 
641
        if (flags & NDR_IN) {
 
642
        }
 
643
        if (flags & NDR_OUT) {
 
644
        }
 
645
        return NDR_ERR_SUCCESS;
 
646
}
 
647
 
 
648
_PUBLIC_ void ndr_print_HrRRestoreGetDatabaseLocations(struct ndr_print *ndr, const char *name, int flags, const struct HrRRestoreGetDatabaseLocations *r)
 
649
{
 
650
        ndr_print_struct(ndr, name, "HrRRestoreGetDatabaseLocations");
 
651
        if (r == NULL) { ndr_print_null(ndr); return; }
 
652
        ndr->depth++;
 
653
        if (flags & NDR_SET_VALUES) {
 
654
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
655
        }
 
656
        if (flags & NDR_IN) {
 
657
                ndr_print_struct(ndr, "in", "HrRRestoreGetDatabaseLocations");
 
658
                ndr->depth++;
 
659
                ndr->depth--;
 
660
        }
 
661
        if (flags & NDR_OUT) {
 
662
                ndr_print_struct(ndr, "out", "HrRRestoreGetDatabaseLocations");
 
663
                ndr->depth++;
 
664
                ndr->depth--;
 
665
        }
 
666
        ndr->depth--;
 
667
}
 
668
 
 
669
static enum ndr_err_code ndr_push_HrRRestoreEnd(struct ndr_push *ndr, int flags, const struct HrRRestoreEnd *r)
 
670
{
 
671
        if (flags & NDR_IN) {
 
672
        }
 
673
        if (flags & NDR_OUT) {
 
674
        }
 
675
        return NDR_ERR_SUCCESS;
 
676
}
 
677
 
 
678
static enum ndr_err_code ndr_pull_HrRRestoreEnd(struct ndr_pull *ndr, int flags, struct HrRRestoreEnd *r)
 
679
{
 
680
        if (flags & NDR_IN) {
 
681
        }
 
682
        if (flags & NDR_OUT) {
 
683
        }
 
684
        return NDR_ERR_SUCCESS;
 
685
}
 
686
 
 
687
_PUBLIC_ void ndr_print_HrRRestoreEnd(struct ndr_print *ndr, const char *name, int flags, const struct HrRRestoreEnd *r)
 
688
{
 
689
        ndr_print_struct(ndr, name, "HrRRestoreEnd");
 
690
        if (r == NULL) { ndr_print_null(ndr); return; }
 
691
        ndr->depth++;
 
692
        if (flags & NDR_SET_VALUES) {
 
693
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
694
        }
 
695
        if (flags & NDR_IN) {
 
696
                ndr_print_struct(ndr, "in", "HrRRestoreEnd");
 
697
                ndr->depth++;
 
698
                ndr->depth--;
 
699
        }
 
700
        if (flags & NDR_OUT) {
 
701
                ndr_print_struct(ndr, "out", "HrRRestoreEnd");
 
702
                ndr->depth++;
 
703
                ndr->depth--;
 
704
        }
 
705
        ndr->depth--;
 
706
}
 
707
 
 
708
static enum ndr_err_code ndr_push_HrRRestoreSetCurrentLogNumber(struct ndr_push *ndr, int flags, const struct HrRRestoreSetCurrentLogNumber *r)
 
709
{
 
710
        if (flags & NDR_IN) {
 
711
        }
 
712
        if (flags & NDR_OUT) {
 
713
        }
 
714
        return NDR_ERR_SUCCESS;
 
715
}
 
716
 
 
717
static enum ndr_err_code ndr_pull_HrRRestoreSetCurrentLogNumber(struct ndr_pull *ndr, int flags, struct HrRRestoreSetCurrentLogNumber *r)
 
718
{
 
719
        if (flags & NDR_IN) {
 
720
        }
 
721
        if (flags & NDR_OUT) {
 
722
        }
 
723
        return NDR_ERR_SUCCESS;
 
724
}
 
725
 
 
726
_PUBLIC_ void ndr_print_HrRRestoreSetCurrentLogNumber(struct ndr_print *ndr, const char *name, int flags, const struct HrRRestoreSetCurrentLogNumber *r)
 
727
{
 
728
        ndr_print_struct(ndr, name, "HrRRestoreSetCurrentLogNumber");
 
729
        if (r == NULL) { ndr_print_null(ndr); return; }
 
730
        ndr->depth++;
 
731
        if (flags & NDR_SET_VALUES) {
 
732
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
733
        }
 
734
        if (flags & NDR_IN) {
 
735
                ndr_print_struct(ndr, "in", "HrRRestoreSetCurrentLogNumber");
 
736
                ndr->depth++;
 
737
                ndr->depth--;
 
738
        }
 
739
        if (flags & NDR_OUT) {
 
740
                ndr_print_struct(ndr, "out", "HrRRestoreSetCurrentLogNumber");
 
741
                ndr->depth++;
 
742
                ndr->depth--;
 
743
        }
 
744
        ndr->depth--;
 
745
}
 
746
 
 
747
static enum ndr_err_code ndr_push_HrRRestoreCheckLogsForBackup(struct ndr_push *ndr, int flags, const struct HrRRestoreCheckLogsForBackup *r)
 
748
{
 
749
        if (flags & NDR_IN) {
 
750
        }
 
751
        if (flags & NDR_OUT) {
 
752
        }
 
753
        return NDR_ERR_SUCCESS;
 
754
}
 
755
 
 
756
static enum ndr_err_code ndr_pull_HrRRestoreCheckLogsForBackup(struct ndr_pull *ndr, int flags, struct HrRRestoreCheckLogsForBackup *r)
 
757
{
 
758
        if (flags & NDR_IN) {
 
759
        }
 
760
        if (flags & NDR_OUT) {
 
761
        }
 
762
        return NDR_ERR_SUCCESS;
 
763
}
 
764
 
 
765
_PUBLIC_ void ndr_print_HrRRestoreCheckLogsForBackup(struct ndr_print *ndr, const char *name, int flags, const struct HrRRestoreCheckLogsForBackup *r)
 
766
{
 
767
        ndr_print_struct(ndr, name, "HrRRestoreCheckLogsForBackup");
 
768
        if (r == NULL) { ndr_print_null(ndr); return; }
 
769
        ndr->depth++;
 
770
        if (flags & NDR_SET_VALUES) {
 
771
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
772
        }
 
773
        if (flags & NDR_IN) {
 
774
                ndr_print_struct(ndr, "in", "HrRRestoreCheckLogsForBackup");
 
775
                ndr->depth++;
 
776
                ndr->depth--;
 
777
        }
 
778
        if (flags & NDR_OUT) {
 
779
                ndr_print_struct(ndr, "out", "HrRRestoreCheckLogsForBackup");
 
780
                ndr->depth++;
 
781
                ndr->depth--;
 
782
        }
 
783
        ndr->depth--;
 
784
}
 
785
 
 
786
static const struct ndr_interface_call ad_restore_calls[] = {
 
787
        {
 
788
                "HrRIsNTDSOnline",
 
789
                sizeof(struct HrRIsNTDSOnline),
 
790
                (ndr_push_flags_fn_t) ndr_push_HrRIsNTDSOnline,
 
791
                (ndr_pull_flags_fn_t) ndr_pull_HrRIsNTDSOnline,
 
792
                (ndr_print_function_t) ndr_print_HrRIsNTDSOnline,
 
793
                { 0, NULL },
 
794
                { 0, NULL },
 
795
        },
 
796
        {
 
797
                "HrRRestorePrepare",
 
798
                sizeof(struct HrRRestorePrepare),
 
799
                (ndr_push_flags_fn_t) ndr_push_HrRRestorePrepare,
 
800
                (ndr_pull_flags_fn_t) ndr_pull_HrRRestorePrepare,
 
801
                (ndr_print_function_t) ndr_print_HrRRestorePrepare,
 
802
                { 0, NULL },
 
803
                { 0, NULL },
 
804
        },
 
805
        {
 
806
                "HrRRestoreRegister",
 
807
                sizeof(struct HrRRestoreRegister),
 
808
                (ndr_push_flags_fn_t) ndr_push_HrRRestoreRegister,
 
809
                (ndr_pull_flags_fn_t) ndr_pull_HrRRestoreRegister,
 
810
                (ndr_print_function_t) ndr_print_HrRRestoreRegister,
 
811
                { 0, NULL },
 
812
                { 0, NULL },
 
813
        },
 
814
        {
 
815
                "HrRRestoreRegisterComplete",
 
816
                sizeof(struct HrRRestoreRegisterComplete),
 
817
                (ndr_push_flags_fn_t) ndr_push_HrRRestoreRegisterComplete,
 
818
                (ndr_pull_flags_fn_t) ndr_pull_HrRRestoreRegisterComplete,
 
819
                (ndr_print_function_t) ndr_print_HrRRestoreRegisterComplete,
 
820
                { 0, NULL },
 
821
                { 0, NULL },
 
822
        },
 
823
        {
 
824
                "HrRRestoreGetDatabaseLocations",
 
825
                sizeof(struct HrRRestoreGetDatabaseLocations),
 
826
                (ndr_push_flags_fn_t) ndr_push_HrRRestoreGetDatabaseLocations,
 
827
                (ndr_pull_flags_fn_t) ndr_pull_HrRRestoreGetDatabaseLocations,
 
828
                (ndr_print_function_t) ndr_print_HrRRestoreGetDatabaseLocations,
 
829
                { 0, NULL },
 
830
                { 0, NULL },
 
831
        },
 
832
        {
 
833
                "HrRRestoreEnd",
 
834
                sizeof(struct HrRRestoreEnd),
 
835
                (ndr_push_flags_fn_t) ndr_push_HrRRestoreEnd,
 
836
                (ndr_pull_flags_fn_t) ndr_pull_HrRRestoreEnd,
 
837
                (ndr_print_function_t) ndr_print_HrRRestoreEnd,
 
838
                { 0, NULL },
 
839
                { 0, NULL },
 
840
        },
 
841
        {
 
842
                "HrRRestoreSetCurrentLogNumber",
 
843
                sizeof(struct HrRRestoreSetCurrentLogNumber),
 
844
                (ndr_push_flags_fn_t) ndr_push_HrRRestoreSetCurrentLogNumber,
 
845
                (ndr_pull_flags_fn_t) ndr_pull_HrRRestoreSetCurrentLogNumber,
 
846
                (ndr_print_function_t) ndr_print_HrRRestoreSetCurrentLogNumber,
 
847
                { 0, NULL },
 
848
                { 0, NULL },
 
849
        },
 
850
        {
 
851
                "HrRRestoreCheckLogsForBackup",
 
852
                sizeof(struct HrRRestoreCheckLogsForBackup),
 
853
                (ndr_push_flags_fn_t) ndr_push_HrRRestoreCheckLogsForBackup,
 
854
                (ndr_pull_flags_fn_t) ndr_pull_HrRRestoreCheckLogsForBackup,
 
855
                (ndr_print_function_t) ndr_print_HrRRestoreCheckLogsForBackup,
 
856
                { 0, NULL },
 
857
                { 0, NULL },
 
858
        },
 
859
        { NULL, 0, NULL, NULL, NULL }
 
860
};
 
861
 
 
862
static const char * const ad_restore_endpoint_strings[] = {
 
863
        "ncacn_np:[\\pipe\\ad_restore]", 
 
864
};
 
865
 
 
866
static const struct ndr_interface_string_array ad_restore_endpoints = {
 
867
        .count  = 1,
 
868
        .names  = ad_restore_endpoint_strings
 
869
};
 
870
 
 
871
static const char * const ad_restore_authservice_strings[] = {
 
872
        "host", 
 
873
};
 
874
 
 
875
static const struct ndr_interface_string_array ad_restore_authservices = {
 
876
        .count  = 1,
 
877
        .names  = ad_restore_authservice_strings
 
878
};
 
879
 
 
880
 
 
881
const struct ndr_interface_table ndr_table_ad_restore = {
 
882
        .name           = "ad_restore",
 
883
        .syntax_id      = {
 
884
                {0x16e0cf3a,0xa604,0x11d0,{0x96,0xb1},{0x00,0xa0,0xc9,0x1e,0xce,0x30}},
 
885
                NDR_AD_RESTORE_VERSION
 
886
        },
 
887
        .helpstring     = NDR_AD_RESTORE_HELPSTRING,
 
888
        .num_calls      = 8,
 
889
        .calls          = ad_restore_calls,
 
890
        .endpoints      = &ad_restore_endpoints,
 
891
        .authservices   = &ad_restore_authservices
 
892
};
 
893