diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-02-06 23:06:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-29 19:11:04 +0200 |
commit | f7762e2730aa4e2fe37043b56e0413983b484108 (patch) | |
tree | 3c251ff6361b2f3d61b88fe651cb5de13ab9e022 /source3/smbd/globals.h | |
parent | 9c8e2b5af0039a8bae216781df008be10c0f0835 (diff) | |
download | samba-f7762e2730aa4e2fe37043b56e0413983b484108.tar.gz samba-f7762e2730aa4e2fe37043b56e0413983b484108.tar.xz samba-f7762e2730aa4e2fe37043b56e0413983b484108.zip |
s3:smbd: add smbXsrv_open* infrastructure
Pair-Programmed-With: Michael Adam <obnox@samba.org>
metze
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r-- | source3/smbd/globals.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index b93b373ca5c..d6c618f405f 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; |