]> git.sesse.net Git - vlc/blobdiff - include/vlc_fs.h
Use var_Inherit* instead of var_CreateGet*.
[vlc] / include / vlc_fs.h
index c2aa26665b35cf959e25b20d81a1b8c419a8ddd5..1210683153ec1fb2eeca48a34ed5d711a5519143 100644 (file)
 #include <sys/types.h>
 #include <dirent.h>
 
-VLC_EXPORT( int, utf8_open, ( const char *filename, int flags, ... ) LIBVLC_USED );
-VLC_EXPORT( FILE *, utf8_fopen, ( const char *filename, const char *mode ) LIBVLC_USED );
+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 *, utf8_opendir, ( const char *dirname ) LIBVLC_USED );
-VLC_EXPORT( char *, utf8_readdir, ( DIR *dir ) LIBVLC_USED );
-VLC_EXPORT( int, utf8_loaddir, ( DIR *dir, char ***namelist, int (*select)( const char * ), int (*compar)( const char **, const char ** ) ) );
-VLC_EXPORT( int, utf8_scandir, ( const char *dirname, char ***namelist, int (*select)( const char * ), int (*compar)( const char **, const char ** ) ) );
-VLC_EXPORT( int, utf8_mkdir, ( const char *filename, mode_t mode ) );
+VLC_EXPORT( DIR *, vlc_opendir, ( const char *dirname ) LIBVLC_USED );
+VLC_EXPORT( char *, vlc_readdir, ( DIR *dir ) LIBVLC_USED );
+VLC_EXPORT( int, vlc_loaddir, ( DIR *dir, char ***namelist, int (*select)( const char * ), int (*compar)( const char **, const char ** ) ) );
+VLC_EXPORT( int, vlc_scandir, ( const char *dirname, char ***namelist, int (*select)( const char * ), int (*compar)( const char **, const char ** ) ) );
+VLC_EXPORT( int, vlc_mkdir, ( const char *filename, mode_t mode ) );
 
-VLC_EXPORT( int, utf8_unlink, ( const char *filename ) );
-/* Not exported */
-int utf8_rename( const char *, const char * );
+VLC_EXPORT( int, vlc_unlink, ( const char *filename ) );
+VLC_EXPORT( int, vlc_rename, ( const char *oldpath, const char *newpath ) );
 
 #if defined( WIN32 ) && !defined( UNDER_CE )
 # define stat _stati64
 #endif
 
-VLC_EXPORT( int, utf8_stat, ( const char *filename, struct stat *buf ) );
-VLC_EXPORT( int, utf8_lstat, ( const char *filename, struct stat *buf ) );
+VLC_EXPORT( int, vlc_stat, ( const char *filename, struct stat *buf ) );
+VLC_EXPORT( int, vlc_lstat, ( const char *filename, struct stat *buf ) );
 
-VLC_EXPORT( int, utf8_mkstemp, ( char * ) );
+VLC_EXPORT( int, vlc_mkstemp, ( char * ) );
 
+VLC_EXPORT( int, vlc_dup, ( int ) );
 #endif