From 3b4ef03097293f758d8f11cbe434063ed1dc6b91 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 29 Oct 2012 15:32:21 +1100 Subject: imessaging: Add irpc_all_servers() to list all available servers This is implemented with a tdb_traverse_read(), and will allow a tool to disover the name and server_id of all Samba processes, as each process registers itself to recieve messages. Andrew Bartlett --- source4/librpc/idl/irpc.idl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'source4/librpc') diff --git a/source4/librpc/idl/irpc.idl b/source4/librpc/idl/irpc.idl index ed331c7fdb..6a55eef953 100644 --- a/source4/librpc/idl/irpc.idl +++ b/source4/librpc/idl/irpc.idl @@ -1,6 +1,6 @@ #include "idl_types.h" -import "misc.idl", "security.idl", "nbt.idl", "netlogon.idl"; +import "misc.idl", "security.idl", "nbt.idl", "netlogon.idl", "server_id.idl"; /* definitions for irpc primitives @@ -29,6 +29,17 @@ import "misc.idl", "security.idl", "nbt.idl", "netlogon.idl"; [flag(NDR_ALIGN8)] DATA_BLOB _pad; } irpc_header; + typedef [public] struct { + utf8string name; + uint32 count; + [size_is(count)] server_id ids[*]; + } irpc_name_record; + + typedef [public] struct { + [size_is(num_records)] irpc_name_record *names[*]; + uint32 num_records; + } irpc_name_records; + /****************************************************** uptime call - supported by all messaging servers *******************************************************/ -- cgit