From f7762e2730aa4e2fe37043b56e0413983b484108 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 6 Feb 2012 23:06:41 +0100 Subject: s3:smbd: add smbXsrv_open* infrastructure Pair-Programmed-With: Michael Adam metze --- source3/smbd/globals.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'source3/smbd/globals.h') diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index b93b373ca5..d6c618f405 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -356,6 +356,7 @@ struct smbXsrv_connection { struct smbXsrv_session_table *session_table; struct smbXsrv_tcon_table *tcon_table; + struct smbXsrv_open_table *open_table; }; NTSTATUS smbXsrv_version_global_init(const struct server_id *server_id); @@ -407,6 +408,25 @@ NTSTATUS smb2srv_tcon_lookup(struct smbXsrv_session *session, struct smbXsrv_tcon **tcon); NTSTATUS smb2srv_tcon_disconnect_all(struct smbXsrv_session *session); +NTSTATUS smbXsrv_open_global_init(void); +NTSTATUS smbXsrv_open_create(struct smbXsrv_connection *conn, + struct auth_session_info *session_info, + NTTIME now, + struct smbXsrv_open **_open); +uint32_t smbXsrv_open_hash(struct smbXsrv_open *_open); +NTSTATUS smbXsrv_open_update(struct smbXsrv_open *_open); +NTSTATUS smbXsrv_open_close(struct smbXsrv_open *op, NTTIME now); +NTSTATUS smb1srv_open_table_init(struct smbXsrv_connection *conn); +NTSTATUS smb1srv_open_lookup(struct smbXsrv_connection *conn, + uint16_t fnum, NTTIME now, + struct smbXsrv_open **_open); +NTSTATUS smb2srv_open_table_init(struct smbXsrv_connection *conn); +NTSTATUS smb2srv_open_lookup(struct smbXsrv_connection *conn, + uint64_t persistent_id, + uint64_t volatile_id, + NTTIME now, + struct smbXsrv_open **_open); + struct smbd_smb2_request { struct smbd_smb2_request *prev, *next; -- cgit