mythiowrapper.cpp File Reference

Go to the source code of this file.

Classes

class  Callback

Functions

static int getNextFileID (void)
void mythfile_open_register_callback (const char *pathname, void *object, callback_t func)
int mythfile_check (int id)
int mythfile_open (const char *pathname, int flags)
int mythfile_close (int fileID)
off_t mythfile_seek (int fileID, off_t offset, int whence)
off_t mythfile_tell (int fileID)
ssize_t mythfile_read (int fileID, void *buf, size_t count)
ssize_t mythfile_write (int fileID, void *buf, size_t count)
int mythfile_stat (const char *path, struct stat *buf)
int mythfile_stat_fd (int fileID, struct stat *buf)
int mythfile_exists (const char *path, const char *file)
static int getNextDirID (void)
int mythdir_check (int id)
int mythdir_opendir (const char *dirname)
int mythdir_closedir (int dirID)
char * mythdir_readdir (int dirID)

Variables

const int maxID = 1024 * 1024
QReadWriteLock m_fileWrapperLock
QHash< int, RingBuffer * > m_ringbuffers
QHash< int, RemoteFile * > m_remotefiles
QHash< int, int > m_localfiles
QHash< int, QString > m_filenames
QReadWriteLock m_dirWrapperLock
QHash< int, QStringList > m_remotedirs
QHash< int, int > m_remotedirPositions
QHash< int, QString > m_dirnames
QHash< int, DIR * > m_localdirs
QMutex m_callbackLock
QMultiHash< QString, Callbackm_fileOpenCallbacks

Function Documentation

static int getNextFileID ( void   )  [static]

Definition at line 66 of file mythiowrapper.cpp.

Referenced by mythfile_open().

void mythfile_open_register_callback ( const char *  pathname,
void *  object,
callback_t  func 
)

Definition at line 89 of file mythiowrapper.cpp.

Referenced by BDRingBuffer::OpenFile().

int mythfile_check ( int  id  ) 

Definition at line 126 of file mythiowrapper.cpp.

int mythfile_open ( const char *  pathname,
int  flags 
)

Definition at line 143 of file mythiowrapper.cpp.

Referenced by dvd_read_name(), file_open(), and file_open_mythiowrapper().

int mythfile_close ( int  fileID  ) 

Definition at line 230 of file mythiowrapper.cpp.

Referenced by dvd_read_name(), file_close(), and file_close_mythiowrapper().

MTV_PUBLIC off_t mythfile_seek ( int  fileID,
off_t  offset,
int  whence 
)

Definition at line 270 of file mythiowrapper.cpp.

Referenced by dvd_read_name(), file_read(), file_seek(), and file_seek_mythiowrapper().

MTV_PUBLIC off_t mythfile_tell ( int  fileID  ) 

Definition at line 289 of file mythiowrapper.cpp.

Referenced by file_tell_mythiowrapper().

ssize_t mythfile_read ( int  fileID,
void *  buf,
size_t  count 
)

Definition at line 311 of file mythiowrapper.cpp.

Referenced by dvd_read_name(), file_read(), and file_read_mythiowrapper().

ssize_t mythfile_write ( int  fileID,
void *  buf,
size_t  count 
)

Definition at line 330 of file mythiowrapper.cpp.

Referenced by file_write_mythiowrapper().

int mythfile_stat ( const char *  path,
struct stat *  buf 
)
int mythfile_stat_fd ( int  fileID,
struct stat *  buf 
)

Definition at line 364 of file mythiowrapper.cpp.

Referenced by file_stat_mythiowrapper().

int mythfile_exists ( const char *  path,
const char *  file 
)

Definition at line 381 of file mythiowrapper.cpp.

Referenced by findDirFile().

static int getNextDirID ( void   )  [static]

Definition at line 396 of file mythiowrapper.cpp.

Referenced by mythdir_opendir().

int mythdir_check ( int  id  ) 

Definition at line 415 of file mythiowrapper.cpp.

int mythdir_opendir ( const char *  dirname  ) 

Definition at line 430 of file mythiowrapper.cpp.

Referenced by dir_open_mythiowrapper().

int mythdir_closedir ( int  dirID  ) 

Definition at line 484 of file mythiowrapper.cpp.

Referenced by dir_close_mythiowrapper().

char* mythdir_readdir ( int  dirID  ) 

Definition at line 509 of file mythiowrapper.cpp.

Referenced by dir_read_mythiowrapper().


Variable Documentation

const int maxID = 1024 * 1024

Definition at line 31 of file mythiowrapper.cpp.

Referenced by getNextDirID(), and getNextFileID().

QReadWriteLock m_fileWrapperLock
QHash<int, RingBuffer *> m_ringbuffers
QHash<int, RemoteFile *> m_remotefiles
QHash<int, int> m_localfiles
QHash<int, QString> m_filenames

Definition at line 37 of file mythiowrapper.cpp.

Referenced by mythfile_open(), and mythfile_stat_fd().

QReadWriteLock m_dirWrapperLock
QHash<int, QStringList> m_remotedirs
QHash<int, int> m_remotedirPositions

Definition at line 41 of file mythiowrapper.cpp.

Referenced by mythdir_closedir(), mythdir_opendir(), and mythdir_readdir().

QHash<int, QString> m_dirnames

Definition at line 42 of file mythiowrapper.cpp.

Referenced by mythdir_opendir().

QHash<int, DIR *> m_localdirs

Definition at line 57 of file mythiowrapper.cpp.

Referenced by mythfile_open(), and mythfile_open_register_callback().

QMultiHash<QString, Callback> m_fileOpenCallbacks

Definition at line 58 of file mythiowrapper.cpp.

Referenced by mythfile_open(), and mythfile_open_register_callback().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:48 2012 for MythTV by  doxygen 1.6.3