mirror of
https://github.com/samba-team/samba.git
synced 2025-03-24 10:50:22 +03:00
s3:smbd: s/struct timed_event/struct tevent_timer
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
3ae2ed4504
commit
ae1cb5ca04
@ -213,14 +213,14 @@ typedef struct files_struct {
|
||||
uint32 share_access; /* NTCreateX share constants (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE). */
|
||||
|
||||
bool update_write_time_triggered;
|
||||
struct timed_event *update_write_time_event;
|
||||
struct tevent_timer *update_write_time_event;
|
||||
bool update_write_time_on_close;
|
||||
struct timespec close_write_time;
|
||||
bool write_time_forced;
|
||||
|
||||
int oplock_type;
|
||||
int sent_oplock_break;
|
||||
struct timed_event *oplock_timeout;
|
||||
struct tevent_timer *oplock_timeout;
|
||||
struct lock_struct last_lock_failure;
|
||||
int current_lock_count; /* Count the number of outstanding locks and pending locks. */
|
||||
|
||||
|
@ -36,7 +36,7 @@ static void received_unlock_msg(struct messaging_context *msg,
|
||||
DATA_BLOB *data);
|
||||
|
||||
void brl_timeout_fn(struct tevent_context *event_ctx,
|
||||
struct timed_event *te,
|
||||
struct tevent_timer *te,
|
||||
struct timeval now,
|
||||
void *private_data)
|
||||
{
|
||||
|
@ -165,7 +165,7 @@ static int wcp_file_size_change(files_struct *fsp)
|
||||
}
|
||||
|
||||
void update_write_time_handler(struct tevent_context *ctx,
|
||||
struct timed_event *te,
|
||||
struct tevent_timer *te,
|
||||
struct timeval now,
|
||||
void *private_data)
|
||||
{
|
||||
|
@ -725,7 +725,7 @@ struct smbd_server_connection {
|
||||
struct blocking_lock_record *blocking_lock_cancelled_queue;
|
||||
|
||||
/* The event that makes us process our blocking lock queue */
|
||||
struct timed_event *brl_timeout;
|
||||
struct tevent_timer *brl_timeout;
|
||||
|
||||
bool blocking_lock_unlock_state;
|
||||
bool blocking_lock_cancel_state;
|
||||
@ -738,7 +738,7 @@ struct smbd_server_connection {
|
||||
bool negprot_2ff;
|
||||
struct {
|
||||
/* The event that makes us process our blocking lock queue */
|
||||
struct timed_event *brl_timeout;
|
||||
struct tevent_timer *brl_timeout;
|
||||
bool blocking_lock_unlock_state;
|
||||
} locks;
|
||||
struct smbd_smb2_request *requests;
|
||||
|
@ -321,7 +321,7 @@ static files_struct *initial_break_processing(
|
||||
}
|
||||
|
||||
static void oplock_timeout_handler(struct tevent_context *ctx,
|
||||
struct timed_event *te,
|
||||
struct tevent_timer *te,
|
||||
struct timeval now,
|
||||
void *private_data)
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ struct pending_message_list {
|
||||
struct pending_message_list *next, *prev;
|
||||
struct timeval request_time; /* When was this first issued? */
|
||||
struct smbd_server_connection *sconn;
|
||||
struct timed_event *te;
|
||||
struct tevent_timer *te;
|
||||
struct smb_perfcount_data pcd;
|
||||
uint32_t seqnum;
|
||||
bool encrypted;
|
||||
@ -582,7 +582,7 @@ static void process_smb(struct smbd_server_connection *conn,
|
||||
struct smb_perfcount_data *deferred_pcd);
|
||||
|
||||
static void smbd_deferred_open_timer(struct tevent_context *ev,
|
||||
struct timed_event *te,
|
||||
struct tevent_timer *te,
|
||||
struct timeval _tval,
|
||||
void *private_data)
|
||||
{
|
||||
@ -735,7 +735,7 @@ bool schedule_deferred_open_message_smb(struct smbd_server_connection *sconn,
|
||||
(unsigned long long)msg_mid ));
|
||||
|
||||
if (mid == msg_mid) {
|
||||
struct timed_event *te;
|
||||
struct tevent_timer *te;
|
||||
|
||||
if (pml->processed) {
|
||||
/* A processed message should not be
|
||||
|
@ -93,7 +93,7 @@ bool cancel_smb2_aio(struct smb_request *smbreq);
|
||||
/* The following definitions come from smbd/blocking.c */
|
||||
|
||||
void brl_timeout_fn(struct tevent_context *event_ctx,
|
||||
struct timed_event *te,
|
||||
struct tevent_timer *te,
|
||||
struct timeval now,
|
||||
void *private_data);
|
||||
struct timeval timeval_brl_min(const struct timeval *tv1,
|
||||
@ -315,7 +315,7 @@ NTSTATUS can_set_delete_on_close(files_struct *fsp, uint32 dosmode);
|
||||
|
||||
ssize_t read_file(files_struct *fsp,char *data,off_t pos,size_t n);
|
||||
void update_write_time_handler(struct tevent_context *ctx,
|
||||
struct timed_event *te,
|
||||
struct tevent_timer *te,
|
||||
struct timeval now,
|
||||
void *private_data);
|
||||
void trigger_write_time_update(struct files_struct *fsp);
|
||||
|
@ -62,7 +62,7 @@ struct smbd_parent_context {
|
||||
struct smbd_child_pid *children;
|
||||
size_t num_children;
|
||||
|
||||
struct timed_event *cleanup_te;
|
||||
struct tevent_timer *cleanup_te;
|
||||
};
|
||||
|
||||
struct smbd_open_socket {
|
||||
@ -395,7 +395,7 @@ static void add_child_pid(struct smbd_parent_context *parent,
|
||||
*/
|
||||
|
||||
static void cleanup_timeout_fn(struct tevent_context *event_ctx,
|
||||
struct timed_event *te,
|
||||
struct tevent_timer *te,
|
||||
struct timeval now,
|
||||
void *private_data)
|
||||
{
|
||||
|
@ -378,7 +378,7 @@ struct smbd_smb2_create_state {
|
||||
struct smbd_smb2_request *smb2req;
|
||||
struct smb_request *smb1req;
|
||||
bool open_was_deferred;
|
||||
struct timed_event *te;
|
||||
struct tevent_timer *te;
|
||||
struct tevent_immediate *im;
|
||||
struct timeval request_time;
|
||||
struct file_id id;
|
||||
@ -1344,7 +1344,7 @@ bool schedule_deferred_open_message_smb2(
|
||||
*********************************************************/
|
||||
|
||||
static void smb2_deferred_open_timer(struct tevent_context *ev,
|
||||
struct timed_event *te,
|
||||
struct tevent_timer *te,
|
||||
struct timeval _tval,
|
||||
void *private_data)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user