summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-06-13 20:26:51 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-06-13 20:26:51 +0200
commit5ed57fa1c5c2e33c218e60d906dc8e8163f50c16 (patch)
treeffbc38cfa37e76b14523d1001fe15dac6fe08923 /tools.c
parent1369239b53ee23fa1f790c67649facb4f8e547ff (diff)
downloadvdr-5ed57fa1c5c2e33c218e60d906dc8e8163f50c16.tar.gz
vdr-5ed57fa1c5c2e33c218e60d906dc8e8163f50c16.tar.bz2
The list of recordings is now kept statically in memory
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools.c b/tools.c
index 42193b2f..0f42182e 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.79 2004/05/22 12:13:27 kls Exp $
+ * $Id: tools.c 1.80 2004/06/13 14:36:41 kls Exp $
*/
#include "tools.h"
@@ -481,6 +481,14 @@ bool SpinUpDisk(const char *FileName)
return false;
}
+time_t LastModifiedTime(const char *FileName)
+{
+ struct stat fs;
+ if (stat(FileName, &fs) == 0)
+ return fs.st_mtime;
+ return 0;
+}
+
const char *WeekDayName(int WeekDay)
{
static char buffer[4];