s3: re-run make samba3-idl.
[kai/samba-autobuild/.git] / librpc / idl / named_pipe_auth.idl
1 #include "idl_types.h"
2 /*
3   miscellaneous IDL structures
4 */
5
6 import "netlogon.idl";
7
8 [
9         pointer_default(unique)
10 ]
11 interface named_pipe_auth
12 {
13         const char *NAMED_PIPE_AUTH_MAGIC = "NPAM";
14
15         typedef [switch_type(uint32)] union {
16                 [case(0)] ;/* anonymous */
17                 [case(1)] netr_SamInfo3 info1;
18         } named_pipe_auth_req_info;
19
20         typedef [public,gensize] struct {
21                 [flag(NDR_BIG_ENDIAN),
22                  value(ndr_size_named_pipe_auth_req(r,ndr->iconv_convenience,ndr->flags)-4)]
23                         uint32 length;
24                 [charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
25                 uint32 level;
26                 [switch_is(level)] named_pipe_auth_req_info info;
27         } named_pipe_auth_req;
28
29         typedef [switch_type(uint32)] union {
30                 [case(0)] ;
31                 [case(1)] ;
32         } named_pipe_auth_rep_info;
33
34         typedef [public,gensize] struct {
35                 [flag(NDR_BIG_ENDIAN),
36                  value(ndr_size_named_pipe_auth_rep(r,ndr->iconv_convenience,ndr->flags)-4)]
37                         uint32 length;
38                 [charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
39                 uint32 level;
40                 [switch_is(level)] named_pipe_auth_rep_info info;
41                 NTSTATUS status;
42         } named_pipe_auth_rep;
43 }
44