libsmb: Put the "smb2_lease" struct into idl
[Samba/wip.git] / librpc / idl / smb2_lease_struct.idl
blobea28548956cd442f0b0167e2373071535ac65d1b
1 #include "idl_types.h"
3 /*
4 miscellaneous IDL structures
5 */
8 pointer_default(unique)
10 interface smb2_lease_struct
13 * SMB2 lease structure (per MS-SMB2 2.2.13)
15 typedef [public] struct {
16 hyper data[2];
17 } smb2_lease_key;
19 typedef [public,bitmap32bit] bitmap {
20 SMB2_LEASE_READ = 0x01,
21 SMB2_LEASE_WRITE = 0x02,
22 SMB2_LEASE_HANDLE = 0x04
23 } smb2_lease_state;
25 typedef [public] struct {
26 smb2_lease_key lease_key;
27 smb2_lease_state lease_state;
28 uint32 lease_flags;
29 uint32 lease_duration; /* should be 0 */
30 smb2_lease_key parent_lease_key;
31 uint16 lease_epoch;
32 } smb2_lease;