diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-16 15:59:06 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-16 15:59:06 +0100 |
commit | ca7e4ce97a39f1536047478388302c708d34d372 (patch) | |
tree | ce1b9b68ce74394e4ead049f34caea86f2651433 /librpc/gen_ndr/cli_epmapper.c | |
parent | b2a01ef5dd66618a130e2a1d4cc1d755ba3624a8 (diff) | |
download | samba-ca7e4ce97a39f1536047478388302c708d34d372.tar.gz samba-ca7e4ce97a39f1536047478388302c708d34d372.tar.xz samba-ca7e4ce97a39f1536047478388302c708d34d372.zip |
Move shared gen_ndr files to librpc/gen_ndr in the root.
At the moment these files are used just by Samba 3, but the next step
will be using them from Samba 4 as well.
Diffstat (limited to 'librpc/gen_ndr/cli_epmapper.c')
-rw-r--r-- | librpc/gen_ndr/cli_epmapper.c | 347 |
1 files changed, 347 insertions, 0 deletions
diff --git a/librpc/gen_ndr/cli_epmapper.c b/librpc/gen_ndr/cli_epmapper.c new file mode 100644 index 00000000000..19673ab659f --- /dev/null +++ b/librpc/gen_ndr/cli_epmapper.c @@ -0,0 +1,347 @@ +/* + * Unix SMB/CIFS implementation. + * client auto-generated by pidl. DO NOT MODIFY! + */ + +#include "includes.h" +#include "librpc/gen_ndr/cli_epmapper.h" + +NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + uint32_t num_ents /* [in] */, + struct epm_entry_t *entries /* [in] [size_is(num_ents)] */, + uint32_t replace /* [in] */) +{ + struct epm_Insert r; + NTSTATUS status; + + /* In parameters */ + r.in.num_ents = num_ents; + r.in.entries = entries; + r.in.replace = replace; + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(epm_Insert, &r); + } + + status = cli_do_rpc_ndr(cli, + mem_ctx, + &ndr_table_epmapper, + NDR_EPM_INSERT, + &r); + + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(epm_Insert, &r); + } + + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return NT_STATUS_OK; +} + +NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + uint32_t num_ents /* [in] */, + struct epm_entry_t *entries /* [in] [size_is(num_ents)] */) +{ + struct epm_Delete r; + NTSTATUS status; + + /* In parameters */ + r.in.num_ents = num_ents; + r.in.entries = entries; + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(epm_Delete, &r); + } + + status = cli_do_rpc_ndr(cli, + mem_ctx, + &ndr_table_epmapper, + NDR_EPM_DELETE, + &r); + + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(epm_Delete, &r); + } + + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return NT_STATUS_OK; +} + +NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + uint32_t inquiry_type /* [in] */, + struct GUID *object /* [in] [ptr] */, + struct rpc_if_id_t *interface_id /* [in] [ptr] */, + uint32_t vers_option /* [in] */, + struct policy_handle *entry_handle /* [in,out] [ref] */, + uint32_t max_ents /* [in] */, + uint32_t *num_ents /* [out] [ref] */, + struct epm_entry_t *entries /* [out] [length_is(*num_ents),size_is(max_ents)] */) +{ + struct epm_Lookup r; + NTSTATUS status; + + /* In parameters */ + r.in.inquiry_type = inquiry_type; + r.in.object = object; + r.in.interface_id = interface_id; + r.in.vers_option = vers_option; + r.in.entry_handle = entry_handle; + r.in.max_ents = max_ents; + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(epm_Lookup, &r); + } + + status = cli_do_rpc_ndr(cli, + mem_ctx, + &ndr_table_epmapper, + NDR_EPM_LOOKUP, + &r); + + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(epm_Lookup, &r); + } + + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + *entry_handle = *r.out.entry_handle; + *num_ents = *r.out.num_ents; + memcpy(entries, r.out.entries, r.in.max_ents * sizeof(*entries)); + + /* Return result */ + return NT_STATUS_OK; +} + +NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + struct GUID *object /* [in] [ptr] */, + struct epm_twr_t *map_tower /* [in] [ptr] */, + struct policy_handle *entry_handle /* [in,out] [ref] */, + uint32_t max_towers /* [in] */, + uint32_t *num_towers /* [out] [ref] */, + struct epm_twr_p_t *towers /* [out] [length_is(*num_towers),size_is(max_towers)] */) +{ + struct epm_Map r; + NTSTATUS status; + + /* In parameters */ + r.in.object = object; + r.in.map_tower = map_tower; + r.in.entry_handle = entry_handle; + r.in.max_towers = max_towers; + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(epm_Map, &r); + } + + status = cli_do_rpc_ndr(cli, + mem_ctx, + &ndr_table_epmapper, + NDR_EPM_MAP, + &r); + + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(epm_Map, &r); + } + + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + *entry_handle = *r.out.entry_handle; + *num_towers = *r.out.num_towers; + memcpy(towers, r.out.towers, r.in.max_towers * sizeof(*towers)); + + /* Return result */ + return NT_STATUS_OK; +} + +NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + struct policy_handle *entry_handle /* [in,out] [ref] */) +{ + struct epm_LookupHandleFree r; + NTSTATUS status; + + /* In parameters */ + r.in.entry_handle = entry_handle; + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(epm_LookupHandleFree, &r); + } + + status = cli_do_rpc_ndr(cli, + mem_ctx, + &ndr_table_epmapper, + NDR_EPM_LOOKUPHANDLEFREE, + &r); + + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree, &r); + } + + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + *entry_handle = *r.out.entry_handle; + + /* Return result */ + return NT_STATUS_OK; +} + +NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + struct GUID *epm_object /* [in] [ref] */) +{ + struct epm_InqObject r; + NTSTATUS status; + + /* In parameters */ + r.in.epm_object = epm_object; + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(epm_InqObject, &r); + } + + status = cli_do_rpc_ndr(cli, + mem_ctx, + &ndr_table_epmapper, + NDR_EPM_INQOBJECT, + &r); + + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(epm_InqObject, &r); + } + + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return NT_STATUS_OK; +} + +NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + uint32_t object_speced /* [in] */, + struct GUID *object /* [in] [ptr] */, + struct epm_twr_t *tower /* [in] [ptr] */) +{ + struct epm_MgmtDelete r; + NTSTATUS status; + + /* In parameters */ + r.in.object_speced = object_speced; + r.in.object = object; + r.in.tower = tower; + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(epm_MgmtDelete, &r); + } + + status = cli_do_rpc_ndr(cli, + mem_ctx, + &ndr_table_epmapper, + NDR_EPM_MGMTDELETE, + &r); + + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(epm_MgmtDelete, &r); + } + + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return NT_STATUS_OK; +} + +NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx) +{ + struct epm_MapAuth r; + NTSTATUS status; + + /* In parameters */ + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_IN_DEBUG(epm_MapAuth, &r); + } + + status = cli_do_rpc_ndr(cli, + mem_ctx, + &ndr_table_epmapper, + NDR_EPM_MAPAUTH, + &r); + + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + if (DEBUGLEVEL >= 10) { + NDR_PRINT_OUT_DEBUG(epm_MapAuth, &r); + } + + if (NT_STATUS_IS_ERR(status)) { + return status; + } + + /* Return variables */ + + /* Return result */ + return NT_STATUS_OK; +} + |