]> git.sesse.net Git - vlc/blobdiff - src/misc/mtime.c
Interface creation and destruction functions are now exported to plugins
[vlc] / src / misc / mtime.c
index 4772425b5cc09f87a276b96a31a5abb909c46e7a..1d2ae6b9477059e0c1b6364cb73bf98a1d37c26f 100644 (file)
@@ -3,7 +3,7 @@
  * Functions are prototyped in mtime.h.
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: mtime.c,v 1.30 2002/05/17 16:38:41 sam Exp $
+ * $Id: mtime.c,v 1.33 2002/07/12 21:57:25 massiot Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *
@@ -32,7 +32,7 @@
  *****************************************************************************/
 #include <stdio.h>                                              /* sprintf() */
 
-#include <videolan/vlc.h>
+#include <vlc/vlc.h>
 
 #if defined( PTH_INIT_IN_PTH_H )                                  /* GNU Pth */
 #   include <pth.h>
@@ -55,8 +55,8 @@
 #if defined(HAVE_NANOSLEEP) && !defined(HAVE_STRUCT_TIMESPEC)
 struct timespec
 {
-    time_t tv_sec;
-    long tv_sec;
+    time_t  tv_sec;
+    int32_t tv_nsec;
 };
 #endif
 
@@ -83,7 +83,7 @@ char *mstrtime( char *psz_buffer, mtime_t date )
 }
 
 /*****************************************************************************
- * mdate: return high precision date (inline function)
+ * mdate: return high precision date
  *****************************************************************************
  * Uses the gettimeofday() function when possible (1 MHz resolution) or the
  * ftime() function (1 kHz resolution).
@@ -122,7 +122,7 @@ mtime_t mdate( void )
 }
 
 /*****************************************************************************
- * mwait: wait for a date (inline function)
+ * mwait: wait for a date
  *****************************************************************************
  * This function uses select() and an system date function to wake up at a
  * precise date. It should be used for process synchronization. If current date
@@ -201,7 +201,7 @@ void mwait( mtime_t date )
 }
 
 /*****************************************************************************
- * msleep: more precise sleep() (inline function)                        (ok ?)
+ * msleep: more precise sleep()
  *****************************************************************************
  * Portable usleep() function.
  *****************************************************************************/