summaryrefslogtreecommitdiff
path: root/videodir.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-01-27 13:11:23 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-01-27 13:11:23 +0100
commit28e54bc648502820202ea44f6a990c9502f901f7 (patch)
tree436b3e56eb28e8c13002e97c511c11234c55f0b4 /videodir.h
parent53c5499a0b93cd1cb47394381c4262f01b6c0c00 (diff)
downloadvdr-28e54bc648502820202ea44f6a990c9502f901f7.tar.gz
vdr-28e54bc648502820202ea44f6a990c9502f901f7.tar.bz2
The 'Main' menu now displays the used disk space in the title
Diffstat (limited to 'videodir.h')
-rw-r--r--videodir.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/videodir.h b/videodir.h
index 0197de30..a719c5e0 100644
--- a/videodir.h
+++ b/videodir.h
@@ -4,19 +4,22 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: videodir.h 1.3 2001/02/11 13:12:50 kls Exp $
+ * $Id: videodir.h 1.4 2002/01/27 12:37:20 kls Exp $
*/
#ifndef __VIDEODIR_H
#define __VIDEODIR_H
+#include <stdlib.h>
+
extern const char *VideoDirectory;
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(unsigned int SizeMB);
+bool VideoFileSpaceAvailable(int SizeMB);
+int VideoDiskSpace(int *FreeMB = NULL, int *UsedMB = NULL); // returns the used disk space in percent
const char *PrefixVideoFileName(const char *FileName, char Prefix);
void RemoveEmptyVideoDirectories(void);