Dokumentation VDR

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

videodir.c File Reference

#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 "tools.h"

Include dependency graph for videodir.c:

Include dependency graph

Go to the source code of this file.

Data Structures

class  cVideoDirectory


int OpenVideoFile (const char *FileName, int Flags)
int CloseVideoFile (int FileHandle)
bool RenameVideoFile (const char *OldName, const char *NewName)
bool RemoveVideoFile (const char *FileName)
bool VideoFileSpaceAvailable (int SizeMB)
int VideoDiskSpace (int *FreeMB, int *UsedMB)
const char * PrefixVideoFileName (const char *FileName, char Prefix)
void RemoveEmptyVideoDirectories (void)


const char * VideoDirectory = "/video"

Function Documentation

int CloseVideoFile int    FileHandle

Definition at line 146 of file videodir.c.

Referenced by cFileName::Close().

int OpenVideoFile const char *    FileName,
int    Flags

Definition at line 105 of file videodir.c.

References cVideoDirectory::Adjust(), esyslog, FreeDiskSpaceMB(), cVideoDirectory::FreeMB(), cVideoDirectory::IsDistributed(), LOG_ERROR_STR, MakeDirs(), cVideoDirectory::Name(), cVideoDirectory::Next(), cVideoDirectory::Store(), and cVideoDirectory::Stored().

Referenced by cFileName::Open().

const char* PrefixVideoFileName const char *    FileName,
char    Prefix

Definition at line 200 of file videodir.c.

Referenced by cRecording::PrefixFileName().

void RemoveEmptyVideoDirectories void   

Definition at line 224 of file videodir.c.

References cVideoDirectory::Name(), cVideoDirectory::Next(), and RemoveEmptyDirectories().

Referenced by RemoveDeletedRecordings().

bool RemoveVideoFile const char *    FileName

Definition at line 164 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 152 of file videodir.c.

References LOG_ERROR_STR.

Referenced by cRecording::Delete().

int VideoDiskSpace int *    FreeMB,
int *    UsedMB

Definition at line 184 of file videodir.c.

References cVideoDirectory::FreeMB(), and cVideoDirectory::Next().

Referenced by cMenuMain::Set().

bool VideoFileSpaceAvailable int    SizeMB

Definition at line 169 of file videodir.c.

References cVideoDirectory::FreeMB(), cVideoDirectory::IsDistributed(), and cVideoDirectory::Next().

Referenced by AssertFreeDiskSpace().

Variable Documentation

const char* VideoDirectory = "/video"

videodir.h: Functions to maintain a distributed video directory

See the main source file 'vdr.c' for copyright information and how to reach the author.

videodir.h 1.4 2002/01/27 12:37:20 kls Exp

Definition at line 21 of file videodir.c.

Referenced by cVideoDirectory::cVideoDirectory(), and cVideoDirectory::Name().

Generated on Wed Feb 5 23:31:00 2003 for VDR by doxygen1.3-rc2