vdr
1.7.27
|
00001 /* 00002 * videodir.h: Functions to maintain a distributed video directory 00003 * 00004 * See the main source file 'vdr.c' for copyright information and 00005 * how to reach the author. 00006 * 00007 * $Id: videodir.h 2.0 2008/02/16 12:53:11 kls Exp $ 00008 */ 00009 00010 #ifndef __VIDEODIR_H 00011 #define __VIDEODIR_H 00012 00013 #include <stdlib.h> 00014 #include "tools.h" 00015 00016 extern const char *VideoDirectory; 00017 00018 cUnbufferedFile *OpenVideoFile(const char *FileName, int Flags); 00019 int CloseVideoFile(cUnbufferedFile *File); 00020 bool RenameVideoFile(const char *OldName, const char *NewName); 00021 bool RemoveVideoFile(const char *FileName); 00022 bool HardLinkVideoFile(const char *OldName, const char *NewName); 00023 bool VideoFileSpaceAvailable(int SizeMB); 00024 int VideoDiskSpace(int *FreeMB = NULL, int *UsedMB = NULL); // returns the used disk space in percent 00025 cString PrefixVideoFileName(const char *FileName, char Prefix); 00026 cString NewVideoFileName(const char *FileName, const char *NewDirName); 00027 void RemoveEmptyVideoDirectories(void); 00028 bool IsOnVideoDirectoryFileSystem(const char *FileName); 00029 00030 #endif //__VIDEODIR_H