[pulseaudio-commits] r1726 - in /branches/lennart/src/pulsecore: rtclock.c rtclock.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Aug 30 15:39:48 PDT 2007


Author: lennart
Date: Fri Aug 31 00:39:47 2007
New Revision: 1726

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1726&root=3Dpulseaudio&vi=
ew=3Drev
Log:
add pa_timespec_reset()

Modified:
    branches/lennart/src/pulsecore/rtclock.c
    branches/lennart/src/pulsecore/rtclock.h

Modified: branches/lennart/src/pulsecore/rtclock.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
rtclock.c?rev=3D1726&root=3Dpulseaudio&r1=3D1725&r2=3D1726&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/rtclock.c (original)
+++ branches/lennart/src/pulsecore/rtclock.c Fri Aug 31 00:39:47 2007
@@ -43,6 +43,13 @@
     =

     a->tv_nsec =3D u * 1000;
 =

+    return a;
+}
+
+struct timespec *pa_timespec_reset(struct timespec *a) {
+    pa_assert(a);
+
+    a->tv_sec =3D a->tv_nsec =3D 0;
     return a;
 }
 =


Modified: branches/lennart/src/pulsecore/rtclock.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
rtclock.h?rev=3D1726&root=3Dpulseaudio&r1=3D1725&r2=3D1726&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/rtclock.h (original)
+++ branches/lennart/src/pulsecore/rtclock.h Fri Aug 31 00:39:47 2007
@@ -37,6 +37,7 @@
 int pa_rtclock_hrtimer(void);
 =

 struct timespec *pa_timespec_store(struct timespec *a, pa_usec_t u);
+struct timespec *pa_timespec_reset(struct timespec *a);
 pa_usec_t pa_timespec_load(struct timespec *tv);
 struct timespec *pa_timespec_add(struct timespec *tv, pa_usec_t t);
 pa_usec_t pa_timespec_diff(const struct timespec *a, const struct timespec=
 *b);




More information about the pulseaudio-commits mailing list