change pa_rtpoll_set_timer_absolute() to take a pa_usec_t instead of struct timeval

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2324 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-05-01 19:17:52 +00:00
parent 5816871117
commit d7cc1f5a12
2 changed files with 3 additions and 4 deletions

View file

@ -502,11 +502,10 @@ static void update_timer(pa_rtpoll *p) {
#endif
}
void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, const struct timeval *ts) {
void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, pa_usec_t usec) {
pa_assert(p);
pa_assert(ts);
p->next_elapse = *ts;
pa_timeval_store(&p->next_elapse, usec);
p->timer_enabled = TRUE;
update_timer(p);

View file

@ -74,7 +74,7 @@ void pa_rtpoll_install(pa_rtpoll *p);
* cleanly. */
int pa_rtpoll_run(pa_rtpoll *f, pa_bool_t wait);
void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, const struct timeval *ts);
void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, pa_usec_t usec);
void pa_rtpoll_set_timer_relative(pa_rtpoll *p, pa_usec_t usec);
void pa_rtpoll_set_timer_disabled(pa_rtpoll *p);