123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #ifndef footimevalhfoo
- #define footimevalhfoo
- #include <pulse/cdecl.h>
- #include <pulse/gccmacro.h>
- #include <pulse/sample.h>
- #include <pulse/version.h>
- PA_C_DECL_BEGIN
- #define PA_MSEC_PER_SEC ((pa_usec_t) 1000ULL)
- #define PA_USEC_PER_SEC ((pa_usec_t) 1000000ULL)
- #define PA_NSEC_PER_SEC ((unsigned long long) 1000000000ULL)
- #define PA_USEC_PER_MSEC ((pa_usec_t) 1000ULL)
- #define PA_NSEC_PER_MSEC ((unsigned long long) 1000000ULL)
- #define PA_NSEC_PER_USEC ((unsigned long long) 1000ULL)
- #define PA_USEC_INVALID ((pa_usec_t) -1)
- #define PA_USEC_MAX ((pa_usec_t) -2)
- struct timeval;
- struct timeval *pa_gettimeofday(struct timeval *tv);
- pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) PA_GCC_PURE;
- int pa_timeval_cmp(const struct timeval *a, const struct timeval *b) PA_GCC_PURE;
- pa_usec_t pa_timeval_age(const struct timeval *tv);
- struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v);
- struct timeval* pa_timeval_sub(struct timeval *tv, pa_usec_t v);
- struct timeval* pa_timeval_store(struct timeval *tv, pa_usec_t v);
- pa_usec_t pa_timeval_load(const struct timeval *tv);
- PA_C_DECL_END
- #endif
|