diff options
author | Samuel Cabrero <scabrero@suse.de> | 2019-02-28 13:03:33 +0100 |
---|---|---|
committer | Samuel Cabrero <scabrero@sn-devel-184> | 2020-03-20 15:36:35 +0000 |
commit | bebd55784a1b85b4033e8fef8114b0d67025b223 (patch) | |
tree | b95a3464c28544defdadc51013c69f154caad122 /pidl/lib/Parse/Pidl | |
parent | d1afa40c3cae7969b99f2d0a0cc78902138c0f15 (diff) | |
download | samba-bebd55784a1b85b4033e8fef8114b0d67025b223.tar.gz |
pidl:NDR/ServerCompat: Add dispatch, reply, pull and push functions to header
Will be used by winspool to forward selected opnums to spoolss.
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'pidl/lib/Parse/Pidl')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm index f9e9f6a14fd..fa5292e5aa9 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm @@ -191,7 +191,8 @@ sub boilerplate_iface($) $self->pidl("}"); $self->pidl(""); - $self->pidl("static NTSTATUS $name\__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r)"); + $self->pidl_hdr("NTSTATUS $name\__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r);"); + $self->pidl("NTSTATUS $name\__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r)"); $self->pidl("{"); $self->indent(); $self->pidl("enum ndr_err_code ndr_err;"); @@ -223,7 +224,8 @@ sub boilerplate_iface($) $self->pidl("}"); $self->pidl(""); - $self->pidl("static NTSTATUS $name\__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)"); + $self->pidl_hdr("NTSTATUS $name\__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r);"); + $self->pidl("NTSTATUS $name\__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)"); $self->pidl("{"); $self->indent(); $self->pidl("uint16_t opnum = dce_call->pkt.u.request.opnum;"); @@ -299,7 +301,8 @@ sub boilerplate_iface($) $self->pidl("}"); $self->pidl(""); - $self->pidl("static NTSTATUS $name\__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)"); + $self->pidl_hdr("NTSTATUS $name\__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r);"); + $self->pidl("NTSTATUS $name\__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r)"); $self->pidl("{"); $self->indent(); $self->pidl("uint16_t opnum = dce_call->pkt.u.request.opnum;"); @@ -325,7 +328,8 @@ sub boilerplate_iface($) $self->pidl("}"); $self->pidl(""); - $self->pidl("static NTSTATUS $name\__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, const void *r)"); + $self->pidl_hdr("NTSTATUS $name\__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, const void *r);"); + $self->pidl("NTSTATUS $name\__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, const void *r)"); $self->pidl("{"); $self->indent(); $self->pidl("enum ndr_err_code ndr_err;"); |