1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/librpc/idl/smb2_lease_struct.idl
Volker Lendecke 171cefe48f libcli/smb: remember the lease_version in struct smb2_lease
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-11-07 20:13:09 +01:00

34 lines
630 B
Plaintext

#include "idl_types.h"
/*
miscellaneous IDL structures
*/
[
pointer_default(unique)
]
interface smb2_lease_struct
{
/*
* SMB2 lease structure (per MS-SMB2 2.2.13)
*/
typedef [public] struct {
hyper data[2];
} smb2_lease_key;
typedef [public,bitmap32bit] bitmap {
SMB2_LEASE_READ = 0x01,
SMB2_LEASE_HANDLE = 0x02,
SMB2_LEASE_WRITE = 0x04
} smb2_lease_state;
typedef [public] struct {
smb2_lease_key lease_key;
smb2_lease_state lease_state;
uint32 lease_flags;
hyper lease_duration; /* should be 0 */
smb2_lease_key parent_lease_key;
uint16 lease_version;
uint16 lease_epoch;
} smb2_lease;
};