rap: add rap_NetPrintQGetInfo to IDL.
[samba.git] / librpc / gen_ndr / named_pipe_auth.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "libcli/util/ntstatus.h"
6
7 #include "librpc/gen_ndr/netlogon.h"
8 #ifndef _HEADER_named_pipe_auth
9 #define _HEADER_named_pipe_auth
10
11 #define NAMED_PIPE_AUTH_MAGIC   ( "NPAM" )
12 struct named_pipe_auth_req_info2 {
13         const char *client_name;/* [unique,charset(UTF8)] */
14         const char *client_addr;/* [unique,charset(DOS)] */
15         uint16_t client_port;
16         const char *server_name;/* [unique,charset(UTF8)] */
17         const char *server_addr;/* [unique,charset(DOS)] */
18         uint16_t server_port;
19         struct netr_SamInfo3 *sam_info3;/* [unique] */
20         uint32_t session_key_length;
21         uint8_t *session_key;/* [unique,size_is(session_key_length)] */
22 };
23
24 struct named_pipe_auth_req_info3 {
25         const char *client_name;/* [unique,charset(UTF8)] */
26         const char *client_addr;/* [unique,charset(DOS)] */
27         uint16_t client_port;
28         const char *server_name;/* [unique,charset(UTF8)] */
29         const char *server_addr;/* [unique,charset(DOS)] */
30         uint16_t server_port;
31         struct netr_SamInfo3 *sam_info3;/* [unique] */
32         uint32_t session_key_length;
33         uint8_t *session_key;/* [unique,size_is(session_key_length)] */
34         uint32_t gssapi_delegated_creds_length;
35         uint8_t *gssapi_delegated_creds;/* [unique,size_is(gssapi_delegated_creds_length)] */
36 };
37
38 union named_pipe_auth_req_info {
39         struct netr_SamInfo3 info1;/* [case] */
40         struct named_pipe_auth_req_info2 info2;/* [case(2)] */
41         struct named_pipe_auth_req_info3 info3;/* [case(3)] */
42 }/* [switch_type(uint32)] */;
43
44 struct named_pipe_auth_req {
45         uint32_t length;/* [value(ndr_size_named_pipe_auth_req(r,ndr->iconv_convenience,ndr->flags)-4),flag(LIBNDR_FLAG_BIGENDIAN)] */
46         const char *magic;/* [value(NAMED_PIPE_AUTH_MAGIC),charset(DOS)] */
47         uint32_t level;
48         union named_pipe_auth_req_info info;/* [switch_is(level)] */
49 }/* [gensize,public] */;
50
51 struct named_pipe_auth_rep_info2 {
52         uint16_t file_type;
53         uint16_t device_state;
54         uint64_t allocation_size;
55 };
56
57 struct named_pipe_auth_rep_info3 {
58         uint16_t file_type;
59         uint16_t device_state;
60         uint64_t allocation_size;
61 };
62
63 union named_pipe_auth_rep_info {
64         struct named_pipe_auth_rep_info2 info2;/* [case(2)] */
65         struct named_pipe_auth_rep_info3 info3;/* [case(3)] */
66 }/* [switch_type(uint32)] */;
67
68 struct named_pipe_auth_rep {
69         uint32_t length;/* [value(ndr_size_named_pipe_auth_rep(r,ndr->iconv_convenience,ndr->flags)-4),flag(LIBNDR_FLAG_BIGENDIAN)] */
70         const char *magic;/* [value(NAMED_PIPE_AUTH_MAGIC),charset(DOS)] */
71         uint32_t level;
72         union named_pipe_auth_rep_info info;/* [switch_is(level)] */
73         NTSTATUS status;
74 }/* [gensize,public] */;
75
76 #endif /* _HEADER_named_pipe_auth */