summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/echo.h
blob: d6ee5b1e63f78a2607a3e29f68c75a25a42d0426 (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
/* header auto-generated by pidl */

#ifndef _HEADER_rpcecho
#define _HEADER_rpcecho

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

struct echo_info2 {
	uint16_t v;/* [keepref] */
};

struct echo_info3 {
	uint32_t v;/* [keepref] */
};

struct echo_info4 {
	uint64_t v;/* [keepref] */
};

struct echo_info5 {
	uint8_t v1;/* [keepref] */
	uint64_t v2;/* [keepref] */
};

struct echo_info6 {
	uint8_t v1;/* [keepref] */
	struct echo_info1 info1;/* [keepref] */
};

struct echo_info7 {
	uint8_t v1;/* [keepref] */
	struct echo_info4 info4;/* [keepref] */
};

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

enum echo_Enum1 {
	ECHO_ENUM1=1,
	ECHO_ENUM2=2
};

enum echo_Enum1_32 {
	ECHO_ENUM1_32=1,
	ECHO_ENUM2_32=2
};

struct echo_Enum2 {
	enum echo_Enum1 e1;/* [keepref] */
	enum echo_Enum1_32 e2;/* [keepref] */
};

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

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


struct echo_AddOne {
	struct {
		uint32_t in_data;/* [keepref] */
	} in;

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

};


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

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

};


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

};


struct echo_SourceData {
	struct {
		uint32_t len;/* [keepref] */
	} in;

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

};


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

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

};


struct echo_TestCall2 {
	struct {
		uint16_t level;/* [keepref] */
	} in;

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

};


struct echo_TestSleep {
	struct {
		uint32_t seconds;/* [keepref] */
	} in;

	struct {
		uint32_t result;
	} out;

};


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

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

};


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

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

};


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

	struct {
		uint16_t result;
	} out;

};

#endif /* _HEADER_rpcecho */