Expand Up
@@ -18,29 +18,27 @@ extern "C" {
#endif
typedef void (* callback_t )(void * ); //NOLINT(modernize-use-using)included from C code
void mythfile_open_register_callback (const char * pathname , void * object ,
callback_t func );
int mythfile_check (int fileID );
MTV_PUBLIC int mythfile_open (const char * pathname , int flags );
MTV_PUBLIC int mythfile_close (int fileID );
void MythFileOpenRegisterCallback (const char * Pathname , void * Object , callback_t Func );
int MythFileCheck (int Id );
MTV_PUBLIC int MythFileOpen (const char * Pathname , int Flags );
MTV_PUBLIC int MythfileClose (int FileID );
#ifdef _WIN32
MTV_PUBLIC off64_t mythfile_seek (int fileID , off64_t offset , int whence );
MTV_PUBLIC off64_t mythfile_tell (int fileID );
MTV_PUBLIC off64_t MythFileSeek (int FileID , off64_t Offset , int Whence );
MTV_PUBLIC off64_t MythFileTell (int FileID );
#else
MTV_PUBLIC off_t mythfile_seek (int fileID , off_t offset , int whence );
MTV_PUBLIC off_t mythfile_tell (int fileID );
MTV_PUBLIC off_t MythFileSeek (int FileID , off_t Offset , int Whence );
MTV_PUBLIC off_t MythFileTell (int FileID );
#endif
MTV_PUBLIC ssize_t mythfile_read (int fileID , void * buf , size_t count );
MTV_PUBLIC ssize_t mythfile_write (int fileID , void * buf , size_t count );
MTV_PUBLIC int mythfile_stat (const char * path , struct stat * buf );
MTV_PUBLIC int mythfile_stat_fd (int fileID , struct stat * buf );
int mythfile_exists (const char * path , const char * file );
int mythdir_check (int fileID );
MTV_PUBLIC int mythdir_opendir (const char * dirname );
MTV_PUBLIC int mythdir_closedir (int dirID );
MTV_PUBLIC char * mythdir_readdir (int dirID );
MTV_PUBLIC ssize_t MythFileRead (int FileID , void * Buffer , size_t Count );
MTV_PUBLIC ssize_t MythFileWrite (int FileID , void * Buffer , size_t Count );
MTV_PUBLIC int MythFileStat (const char * Path , struct stat * Buf );
MTV_PUBLIC int MythFileStatFD (int FileID , struct stat * Buf );
int MythFileExists (const char * Path , const char * File );
int MythDirCheck (int DirID );
MTV_PUBLIC int MythDirOpen (const char * DirName );
MTV_PUBLIC int MythDirClose (int DirID );
MTV_PUBLIC char * MythDirRead (int DirID );
#ifdef __cplusplus
}
Expand Down