From 9331714787f663a1b46447598a7edf0ebff7d355 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 2 Jul 2005 11:12:33 +0000 Subject: r8073: a successful rpc call from ejs! the ejs_echo.c code is the stuff that needs to be auto-generated by pidl. It only does echo_AddOne so far. We also need a table for registering these calls. The code is hard-wired for echo_AddOne for now. (This used to be commit b1ea58ddc482c373783d16331dd07378010ba39a) --- source4/librpc/rpc/dcerpc_util.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source4/librpc/rpc') diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 49b7c32a8a..bc771c73f8 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -85,6 +85,20 @@ const struct dcerpc_interface_table *idl_iface_by_uuid(const char *uuid) return NULL; } +/* + find a dcerpc call on an interface by name +*/ +const struct dcerpc_interface_call *dcerpc_iface_find_call(const struct dcerpc_interface_table *iface, + const char *name) +{ + int i; + for (i=0;inum_calls;i++) { + if (strcmp(iface->calls[i].name, name) == 0) { + return &iface->calls[i]; + } + } + return NULL; +} /* push a ncacn_packet into a blob, potentially with auth info -- cgit