svn commit: samba r7309 - in branches/SAMBA_4_0/source/librpc/idl: .

tridge at samba.org tridge at samba.org
Sun Jun 5 22:13:27 GMT 2005


Author: tridge
Date: 2005-06-05 22:13:27 +0000 (Sun, 05 Jun 2005)
New Revision: 7309

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7309

Log:
started adding IDL for nbt management calls. This adds a
nbtd_information() call that has just one level for now, a
NBTD_STATISTICS level for packet statistics


Modified:
   branches/SAMBA_4_0/source/librpc/idl/irpc.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/irpc.idl
===================================================================
--- branches/SAMBA_4_0/source/librpc/idl/irpc.idl	2005-06-05 16:37:27 UTC (rev 7308)
+++ branches/SAMBA_4_0/source/librpc/idl/irpc.idl	2005-06-05 22:13:27 UTC (rev 7309)
@@ -3,10 +3,11 @@
 /*
   definitions for irpc primitives
 */
-[
-pointer_default(unique)
-]
-interface irpc
+[ uuid("e770c620-0b06-4b5e-8d87-a26e20f28340"),
+  version(1.0),
+  pointer_default(unique),
+  pointer_default_top(unique)
+] interface irpc
 {
 	typedef bitmap {
 		IRPC_FLAG_REPLY    = 0x0001
@@ -20,4 +21,31 @@
 		irpc_flags flags;
 		NTSTATUS status;
 	} irpc_header;
+
+
+	/******************************************************
+         management calls for the nbt server
+	******************************************************/
+	typedef [v1_enum] enum {
+		NBTD_INFO_STATISTICS
+	} nbtd_info_level;
+
+	typedef struct {
+		hyper total_received;
+		hyper total_sent;
+		hyper query_count;
+		hyper register_count;
+		hyper release_count;
+		hyper refresh_count;
+	} nbtd_statistics;
+
+	typedef union {
+		[case(NBTD_INFO_STATISTICS)] nbtd_statistics *stats;
+	} nbtd_info;
+
+	void nbtd_information(
+		[in]  nbtd_info_level level,
+		[out,switch_is(level)] nbtd_info info
+		);
+
 }



More information about the samba-cvs mailing list