summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-28 08:51:09 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-28 08:51:09 +0000
commit7ec0ead48a6e7b770d04802fb8248c1240cd0787 (patch)
tree1dc368cab0f9505cc448f930cd94601c740a46d8 /source4/librpc/rpc
parentb0ba0462a4e85a26c45a4e763655d5b3885a147f (diff)
downloadsamba-7ec0ead48a6e7b770d04802fb8248c1240cd0787.tar.gz
samba-7ec0ead48a6e7b770d04802fb8248c1240cd0787.tar.bz2
samba-7ec0ead48a6e7b770d04802fb8248c1240cd0787.zip
the beginnings of an automated tool for working out IDL properties of
a pipe. I'm not sure how possible this will be without lots of human intervention, but its an interesting thing to try. (This used to be commit d5afe7c6a8651457da9438fcf0035c792701ac86)
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 d439c89e65..ef4af9f661 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -187,3 +187,17 @@ int idl_num_calls(const char *uuid, uint32 if_version)
return -1;
}
+
+/*
+ find a dcerpc interface by name
+*/
+const struct dcerpc_interface_table *idl_iface_by_name(const char *name)
+{
+ int i;
+ for (i=0;dcerpc_pipes[i];i++) {
+ if (strcasecmp(dcerpc_pipes[i]->name, name) == 0) {
+ return dcerpc_pipes[i];
+ }
+ }
+ return NULL;
+}