diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-13 09:26:53 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-13 09:26:53 +0000 |
commit | 3031937d56363cc6322062a66c991182664f40bc (patch) | |
tree | 4d2ef00a8f2e269fdefeccc04f6ae2db9dd45d63 /source4/librpc/rpc/rpc_dfs.c | |
parent | ff02537261e53b4ec60e5dcad32bf4207065b028 (diff) | |
download | samba-3031937d56363cc6322062a66c991182664f40bc.tar.gz samba-3031937d56363cc6322062a66c991182664f40bc.tar.xz samba-3031937d56363cc6322062a66c991182664f40bc.zip |
* fixed conformant arrays in structures
* expanded the rpcecho test
* started adding the NETDFS pipe
(This used to be commit 095ab42cbdd5c1c5ab753e2eb275742ba822c8b9)
Diffstat (limited to 'source4/librpc/rpc/rpc_dfs.c')
-rw-r--r-- | source4/librpc/rpc/rpc_dfs.c | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/source4/librpc/rpc/rpc_dfs.c b/source4/librpc/rpc/rpc_dfs.c new file mode 100644 index 00000000000..1e827bda079 --- /dev/null +++ b/source4/librpc/rpc/rpc_dfs.c @@ -0,0 +1,82 @@ +/* dcerpc client calls auto-generated by pidl */ + +#include "includes.h" + + +NTSTATUS dcerpc_dfs_Exist(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Exist *r) +{ + return dcerpc_ndr_request(p, DCERPC_DFS_EXIST, mem_ctx, + (ndr_push_fn_t) ndr_push_dfs_Exist, + (ndr_pull_fn_t) ndr_pull_dfs_Exist, + r); +} + +NTSTATUS dcerpc_dfs_Add(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Add *r) +{ + NTSTATUS status; + status = dcerpc_ndr_request(p, DCERPC_DFS_ADD, mem_ctx, + (ndr_push_fn_t) ndr_push_dfs_Add, + (ndr_pull_fn_t) ndr_pull_dfs_Add, + r); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + return r->out.result; +} + +NTSTATUS dcerpc_dfs_Remove(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Remove *r) +{ + NTSTATUS status; + status = dcerpc_ndr_request(p, DCERPC_DFS_REMOVE, mem_ctx, + (ndr_push_fn_t) ndr_push_dfs_Remove, + (ndr_pull_fn_t) ndr_pull_dfs_Remove, + r); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + return r->out.result; +} + +NTSTATUS dcerpc_dfs_UNKNOWN3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_UNKNOWN3 *r) +{ + NTSTATUS status; + status = dcerpc_ndr_request(p, DCERPC_DFS_UNKNOWN3, mem_ctx, + (ndr_push_fn_t) ndr_push_dfs_UNKNOWN3, + (ndr_pull_fn_t) ndr_pull_dfs_UNKNOWN3, + r); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + return r->out.result; +} + +NTSTATUS dcerpc_dfs_Info(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Info *r) +{ + NTSTATUS status; + status = dcerpc_ndr_request(p, DCERPC_DFS_INFO, mem_ctx, + (ndr_push_fn_t) ndr_push_dfs_Info, + (ndr_pull_fn_t) ndr_pull_dfs_Info, + r); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + return r->out.result; +} + +NTSTATUS dcerpc_dfs_Enum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Enum *r) +{ + NTSTATUS status; + status = dcerpc_ndr_request(p, DCERPC_DFS_ENUM, mem_ctx, + (ndr_push_fn_t) ndr_push_dfs_Enum, + (ndr_pull_fn_t) ndr_pull_dfs_Enum, + r); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + return r->out.result; +} |