static struct tevent_req *wb_ndr_dispatch_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct rpc_pipe_client *cli,
- const char *interface,
- uint32_t interface_version,
+ const struct ndr_interface_table *table,
uint32_t opnum,
void *r)
{
}
state->r = r;
- state->call = &ndr_table_wbint.calls[opnum];
+ state->call = &table->calls[opnum];
state->transport = transport;
state->opnum = opnum;
static NTSTATUS wb_ndr_dispatch(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
- const char *interface,
- uint32_t interface_version,
+ const struct ndr_interface_table *table,
uint32_t opnum, void *r)
{
TALLOC_CTX *frame = talloc_stackframe();
goto fail;
}
- req = wb_ndr_dispatch_send(frame, ev, cli, interface,
- interface_version, opnum, r);
+ req = wb_ndr_dispatch_send(frame, ev, cli, table, opnum, r);
if (req == NULL) {
status = NT_STATUS_NO_MEMORY;
goto fail;
ZERO_STRUCT(p);
p.mem_ctx = talloc_stackframe();
- p.interface = &ndr_table_wbint;
p.in_data.data.buffer_size = state->request->extra_len;
p.in_data.data.data_p = state->request->extra_data.data;
prs_init(&p.out_data.rdata, 0, state->mem_ctx, false);
* Just a dummy to make srv_wbint.c happy
*/
NTSTATUS rpc_srv_register(int version, const char *clnt, const char *srv,
- const char *interface, uint32_t interface_version,
+ const struct ndr_interface_table *iface,
const struct api_struct *cmds, int size)
{
return NT_STATUS_OK;