~lefteris-nikoltsios/+junk/samba-lp1016895

0.37.7 by Christian Perrier
Import upstream version 3.6.0~pre3
1
/* header auto-generated by pidl */
2
3
#ifndef _PIDL_HEADER_epmapper
4
#define _PIDL_HEADER_epmapper
5
6
#include <stdint.h>
7
8
#include "libcli/util/ntstatus.h"
9
10
#include "librpc/gen_ndr/misc.h"
11
#ifndef _HEADER_epmapper
12
#define _HEADER_epmapper
13
14
#define EPMAPPER_STATUS_CANT_PERFORM_OP	( 0x6d8 )
15
#define EPMAPPER_STATUS_NO_MORE_ENTRIES	( 0x16c9a0d6 )
16
#define EPMAPPER_STATUS_NO_MEMORY	( 0x16C9A012 )
17
#define EPMAPPER_STATUS_OK	( 0 )
18
enum epm_protocol
19
#ifndef USE_UINT_ENUMS
20
 {
21
	EPM_PROTOCOL_DNET_NSP=(int)(0x04),
22
	EPM_PROTOCOL_OSI_TP4=(int)(0x05),
23
	EPM_PROTOCOL_OSI_CLNS=(int)(0x06),
24
	EPM_PROTOCOL_TCP=(int)(0x07),
25
	EPM_PROTOCOL_UDP=(int)(0x08),
26
	EPM_PROTOCOL_IP=(int)(0x09),
27
	EPM_PROTOCOL_NCADG=(int)(0x0a),
28
	EPM_PROTOCOL_NCACN=(int)(0x0b),
29
	EPM_PROTOCOL_NCALRPC=(int)(0x0c),
30
	EPM_PROTOCOL_UUID=(int)(0x0d),
31
	EPM_PROTOCOL_IPX=(int)(0x0e),
32
	EPM_PROTOCOL_SMB=(int)(0x0f),
33
	EPM_PROTOCOL_NAMED_PIPE=(int)(0x10),
34
	EPM_PROTOCOL_NETBIOS=(int)(0x11),
35
	EPM_PROTOCOL_NETBEUI=(int)(0x12),
36
	EPM_PROTOCOL_SPX=(int)(0x13),
37
	EPM_PROTOCOL_NB_IPX=(int)(0x14),
38
	EPM_PROTOCOL_DSP=(int)(0x16),
39
	EPM_PROTOCOL_DDP=(int)(0x17),
40
	EPM_PROTOCOL_APPLETALK=(int)(0x18),
41
	EPM_PROTOCOL_VINES_SPP=(int)(0x1a),
42
	EPM_PROTOCOL_VINES_IPC=(int)(0x1b),
43
	EPM_PROTOCOL_STREETTALK=(int)(0x1c),
44
	EPM_PROTOCOL_HTTP=(int)(0x1f),
45
	EPM_PROTOCOL_UNIX_DS=(int)(0x20),
46
	EPM_PROTOCOL_NULL=(int)(0x21)
47
}
48
#else
49
 { __donnot_use_enum_epm_protocol=0x7FFFFFFF}
