summaryrefslogtreecommitdiff
path: root/source4/librpc
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
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')
-rw-r--r--source4/librpc/idl/w32time.idl1
-rw-r--r--source4/librpc/rpc/dcerpc_util.c14
2 files changed, 15 insertions, 0 deletions
diff --git a/source4/librpc/idl/w32time.idl b/source4/librpc/idl/w32time.idl
index cca5cacc3b..bb14bddbfd 100644
--- a/source4/librpc/idl/w32time.idl
+++ b/source4/librpc/idl/w32time.idl
@@ -4,6 +4,7 @@
[
uuid(8fb6d884-2388-11d0-8c35-00c04fda2795),
+ endpoints(srvsvc atsvc browser keysvc wkssvc),
version(4.1)
]
interface w32time
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;
+}