r21385: Regenerate IDL after pidl changes, sync winreg.idl from samba4.
[gd/samba/.git] / source / librpc / gen_ndr / echo.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #ifndef _HEADER_rpcecho
6 #define _HEADER_rpcecho
7
8 struct echo_info1 {
9         uint8_t v;
10 };
11
12 struct echo_info2 {
13         uint16_t v;
14 };
15
16 struct echo_info3 {
17         uint32_t v;
18 };
19
20 struct echo_info4 {
21         uint64_t v;
22 };
23
24 struct echo_info5 {
25         uint8_t v1;
26         uint64_t v2;
27 };
28
29 struct echo_info6 {
30         uint8_t v1;
31         struct echo_info1 info1;
32 };
33
34 struct echo_info7 {
35         uint8_t v1;
36         struct echo_info4 info4;
37 };
38
39 union echo_Info {
40         struct echo_info1 info1;/* [case] */
41         struct echo_info2 info2;/* [case(2)] */
42         struct echo_info3 info3;/* [case(3)] */
43         struct echo_info4 info4;/* [case(4)] */
44         struct echo_info5 info5;/* [case(5)] */
45         struct echo_info6 info6;/* [case(6)] */
46         struct echo_info7 info7;/* [case(7)] */
47 }/* [switch_type(uint16)] */;
48
49 #ifndef USE_UINT_ENUMS
50 enum echo_Enum1 {
51         ECHO_ENUM1=1,
52         ECHO_ENUM2=2
53 };
54 #else
55 enum echo_Enum1 { __donnot_use_enum_echo_Enum1=0x7FFFFFFF};
56 #define ECHO_ENUM1 ( 1 )
57 #define ECHO_ENUM2 ( 2 )
58 #endif
59
60 #ifndef USE_UINT_ENUMS
61 enum echo_Enum1_32 {
62         ECHO_ENUM1_32=1,
63         ECHO_ENUM2_32=2
64 };
65 #else
66 enum echo_Enum1_32 { __donnot_use_enum_echo_Enum1_32=0x7FFFFFFF};
67 #define ECHO_ENUM1_32 ( 1 )
68 #define ECHO_ENUM2_32 ( 2 )
69 #endif
70
71 struct echo_Enum2 {
72         enum echo_Enum1 e1;
73         enum echo_Enum1_32 e2;
74 };
75
76 union echo_Enum3 {
77         enum echo_Enum1 e1;/* [case(ECHO_ENUM1)] */
78         struct echo_Enum2 e2;/* [case(ECHO_ENUM2)] */
79 }/* [switch_type(uint16)] */;
80
81 struct echo_Surrounding {
82         uint32_t x;
83         uint16_t *surrounding;/* [size_is(x)] */
84 };
85
86
87 struct echo_AddOne {
88         struct {
89                 uint32_t in_data;
90         } in;
91
92         struct {
93                 uint32_t *out_data;/* [ref] */
94         } out;
95
96 };
97
98
99 struct echo_EchoData {
100         struct {
101                 uint32_t len;
102                 uint8_t *in_data;/* [size_is(len)] */
103         } in;
104
105         struct {
106                 uint8_t *out_data;/* [size_is(len)] */
107         } out;
108
109 };
110
111
112 struct echo_SinkData {
113         struct {
114                 uint32_t len;
115                 uint8_t *data;/* [size_is(len)] */
116         } in;
117
118 };
119
120
121 struct echo_SourceData {
122         struct {
123                 uint32_t len;
124         } in;
125
126         struct {
127                 uint8_t *data;/* [size_is(len)] */
128         } out;
129
130 };
131
132
133 struct echo_TestCall {
134         struct {
135                 const char *s1;/* [ref,charset(UTF16)] */
136         } in;
137
138         struct {
139                 const char **s2;/* [ref,charset(UTF16)] */
140         } out;
141
142 };
143
144
145 struct echo_TestCall2 {
146         struct {
147                 uint16_t level;
148         } in;
149
150         struct {
151                 union echo_Info *info;/* [ref,switch_is(level)] */
152                 NTSTATUS result;
153         } out;
154
155 };
156
157
158 struct echo_TestSleep {
159         struct {
160                 uint32_t seconds;
161         } in;
162
163         struct {
164                 uint32_t result;
165         } out;
166
167 };
168
169
170 struct echo_TestEnum {
171         struct {
172                 enum echo_Enum1 *foo1;/* [ref] */
173                 struct echo_Enum2 *foo2;/* [ref] */
174                 union echo_Enum3 *foo3;/* [ref,switch_is(*foo1)] */
175         } in;
176
177         struct {
178                 enum echo_Enum1 *foo1;/* [ref] */
179                 struct echo_Enum2 *foo2;/* [ref] */
180                 union echo_Enum3 *foo3;/* [ref,switch_is(*foo1)] */
181         } out;
182
183 };
184
185
186 struct echo_TestSurrounding {
187         struct {
188                 struct echo_Surrounding *data;/* [ref] */
189         } in;
190
191         struct {
192                 struct echo_Surrounding *data;/* [ref] */
193         } out;
194
195 };
196
197
198 struct echo_TestDoublePointer {
199         struct {
200                 uint16_t ***data;/* [ref] */
201         } in;
202
203         struct {
204                 uint16_t result;
205         } out;
206
207 };
208
209 #endif /* _HEADER_rpcecho */