Skip to content

Commit

Permalink
pidl:NDR/ServerCompat: Add dispatch, reply, pull and push functions t…
Browse files Browse the repository at this point in the history
…o header

Will be used by winspool to forward selected opnums to spoolss.

Signed-off-by: Samuel Cabrero <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
scabrero authored and Samuel Cabrero committed Mar 20, 2020
1 parent d1afa40 commit bebd557
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;");
Expand Down Expand Up @@ -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;");
Expand Down Expand Up @@ -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;");
Expand All @@ -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;");
Expand Down

0 comments on commit bebd557

Please sign in to comment.