summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-02 11:12:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:05 -0500
commit9331714787f663a1b46447598a7edf0ebff7d355 (patch)
treed203ba0c341e121f28717c45ce868a02ea1b4ac8 /source4/librpc/rpc
parent75883a2237f52863df2eff1fe9d9ee8408b40feb (diff)
downloadsamba-9331714787f663a1b46447598a7edf0ebff7d355.tar.gz
samba-9331714787f663a1b46447598a7edf0ebff7d355.tar.bz2
samba-9331714787f663a1b46447598a7edf0ebff7d355.zip
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)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c14
1 files changed, 14 insertions, 0 deletions
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;i<iface->num_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