X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/3cb8e0191c9e79a4d39f788b42449d12032b462c..d806b197144733607b0ecb8678c6ee5d99ccc9ea:/src/pulsecore/core-rtclock.h diff --git a/src/pulsecore/core-rtclock.h b/src/pulsecore/core-rtclock.h index 3b393ed5..74d5e035 100644 --- a/src/pulsecore/core-rtclock.h +++ b/src/pulsecore/core-rtclock.h @@ -32,7 +32,7 @@ struct timeval; struct timeval *pa_rtclock_get(struct timeval *ts); pa_usec_t pa_rtclock_age(const struct timeval *tv); -pa_bool_t pa_rtclock_hrtimer(void); +bool pa_rtclock_hrtimer(void); void pa_rtclock_hrtimer_enable(void); /* timer with a resolution better than this are considered high-resolution */ @@ -43,9 +43,11 @@ void pa_rtclock_hrtimer_enable(void); struct timeval* pa_rtclock_from_wallclock(struct timeval *tv); +#ifdef HAVE_CLOCK_GETTIME pa_usec_t pa_timespec_load(const struct timespec *ts); struct timespec* pa_timespec_store(struct timespec *ts, pa_usec_t v); +#endif -struct timeval* pa_timeval_rtstore(struct timeval *tv, pa_usec_t v, pa_bool_t rtclock); +struct timeval* pa_timeval_rtstore(struct timeval *tv, pa_usec_t v, bool rtclock); #endif