diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-11-18 20:53:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:58 -0500 |
commit | a0fa682faa309bda812008ea3a084cf54f65310b (patch) | |
tree | 5841de49e8c7c212a9ac97cd82c06e7b4d9591c3 /source4/build/pidl/client.pm | |
parent | be01250d1a5ef9611164e5ca741e07255f770b4d (diff) | |
download | samba-a0fa682faa309bda812008ea3a084cf54f65310b.tar.gz samba-a0fa682faa309bda812008ea3a084cf54f65310b.tar.bz2 samba-a0fa682faa309bda812008ea3a084cf54f65310b.zip |
r3861: - Put ndr and rpc client code in seperate files
- Add some const
(This used to be commit a00bda88e1b6abdc36e5aa8c2a35f64855f67c96)
Diffstat (limited to 'source4/build/pidl/client.pm')
-rw-r--r-- | source4/build/pidl/client.pm | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source4/build/pidl/client.pm b/source4/build/pidl/client.pm index 015ac05223..43808ce3fb 100644 --- a/source4/build/pidl/client.pm +++ b/source4/build/pidl/client.pm @@ -21,15 +21,11 @@ sub ParseFunction($$) $res .= " struct rpc_request *dcerpc_$name\_send(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct $name *r) { - - if (p->flags & DCERPC_DEBUG_PRINT_IN) { - NDR_PRINT_IN_DEBUG($name, r); + if (p->flags & DCERPC_DEBUG_PRINT_IN) { + NDR_PRINT_IN_DEBUG($name, r); } - - return dcerpc_ndr_request_send(p, NULL, DCERPC_$uname, mem_ctx, - (ndr_push_flags_fn_t) ndr_push_$name, - (ndr_pull_flags_fn_t) ndr_pull_$name, - r, sizeof(*r)); + + return dcerpc_ndr_request_table_send(p, NULL, &dcerpc_table_$interface->{NAME}, DCERPC_$uname, mem_ctx, r); } NTSTATUS dcerpc_$name(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct $name *r) |