1 | /*
|
---|
2 | * Endpoint Mapper
|
---|
3 | *
|
---|
4 | * Copyright 2006 Robert Shearman (for CodeWeavers)
|
---|
5 | *
|
---|
6 | * This library is free software; you can redistribute it and/or
|
---|
7 | * modify it under the terms of the GNU Lesser General Public
|
---|
8 | * License as published by the Free Software Foundation; either
|
---|
9 | * version 2.1 of the License, or (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This library is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | * Lesser General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU Lesser General Public
|
---|
17 | * License along with this library; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
23 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
24 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
25 | * a choice of LGPL license versions is made available with the language indicating
|
---|
26 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
27 | * of the LGPL is applied is otherwise unspecified.
|
---|
28 | */
|
---|
29 |
|
---|
30 | /* FIXME: should be import */
|
---|
31 | #include "dcetypes.idl"
|
---|
32 |
|
---|
33 | cpp_quote("RPC_STATUS WINAPI TowerExplode(")
|
---|
34 | cpp_quote(" const twr_t *tower, PRPC_SYNTAX_IDENTIFIER object, PRPC_SYNTAX_IDENTIFIER syntax,")
|
---|
35 | cpp_quote(" char **protseq, char **endpoint, char **address);")
|
---|
36 | cpp_quote("RPC_STATUS WINAPI TowerConstruct(")
|
---|
37 | cpp_quote(" const RPC_SYNTAX_IDENTIFIER *object, const RPC_SYNTAX_IDENTIFIER *syntax,")
|
---|
38 | cpp_quote(" const char *protseq, const char *endpoint, const char *address,")
|
---|
39 | cpp_quote(" twr_t **tower);")
|
---|
40 |
|
---|
41 | [
|
---|
42 | uuid(e1af8308-5d1f-11c9-91a4-08002b14a0fa),
|
---|
43 | version(3.0),
|
---|
44 | pointer_default(ref)
|
---|
45 | ]
|
---|
46 | interface epm
|
---|
47 | {
|
---|
48 | const long ept_max_annotation_size = 64;
|
---|
49 |
|
---|
50 | typedef struct
|
---|
51 | {
|
---|
52 | GUID object;
|
---|
53 | twr_t *tower;
|
---|
54 | [string] char annotation[ept_max_annotation_size];
|
---|
55 | } ept_entry_t, *ept_entry_p_t;
|
---|
56 |
|
---|
57 | typedef [context_handle] void *ept_lookup_handle_t;
|
---|
58 |
|
---|
59 | /* Adds entries to an endpoint map */
|
---|
60 | void ept_insert(
|
---|
61 | [in] handle_t h,
|
---|
62 | [in] unsigned32 num_ents,
|
---|
63 | [in, size_is(num_ents)]
|
---|
64 | ept_entry_t entries[],
|
---|
65 | [in] boolean32 replace,
|
---|
66 | [out] error_status_t *status
|
---|
67 | );
|
---|
68 |
|
---|
69 | /* Removes entries from an endpoint map */
|
---|
70 | void ept_delete(
|
---|
71 | [in] handle_t h,
|
---|
72 | [in] unsigned32 num_ents,
|
---|
73 | [in, size_is(num_ents)]
|
---|
74 | ept_entry_t entries[],
|
---|
75 | [out] error_status_t *status
|
---|
76 | );
|
---|
77 |
|
---|
78 | /* Lookup entries in an endpoint map */
|
---|
79 | [idempotent]
|
---|
80 | void ept_lookup(
|
---|
81 | [in] handle_t h,
|
---|
82 | [in] unsigned32 inquiry_type,
|
---|
83 | [in] uuid_p_t object,
|
---|
84 | [in] rpc_if_id_p_t interface_id,
|
---|
85 | [in] unsigned32 vers_option,
|
---|
86 | [in, out] ept_lookup_handle_t *entry_handle,
|
---|
87 | [in] unsigned32 max_ents,
|
---|
88 | [out] unsigned32 *num_ents,
|
---|
89 | [out, length_is(*num_ents), size_is(max_ents)]
|
---|
90 | ept_entry_t entries[],
|
---|
91 | [out] error_status_t *status
|
---|
92 | );
|
---|
93 |
|
---|
94 | /* Lookup entries in an endpoint map using the given input pattern */
|
---|
95 | [idempotent]
|
---|
96 | void ept_map(
|
---|
97 | [in] handle_t h,
|
---|
98 | [in] uuid_p_t object,
|
---|
99 | [in] twr_p_t map_tower,
|
---|
100 | [in, out] ept_lookup_handle_t *entry_handle,
|
---|
101 | [in] unsigned32 max_towers,
|
---|
102 | [out] unsigned32 *num_towers,
|
---|
103 | [out, length_is(*num_towers), size_is(max_towers)]
|
---|
104 | twr_p_t *towers,
|
---|
105 | [out] error_status_t *status
|
---|
106 | );
|
---|
107 |
|
---|
108 | /* Free the context handle returned by ept_lookup or ept_map */
|
---|
109 | void ept_lookup_handle_free(
|
---|
110 | [in] handle_t h,
|
---|
111 | [in, out] ept_lookup_handle_t *entry_handle,
|
---|
112 | [out] error_status_t *status
|
---|
113 | );
|
---|
114 |
|
---|
115 | /* Inquires as to the endpoint map's object identifier */
|
---|
116 | [idempotent]
|
---|
117 | void ept_inq_object(
|
---|
118 | [in] handle_t h,
|
---|
119 | [out] GUID *ept_object,
|
---|
120 | [out] error_status_t *status
|
---|
121 | );
|
---|
122 |
|
---|
123 | /* Deletes matching entries in the endpoint map */
|
---|
124 | void ept_mgmt_delete(
|
---|
125 | [in] handle_t h,
|
---|
126 | [in] boolean32 object_speced,
|
---|
127 | [in] uuid_p_t object,
|
---|
128 | [in] twr_p_t tower,
|
---|
129 | [out] error_status_t *status
|
---|
130 | );
|
---|
131 | }
|
---|