mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
pulse: move pa_rtclock_now in pulsecommon
This commit is contained in:
parent
5dcdd5e358
commit
125c528896
23 changed files with 121 additions and 39 deletions
|
|
@ -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
|
||||
|
|
@ -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);
|
||||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@
|
|||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <pulsecore/rtclock.h>
|
||||
#include <pulse/rtclock.h>
|
||||
|
||||
#include <pulsecore/log.h>
|
||||
#include <pulsecore/mutex.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue