MythTV  master
Typedefs | Functions
mythiowrapper.h File Reference
#include <cstring>
#include <strings.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "mythtvexp.h"
Include dependency graph for mythiowrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* callback_t) (void *)
 

Functions

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)
 
MTV_PUBLIC off64_t mythfile_seek (int fileID, off64_t offset, int whence)
 
MTV_PUBLIC off64_t mythfile_tell (int fileID)
 
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)
 

Typedef Documentation

◆ callback_t

typedef void(* callback_t) (void *)

Definition at line 20 of file mythiowrapper.h.

Function Documentation

◆ mythfile_open_register_callback()

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

Definition at line 82 of file mythiowrapper.cpp.

Referenced by BDRingBuffer::OpenFile().

◆ mythfile_check()

int mythfile_check ( int  fileID)

Definition at line 119 of file mythiowrapper.cpp.

◆ mythfile_open()

MTV_PUBLIC int mythfile_open ( const char *  pathname,
int  flags 
)

◆ mythfile_close()

MTV_PUBLIC int mythfile_close ( int  fileID)

◆ mythfile_seek()

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

◆ mythfile_tell()

MTV_PUBLIC off64_t mythfile_tell ( int  fileID)

Definition at line 282 of file mythiowrapper.cpp.

Referenced by file_tell_mythiowrapper().

◆ mythfile_read()

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

◆ mythfile_write()

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

Definition at line 323 of file mythiowrapper.cpp.

Referenced by file_write_mythiowrapper().

◆ mythfile_stat()

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

◆ mythfile_stat_fd()

MTV_PUBLIC int mythfile_stat_fd ( int  fileID,
struct stat *  buf 
)

Definition at line 357 of file mythiowrapper.cpp.

◆ mythfile_exists()

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

Definition at line 378 of file mythiowrapper.cpp.

◆ mythdir_check()

int mythdir_check ( int  fileID)

Definition at line 410 of file mythiowrapper.cpp.

◆ mythdir_opendir()

MTV_PUBLIC int mythdir_opendir ( const char *  dirname)

Definition at line 425 of file mythiowrapper.cpp.

Referenced by dir_open_mythiowrapper().

◆ mythdir_closedir()

MTV_PUBLIC int mythdir_closedir ( int  dirID)

Definition at line 480 of file mythiowrapper.cpp.

Referenced by dir_close_mythiowrapper().

◆ mythdir_readdir()

MTV_PUBLIC char* mythdir_readdir ( int  dirID)

Definition at line 505 of file mythiowrapper.cpp.

Referenced by dir_read_mythiowrapper().