summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-12-18 10:41:26 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-12-18 10:41:26 +0100
commit579719a7f24079bc36939c6b7757030b7299ba29 (patch)
tree4c9ba173f8e58d16e96c993f3b561fb14a898c03 /tools.h
parentdb35165e25974df8719d253cde398831877c526d (diff)
downloadvdr-579719a7f24079bc36939c6b7757030b7299ba29.tar.gz
vdr-579719a7f24079bc36939c6b7757030b7299ba29.tar.bz2
When displaying the amount of free disk space, the space consumed by "deleted" recordings is now taken into account
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index 833ba847..64c18238 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.84 2005/11/26 14:03:47 kls Exp $
+ * $Id: tools.h 1.85 2005/12/17 11:09:37 kls Exp $
*/
#ifndef __TOOLS_H
@@ -110,6 +110,7 @@ bool DirectoryOk(const char *DirName, bool LogErrors = false);
bool MakeDirs(const char *FileName, bool IsDirectory = false);
bool RemoveFileOrDir(const char *FileName, bool FollowSymlinks = false);
bool RemoveEmptyDirectories(const char *DirName, bool RemoveThis = false);
+int DirSizeMB(const char *DirName); ///< returns the total size of the files in the given directory, or -1 in case of an error
char *ReadLink(const char *FileName); ///< returns a new string allocated on the heap, which the caller must delete (or NULL in case of an error)
bool SpinUpDisk(const char *FileName);
void TouchFile(const char *FileName);