diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-12-24 13:52:57 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-12-29 08:42:00 +0100 |
commit | 7bf5768a523082d5d47140155824f24689009e55 (patch) | |
tree | eecc1b7cf6e1223535b5107d7af6d74eebc440ff /lib/tevent/tevent_timed.c | |
parent | 9a90e4cecb2ab4afe54d2354fb9b6e985eeb245f (diff) | |
download | samba-7bf5768a523082d5d47140155824f24689009e55.tar.gz samba-7bf5768a523082d5d47140155824f24689009e55.tar.xz samba-7bf5768a523082d5d47140155824f24689009e55.zip |
lib/tevent: rename event_* => tevent_* in the header file
We have compat macros to keep the callers happy.
metze
Diffstat (limited to 'lib/tevent/tevent_timed.c')
-rw-r--r-- | lib/tevent/tevent_timed.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/tevent/tevent_timed.c b/lib/tevent/tevent_timed.c index ba8213710ee..a9b80948a17 100644 --- a/lib/tevent/tevent_timed.c +++ b/lib/tevent/tevent_timed.c @@ -113,7 +113,7 @@ static int common_event_timed_destructor(struct timed_event *te) { struct event_context *ev = talloc_get_type(te->event_ctx, struct event_context); - DLIST_REMOVE(ev->timed_events, te); + DLIST_REMOVE(ev->timer_events, te); return 0; } @@ -144,7 +144,7 @@ struct timed_event *common_event_add_timed(struct event_context *ev, TALLOC_CTX /* keep the list ordered */ last_te = NULL; - for (cur_te = ev->timed_events; cur_te; cur_te = cur_te->next) { + for (cur_te = ev->timer_events; cur_te; cur_te = cur_te->next) { /* if the new event comes before the current one break */ if (ev_timeval_compare(&te->next_event, &cur_te->next_event) < 0) { break; @@ -153,7 +153,7 @@ struct timed_event *common_event_add_timed(struct event_context *ev, TALLOC_CTX last_te = cur_te; } - DLIST_ADD_AFTER(ev->timed_events, te, last_te); + DLIST_ADD_AFTER(ev->timer_events, te, last_te); talloc_set_destructor(te, common_event_timed_destructor); @@ -169,7 +169,7 @@ struct timed_event *common_event_add_timed(struct event_context *ev, TALLOC_CTX struct timeval common_event_loop_timer_delay(struct event_context *ev) { struct timeval current_time = ev_timeval_zero(); - struct timed_event *te = ev->timed_events; + struct timed_event *te = ev->timer_events; if (!te) { /* have a default tick time of 30 seconds. This guarantees @@ -208,7 +208,7 @@ struct timeval common_event_loop_timer_delay(struct event_context *ev) /* We need to remove the timer from the list before calling the * handler because in a semi-async inner event loop called from the * handler we don't want to come across this event again -- vl */ - DLIST_REMOVE(ev->timed_events, te); + DLIST_REMOVE(ev->timer_events, te); /* * If the timed event was registered for a zero current_time, |