From c8620180083c2bff2e54bb90bcbf89a3d5008fbd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 27 May 2009 11:15:44 +0200 Subject: s3:smbd: move tcon specific globals to struct smbd_server_connection metze --- source3/include/proto.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'source3/include/proto.h') diff --git a/source3/include/proto.h b/source3/include/proto.h index 22659339a9..7875c38a8a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6156,16 +6156,18 @@ NTSTATUS delete_all_streams(connection_struct *conn, const char *fname); /* The following definitions come from smbd/conn.c */ -void conn_init(void); -int conn_num_open(void); +void conn_init(struct smbd_server_connection *sconn); +int conn_num_open(struct smbd_server_connection *sconn); bool conn_snum_used(int snum); -connection_struct *conn_find(unsigned cnum); -connection_struct *conn_new(void); -bool conn_close_all(void); -bool conn_idle_all(time_t t); -void conn_clear_vuid_caches(uint16 vuid); +connection_struct *conn_find(struct smbd_server_connection *sconn, + unsigned cnum); +connection_struct *conn_new(struct smbd_server_connection *sconn); +bool conn_close_all(struct smbd_server_connection *sconn); +bool conn_idle_all(struct smbd_server_connection *sconn, time_t t); +void conn_clear_vuid_caches(struct smbd_server_connection *sconn, uint16 vuid); void conn_free_internal(connection_struct *conn); -void conn_free(connection_struct *conn); +void conn_free(struct smbd_server_connection *sconn, + connection_struct *conn); void msg_force_tdis(struct messaging_context *msg, void *private_data, uint32_t msg_type, @@ -6961,7 +6963,8 @@ connection_struct *make_connection(struct smbd_server_connection *sconn, const char *service_in, DATA_BLOB password, const char *pdev, uint16 vuid, NTSTATUS *status); -void close_cnum(connection_struct *conn, uint16 vuid); +void close_cnum(struct smbd_server_connection *sconn, + connection_struct *conn, uint16 vuid); /* The following definitions come from smbd/session.c */ -- cgit