50
#define EPM_PROTOCOL_DNET_NSP ( 0x04 )
51
#define EPM_PROTOCOL_OSI_TP4 ( 0x05 )
52
#define EPM_PROTOCOL_OSI_CLNS ( 0x06 )
53
#define EPM_PROTOCOL_TCP ( 0x07 )
54
#define EPM_PROTOCOL_UDP ( 0x08 )
55
#define EPM_PROTOCOL_IP ( 0x09 )
56
#define EPM_PROTOCOL_NCADG ( 0x0a )
57
#define EPM_PROTOCOL_NCACN ( 0x0b )
58
#define EPM_PROTOCOL_NCALRPC ( 0x0c )
59
#define EPM_PROTOCOL_UUID ( 0x0d )
60
#define EPM_PROTOCOL_IPX ( 0x0e )
61
#define EPM_PROTOCOL_SMB ( 0x0f )
62
#define EPM_PROTOCOL_NAMED_PIPE ( 0x10 )
63
#define EPM_PROTOCOL_NETBIOS ( 0x11 )
64
#define EPM_PROTOCOL_NETBEUI ( 0x12 )
65
#define EPM_PROTOCOL_SPX ( 0x13 )
66
#define EPM_PROTOCOL_NB_IPX ( 0x14 )
67
#define EPM_PROTOCOL_DSP ( 0x16 )
68
#define EPM_PROTOCOL_DDP ( 0x17 )
69
#define EPM_PROTOCOL_APPLETALK ( 0x18 )
70
#define EPM_PROTOCOL_VINES_SPP ( 0x1a )
71
#define EPM_PROTOCOL_VINES_IPC ( 0x1b )
72
#define EPM_PROTOCOL_STREETTALK ( 0x1c )
73
#define EPM_PROTOCOL_HTTP ( 0x1f )
74
#define EPM_PROTOCOL_UNIX_DS ( 0x20 )
75
#define EPM_PROTOCOL_NULL ( 0x21 )
76
#endif
77
;
78
79
struct epm_rhs_dnet_nsp {
80
	char _empty_;
81
};
82
83
struct epm_rhs_osi_tp4 {
84
	char _empty_;
85
};
86
87
struct epm_rhs_osi_clns {
88
	char _empty_;
89
};
90
91
struct epm_rhs_udp {
92
	uint16_t port;
93
};
94
95
struct epm_rhs_tcp {
96
	uint16_t port;
97
};
98
99
struct epm_rhs_ip {
100
	const char * ipaddr;
101
};
102
103
struct epm_rhs_ncadg {
104
	uint16_t minor_version;
105
};
106
107
struct epm_rhs_ncacn {
108
	uint16_t minor_version;
109
};
110
111
struct epm_rhs_uuid {
112
	DATA_BLOB unknown;/* [flag(LIBNDR_FLAG_REMAINING)] */
113
};
114
115
struct epm_rhs_ipx {
116
	char _empty_;
117
};
118
119
struct epm_rhs_smb {
120
	const char * unc;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
121
};
122
123
struct epm_rhs_named_pipe {
124
	const char * path;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
125
};
126
127
struct epm_rhs_netbios {
128
	const char * name;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
129
};
130
131
struct epm_rhs_netbeui {
132
	char _empty_;
133
};
134
135
struct epm_rhs_spx {
136
	char _empty_;
137
};
138
139
struct epm_rhs_nb_ipx {
140
	char _empty_;
141
};
142
143
struct epm_rhs_http {
144
	uint16_t port;
145
};
146
147
struct epm_rhs_unix_ds {
148
	const char * path;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
149
};
150
151
struct epm_rhs_null {
152
	char _empty_;
153
};
154
155
struct epm_rhs_ncalrpc {
156
	uint16_t minor_version;
157
};
158
159
struct epm_rhs_appletalk {
160
	char _empty_;
161
};
162
163
struct epm_rhs_atalk_stream {
164
	char _empty_;
165
};
166
167
struct epm_rhs_atalk_datagram {
168
	char _empty_;
169
};
170
171
struct epm_rhs_vines_spp {
172
	uint16_t port;
173
};
174
175
struct epm_rhs_vines_ipc {
176
	uint16_t port;
177
};
178
179
struct epm_rhs_streettalk {
180
	const char * streettalk;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
181
};
182
183
union epm_rhs {
184
	struct epm_rhs_dnet_nsp dnet_nsp;/* [case(EPM_PROTOCOL_DNET_NSP)] */
185
	struct epm_rhs_osi_tp4 osi_tp4;/* [case(EPM_PROTOCOL_OSI_TP4)] */
186
	struct epm_rhs_osi_clns osi_clns;/* [case(EPM_PROTOCOL_OSI_CLNS)] */
187
	struct epm_rhs_tcp tcp;/* [case(EPM_PROTOCOL_TCP)] */
188
	struct epm_rhs_udp udp;/* [case(EPM_PROTOCOL_UDP)] */
189
	struct epm_rhs_ip ip;/* [case(EPM_PROTOCOL_IP)] */
190
	struct epm_rhs_ncadg ncadg;/* [case(EPM_PROTOCOL_NCADG)] */
191
	struct epm_rhs_ncacn ncacn;/* [case(EPM_PROTOCOL_NCACN)] */
192
	struct epm_rhs_ncalrpc ncalrpc;/* [case(EPM_PROTOCOL_NCALRPC)] */
193
	struct epm_rhs_uuid uuid;/* [case(EPM_PROTOCOL_UUID)] */
194
	struct epm_rhs_ipx ipx;/* [case(EPM_PROTOCOL_IPX)] */
195
	struct epm_rhs_smb smb;/* [case(EPM_PROTOCOL_SMB)] */
196
	struct epm_rhs_named_pipe named_pipe;/* [case(EPM_PROTOCOL_NAMED_PIPE)] */
197
	struct epm_rhs_netbios netbios;/* [case(EPM_PROTOCOL_NETBIOS)] */
198
	struct epm_rhs_netbeui netbeui;/* [case(EPM_PROTOCOL_NETBEUI)] */
199
	struct epm_rhs_spx spx;/* [case(EPM_PROTOCOL_SPX)] */
200
	struct epm_rhs_nb_ipx nb_ipx;/* [case(EPM_PROTOCOL_NB_IPX)] */
201
	struct epm_rhs_atalk_stream atalk_stream;/* [case(EPM_PROTOCOL_DSP)] */
202
	struct epm_rhs_atalk_datagram atalk_datagram;/* [case(EPM_PROTOCOL_DDP)] */
203
	struct epm_rhs_appletalk appletalk;/* [case(EPM_PROTOCOL_APPLETALK)] */
204
	struct epm_rhs_vines_spp vines_spp;/* [case(EPM_PROTOCOL_VINES_SPP)] */
205
	struct epm_rhs_vines_ipc vines_ipc;/* [case(EPM_PROTOCOL_VINES_IPC)] */
206
	struct epm_rhs_streettalk streettalk;/* [case(EPM_PROTOCOL_STREETTALK)] */
207
	struct epm_rhs_http http;/* [case(EPM_PROTOCOL_HTTP)] */
208
	struct epm_rhs_unix_ds unix_ds;/* [case(EPM_PROTOCOL_UNIX_DS)] */
209
	struct epm_rhs_null null;/* [case(EPM_PROTOCOL_NULL)] */
210
	DATA_BLOB unknown;/* [default,flag(LIBNDR_FLAG_REMAINING)] */
211
}/* [nodiscriminant,flag(LIBNDR_FLAG_BIGENDIAN)] */;
212
213
struct epm_lhs {
214
	enum epm_protocol protocol;
215
	DATA_BLOB lhs_data;/* [flag(LIBNDR_FLAG_REMAINING)] */
216
};
217
218
struct epm_floor {
219
	struct epm_lhs lhs;/* [subcontext(2)] */
220
	union epm_rhs rhs;/* [subcontext(2),switch_is(lhs.protocol)] */
221
};
222
223
struct epm_tower {
224
	uint16_t num_floors;
225
	struct epm_floor *floors;
226
}/* [gensize,flag(LIBNDR_FLAG_NOALIGN|LIBNDR_FLAG_LITTLE_ENDIAN)] */;
227
228
struct epm_twr_t {
229
	uint32_t tower_length;/* [value(ndr_size_epm_tower(&tower,ndr->flags))] */
230
	struct epm_tower tower;/* [subcontext(4)] */
231
};
232
233
struct epm_entry_t {
234
	struct GUID object;
235
	struct epm_twr_t *tower;/* [ptr] */
236
	uint32_t __annotation_offset;/* [value(0)] */
237
	uint32_t __annotation_length;/* [value(strlen(annotation)+1)] */
238
	const char *annotation;/* [charset(DOS)] */
239
};
240
241
struct rpc_if_id_t {
242
	struct GUID uuid;
243
	uint16_t vers_major;
244
	uint16_t vers_minor;
245
};
246
247
enum epm_InquiryType
248
#ifndef USE_UINT_ENUMS
249
 {
250
	RPC_C_EP_ALL_ELTS=(int)(0x00000000),
251
	RPC_C_EP_MATCH_BY_IF=(int)(0x00000001),
252
	RPC_C_EP_MATCH_BY_OBJ=(int)(0x00000002),
253
	RPC_C_EP_MATCH_BY_BOTH=(int)(0x00000003)
254
}
255
#else
256
 { __donnot_use_enum_epm_InquiryType=0x7FFFFFFF}
