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
->dispatch(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
->dispatch(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
->dispatch(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 if ((*r
.out
.num_ents
) > (r
.in
.max_ents
)) {
139 return NT_STATUS_INVALID_NETWORK_RESPONSE
;
141 memcpy(entries
, r
.out
.entries
, (*r
.out
.num_ents
) * sizeof(*entries
));
147 NTSTATUS
rpccli_epm_Map(struct rpc_pipe_client
*cli
,
149 struct GUID
*object
/* [in] [ptr] */,
150 struct epm_twr_t
*map_tower
/* [in] [ptr] */,
151 struct policy_handle
*entry_handle
/* [in,out] [ref] */,
152 uint32_t max_towers
/* [in] */,
153 uint32_t *num_towers
/* [out] [ref] */,
154 struct epm_twr_p_t
*towers
/* [out] [length_is(*num_towers),size_is(max_towers)] */)
160 r
.in
.object
= object
;
161 r
.in
.map_tower
= map_tower
;
162 r
.in
.entry_handle
= entry_handle
;
163 r
.in
.max_towers
= max_towers
;
165 if (DEBUGLEVEL
>= 10) {
166 NDR_PRINT_IN_DEBUG(epm_Map
, &r
);
169 status
= cli
->dispatch(cli
,
175 if (!NT_STATUS_IS_OK(status
)) {
179 if (DEBUGLEVEL
>= 10) {
180 NDR_PRINT_OUT_DEBUG(epm_Map
, &r
);
183 if (NT_STATUS_IS_ERR(status
)) {
187 /* Return variables */
188 *entry_handle
= *r
.out
.entry_handle
;
189 *num_towers
= *r
.out
.num_towers
;
190 if ((*r
.out
.num_towers
) > (r
.in
.max_towers
)) {
191 return NT_STATUS_INVALID_NETWORK_RESPONSE
;
193 memcpy(towers
, r
.out
.towers
, (*r
.out
.num_towers
) * sizeof(*towers
));
199 NTSTATUS
rpccli_epm_LookupHandleFree(struct rpc_pipe_client
*cli
,
201 struct policy_handle
*entry_handle
/* [in,out] [ref] */)
203 struct epm_LookupHandleFree r
;
207 r
.in
.entry_handle
= entry_handle
;
209 if (DEBUGLEVEL
>= 10) {
210 NDR_PRINT_IN_DEBUG(epm_LookupHandleFree
, &r
);
213 status
= cli
->dispatch(cli
,
216 NDR_EPM_LOOKUPHANDLEFREE
,
219 if (!NT_STATUS_IS_OK(status
)) {
223 if (DEBUGLEVEL
>= 10) {
224 NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree
, &r
);
227 if (NT_STATUS_IS_ERR(status
)) {
231 /* Return variables */
232 *entry_handle
= *r
.out
.entry_handle
;
238 NTSTATUS
rpccli_epm_InqObject(struct rpc_pipe_client
*cli
,
240 struct GUID
*epm_object
/* [in] [ref] */)
242 struct epm_InqObject r
;
246 r
.in
.epm_object
= epm_object
;
248 if (DEBUGLEVEL
>= 10) {
249 NDR_PRINT_IN_DEBUG(epm_InqObject
, &r
);
252 status
= cli
->dispatch(cli
,
258 if (!NT_STATUS_IS_OK(status
)) {
262 if (DEBUGLEVEL
>= 10) {
263 NDR_PRINT_OUT_DEBUG(epm_InqObject
, &r
);
266 if (NT_STATUS_IS_ERR(status
)) {
270 /* Return variables */
276 NTSTATUS
rpccli_epm_MgmtDelete(struct rpc_pipe_client
*cli
,
278 uint32_t object_speced
/* [in] */,
279 struct GUID
*object
/* [in] [ptr] */,
280 struct epm_twr_t
*tower
/* [in] [ptr] */)
282 struct epm_MgmtDelete r
;
286 r
.in
.object_speced
= object_speced
;
287 r
.in
.object
= object
;
290 if (DEBUGLEVEL
>= 10) {
291 NDR_PRINT_IN_DEBUG(epm_MgmtDelete
, &r
);
294 status
= cli
->dispatch(cli
,
300 if (!NT_STATUS_IS_OK(status
)) {
304 if (DEBUGLEVEL
>= 10) {
305 NDR_PRINT_OUT_DEBUG(epm_MgmtDelete
, &r
);
308 if (NT_STATUS_IS_ERR(status
)) {
312 /* Return variables */
318 NTSTATUS
rpccli_epm_MapAuth(struct rpc_pipe_client
*cli
,
321 struct epm_MapAuth r
;
326 if (DEBUGLEVEL
>= 10) {
327 NDR_PRINT_IN_DEBUG(epm_MapAuth
, &r
);
330 status
= cli
->dispatch(cli
,
336 if (!NT_STATUS_IS_OK(status
)) {
340 if (DEBUGLEVEL
>= 10) {
341 NDR_PRINT_OUT_DEBUG(epm_MapAuth
, &r
);
344 if (NT_STATUS_IS_ERR(status
)) {
348 /* Return variables */