2 * Unix SMB/CIFS implementation.
5 * Copyright (C) Volker Lendecke 2014
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
25 struct smb2_lease_key;
28 bool leases_db_init(bool read_only);
29 NTSTATUS leases_db_add(const struct GUID *client_guid,
30 const struct smb2_lease_key *lease_key,
31 const struct file_id *id,
33 const char *stream_name);
34 NTSTATUS leases_db_del(const struct GUID *client_guid,
35 const struct smb2_lease_key *lease_key,
36 const struct file_id *id);
37 NTSTATUS leases_db_parse(const struct GUID *client_guid,
38 const struct smb2_lease_key *lease_key,
39 void (*parser)(uint32_t num_file_ids,
42 const char *stream_name,
45 NTSTATUS leases_db_rename(const struct GUID *client_guid,
46 const struct smb2_lease_key *lease_key,
47 const struct file_id *id,
48 const char *servicepath_new,
49 const char *filename_new,
50 const char *stream_name_new);
51 #endif /* _LEASES_DB_H_ */