pulse: move pa_rtclock_now in pulsecommon

This commit is contained in:
Marc-André Lureau 2009-04-04 23:19:53 +03:00 committed by Marc-André Lureau
parent 5dcdd5e358
commit 125c528896
23 changed files with 121 additions and 39 deletions

View file

@ -37,7 +37,7 @@
#include <pulsecore/macro.h>
#include <pulsecore/core-error.h>
#include "rtclock.h"
#include "core-rtclock.h"
pa_usec_t pa_rtclock_age(const struct timeval *tv) {
struct timeval now;
@ -122,12 +122,6 @@ void pa_rtclock_hrtimer_enable(void) {
#endif
}
pa_usec_t pa_rtclock_now(void) {
struct timeval tv;
return pa_timeval_load(pa_rtclock_get(&tv));
}
struct timeval* pa_rtclock_from_wallclock(struct timeval *tv) {
#ifdef HAVE_CLOCK_GETTIME

View file

@ -31,8 +31,6 @@ struct timeval;
struct timeval *pa_rtclock_get(struct timeval *ts);
pa_usec_t pa_rtclock_now(void);
pa_usec_t pa_rtclock_age(const struct timeval *tv);
pa_bool_t pa_rtclock_hrtimer(void);
void pa_rtclock_hrtimer_enable(void);

View file

@ -38,6 +38,7 @@
#include <syslog.h>
#endif
#include <pulse/rtclock.h>
#include <pulse/utf8.h>
#include <pulse/xmalloc.h>
#include <pulse/util.h>
@ -45,7 +46,7 @@
#include <pulsecore/macro.h>
#include <pulsecore/core-util.h>
#include <pulsecore/rtclock.h>
#include <pulsecore/core-rtclock.h>
#include <pulsecore/once.h>
#include <pulsecore/ratelimit.h>

View file

@ -23,7 +23,8 @@
#include <config.h>
#endif
#include <pulsecore/rtclock.h>
#include <pulse/rtclock.h>
#include <pulsecore/log.h>
#include <pulsecore/mutex.h>

View file

@ -44,7 +44,7 @@
#include <pulse/timeval.h>
#include <pulsecore/core-error.h>
#include <pulsecore/rtclock.h>
#include <pulsecore/core-rtclock.h>
#include <pulsecore/macro.h>
#include <pulsecore/llist.h>
#include <pulsecore/rtsig.h>