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
, TALLOC_CTX
*mem_ctx
, uint32_t num_ents
, struct epm_entry_t
*entries
, uint32_t replace
)
15 r
.in
.num_ents
= num_ents
;
16 r
.in
.entries
= entries
;
17 r
.in
.replace
= replace
;
20 NDR_PRINT_IN_DEBUG(epm_Insert
, &r
);
22 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_EPMAPPER
, DCERPC_EPM_INSERT
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_epm_Insert
, (ndr_push_flags_fn_t
)ndr_push_epm_Insert
);
24 if (!NT_STATUS_IS_OK(status
)) {
29 NDR_PRINT_OUT_DEBUG(epm_Insert
, &r
);
31 if (NT_STATUS_IS_ERR(status
)) {
35 /* Return variables */
41 NTSTATUS
rpccli_epm_Delete(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint32_t num_ents
, struct epm_entry_t
*entries
)
47 r
.in
.num_ents
= num_ents
;
48 r
.in
.entries
= entries
;
51 NDR_PRINT_IN_DEBUG(epm_Delete
, &r
);
53 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_EPMAPPER
, DCERPC_EPM_DELETE
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_epm_Delete
, (ndr_push_flags_fn_t
)ndr_push_epm_Delete
);
55 if (!NT_STATUS_IS_OK(status
)) {
60 NDR_PRINT_OUT_DEBUG(epm_Delete
, &r
);
62 if (NT_STATUS_IS_ERR(status
)) {
66 /* Return variables */
72 NTSTATUS
rpccli_epm_Lookup(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint32_t inquiry_type
, struct GUID
*object
, struct rpc_if_id_t
*interface_id
, uint32_t vers_option
, struct policy_handle
*entry_handle
, uint32_t max_ents
, uint32_t *num_ents
, struct epm_entry_t
*entries
)
78 r
.in
.inquiry_type
= inquiry_type
;
80 r
.in
.interface_id
= interface_id
;
81 r
.in
.vers_option
= vers_option
;
82 r
.in
.entry_handle
= entry_handle
;
83 r
.in
.max_ents
= max_ents
;
86 NDR_PRINT_IN_DEBUG(epm_Lookup
, &r
);
88 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_EPMAPPER
, DCERPC_EPM_LOOKUP
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_epm_Lookup
, (ndr_push_flags_fn_t
)ndr_push_epm_Lookup
);
90 if (!NT_STATUS_IS_OK(status
)) {
95 NDR_PRINT_OUT_DEBUG(epm_Lookup
, &r
);
97 if (NT_STATUS_IS_ERR(status
)) {
101 /* Return variables */
102 *entry_handle
= *r
.out
.entry_handle
;
103 *num_ents
= *r
.out
.num_ents
;
104 memcpy(entries
, r
.out
.entries
, r
.in
.max_ents
);
110 NTSTATUS
rpccli_epm_Map(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, struct GUID
*object
, struct epm_twr_t
*map_tower
, struct policy_handle
*entry_handle
, uint32_t max_towers
, uint32_t *num_towers
, struct epm_twr_p_t
*towers
)
116 r
.in
.object
= object
;
117 r
.in
.map_tower
= map_tower
;
118 r
.in
.entry_handle
= entry_handle
;
119 r
.in
.max_towers
= max_towers
;
121 if (DEBUGLEVEL
>= 10)
122 NDR_PRINT_IN_DEBUG(epm_Map
, &r
);
124 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_EPMAPPER
, DCERPC_EPM_MAP
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_epm_Map
, (ndr_push_flags_fn_t
)ndr_push_epm_Map
);
126 if (!NT_STATUS_IS_OK(status
)) {
130 if (DEBUGLEVEL
>= 10)
131 NDR_PRINT_OUT_DEBUG(epm_Map
, &r
);
133 if (NT_STATUS_IS_ERR(status
)) {
137 /* Return variables */
138 *entry_handle
= *r
.out
.entry_handle
;
139 *num_towers
= *r
.out
.num_towers
;
140 memcpy(towers
, r
.out
.towers
, r
.in
.max_towers
);
146 NTSTATUS
rpccli_epm_LookupHandleFree(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, struct policy_handle
*entry_handle
)
148 struct epm_LookupHandleFree r
;
152 r
.in
.entry_handle
= entry_handle
;
154 if (DEBUGLEVEL
>= 10)
155 NDR_PRINT_IN_DEBUG(epm_LookupHandleFree
, &r
);
157 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_EPMAPPER
, DCERPC_EPM_LOOKUPHANDLEFREE
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_epm_LookupHandleFree
, (ndr_push_flags_fn_t
)ndr_push_epm_LookupHandleFree
);
159 if (!NT_STATUS_IS_OK(status
)) {
163 if (DEBUGLEVEL
>= 10)
164 NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree
, &r
);
166 if (NT_STATUS_IS_ERR(status
)) {
170 /* Return variables */
171 *entry_handle
= *r
.out
.entry_handle
;
177 NTSTATUS
rpccli_epm_InqObject(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, struct GUID
*epm_object
)
179 struct epm_InqObject r
;
183 r
.in
.epm_object
= epm_object
;
185 if (DEBUGLEVEL
>= 10)
186 NDR_PRINT_IN_DEBUG(epm_InqObject
, &r
);
188 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_EPMAPPER
, DCERPC_EPM_INQOBJECT
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_epm_InqObject
, (ndr_push_flags_fn_t
)ndr_push_epm_InqObject
);
190 if (!NT_STATUS_IS_OK(status
)) {
194 if (DEBUGLEVEL
>= 10)
195 NDR_PRINT_OUT_DEBUG(epm_InqObject
, &r
);
197 if (NT_STATUS_IS_ERR(status
)) {
201 /* Return variables */
207 NTSTATUS
rpccli_epm_MgmtDelete(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint32_t object_speced
, struct GUID
*object
, struct epm_twr_t
*tower
)
209 struct epm_MgmtDelete r
;
213 r
.in
.object_speced
= object_speced
;
214 r
.in
.object
= object
;
217 if (DEBUGLEVEL
>= 10)
218 NDR_PRINT_IN_DEBUG(epm_MgmtDelete
, &r
);
220 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_EPMAPPER
, DCERPC_EPM_MGMTDELETE
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_epm_MgmtDelete
, (ndr_push_flags_fn_t
)ndr_push_epm_MgmtDelete
);
222 if (!NT_STATUS_IS_OK(status
)) {
226 if (DEBUGLEVEL
>= 10)
227 NDR_PRINT_OUT_DEBUG(epm_MgmtDelete
, &r
);
229 if (NT_STATUS_IS_ERR(status
)) {
233 /* Return variables */
239 NTSTATUS
rpccli_epm_MapAuth(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
)
241 struct epm_MapAuth r
;
246 if (DEBUGLEVEL
>= 10)
247 NDR_PRINT_IN_DEBUG(epm_MapAuth
, &r
);
249 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_EPMAPPER
, DCERPC_EPM_MAPAUTH
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_epm_MapAuth
, (ndr_push_flags_fn_t
)ndr_push_epm_MapAuth
);
251 if (!NT_STATUS_IS_OK(status
)) {
255 if (DEBUGLEVEL
>= 10)
256 NDR_PRINT_OUT_DEBUG(epm_MapAuth
, &r
);
258 if (NT_STATUS_IS_ERR(status
)) {
262 /* Return variables */