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