summaryrefslogtreecommitdiffstats
path: root/source3/librpc/idl
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-10-10 16:36:54 -0700
committerJeremy Allison <jra@samba.org>2014-12-04 05:45:09 +0100
commit14fac5dbc05823562760ac424522fb39817ec062 (patch)
treeeaaa061478aaca510e8945b2ea56cc0001095d1a /source3/librpc/idl
parenta199214dfb5fc9c2b4c9e15ccb24198065c616b9 (diff)
downloadsamba-14fac5dbc05823562760ac424522fb39817ec062.tar.gz
samba-14fac5dbc05823562760ac424522fb39817ec062.tar.xz
samba-14fac5dbc05823562760ac424522fb39817ec062.zip
s3:locking: add leases_db infrastructure
Will enable us to solve the dynamic share path problem with leases on [homes]. We're also able to give the correct error codes when a lease key is re-used with a different file name. Pair-Programmed-With: Jeremy Allison <jra@samba.org> Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/librpc/idl')
-rw-r--r--source3/librpc/idl/leases_db.idl23
-rw-r--r--source3/librpc/idl/wscript_build1
2 files changed, 24 insertions, 0 deletions
diff --git a/source3/librpc/idl/leases_db.idl b/source3/librpc/idl/leases_db.idl
new file mode 100644
index 0000000000..2ab1591b76
--- /dev/null
+++ b/source3/librpc/idl/leases_db.idl
@@ -0,0 +1,23 @@
+#include "idl_types.h"
+
+import "misc.idl";
+import "smb2_lease_struct.idl";
+import "file_id.idl";
+
+[
+ pointer_default(unique)
+]
+interface leases_db
+{
+ typedef [public] struct {
+ GUID client_guid;
+ smb2_lease_key lease_key;
+ } leases_db_key;
+
+ typedef [public] struct {
+ uint32 num_file_ids;
+ [size_is(num_file_ids)] file_id ids[];
+ [string,charset(UTF8)] char *filename;
+ [string,charset(UTF8)] char *stream_name;
+ } leases_db_value;
+}
diff --git a/source3/librpc/idl/wscript_build b/source3/librpc/idl/wscript_build
index c38fe7bd72..f9b1bd7d76 100644
--- a/source3/librpc/idl/wscript_build
+++ b/source3/librpc/idl/wscript_build
@@ -8,6 +8,7 @@ bld.SAMBA_PIDL_LIST('PIDL',
'''messaging.idl libnetapi.idl open_files.idl
perfcount.idl secrets.idl libnet_join.idl
smbXsrv.idl
+ leases_db.idl
''',
options='--includedir=%s --header --ndr-parser' % topinclude,
output_dir='../gen_ndr')