summaryrefslogtreecommitdiffstats
path: root/librpc/gen_ndr/echo.h
blob: 53c6ee73f742f5cbf3dd902603d921eee8009339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
/* header auto-generated by pidl */

#include <stdint.h>

#include "libcli/util/ntstatus.h"

#ifndef _HEADER_rpcecho
#define _HEADER_rpcecho

struct echo_info1 {
	uint8_t v;
}/* [public] */;

struct echo_info2 {
	uint16_t v;
};

struct echo_info3 {
	uint32_t v;
};

struct echo_info4 {
	uint64_t v;
};

struct echo_info5 {
	uint8_t v1;
	uint64_t v2;
};

struct echo_info6 {
	uint8_t v1;
	struct echo_info1 info1;
};

struct echo_info7 {
	uint8_t v1;
	struct echo_info4 info4;
};

union echo_Info {
	struct echo_info1 info1;/* [case] */
	struct echo_info2 info2;/* [case(2)] */
	struct echo_info3 info3;/* [case(3)] */
	struct echo_info4 info4;/* [case(4)] */
	struct echo_info5 info5;/* [case(5)] */
	struct echo_info6 info6;/* [case(6)] */
	struct echo_info7 info7;/* [case(7)] */
}/* [switch_type(uint16)] */;

enum echo_Enum1
#ifndef USE_UINT_ENUMS
 {
	ECHO_ENUM1=(int)(1),
	ECHO_ENUM2=(int)(2)
}
#else
 { __donnot_use_enum_echo_Enum1=0x7FFFFFFF}
#define ECHO_ENUM1 ( 1 )
#define ECHO_ENUM2 ( 2 )
#endif
;

enum echo_Enum1_32
#ifndef USE_UINT_ENUMS
 {
	ECHO_ENUM1_32=(int)(1),
	ECHO_ENUM2_32=(int)(2)
}
#else
 { __donnot_use_enum_echo_Enum1_32=0x7FFFFFFF}
#define ECHO_ENUM1_32 ( 1 )
#define ECHO_ENUM2_32 ( 2 )
#endif
;

struct echo_Enum2 {
	enum echo_Enum1 e1;
	enum echo_Enum1_32 e2;
};

union echo_Enum3 {
	enum echo_Enum1 e1;/* [case(ECHO_ENUM1)] */
	struct echo_Enum2 e2;/* [case(ECHO_ENUM2)] */
}/* [switch_type(uint16)] */;

struct echo_Surrounding {
	uint32_t x;
	uint16_t *surrounding;/* [size_is(x)] */
};


struct echo_AddOne {
	struct {
		uint32_t in_data;
	} in;

	struct {
		uint32_t *out_data;/* [ref] */
	} out;

};


struct echo_EchoData {
	struct {
		uint32_t len;
		uint8_t *in_data;/* [size_is(len)] */
	} in;

	struct {
		uint8_t *out_data;/* [size_is(len)] */
	} out;

};


struct echo_SinkData {
	struct {
		uint32_t len;
		uint8_t *data;/* [size_is(len)] */
	} in;

};


struct echo_SourceData {
	struct {
		uint32_t len;
	} in;

	struct {
		uint8_t *data;/* [size_is(len)] */
	} out;

};


struct echo_TestCall {
	struct {
		const char *s1;/* [ref,charset(UTF16)] */
	} in;

	struct {
		const char **s2;/* [ref,charset(UTF16)] */
	} out;

};


struct echo_TestCall2 {
	struct {
		uint16_t level;
	} in;

	struct {
		union echo_Info *info;/* [ref,switch_is(level)] */
		NTSTATUS result;
	} out;

};


struct echo_TestSleep {
	struct {
		uint32_t seconds;
	} in;

	struct {
		uint32_t result;
	} out;

};


struct echo_TestEnum {
	struct {
		enum echo_Enum1 *foo1;/* [ref] */
		struct echo_Enum2 *foo2;/* [ref] */
		union echo_Enum3 *foo3;/* [ref,switch_is(*foo1)] */
	} in;

	struct {
		enum echo_Enum1 *foo1;/* [ref] */
		struct echo_Enum2 *foo2;/* [ref] */
		union echo_Enum3 *foo3;/* [ref,switch_is(*foo1)] */
	} out;

};


struct echo_TestSurrounding {
	struct {
		struct echo_Surrounding *data;/* [ref] */
	} in;

	struct {
		struct echo_Surrounding *data;/* [ref] */
	} out;

};


struct echo_TestDoublePointer {
	struct {
		uint16_t ***data;/* [ref] */
	} in;

	struct {
		uint16_t result;
	} out;

};

#endif /* _HEADER_rpcecho */