MythTV  master
Macros | Functions | Variables
mythbdiowrapper.cpp File Reference
#include "mythconfig.h"
#include "mythlogging.h"
#include "io/mythiowrapper.h"
#include "Bluray/mythbdiowrapper.h"
#include <cstdio>
#include <fcntl.h>
#include <strings.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "file/filesystem.h"
Include dependency graph for mythbdiowrapper.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("BDIOWrapper: ")
 

Functions

static void MythBDDirClose (BD_DIR_H *Dir)
 
static int MythBDDirRead (BD_DIR_H *Dir, BD_DIRENT *Entry)
 
static BD_DIR_H * MythBDDirOpen (const char *DirName)
 
static void MythBDFileClose (BD_FILE_H *File)
 
static int64_t MythBDFileSeek (BD_FILE_H *File, int64_t Offset, int32_t Origin)
 
static int64_t MythBDFileTell (BD_FILE_H *File)
 
static int64_t MythBDFileRead (BD_FILE_H *File, uint8_t *Buffer, int64_t Size)
 
static int64_t MythBDFileWrite (BD_FILE_H *File, const uint8_t *Buffer, int64_t Size)
 
static BD_FILE_H * MythBDFileOpen (const char *FileName, const char *CMode)
 
void MythBDIORedirect (void)
 

Variables

static BD_FILE_OPEN sDefaultFileOpen = nullptr
 
static BD_DIR_OPEN sDefaultDirOpen = nullptr
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("BDIOWrapper: ")

Definition at line 21 of file mythbdiowrapper.cpp.

Function Documentation

◆ MythBDDirClose()

static void MythBDDirClose ( BD_DIR_H *  Dir)
static

Definition at line 26 of file mythbdiowrapper.cpp.

Referenced by MythBDDirOpen().

◆ MythBDDirRead()

static int MythBDDirRead ( BD_DIR_H *  Dir,
BD_DIRENT *  Entry 
)
static

Definition at line 36 of file mythbdiowrapper.cpp.

Referenced by MythBDDirOpen().

◆ MythBDDirOpen()

static BD_DIR_H* MythBDDirOpen ( const char *  DirName)
static

Definition at line 50 of file mythbdiowrapper.cpp.

Referenced by MythBDIORedirect().

◆ MythBDFileClose()

static void MythBDFileClose ( BD_FILE_H *  File)
static

Definition at line 78 of file mythbdiowrapper.cpp.

Referenced by MythBDFileOpen().

◆ MythBDFileSeek()

static int64_t MythBDFileSeek ( BD_FILE_H *  File,
int64_t  Offset,
int32_t  Origin 
)
static

Definition at line 88 of file mythbdiowrapper.cpp.

Referenced by MythBDFileOpen().

◆ MythBDFileTell()

static int64_t MythBDFileTell ( BD_FILE_H *  File)
static

Definition at line 93 of file mythbdiowrapper.cpp.

Referenced by MythBDFileOpen().

◆ MythBDFileRead()

static int64_t MythBDFileRead ( BD_FILE_H *  File,
uint8_t *  Buffer,
int64_t  Size 
)
static

Definition at line 98 of file mythbdiowrapper.cpp.

Referenced by MythBDFileOpen().

◆ MythBDFileWrite()

static int64_t MythBDFileWrite ( BD_FILE_H *  File,
const uint8_t *  Buffer,
int64_t  Size 
)
static

Definition at line 104 of file mythbdiowrapper.cpp.

Referenced by MythBDFileOpen().

◆ MythBDFileOpen()

static BD_FILE_H* MythBDFileOpen ( const char *  FileName,
const char *  CMode 
)
static

Definition at line 111 of file mythbdiowrapper.cpp.

Referenced by MythBDIORedirect().

◆ MythBDIORedirect()

void MythBDIORedirect ( void  )

Definition at line 146 of file mythbdiowrapper.cpp.

Referenced by MythBDInfo::MythBDInfo(), and MythBDBuffer::OpenFile().

Variable Documentation

◆ sDefaultFileOpen

BD_FILE_OPEN sDefaultFileOpen = nullptr
static

Definition at line 23 of file mythbdiowrapper.cpp.

Referenced by MythBDFileOpen(), and MythBDIORedirect().

◆ sDefaultDirOpen

BD_DIR_OPEN sDefaultDirOpen = nullptr
static

Definition at line 24 of file mythbdiowrapper.cpp.

Referenced by MythBDDirOpen(), and MythBDIORedirect().