[polypaudio-commits] r926 - in /trunk: doxygen/ src/ src/modules/ src/modules/rtp/ src/polyp/ src/polypcore/ src/tests/
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Wed May 17 23:45:46 PDT 2006
Author: ossman
Date: Thu May 18 08:45:43 2006
New Revision: 926
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=926&root=polypaudio&view=rev
Log:
Move timeval calculation functions into their own file.
Added:
trunk/src/polyp/timeval.c (with props)
trunk/src/polyp/timeval.h (with props)
Modified:
trunk/doxygen/doxygen.conf.in
trunk/src/Makefile.am
trunk/src/modules/module-combine.c
trunk/src/modules/module-null-sink.c
trunk/src/modules/module-tunnel.c
trunk/src/modules/rtp/module-rtp-recv.c
trunk/src/modules/rtp/module-rtp-send.c
trunk/src/polyp/glib12-mainloop.c
trunk/src/polyp/mainloop.c
trunk/src/polyp/polypaudio.h
trunk/src/polyp/util.c
trunk/src/polyp/util.h
trunk/src/polypcore/core-scache.c
trunk/src/polypcore/core.c
trunk/src/polypcore/module.c
trunk/src/polypcore/pdispatch.c
trunk/src/polypcore/protocol-esound.c
trunk/src/polypcore/protocol-native.c
trunk/src/polypcore/socket-client.c
trunk/src/tests/mainloop-test.c
trunk/src/tests/thread-mainloop-test.c
Modified: trunk/doxygen/doxygen.conf.in
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/doxygen/doxygen.conf.in?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/doxygen/doxygen.conf.in (original)
+++ trunk/doxygen/doxygen.conf.in Thu May 18 08:45:43 2006
@@ -417,7 +417,7 @@
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
-INPUT = ../src/polyp/context.h ../src/polyp/stream.h ../src/polyp/polypaudio.h ../src/polyp/sample.h ../src/polyp/def.h ../src/polyp/subscribe.h ../src/polyp/introspect.h ../src/polyp/scache.h ../src/polyp/mainloop-api.h ../src/polyp/glib-mainloop.h ../src/polyp/mainloop.h ../src/polyp/mainloop-signal.h ../src/polyp/error.h ../src/polyp/operation.h ../src/polyp/simple.h ../src/polyp/version.h ../src/polyp/volume.h ../src/polyp/channelmap.h ../src/polyp/thread-mainloop.h ../src/polyp/xmalloc.h ../src/polyp/utf8.h ../src/polyp/util.h
+INPUT = ../src/polyp/context.h ../src/polyp/stream.h ../src/polyp/polypaudio.h ../src/polyp/sample.h ../src/polyp/def.h ../src/polyp/subscribe.h ../src/polyp/introspect.h ../src/polyp/scache.h ../src/polyp/mainloop-api.h ../src/polyp/glib-mainloop.h ../src/polyp/mainloop.h ../src/polyp/mainloop-signal.h ../src/polyp/error.h ../src/polyp/operation.h ../src/polyp/simple.h ../src/polyp/version.h ../src/polyp/volume.h ../src/polyp/channelmap.h ../src/polyp/thread-mainloop.h ../src/polyp/xmalloc.h ../src/polyp/utf8.h ../src/polyp/util.h ../src/polyp/timeval.h
# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
Modified: trunk/src/Makefile.am
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/Makefile.am?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Thu May 18 08:45:43 2006
@@ -351,6 +351,7 @@
polyp/stream.c polyp/stream.h \
polyp/subscribe.c polyp/subscribe.h \
polyp/sample.c polyp/sample.h \
+ polyp/timeval.c polyp/timeval.h \
polyp/volume.c polyp/volume.h \
polyp/utf8.c polyp/utf8.h \
polyp/mainloop.c polyp/mainloop.h \
@@ -493,9 +494,10 @@
polyp/mainloop-signal.c polyp/mainloop-signal.h \
polyp/sample.c polyp/sample.h \
polyp/volume.c polyp/volume.h \
+ polyp/timeval.c polyp/timeval.h \
polyp/utf8.c polyp/utf8.h \
- polyp/xmalloc.c polyp/xmalloc.h \
- polyp/util.c polyp/util.h
+ polyp/util.c polyp/util.h \
+ polyp/xmalloc.c polyp/xmalloc.h
# Pure core stuff (some are shared in libpolyp though).
libpolypcore_la_SOURCES += \
Modified: trunk/src/modules/module-combine.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-combine.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/modules/module-combine.c (original)
+++ trunk/src/modules/module-combine.c Thu May 18 08:45:43 2006
@@ -26,6 +26,7 @@
#include <assert.h>
#include <stdio.h>
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/module.h>
Modified: trunk/src/modules/module-null-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-null-sink.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/modules/module-null-sink.c (original)
+++ trunk/src/modules/module-null-sink.c Thu May 18 08:45:43 2006
@@ -33,6 +33,7 @@
#include <unistd.h>
#include <limits.h>
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/iochannel.h>
Modified: trunk/src/modules/module-tunnel.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-tunnel.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/modules/module-tunnel.c (original)
+++ trunk/src/modules/module-tunnel.c Thu May 18 08:45:43 2006
@@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <polyp/timeval.h>
#include <polyp/version.h>
#include <polyp/xmalloc.h>
Modified: trunk/src/modules/rtp/module-rtp-recv.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/rtp/module-rtp-recv.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/modules/rtp/module-rtp-recv.c (original)
+++ trunk/src/modules/rtp/module-rtp-recv.c Thu May 18 08:45:43 2006
@@ -31,6 +31,7 @@
#include <string.h>
#include <unistd.h>
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/module.h>
Modified: trunk/src/modules/rtp/module-rtp-send.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/rtp/module-rtp-send.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/modules/rtp/module-rtp-send.c (original)
+++ trunk/src/modules/rtp/module-rtp-send.c Thu May 18 08:45:43 2006
@@ -32,6 +32,7 @@
#include <string.h>
#include <unistd.h>
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/module.h>
Modified: trunk/src/polyp/glib12-mainloop.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/glib12-mainloop.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polyp/glib12-mainloop.c (original)
+++ trunk/src/polyp/glib12-mainloop.c Thu May 18 08:45:43 2006
@@ -25,6 +25,7 @@
#include <assert.h>
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/idxset.h>
Modified: trunk/src/polyp/mainloop.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/mainloop.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polyp/mainloop.c (original)
+++ trunk/src/polyp/mainloop.c Thu May 18 08:45:43 2006
@@ -44,6 +44,7 @@
#include "../polypcore/pipe.h"
#endif
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/core-util.h>
Modified: trunk/src/polyp/polypaudio.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/polypaudio.h?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polyp/polypaudio.h (original)
+++ trunk/src/polyp/polypaudio.h Thu May 18 08:45:43 2006
@@ -41,6 +41,7 @@
#include <polyp/mainloop.h>
#include <polyp/mainloop-signal.h>
#include <polyp/util.h>
+#include <polyp/timeval.h>
/** \file
* Include all polyplib header files at once. The following
@@ -48,7 +49,8 @@
* \ref context.h, \ref stream.h, \ref introspect.h, \ref subscribe.h,
* \ref scache.h, \ref version.h, \ref error.h, \ref channelmap.h,
* \ref operation.h,\ref volume.h, \ref xmalloc.h, \ref utf8.h, \ref
- * thread-mainloop.h, \ref mainloop.h, \ref util.h and \ref mainloop-signal.h at once */
+ * thread-mainloop.h, \ref mainloop.h, \ref util.h, \ref timeval.h and
+ * \ref mainloop-signal.h at once */
/** \mainpage
*
Added: trunk/src/polyp/timeval.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/timeval.c?rev=926&root=polypaudio&view=auto
==============================================================================
--- trunk/src/polyp/timeval.c (added)
+++ trunk/src/polyp/timeval.c Thu May 18 08:45:43 2006
@@ -1,0 +1,142 @@
+/* $Id$ */
+
+/***
+ This file is part of polypaudio.
+
+ polypaudio is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
+
+ polypaudio is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with polypaudio; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA.
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <assert.h>
+#include <stddef.h>
+#include <sys/time.h>
+
+#ifdef HAVE_WINDOWS_H
+#include <windows.h>
+#endif
+
+#include "../polypcore/winsock.h"
+
+#include "timeval.h"
+
+struct timeval *pa_gettimeofday(struct timeval *tv) {
+#ifdef HAVE_GETTIMEOFDAY
+ assert(tv);
+
+ return gettimeofday(tv, NULL) < 0 ? NULL : tv;
+#elif defined(OS_IS_WIN32)
+ /*
+ * Copied from implementation by Steven Edwards (LGPL).
+ * Found on wine mailing list.
+ */
+
+#if defined(_MSC_VER) || defined(__BORLANDC__)
+#define EPOCHFILETIME (116444736000000000i64)
+#else
+#define EPOCHFILETIME (116444736000000000LL)
+#endif
+
+ FILETIME ft;
+ LARGE_INTEGER li;
+ __int64 t;
+
+ assert(tv);
+
+ GetSystemTimeAsFileTime(&ft);
+ li.LowPart = ft.dwLowDateTime;
+ li.HighPart = ft.dwHighDateTime;
+ t = li.QuadPart; /* In 100-nanosecond intervals */
+ t -= EPOCHFILETIME; /* Offset to the Epoch time */
+ t /= 10; /* In microseconds */
+ tv->tv_sec = (long)(t / 1000000);
+ tv->tv_usec = (long)(t % 1000000);
+
+ return tv;
+#else
+#error "Platform lacks gettimeofday() or equivalent function."
+#endif
+}
+
+pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) {
+ pa_usec_t r;
+ assert(a && b);
+
+ /* Check which whan is the earlier time and swap the two arguments if reuqired. */
+ if (pa_timeval_cmp(a, b) < 0) {
+ const struct timeval *c;
+ c = a;
+ a = b;
+ b = c;
+ }
+
+ /* Calculate the second difference*/
+ r = ((pa_usec_t) a->tv_sec - b->tv_sec)* 1000000;
+
+ /* Calculate the microsecond difference */
+ if (a->tv_usec > b->tv_usec)
+ r += ((pa_usec_t) a->tv_usec - b->tv_usec);
+ else if (a->tv_usec < b->tv_usec)
+ r -= ((pa_usec_t) b->tv_usec - a->tv_usec);
+
+ return r;
+}
+
+int pa_timeval_cmp(const struct timeval *a, const struct timeval *b) {
+ assert(a && b);
+
+ if (a->tv_sec < b->tv_sec)
+ return -1;
+
+ if (a->tv_sec > b->tv_sec)
+ return 1;
+
+ if (a->tv_usec < b->tv_usec)
+ return -1;
+
+ if (a->tv_usec > b->tv_usec)
+ return 1;
+
+ return 0;
+}
+
+pa_usec_t pa_timeval_age(const struct timeval *tv) {
+ struct timeval now;
+ assert(tv);
+
+ return pa_timeval_diff(pa_gettimeofday(&now), tv);
+}
+
+struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v) {
+ unsigned long secs;
+ assert(tv);
+
+ secs = (v/1000000);
+ tv->tv_sec += (unsigned long) secs;
+ v -= secs*1000000;
+
+ tv->tv_usec += v;
+
+ /* Normalize */
+ while (tv->tv_usec >= 1000000) {
+ tv->tv_sec++;
+ tv->tv_usec -= 1000000;
+ }
+
+ return tv;
+}
Propchange: trunk/src/polyp/timeval.c
------------------------------------------------------------------------------
svn:keywords = Id
Added: trunk/src/polyp/timeval.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/timeval.h?rev=926&root=polypaudio&view=auto
==============================================================================
--- trunk/src/polyp/timeval.h (added)
+++ trunk/src/polyp/timeval.h Thu May 18 08:45:43 2006
@@ -1,0 +1,53 @@
+#ifndef footimevalhfoo
+#define footimevalhfoo
+
+/* $Id$ */
+
+/***
+ This file is part of polypaudio.
+
+ polypaudio is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
+
+ polypaudio is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with polypaudio; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA.
+***/
+
+#include <polyp/cdecl.h>
+#include <polyp/sample.h>
+
+/** \file
+ * Utility functions for handling timeval calculations */
+
+PA_C_DECL_BEGIN
+
+struct timeval;
+
+/** Return the current timestamp, just like UNIX gettimeofday() */
+struct timeval *pa_gettimeofday(struct timeval *tv);
+
+/** Calculate the difference between the two specified timeval
+ * structs. */
+pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b);
+
+/** Compare the two timeval structs and return 0 when equal, negative when a < b, positive otherwse */
+int pa_timeval_cmp(const struct timeval *a, const struct timeval *b);
+
+/** Return the time difference between now and the specified timestamp */
+pa_usec_t pa_timeval_age(const struct timeval *tv);
+
+/** Add the specified time inmicroseconds to the specified timeval structure */
+struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v);
+
+PA_C_DECL_END
+
+#endif
Propchange: trunk/src/polyp/timeval.h
------------------------------------------------------------------------------
svn:keywords = Id
Modified: trunk/src/polyp/util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/util.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polyp/util.c (original)
+++ trunk/src/polyp/util.c Thu May 18 08:45:43 2006
@@ -23,39 +23,33 @@
#include <config.h>
#endif
-#include <stdarg.h>
+#include <assert.h>
+#include <errno.h>
+#include <stdio.h>
#include <stdlib.h>
-#include <signal.h>
-#include <errno.h>
-#include <assert.h>
#include <string.h>
-#include <stdio.h>
-#include <fcntl.h>
+#include <time.h>
#include <unistd.h>
-#include <limits.h>
-#include <time.h>
-#include <ctype.h>
#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/time.h>
+
+#ifdef HAVE_PWD_H
+#include <pwd.h>
+#endif
+
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
-#ifdef HAVE_PWD_H
-#include <pwd.h>
-#endif
-
-#ifdef HAVE_GRP_H
-#include <grp.h>
-#endif
-
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
-#include <polyp/xmalloc.h>
+#include "../polypcore/winsock.h"
+
#include <polypcore/log.h>
#include <polypcore/core-util.h>
@@ -152,112 +146,6 @@
#else /* HAVE_PWD_H */
return NULL;
#endif
-}
-
-struct timeval *pa_gettimeofday(struct timeval *tv) {
-#ifdef HAVE_GETTIMEOFDAY
- assert(tv);
-
- return gettimeofday(tv, NULL) < 0 ? NULL : tv;
-#elif defined(OS_IS_WIN32)
- /*
- * Copied from implementation by Steven Edwards (LGPL).
- * Found on wine mailing list.
- */
-
-#if defined(_MSC_VER) || defined(__BORLANDC__)
-#define EPOCHFILETIME (116444736000000000i64)
-#else
-#define EPOCHFILETIME (116444736000000000LL)
-#endif
-
- FILETIME ft;
- LARGE_INTEGER li;
- __int64 t;
-
- assert(tv);
-
- GetSystemTimeAsFileTime(&ft);
- li.LowPart = ft.dwLowDateTime;
- li.HighPart = ft.dwHighDateTime;
- t = li.QuadPart; /* In 100-nanosecond intervals */
- t -= EPOCHFILETIME; /* Offset to the Epoch time */
- t /= 10; /* In microseconds */
- tv->tv_sec = (long)(t / 1000000);
- tv->tv_usec = (long)(t % 1000000);
-
- return tv;
-#else
-#error "Platform lacks gettimeofday() or equivalent function."
-#endif
-}
-
-pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) {
- pa_usec_t r;
- assert(a && b);
-
- /* Check which whan is the earlier time and swap the two arguments if reuqired. */
- if (pa_timeval_cmp(a, b) < 0) {
- const struct timeval *c;
- c = a;
- a = b;
- b = c;
- }
-
- /* Calculate the second difference*/
- r = ((pa_usec_t) a->tv_sec - b->tv_sec)* 1000000;
-
- /* Calculate the microsecond difference */
- if (a->tv_usec > b->tv_usec)
- r += ((pa_usec_t) a->tv_usec - b->tv_usec);
- else if (a->tv_usec < b->tv_usec)
- r -= ((pa_usec_t) b->tv_usec - a->tv_usec);
-
- return r;
-}
-
-int pa_timeval_cmp(const struct timeval *a, const struct timeval *b) {
- assert(a && b);
-
- if (a->tv_sec < b->tv_sec)
- return -1;
-
- if (a->tv_sec > b->tv_sec)
- return 1;
-
- if (a->tv_usec < b->tv_usec)
- return -1;
-
- if (a->tv_usec > b->tv_usec)
- return 1;
-
- return 0;
-}
-
-pa_usec_t pa_timeval_age(const struct timeval *tv) {
- struct timeval now;
- assert(tv);
-
- return pa_timeval_diff(pa_gettimeofday(&now), tv);
-}
-
-struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v) {
- unsigned long secs;
- assert(tv);
-
- secs = (v/1000000);
- tv->tv_sec += (unsigned long) secs;
- v -= secs*1000000;
-
- tv->tv_usec += v;
-
- /* Normalize */
- while (tv->tv_usec >= 1000000) {
- tv->tv_sec++;
- tv->tv_usec -= 1000000;
- }
-
- return tv;
}
char *pa_get_binary_name(char *s, size_t l) {
Modified: trunk/src/polyp/util.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/util.h?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polyp/util.h (original)
+++ trunk/src/polyp/util.h Thu May 18 08:45:43 2006
@@ -22,18 +22,14 @@
USA.
***/
-#include <sys/types.h>
-#include <inttypes.h>
+#include <stddef.h>
-#include <polyp/sample.h>
#include <polyp/cdecl.h>
/** \file
* Assorted utility functions */
PA_C_DECL_BEGIN
-
-struct timeval;
/** Return the current username in the specified string buffer. */
char *pa_get_user_name(char *s, size_t l);
@@ -55,22 +51,6 @@
* component). */
const char *pa_path_get_filename(const char *p);
-/** Return the current timestamp, just like UNIX gettimeofday() */
-struct timeval *pa_gettimeofday(struct timeval *tv);
-
-/** Calculate the difference between the two specified timeval
- * structs. */
-pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b);
-
-/** Compare the two timeval structs and return 0 when equal, negative when a < b, positive otherwse */
-int pa_timeval_cmp(const struct timeval *a, const struct timeval *b);
-
-/** Return the time difference between now and the specified timestamp */
-pa_usec_t pa_timeval_age(const struct timeval *tv);
-
-/** Add the specified time inmicroseconds to the specified timeval structure */
-struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v);
-
/** Wait t milliseconds */
int pa_msleep(unsigned long t);
Modified: trunk/src/polypcore/core-scache.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/core-scache.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polypcore/core-scache.c (original)
+++ trunk/src/polypcore/core-scache.c Thu May 18 08:45:43 2006
@@ -43,6 +43,7 @@
#include <polyp/mainloop.h>
#include <polyp/channelmap.h>
+#include <polyp/timeval.h>
#include <polyp/volume.h>
#include <polyp/xmalloc.h>
Modified: trunk/src/polypcore/core.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/core.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polypcore/core.c (original)
+++ trunk/src/polypcore/core.c Thu May 18 08:45:43 2006
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <signal.h>
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/module.h>
Modified: trunk/src/polypcore/module.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/module.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polypcore/module.c (original)
+++ trunk/src/polypcore/module.c Thu May 18 08:45:43 2006
@@ -30,6 +30,7 @@
#include <string.h>
#include <errno.h>
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/core-subscribe.h>
Modified: trunk/src/polypcore/pdispatch.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/pdispatch.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polypcore/pdispatch.c (original)
+++ trunk/src/polypcore/pdispatch.c Thu May 18 08:45:43 2006
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <assert.h>
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/native-common.h>
Modified: trunk/src/polypcore/protocol-esound.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/protocol-esound.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polypcore/protocol-esound.c (original)
+++ trunk/src/polypcore/protocol-esound.c Thu May 18 08:45:43 2006
@@ -31,6 +31,7 @@
#include <limits.h>
#include <polyp/sample.h>
+#include <polyp/timeval.h>
#include <polyp/utf8.h>
#include <polyp/xmalloc.h>
Modified: trunk/src/polypcore/protocol-native.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/protocol-native.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polypcore/protocol-native.c (original)
+++ trunk/src/polypcore/protocol-native.c Thu May 18 08:45:43 2006
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <unistd.h>
+#include <polyp/timeval.h>
#include <polyp/version.h>
#include <polyp/utf8.h>
#include <polyp/xmalloc.h>
Modified: trunk/src/polypcore/socket-client.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/socket-client.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/polypcore/socket-client.c (original)
+++ trunk/src/polypcore/socket-client.c Thu May 18 08:45:43 2006
@@ -54,6 +54,7 @@
#include "winsock.h"
+#include <polyp/timeval.h>
#include <polyp/xmalloc.h>
#include <polypcore/socket-util.h>
Modified: trunk/src/tests/mainloop-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/tests/mainloop-test.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/tests/mainloop-test.c (original)
+++ trunk/src/tests/mainloop-test.c Thu May 18 08:45:43 2006
@@ -27,6 +27,8 @@
#include <unistd.h>
#include <sys/time.h>
#include <assert.h>
+
+#include <polyp/timeval.h>
#include <polypcore/core-util.h>
#include <polypcore/gccmacro.h>
Modified: trunk/src/tests/thread-mainloop-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/tests/thread-mainloop-test.c?rev=926&root=polypaudio&r1=925&r2=926&view=diff
==============================================================================
--- trunk/src/tests/thread-mainloop-test.c (original)
+++ trunk/src/tests/thread-mainloop-test.c Thu May 18 08:45:43 2006
@@ -27,6 +27,8 @@
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
+
+#include <polyp/timeval.h>
#include <polypcore/gccmacro.h>
#include <polypcore/core-util.h>
More information about the pulseaudio-commits
mailing list