vdr
2.0.6
|
Go to the source code of this file.
Classes | |
class | cVideoDiskUsage |
Functions | |
void | SetVideoDirectory (const char *Directory) |
cUnbufferedFile * | OpenVideoFile (const char *FileName, int Flags) |
int | CloseVideoFile (cUnbufferedFile *File) |
bool | RenameVideoFile (const char *OldName, const char *NewName) |
bool | RemoveVideoFile (const char *FileName) |
bool | VideoFileSpaceAvailable (int SizeMB) |
int | VideoDiskSpace (int *FreeMB=NULL, int *UsedMB=NULL) |
cString | PrefixVideoFileName (const char *FileName, char Prefix) |
void | RemoveEmptyVideoDirectories (const char *IgnoreFiles[]=NULL) |
bool | IsOnVideoDirectoryFileSystem (const char *FileName) |
Variables | |
const char * | VideoDirectory |
int CloseVideoFile | ( | cUnbufferedFile * | File | ) |
Definition at line 152 of file videodir.c.
References cUnbufferedFile::Close().
Referenced by cFileName::Close().
bool IsOnVideoDirectoryFileSystem | ( | const char * | FileName | ) |
Definition at line 240 of file videodir.c.
References EntriesOnSameFileSystem(), cVideoDirectory::Name(), and cVideoDirectory::Next().
cUnbufferedFile* OpenVideoFile | ( | const char * | FileName, |
int | Flags | ||
) |
Definition at line 111 of file videodir.c.
References cVideoDirectory::Adjust(), cUnbufferedFile::Create(), esyslog, FreeDiskSpaceMB(), cVideoDirectory::FreeMB(), cVideoDirectory::IsDistributed(), LOG_ERROR_STR, MakeDirs(), cVideoDirectory::Name(), cVideoDirectory::Next(), cVideoDirectory::Store(), cVideoDirectory::Stored(), and VideoDirectory.
Referenced by cFileName::Open().
cString PrefixVideoFileName | ( | const char * | FileName, |
char | Prefix | ||
) |
Definition at line 212 of file videodir.c.
Referenced by cRecording::PrefixFileName().
void RemoveEmptyVideoDirectories | ( | const char * | IgnoreFiles[] = NULL | ) |
Definition at line 232 of file videodir.c.
References cVideoDirectory::Name(), cVideoDirectory::Next(), and RemoveEmptyDirectories().
Referenced by cRemoveDeletedRecordingsThread::Action().
bool RemoveVideoFile | ( | const char * | FileName | ) |
Definition at line 171 of file videodir.c.
References RemoveFileOrDir().
Referenced by cRecording::Delete(), cRecording::Remove(), cCutter::Start(), and cCutter::Stop().
bool RenameVideoFile | ( | const char * | OldName, |
const char * | NewName | ||
) |
Definition at line 159 of file videodir.c.
References LOG_ERROR_STR.
Referenced by cRecording::Delete(), and cRecording::Undelete().
void SetVideoDirectory | ( | const char * | Directory | ) |
int VideoDiskSpace | ( | int * | FreeMB = NULL , |
int * | UsedMB = NULL |
||
) |
Definition at line 191 of file videodir.c.
References DeletedRecordings, cVideoDirectory::FreeMB(), cVideoDirectory::Next(), and cRecordings::TotalFileSizeMB().
Referenced by cSVDRP::CmdSTAT(), cVideoDiskUsage::HasChanged(), and cRecordControls::Start().
bool VideoFileSpaceAvailable | ( | int | SizeMB | ) |
Definition at line 176 of file videodir.c.
References cVideoDirectory::FreeMB(), cVideoDirectory::IsDistributed(), and cVideoDirectory::Next().
Referenced by AssertFreeDiskSpace().
const char* VideoDirectory |
Definition at line 22 of file videodir.c.
Referenced by cRemoveDeletedRecordingsThread::Action(), AssertFreeDiskSpace(), cRecording::cRecording(), cVideoDirectory::cVideoDirectory(), cMenuRecordings::DirectoryName(), cRecording::FileName(), cVideoDirectory::FreeMB(), main(), cVideoDirectory::Name(), OpenVideoFile(), cRecordings::Refresh(), SetVideoDirectory(), cRecording::SortName(), and cRecordings::UpdateFileName().