|
MythTV master
|
#include <QFile>#include <QMap>#include <QUrl>#include <QReadWriteLock>#include "libmythbase/compat.h"#include "libmythbase/mythconfig.h"#include "libmythbase/mythcorecontext.h"#include "libmythbase/mythlogging.h"#include "libmythbase/remotefile.h"#include "io/mythmediabuffer.h"#include "mythiowrapper.h"#include <windows.h>#include <cstdio>#include <dirent.h>#include <fcntl.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>Go to the source code of this file.
Classes | |
| class | MythIOCallback |
Macros | |
| #define | LOC QString("MythIOWrap: ") |
| #define | lseek _lseeki64 |
| #define | off_t off64_t |
Functions | |
| static int | GetNextFileID (void) |
| void | MythFileOpenRegisterCallback (const char *Pathname, void *Object, callback_t Func) |
| int | MythFileCheck (int Id) |
| int | MythFileOpen (const char *Pathname, int Flags) |
| int | MythfileClose (int FileID) |
| off_t | MythFileSeek (int FileID, off_t Offset, int Whence) |
| off_t | MythFileTell (int FileID) |
| ssize_t | MythFileRead (int FileID, void *Buffer, size_t Count) |
| ssize_t | MythFileWrite (int FileID, void *Buffer, size_t Count) |
| int | MythFileStat (const char *Path, struct stat *Buf) |
| int | MythFileStatFD (int FileID, struct stat *Buf) |
| int | MythFileExists (const char *Path, const char *File) |
| static int | GetNextDirID (void) |
| int | MythDirCheck (int DirID) |
| int | MythDirOpen (const char *DirName) |
| int | MythDirClose (int DirID) |
| char * | MythDirRead (int DirID) |
Variables | |
| static const int | s_maxID = 1024 * 1024 |
| static QReadWriteLock | s_fileWrapperLock |
| static QHash< int, MythMediaBuffer * > | s_buffers |
| static QHash< int, RemoteFile * > | s_remotefiles |
| static QHash< int, int > | s_localfiles |
| static QHash< int, QString > | s_filenames |
| static QReadWriteLock | s_dirWrapperLock |
| static QHash< int, QStringList > | s_remotedirs |
| static QHash< int, int > | s_remotedirPositions |
| static QHash< int, QString > | s_dirnames |
| static QHash< int, DIR * > | s_localdirs |
| static QMutex | s_callbackLock |
| static QMultiHash< QString, MythIOCallback > | s_fileOpenCallbacks |
| #define LOC QString("MythIOWrap: ") |
Definition at line 62 of file mythiowrapper.cpp.
| #define lseek _lseeki64 |
Definition at line 239 of file mythiowrapper.cpp.
| #define off_t off64_t |
Definition at line 241 of file mythiowrapper.cpp.
|
static |
Definition at line 372 of file mythiowrapper.cpp.
Referenced by MythDirOpen().
|
static |
Definition at line 66 of file mythiowrapper.cpp.
Referenced by MythFileOpen().
| int MythDirCheck | ( | int | DirID | ) |
Definition at line 386 of file mythiowrapper.cpp.
| int MythDirClose | ( | int | DirID | ) |
Definition at line 447 of file mythiowrapper.cpp.
Referenced by MythBDDirClose().
| int MythDirOpen | ( | const char * | DirName | ) |
Definition at line 395 of file mythiowrapper.cpp.
Referenced by MythBDDirOpen().
| char * MythDirRead | ( | int | DirID | ) |
Definition at line 470 of file mythiowrapper.cpp.
Referenced by MythBDDirRead().
| int MythFileCheck | ( | int | Id | ) |
Definition at line 108 of file mythiowrapper.cpp.
| int MythfileClose | ( | int | FileID | ) |
Definition at line 205 of file mythiowrapper.cpp.
Referenced by MythBDBuffer::Close(), MythDVDInfo::GetNameAndSerialNum(), MythBDFileClose(), and MythBDInfo::MythBDInfo().
| int MythFileExists | ( | const char * | Path, |
| const char * | File | ||
| ) |
Definition at line 359 of file mythiowrapper.cpp.
| int MythFileOpen | ( | const char * | Pathname, |
| int | Flags | ||
| ) |
Definition at line 115 of file mythiowrapper.cpp.
Referenced by MythDVDInfo::GetNameAndSerialNum(), MythBDFileOpen(), MythBDInfo::MythBDInfo(), and MythBDBuffer::OpenFile().
| void MythFileOpenRegisterCallback | ( | const char * | Pathname, |
| void * | Object, | ||
| callback_t | Func | ||
| ) |
Definition at line 81 of file mythiowrapper.cpp.
Referenced by MythBDBuffer::OpenFile().
| ssize_t MythFileRead | ( | int | FileID, |
| void * | Buffer, | ||
| size_t | Count | ||
| ) |
Definition at line 285 of file mythiowrapper.cpp.
Referenced by BDRead(), MythDVDInfo::GetNameAndSerialNum(), MythBDFileRead(), and MythBDInfo::MythBDInfo().
Definition at line 243 of file mythiowrapper.cpp.
Referenced by BDRead(), MythBDFileSeek(), and MythBDInfo::MythBDInfo().
| int MythFileStat | ( | const char * | Path, |
| struct stat * | Buf | ||
| ) |
Definition at line 323 of file mythiowrapper.cpp.
Referenced by MythDVDInfo::GetNameAndSerialNum(), MythFileOpen(), and MythFileStatFD().
| int MythFileStatFD | ( | int | FileID, |
| struct stat * | Buf | ||
| ) |
Definition at line 338 of file mythiowrapper.cpp.
| off_t MythFileTell | ( | int | FileID | ) |
Definition at line 262 of file mythiowrapper.cpp.
Referenced by MythBDFileTell().
| ssize_t MythFileWrite | ( | int | FileID, |
| void * | Buffer, | ||
| size_t | Count | ||
| ) |
Definition at line 304 of file mythiowrapper.cpp.
Referenced by MythBDFileWrite().
|
static |
Definition at line 48 of file mythiowrapper.cpp.
Referenced by GetNextFileID(), MythFileCheck(), MythfileClose(), MythFileOpen(), MythFileRead(), MythFileSeek(), MythFileTell(), and MythFileWrite().
|
static |
Definition at line 59 of file mythiowrapper.cpp.
Referenced by MythFileOpen(), and MythFileOpenRegisterCallback().
|
static |
Definition at line 56 of file mythiowrapper.cpp.
Referenced by MythDirOpen().
|
static |
Definition at line 53 of file mythiowrapper.cpp.
Referenced by MythDirCheck(), MythDirClose(), MythDirOpen(), and MythDirRead().
|
static |
Definition at line 51 of file mythiowrapper.cpp.
Referenced by MythFileOpen(), and MythFileStatFD().
|
static |
Definition at line 60 of file mythiowrapper.cpp.
Referenced by MythFileOpen(), and MythFileOpenRegisterCallback().
|
static |
Definition at line 47 of file mythiowrapper.cpp.
Referenced by MythFileCheck(), MythfileClose(), MythFileOpen(), MythFileRead(), MythFileSeek(), MythFileStatFD(), MythFileTell(), and MythFileWrite().
|
static |
Definition at line 57 of file mythiowrapper.cpp.
Referenced by GetNextDirID(), MythDirCheck(), MythDirClose(), MythDirOpen(), and MythDirRead().
|
static |
Definition at line 50 of file mythiowrapper.cpp.
Referenced by GetNextFileID(), MythFileCheck(), MythfileClose(), MythFileOpen(), MythFileRead(), MythFileSeek(), MythFileTell(), and MythFileWrite().
|
static |
Definition at line 45 of file mythiowrapper.cpp.
Referenced by GetNextDirID(), and GetNextFileID().
|
static |
Definition at line 55 of file mythiowrapper.cpp.
Referenced by MythDirClose(), MythDirOpen(), and MythDirRead().
|
static |
Definition at line 54 of file mythiowrapper.cpp.
Referenced by GetNextDirID(), MythDirCheck(), MythDirClose(), MythDirOpen(), and MythDirRead().
|
static |
Definition at line 49 of file mythiowrapper.cpp.
Referenced by GetNextFileID(), MythFileCheck(), MythfileClose(), MythFileOpen(), MythFileRead(), MythFileSeek(), MythFileTell(), and MythFileWrite().