vdr  1.7.31
Classes | Functions | Variables
videodir.h File Reference
#include <stdlib.h>
#include "tools.h"

Go to the source code of this file.

Classes

class  cVideoDiskUsage

Functions

void SetVideoDirectory (const char *Directory)
cUnbufferedFileOpenVideoFile (const char *FileName, int Flags)
int CloseVideoFile (cUnbufferedFile *File)
bool RenameVideoFile (const char *OldName, const char *NewName)
bool RemoveVideoFile (const char *FileName)
bool HardLinkVideoFile (const char *OldName, const char *NewName)
bool VideoFileSpaceAvailable (int SizeMB)
int VideoDiskSpace (int *FreeMB=NULL, int *UsedMB=NULL)
cString PrefixVideoFileName (const char *FileName, char Prefix)
cString NewVideoFileName (const char *FileName, const char *NewDirName)
void RemoveEmptyVideoDirectories (const char *IgnoreFiles[]=NULL)
bool IsOnVideoDirectoryFileSystem (const char *FileName)

Variables

const char * VideoDirectory

Function Documentation

int CloseVideoFile ( cUnbufferedFile File)

Definition at line 155 of file videodir.c.

References cUnbufferedFile::Close().

bool HardLinkVideoFile ( const char *  OldName,
const char *  NewName 
)
bool IsOnVideoDirectoryFileSystem ( const char *  FileName)
cString NewVideoFileName ( const char *  FileName,
const char *  NewDirName 
)

Definition at line 349 of file videodir.c.

References ExchangeChars(), cString::sprintf(), and VideoDirectory.

cUnbufferedFile* OpenVideoFile ( const char *  FileName,
int  Flags 
)
cString PrefixVideoFileName ( const char *  FileName,
char  Prefix 
)

Definition at line 329 of file videodir.c.

void RemoveEmptyVideoDirectories ( const char *  IgnoreFiles[] = NULL)
bool RemoveVideoFile ( const char *  FileName)

Definition at line 174 of file videodir.c.

References RemoveFileOrDir().

bool RenameVideoFile ( const char *  OldName,
const char *  NewName 
)

Definition at line 162 of file videodir.c.

References LOG_ERROR_STR.

void SetVideoDirectory ( const char *  Directory)

Definition at line 27 of file videodir.c.

References VideoDirectory.

int VideoDiskSpace ( int *  FreeMB = NULL,
int *  UsedMB = NULL 
)
bool VideoFileSpaceAvailable ( int  SizeMB)

Variable Documentation

const char* VideoDirectory

Definition at line 25 of file videodir.c.