s3:locking: Change the data model for leases_db to cope with dynamic path renames.
[obnox/samba/samba-obnox.git] / source3 / librpc / idl / leases_db.idl
1 #include "idl_types.h"
2
3 import "misc.idl";
4 import "smb2_lease_struct.idl";
5 import "file_id.idl";
6
7 [
8         pointer_default(unique)
9 ]
10 interface leases_db
11 {
12         typedef [public] struct {
13                 GUID client_guid;
14                 smb2_lease_key lease_key;
15         } leases_db_key;
16
17         typedef [public] struct {
18                 file_id id;
19                 [string,charset(UTF8)] char *servicepath;
20                 [string,charset(UTF8)] char *base_name;
21                 [string,charset(UTF8)] char *stream_name;
22         } leases_db_file;
23
24         typedef [public] struct {
25                 uint32 num_files;
26                 [size_is(num_files)] leases_db_file files[];
27         } leases_db_value;
28 }