summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
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;
+}