diff options
author | Tim Champagne <tchamp@users.sourceforge.net> | 2003-05-16 19:08:59 +0000 |
---|---|---|
committer | Tim Champagne <tchamp@users.sourceforge.net> | 2003-05-16 19:08:59 +0000 |
commit | e467a07a8d36a76e66e009cbb2794e2106e6434f (patch) | |
tree | 4f6e919454fba554db9e15f81d8015071632f50e /win32/contrib/timer/timer.h | |
parent | 19b954f40ce05dbb781810206de6ca38fa47eb76 (diff) | |
download | xine-lib-e467a07a8d36a76e66e009cbb2794e2106e6434f.tar.gz xine-lib-e467a07a8d36a76e66e009cbb2794e2106e6434f.tar.bz2 |
The cdda input plugin now builds in the Win32 env. I still need to test this but I'm not quite sure how it is suppose to work
CVS patchset: 4868
CVS date: 2003/05/16 19:08:59
Diffstat (limited to 'win32/contrib/timer/timer.h')
-rw-r--r-- | win32/contrib/timer/timer.h | 79 |
1 files changed, 41 insertions, 38 deletions
diff --git a/win32/contrib/timer/timer.h b/win32/contrib/timer/timer.h index 9be9d0557..cbb89bf97 100644 --- a/win32/contrib/timer/timer.h +++ b/win32/contrib/timer/timer.h @@ -1,39 +1,42 @@ -#include <time.h>
-#include <winsock.h>
-#include "pthread.h"
-
-#ifndef _ITIMER_
-#define _ITIMER_
-
-#define ITIMER_REAL 0
-#define ITIMER_VIRTUAL 1
-
-// time reference
-// ----------------------------------
-//
-// 1,000 milliseconds / sec
-// 1,000,000 microseconds / sec
-// 1,000,000,000 nanoseconds / sec
-//
-// timeval.time_sec = seconds
-// timeval.time_usec = microseconds
-
-struct itimerval
-{
- struct timeval it_interval; /* timer interval */
- struct timeval it_value; /* current value */
-};
-
-struct timezone {
- int tz_minuteswest; /* minutes west of Greenwich */
- int tz_dsttime; /* type of dst correction */
-};
-
-int gettimeofday( struct timeval *tp, struct timezone *tzp );
-int setitimer( int which, struct itimerval * value, struct itimerval *ovalue );
-int pause( void );
-
-unsigned int sleep( unsigned int seconds );
-int nanosleep( const struct timespec *rqtp, struct timespec *rmtp );
-
+#include <time.h> +#include <winsock.h> +#include "pthread.h" + +#ifndef _ITIMER_ +#define _ITIMER_ + +#define ITIMER_REAL 0 +#define ITIMER_VIRTUAL 1 + +// time reference +// ---------------------------------- +// +// 1,000 milliseconds / sec +// 1,000,000 microseconds / sec +// 1,000,000,000 nanoseconds / sec +// +// timeval.time_sec = seconds +// timeval.time_usec = microseconds + +struct itimerval +{ + struct timeval it_interval; /* timer interval */ + struct timeval it_value; /* current value */ +}; + +struct timezone { + int tz_minuteswest; /* minutes west of Greenwich */ + int tz_dsttime; /* type of dst correction */ +}; + +int gettimeofday( struct timeval *tp, struct timezone *tzp ); +int setitimer( int which, struct itimerval * value, struct itimerval *ovalue ); +int pause( void ); + +unsigned int sleep( unsigned int seconds ); +int nanosleep( const struct timespec *rqtp, struct timespec *rmtp ); +int alarm( int sec ); + + + #endif
\ No newline at end of file |