]> git.sesse.net Git - vlc/blobdiff - include/vlc_fs.h
Qt, new utility class to differentiate short and long clicks
[vlc] / include / vlc_fs.h
index 51bfd60c8e44564e832473ebb8df1831cfe1f5de..da6d28e2800fd2477772c8270f87e1def661c210 100644 (file)
@@ -33,6 +33,7 @@
 
 VLC_EXPORT( int, vlc_open, ( const char *filename, int flags, ... ) LIBVLC_USED );
 VLC_EXPORT( FILE *, vlc_fopen, ( const char *filename, const char *mode ) LIBVLC_USED );
+VLC_EXPORT( int, vlc_openat, ( int fd, const char *filename, int flags, ... ) LIBVLC_USED );
 
 VLC_EXPORT( DIR *, vlc_opendir, ( const char *dirname ) LIBVLC_USED );
 VLC_EXPORT( char *, vlc_readdir, ( DIR *dir ) LIBVLC_USED );
@@ -41,18 +42,36 @@ VLC_EXPORT( int, vlc_scandir, ( const char *dirname, char ***namelist, int (*sel
 VLC_EXPORT( int, vlc_mkdir, ( const char *filename, mode_t mode ) );
 
 VLC_EXPORT( int, vlc_unlink, ( const char *filename ) );
-/* Not exported */
-int vlc_rename( const char *, const char * );
+VLC_EXPORT( int, vlc_rename, ( const char *oldpath, const char *newpath ) );
 
-#if defined( WIN32 ) && !defined( UNDER_CE )
-# define stat _stati64
+#if defined( WIN32 )
+# ifndef UNDER_CE
+#  define stat _stati64
+# endif
+static inline int vlc_closedir( DIR *dir )
+{
+    _WDIR *wdir = *(_WDIR **)dir;
+    free( dir );
+    return wdir ? _wclosedir( wdir ) : 0;
+}
+# undef closedir
+# define closedir vlc_closedir
+
+static inline void vlc_rewinddir( DIR *dir )
+{
+    _WDIR *wdir = *(_WDIR **)dir;
+
+    _wrewinddir( wdir );
+}
+# undef rewinddir
+# define rewinddir vlc_rewinddir
 #endif
 
 VLC_EXPORT( int, vlc_stat, ( const char *filename, struct stat *buf ) );
-VLC_EXPORT( int, utf8_lstat, ( const char *filename, struct stat *buf ) );
+VLC_EXPORT( int, vlc_lstat, ( const char *filename, struct stat *buf ) );
 
 VLC_EXPORT( int, vlc_mkstemp, ( char * ) );
 
 VLC_EXPORT( int, vlc_dup, ( int ) );
-
+VLC_EXPORT( int, vlc_pipe, ( int[2] ) );
 #endif