mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
28 lines
834 B
C
28 lines
834 B
C
/*
|
|
* 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.
|
|
*
|
|
* $Id: videodir.h 1.6 2005/10/31 11:50:23 kls Exp $
|
|
*/
|
|
|
|
#ifndef __VIDEODIR_H
|
|
#define __VIDEODIR_H
|
|
|
|
#include <stdlib.h>
|
|
#include "tools.h"
|
|
|
|
extern const char *VideoDirectory;
|
|
|
|
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 = NULL, int *UsedMB = NULL); // returns the used disk space in percent
|
|
cString PrefixVideoFileName(const char *FileName, char Prefix);
|
|
void RemoveEmptyVideoDirectories(void);
|
|
|
|
#endif //__VIDEODIR_H
|