diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2009-01-29 16:29:45 +0100 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2009-01-29 16:29:45 +0100 |
| commit | c6f129faf70cb143e713e1fc606ce1fd2ce46034 (patch) | |
| tree | 305c32ab7cd0e9f2612e1518b3a2cc43a86b4acc /evloop/timer.c | |
| parent | 3b7dcfa964da8de2d36e566fb6bf1f8201e9ad25 (diff) | |
| download | btpd-c6f129faf70cb143e713e1fc606ce1fd2ce46034.tar.gz btpd-c6f129faf70cb143e713e1fc606ce1fd2ce46034.zip | |
Rename timer* to evtimer*.
Diffstat (limited to 'evloop/timer.c')
| -rw-r--r-- | evloop/timer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/evloop/timer.c b/evloop/timer.c index 3ef3091..3174c08 100644 --- a/evloop/timer.c +++ b/evloop/timer.c @@ -38,7 +38,7 @@ subtime(struct timespec a, struct timespec b) } void -timer_init(struct timeout *h, evloop_cb_t cb, void *arg) +evtimer_init(struct timeout *h, evloop_cb_t cb, void *arg) { h->cb = cb; h->arg = arg; @@ -47,7 +47,7 @@ timer_init(struct timeout *h, evloop_cb_t cb, void *arg) } int -timer_add(struct timeout *h, struct timespec *t) +evtimer_add(struct timeout *h, struct timespec *t) { struct timespec now, sum; clock_gettime(TIMER_CLOCK, &now); @@ -61,7 +61,7 @@ timer_add(struct timeout *h, struct timespec *t) } void -timer_del(struct timeout *h) +evtimer_del(struct timeout *h) { if (h->th.i >= 0) { timeheap_remove(&h->th); @@ -70,7 +70,7 @@ timer_del(struct timeout *h) } void -timers_run(void) +evtimers_run(void) { struct timespec now; clock_gettime(TIMER_CLOCK, &now); @@ -86,7 +86,7 @@ timers_run(void) } struct timespec -timer_delay(void) +evtimer_delay(void) { struct timespec now, diff; if (timeheap_size() == 0) { |