|
vdr
2.0.7
|
#include "videodir.h"#include <ctype.h>#include <errno.h>#include <fcntl.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>#include <unistd.h>#include "recording.h"#include "tools.h"Go to the source code of this file.
Classes | |
| class | cVideoDirectory |
Macros | |
| #define | DISKSPACECHEK 5 |
| #define | MB_PER_MINUTE 25.75 |
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, int *UsedMB) |
| cString | PrefixVideoFileName (const char *FileName, char Prefix) |
| cString | NewVideoFileName (const char *FileName, const char *NewDirName) |
| void | RemoveEmptyVideoDirectories (const char *IgnoreFiles[]) |
| bool | IsOnVideoDirectoryFileSystem (const char *FileName) |
Variables | |
| const char * | VideoDirectory = VIDEODIR |
| #define DISKSPACECHEK 5 |
Definition at line 268 of file videodir.c.
Referenced by cVideoDiskUsage::HasChanged().
| #define MB_PER_MINUTE 25.75 |
Definition at line 269 of file videodir.c.
Referenced by cVideoDiskUsage::HasChanged().
| 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 256 of file videodir.c.
References EntriesOnSameFileSystem(), cVideoDirectory::Name(), and cVideoDirectory::Next().
| cString NewVideoFileName | ( | const char * | FileName, |
| const char * | NewDirName | ||
| ) |
Definition at line 232 of file videodir.c.
References ExchangeChars(), cString::sprintf(), and VideoDirectory.
Referenced by cMenuEditRecording::ProcessKey(), and cFileTransfer::Start().
| 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(), and cCutter::Start().
| void RemoveEmptyVideoDirectories | ( | const char * | IgnoreFiles[] | ) |
Definition at line 248 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(), cFileTransfer::Stop(), 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, |
| int * | UsedMB | ||
| ) |
Definition at line 191 of file videodir.c.
References DeletedRecordings, cVideoDirectory::FreeMB(), cVideoDirectory::Next(), and cRecordings::TotalFileSizeMB().
Referenced by cMenuTimers::ActualiseDiskStatus(), 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 = VIDEODIR |
Definition at line 22 of file videodir.c.
Referenced by cCopyingThread::Action(), cRemoveDeletedRecordingsThread::Action(), AssertFreeDiskSpace(), cRecording::cRecording(), cVideoDirectory::cVideoDirectory(), cMenuRecordings::DirectoryName(), cRecording::FileName(), cVideoDirectory::FreeMB(), main(), cVideoDirectory::Name(), NewVideoFileName(), OpenVideoFile(), cRecordings::Refresh(), SetVideoDirectory(), cRecording::SortName(), and cRecordings::UpdateFileName().
1.8.8