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. */
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)
{
}
void update_write_time_handler(struct tevent_context *ctx,
- struct timed_event *te,
+ struct tevent_timer *te,
struct timeval now,
void *private_data)
{
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;
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;
}
static void oplock_timeout_handler(struct tevent_context *ctx,
- struct timed_event *te,
+ struct tevent_timer *te,
struct timeval now,
void *private_data)
{
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;
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)
{
(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
/* 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,
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);
struct smbd_child_pid *children;
size_t num_children;
- struct timed_event *cleanup_te;
+ struct tevent_timer *cleanup_te;
};
struct smbd_open_socket {
*/
static void cleanup_timeout_fn(struct tevent_context *event_ctx,
- struct timed_event *te,
+ struct tevent_timer *te,
struct timeval now,
void *private_data)
{
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;
*********************************************************/
static void smb2_deferred_open_timer(struct tevent_context *ev,
- struct timed_event *te,
+ struct tevent_timer *te,
struct timeval _tval,
void *private_data)
{