2000-07-29 15:21:42 +02:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*
|
2008-02-16 13:38:22 +01:00
|
|
|
* $Id: videodir.h 1.7 2008/02/16 12:53:11 kls Exp $
|
2000-07-29 15:21:42 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __VIDEODIR_H
|
|
|
|
#define __VIDEODIR_H
|
|
|
|
|
2002-01-27 13:11:23 +01:00
|
|
|
#include <stdlib.h>
|
2004-12-26 12:45:22 +01:00
|
|
|
#include "tools.h"
|
2002-01-27 13:11:23 +01:00
|
|
|
|
2000-07-29 15:21:42 +02:00
|
|
|
extern const char *VideoDirectory;
|
|
|
|
|
2005-10-31 13:14:26 +01:00
|
|
|
cUnbufferedFile *OpenVideoFile(const char *FileName, int Flags);
|
|
|
|
int CloseVideoFile(cUnbufferedFile *File);
|
2000-07-29 15:21:42 +02:00
|
|
|
bool RenameVideoFile(const char *OldName, const char *NewName);
|
|
|
|
bool RemoveVideoFile(const char *FileName);
|
2002-01-27 13:11:23 +01:00
|
|
|
bool VideoFileSpaceAvailable(int SizeMB);
|
|
|
|
int VideoDiskSpace(int *FreeMB = NULL, int *UsedMB = NULL); // returns the used disk space in percent
|
2004-12-26 12:45:22 +01:00
|
|
|
cString PrefixVideoFileName(const char *FileName, char Prefix);
|
2001-02-11 14:53:44 +01:00
|
|
|
void RemoveEmptyVideoDirectories(void);
|
2008-02-16 13:38:22 +01:00
|
|
|
bool IsOnVideoDirectoryFileSystem(const char *FileName);
|
2000-07-29 15:21:42 +02:00
|
|
|
|
|
|
|
#endif //__VIDEODIR_H
|