X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_fs.h;h=1210683153ec1fb2eeca48a34ed5d711a5519143;hb=12ade3e3bc975d5426ba4af155b7372c31093b31;hp=c2aa26665b35cf959e25b20d81a1b8c419a8ddd5;hpb=d601e4ed290edf58e9ace5c28f06c77ebf072004;p=vlc diff --git a/include/vlc_fs.h b/include/vlc_fs.h index c2aa26665b..1210683153 100644 --- a/include/vlc_fs.h +++ b/include/vlc_fs.h @@ -31,26 +31,27 @@ #include #include -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