From 25428433e3e279491f0b6f73e2489140517ae454 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 19 Jul 2005 03:58:44 +0000 Subject: r8574: added server side irpc calls for listing the current sessions (This used to be commit 391cfe3c9645a19f8f5ff5c11b1ac03ee0b10f8f) --- source4/librpc/idl/irpc.idl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/irpc.idl b/source4/librpc/idl/irpc.idl index c28f861bd7..4c4a8810fe 100644 --- a/source4/librpc/idl/irpc.idl +++ b/source4/librpc/idl/irpc.idl @@ -47,4 +47,34 @@ [out,switch_is(level)] nbtd_info info ); + + /****************************************************** + management calls for the smb server + ******************************************************/ + typedef [v1_enum] enum { + SMBSRV_INFO_SESSIONS + } smbsrv_info_level; + + typedef struct { + uint16 vuid; + astring account_name; + astring domain_name; + astring client_ip; + NTTIME connect_time; + } smbsrv_session_info; + + typedef struct { + uint32 num_sessions; + [size_is(num_sessions)] smbsrv_session_info *sessions; + } smbsrv_sessions; + + typedef union { + [case(SMBSRV_INFO_SESSIONS)] smbsrv_sessions sessions; + } smbsrv_info; + + void smbsrv_information( + [in] smbsrv_info_level level, + [out,switch_is(level)] smbsrv_info info + ); + } -- cgit