257
#define RPC_C_EP_ALL_ELTS ( 0x00000000 )
258
#define RPC_C_EP_MATCH_BY_IF ( 0x00000001 )
259
#define RPC_C_EP_MATCH_BY_OBJ ( 0x00000002 )
260
#define RPC_C_EP_MATCH_BY_BOTH ( 0x00000003 )
261
#endif
262
;
263
264
enum epm_VersionOption
265
#ifndef USE_UINT_ENUMS
266
 {
267
	RPC_C_VERS_ALL=(int)(0x00000000),
268
	RPC_C_VERS_COMPATIBLE=(int)(0x00000001),
269
	RPC_C_VERS_EXACT=(int)(0x00000002),
270
	RPC_C_VERS_MAJOR_ONLY=(int)(0x00000003),
271
	RPC_C_VERS_UPTO=(int)(0x00000004)
272
}
273
#else
274
 { __donnot_use_enum_epm_VersionOption=0x7FFFFFFF}
275
#define RPC_C_VERS_ALL ( 0x00000000 )
276
#define RPC_C_VERS_COMPATIBLE ( 0x00000001 )
277
#define RPC_C_VERS_EXACT ( 0x00000002 )
278
#define RPC_C_VERS_MAJOR_ONLY ( 0x00000003 )
279
#define RPC_C_VERS_UPTO ( 0x00000004 )
280
#endif
281
;
282
283
struct epm_twr_p_t {
284
	struct epm_twr_t *twr;/* [ptr] */
285
};
286
287
288
struct epm_Insert {
289
	struct {
290
		uint32_t num_ents;
291
		struct epm_entry_t *entries;/* [size_is(num_ents)] */
292
		uint32_t replace;
293
	} in;
294
295
	struct {
296
		uint32_t result;
297
	} out;
298
299
};
300
301
302
struct epm_Delete {
303
	struct {
304
		uint32_t num_ents;
305
		struct epm_entry_t *entries;/* [size_is(num_ents)] */
306
	} in;
307
308
	struct {
309
		uint32_t result;
310
	} out;
311
312
};
313
314
315
struct epm_Lookup {
316
	struct {
317
		enum epm_InquiryType inquiry_type;
318
		struct GUID *object;/* [ptr] */
319
		struct rpc_if_id_t *interface_id;/* [ptr] */
320
		enum epm_VersionOption vers_option;
321
		uint32_t max_ents;
322
		struct policy_handle *entry_handle;/* [ref] */
323
	} in;
324
325
	struct {
326
		uint32_t *num_ents;/* [ref] */
327
		struct epm_entry_t *entries;/* [length_is(*num_ents),size_is(max_ents)] */
328
		struct policy_handle *entry_handle;/* [ref] */
329
		uint32_t result;
330
	} out;
331
332
};
333
334
335
struct epm_Map {
336
	struct {
337
		struct GUID *object;/* [ptr] */
338
		struct epm_twr_t *map_tower;/* [ptr] */
339
		uint32_t max_towers;
340
		struct policy_handle *entry_handle;/* [ref] */
341
	} in;
342
343
	struct {
344
		uint32_t *num_towers;/* [ref] */
345
		struct epm_twr_p_t *towers;/* [length_is(*num_towers),size_is(max_towers)] */
346
		struct policy_handle *entry_handle;/* [ref] */
347
		uint32_t result;
348
	} out;
349
350
};
351
352
353
struct epm_LookupHandleFree {
354
	struct {
355
		struct policy_handle *entry_handle;/* [ref] */
356
	} in;
357
358
	struct {
359
		struct policy_handle *entry_handle;/* [ref] */
360
		uint32_t result;
361
	} out;
362
363
};
364
365
366
struct epm_InqObject {
367
	struct {
368
		struct GUID *epm_object;/* [ref] */
369
	} in;
370
371
	struct {
372
		uint32_t result;
373
	} out;
374
375
};
376
377
378
struct epm_MgmtDelete {
379
	struct {
380
		uint32_t object_speced;
381
		struct GUID *object;/* [ptr] */
382
		struct epm_twr_t *tower;/* [ptr] */
383
	} in;
384
385
	struct {
386
		uint32_t result;
387
	} out;
388
389
};
390
391
392
struct epm_MapAuth {
393
	struct {
394
		uint32_t result;
395
	} out;
396
397
};
398
399
#endif /* _HEADER_epmapper */
400
#endif /* _PIDL_HEADER_epmapper */