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

Go to the source code of this file.

Macros

#define LOC   QString("BDIOWrapper: ")
 

Functions

static void dir_close_mythiowrapper (BD_DIR_H *dir)
 
static int dir_read_mythiowrapper (BD_DIR_H *dir, BD_DIRENT *entry)
 
static BD_DIR_H * dir_open_mythiowrapper (const char *dirname)
 
static void file_close_mythiowrapper (BD_FILE_H *file)
 
static int64_t file_seek_mythiowrapper (BD_FILE_H *file, int64_t offset, int32_t origin)
 
static int64_t file_tell_mythiowrapper (BD_FILE_H *file)
 
static int64_t file_read_mythiowrapper (BD_FILE_H *file, uint8_t *buf, int64_t size)
 
static int64_t file_write_mythiowrapper (BD_FILE_H *file, const uint8_t *buf, int64_t size)
 
static BD_FILE_H * file_open_mythiowrapper (const char *filename, const char *cmode)
 
void redirectBDIO ()
 

Variables

static BD_FILE_OPEN sDefaultFileOpen = nullptr
 
static BD_DIR_OPEN sDefaultDirOpen = nullptr
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("BDIOWrapper: ")

Definition at line 20 of file bdiowrapper.cpp.

Function Documentation

◆ dir_close_mythiowrapper()

static void dir_close_mythiowrapper ( BD_DIR_H *  dir)
static

Definition at line 25 of file bdiowrapper.cpp.

Referenced by dir_open_mythiowrapper().

◆ dir_read_mythiowrapper()

static int dir_read_mythiowrapper ( BD_DIR_H *  dir,
BD_DIRENT *  entry 
)
static

Definition at line 37 of file bdiowrapper.cpp.

Referenced by dir_open_mythiowrapper().

◆ dir_open_mythiowrapper()

static BD_DIR_H* dir_open_mythiowrapper ( const char *  dirname)
static

Definition at line 51 of file bdiowrapper.cpp.

Referenced by redirectBDIO().

◆ file_close_mythiowrapper()

static void file_close_mythiowrapper ( BD_FILE_H *  file)
static

Definition at line 81 of file bdiowrapper.cpp.

Referenced by file_open_mythiowrapper().

◆ file_seek_mythiowrapper()

static int64_t file_seek_mythiowrapper ( BD_FILE_H *  file,
int64_t  offset,
int32_t  origin 
)
static

Definition at line 93 of file bdiowrapper.cpp.

Referenced by file_open_mythiowrapper().

◆ file_tell_mythiowrapper()

static int64_t file_tell_mythiowrapper ( BD_FILE_H *  file)
static

Definition at line 98 of file bdiowrapper.cpp.

Referenced by file_open_mythiowrapper().

◆ file_read_mythiowrapper()

static int64_t file_read_mythiowrapper ( BD_FILE_H *  file,
uint8_t *  buf,
int64_t  size 
)
static

Definition at line 103 of file bdiowrapper.cpp.

Referenced by file_open_mythiowrapper().

◆ file_write_mythiowrapper()

static int64_t file_write_mythiowrapper ( BD_FILE_H *  file,
const uint8_t *  buf,
int64_t  size 
)
static

Definition at line 108 of file bdiowrapper.cpp.

Referenced by file_open_mythiowrapper().

◆ file_open_mythiowrapper()

static BD_FILE_H* file_open_mythiowrapper ( const char *  filename,
const char *  cmode 
)
static

Definition at line 113 of file bdiowrapper.cpp.

Referenced by redirectBDIO().

◆ redirectBDIO()

void redirectBDIO ( )

Definition at line 151 of file bdiowrapper.cpp.

Referenced by BDInfo::BDInfo(), and BDRingBuffer::OpenFile().

Variable Documentation

◆ sDefaultFileOpen

BD_FILE_OPEN sDefaultFileOpen = nullptr
static

Definition at line 22 of file bdiowrapper.cpp.

Referenced by file_open_mythiowrapper(), and redirectBDIO().

◆ sDefaultDirOpen

BD_DIR_OPEN sDefaultDirOpen = nullptr
static

Definition at line 23 of file bdiowrapper.cpp.

Referenced by dir_open_mythiowrapper(), and redirectBDIO().