summaryrefslogtreecommitdiff
path: root/source4/librpc/idl
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-29 15:32:21 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-10-31 08:13:56 +1100
commit3b4ef03097293f758d8f11cbe434063ed1dc6b91 (patch)
tree3f4cff477eca62c6fe37dfc20488d5923d581edd /source4/librpc/idl
parent39e58d6845ee4dab0e9ae1537fccaed837ead728 (diff)
downloadsamba-3b4ef03097293f758d8f11cbe434063ed1dc6b91.tar.gz
samba-3b4ef03097293f758d8f11cbe434063ed1dc6b91.tar.bz2
samba-3b4ef03097293f758d8f11cbe434063ed1dc6b91.zip
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
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r--source4/librpc/idl/irpc.idl13
1 files changed, 12 insertions, 1 deletions
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
*******************************************************/