2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_epmapper.h"
9 NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli,
11 uint32_t num_ents /* [in] */,
12 struct epm_entry_t *entries /* [in] [size_is(num_ents)] */,
13 uint32_t replace /* [in] */)
19 r.in.num_ents = num_ents;
20 r.in.entries = entries;
21 r.in.replace = replace;
23 if (DEBUGLEVEL >= 10) {
24 NDR_PRINT_IN_DEBUG(epm_Insert, &r);
27 status = cli_do_rpc_ndr(cli,
33 if (!NT_STATUS_IS_OK(status)) {
37 if (DEBUGLEVEL >= 10) {
38 NDR_PRINT_OUT_DEBUG(epm_Insert, &r);
41 if (NT_STATUS_IS_ERR(status)) {
45 /* Return variables */
51 NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli,
53 uint32_t num_ents /* [in] */,
54 struct epm_entry_t *entries /* [in] [size_is(num_ents)] */)
60 r.in.num_ents = num_ents;
61 r.in.entries = entries;
63 if (DEBUGLEVEL >= 10) {
64 NDR_PRINT_IN_DEBUG(epm_Delete, &r);
67 status = cli_do_rpc_ndr(cli,
73 if (!NT_STATUS_IS_OK(status)) {
77 if (DEBUGLEVEL >= 10) {
78 NDR_PRINT_OUT_DEBUG(epm_Delete, &r);
81 if (NT_STATUS_IS_ERR(status)) {
85 /* Return variables */
91 NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli,
93 uint32_t inquiry_type /* [in] */,
94 struct GUID *object /* [in] [ptr] */,
95 struct rpc_if_id_t *interface_id /* [in] [ptr] */,
96 uint32_t vers_option /* [in] */,
97 struct policy_handle *entry_handle /* [in,out] [ref] */,
98 uint32_t max_ents /* [in] */,
99 uint32_t *num_ents /* [out] [ref] */,
100 struct epm_entry_t *entries /* [out] [length_is(*num_ents),size_is(max_ents)] */)
106 r.in.inquiry_type = inquiry_type;
107 r.in.object = object;
108 r.in.interface_id = interface_id;
109 r.in.vers_option = vers_option;
110 r.in.entry_handle = entry_handle;
111 r.in.max_ents = max_ents;
113 if (DEBUGLEVEL >= 10) {
114 NDR_PRINT_IN_DEBUG(epm_Lookup, &r);
117 status = cli_do_rpc_ndr(cli,
123 if (!NT_STATUS_IS_OK(status)) {
127 if (DEBUGLEVEL >= 10) {
128 NDR_PRINT_OUT_DEBUG(epm_Lookup, &r);
131 if (NT_STATUS_IS_ERR(status)) {
135 /* Return variables */
136 *entry_handle = *r.out.entry_handle;
137 *num_ents = *r.out.num_ents;
138 memcpy(entries, r.out.entries, r.in.max_ents * sizeof(*entries));
144 NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli,
146 struct GUID *object /* [in] [ptr] */,
147 struct epm_twr_t *map_tower /* [in] [ptr] */,
148 struct policy_handle *entry_handle /* [in,out] [ref] */,
149 uint32_t max_towers /* [in] */,
150 uint32_t *num_towers /* [out] [ref] */,
151 struct epm_twr_p_t *towers /* [out] [length_is(*num_towers),size_is(max_towers)] */)
157 r.in.object = object;
158 r.in.map_tower = map_tower;
159 r.in.entry_handle = entry_handle;
160 r.in.max_towers = max_towers;
162 if (DEBUGLEVEL >= 10) {
163 NDR_PRINT_IN_DEBUG(epm_Map, &r);
166 status = cli_do_rpc_ndr(cli,
172 if (!NT_STATUS_IS_OK(status)) {
176 if (DEBUGLEVEL >= 10) {
177 NDR_PRINT_OUT_DEBUG(epm_Map, &r);
180 if (NT_STATUS_IS_ERR(status)) {
184 /* Return variables */
185 *entry_handle = *r.out.entry_handle;
186 *num_towers = *r.out.num_towers;
187 memcpy(towers, r.out.towers, r.in.max_towers * sizeof(*towers));
193 NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli,
195 struct policy_handle *entry_handle /* [in,out] [ref] */)
197 struct epm_LookupHandleFree r;
201 r.in.entry_handle = entry_handle;
203 if (DEBUGLEVEL >= 10) {
204 NDR_PRINT_IN_DEBUG(epm_LookupHandleFree, &r);
207 status = cli_do_rpc_ndr(cli,
210 NDR_EPM_LOOKUPHANDLEFREE,
213 if (!NT_STATUS_IS_OK(status)) {
217 if (DEBUGLEVEL >= 10) {
218 NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree, &r);
221 if (NT_STATUS_IS_ERR(status)) {
225 /* Return variables */
226 *entry_handle = *r.out.entry_handle;
232 NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli,
234 struct GUID *epm_object /* [in] [ref] */)
236 struct epm_InqObject r;
240 r.in.epm_object = epm_object;
242 if (DEBUGLEVEL >= 10) {
243 NDR_PRINT_IN_DEBUG(epm_InqObject, &r);
246 status = cli_do_rpc_ndr(cli,
252 if (!NT_STATUS_IS_OK(status)) {
256 if (DEBUGLEVEL >= 10) {
257 NDR_PRINT_OUT_DEBUG(epm_InqObject, &r);
260 if (NT_STATUS_IS_ERR(status)) {
264 /* Return variables */
270 NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli,
272 uint32_t object_speced /* [in] */,
273 struct GUID *object /* [in] [ptr] */,
274 struct epm_twr_t *tower /* [in] [ptr] */)
276 struct epm_MgmtDelete r;
280 r.in.object_speced = object_speced;
281 r.in.object = object;
284 if (DEBUGLEVEL >= 10) {
285 NDR_PRINT_IN_DEBUG(epm_MgmtDelete, &r);
288 status = cli_do_rpc_ndr(cli,
294 if (!NT_STATUS_IS_OK(status)) {
298 if (DEBUGLEVEL >= 10) {
299 NDR_PRINT_OUT_DEBUG(epm_MgmtDelete, &r);
302 if (NT_STATUS_IS_ERR(status)) {
306 /* Return variables */
312 NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli,
315 struct epm_MapAuth r;
320 if (DEBUGLEVEL >= 10) {
321 NDR_PRINT_IN_DEBUG(epm_MapAuth, &r);
324 status = cli_do_rpc_ndr(cli,
330 if (!NT_STATUS_IS_OK(status)) {
334 if (DEBUGLEVEL >= 10) {
335 NDR_PRINT_OUT_DEBUG(epm_MapAuth, &r);
338 if (NT_STATUS_IS_ERR(status)) {
342 /* Return variables */