summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-05-07 11:10:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-05-07 11:10:56 +0200
commit8b137f8ce5b901a7ef9193644832827339deee2f (patch)
treedd21d564186dccf77ac27baf3c403dabaea31edf
parent9f7166a8915596fca3656d4b2627dd0bcc27ddaa (diff)
downloadvdr-8b137f8ce5b901a7ef9193644832827339deee2f.tar.gz
vdr-8b137f8ce5b901a7ef9193644832827339deee2f.tar.bz2
Added status flag for timers that are currently recording
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY4
-rw-r--r--timers.c6
-rw-r--r--timers.h3
-rw-r--r--vdr.53
5 files changed, 14 insertions, 4 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 2ddbf747..1d1bf103 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -64,6 +64,8 @@ Matthias Schniedermeyer <ms@citd.de>
for suggesting the SVDRP command CLRE
for reporting a bug in handling one-shot timers that were already recording
and had their start time changed into the future
+ for suggesting to give the timer status a bit that is set when that timer
+ is currently recording
Miha Setina <mihasetina@softhome.net>
for translating OSD texts to the Slovenian language
diff --git a/HISTORY b/HISTORY
index 32ab89fb..3e84b446 100644
--- a/HISTORY
+++ b/HISTORY
@@ -3474,7 +3474,7 @@ Video Disk Recorder Revision History
- Added a missing cMutexLock to cRemote::HasKeys() (thanks to Wolfgang Rohdewald).
- All log entries regarding timers now contain a short description of the timer.
-2005-05-05: Version 1.3.24
+2005-05-07: Version 1.3.24
- Now including the optional user defined Make.config from the 'libsi' Makefile
(thanks to Ville Skyttä).
@@ -3500,3 +3500,5 @@ Video Disk Recorder Revision History
this one).
- Since there are several places in thread.c where a timeout value is calculated,
this has been put into a separate function.
+- The timer status now has a new bit that is set when that timer is currently
+ recording (suggested by Matthias Schniedermeyer). See man vdr(5) for details.
diff --git a/timers.c b/timers.c
index 2dded66e..9e31f604 100644
--- a/timers.c
+++ b/timers.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.c 1.30 2005/03/20 14:50:37 kls Exp $
+ * $Id: timers.c 1.31 2005/05/07 11:10:56 kls Exp $
*/
#include "timers.h"
@@ -441,6 +441,10 @@ void cTimer::SetEvent(const cSchedule *Schedule, const cEvent *Event)
void cTimer::SetRecording(bool Recording)
{
recording = Recording;
+ if (recording)
+ SetFlags(tfRecording);
+ else
+ ClrFlags(tfRecording);
isyslog("timer %s %s", *ToDescr(), recording ? "start" : "stop");
}
diff --git a/timers.h b/timers.h
index ae83f5b6..28b3dd50 100644
--- a/timers.h
+++ b/timers.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.h 1.18 2005/03/20 14:47:45 kls Exp $
+ * $Id: timers.h 1.19 2005/05/07 10:36:35 kls Exp $
*/
#ifndef __TIMERS_H
@@ -19,6 +19,7 @@ enum eTimerFlags { tfNone = 0x0000,
tfActive = 0x0001,
tfInstant = 0x0002,
tfVps = 0x0004,
+ tfRecording = 0x0008,
tfAll = 0xFFFF,
};
enum eTimerMatch { tmNone, tmPartial, tmFull };
diff --git a/vdr.5 b/vdr.5
index 5333be7c..96136a1a 100644
--- a/vdr.5
+++ b/vdr.5
@@ -8,7 +8,7 @@
.\" License as specified in the file COPYING that comes with the
.\" vdr distribution.
.\"
-.\" $Id: vdr.5 1.35 2005/03/19 15:20:47 kls Exp $
+.\" $Id: vdr.5 1.36 2005/05/07 10:40:23 kls Exp $
.\"
.TH vdr 5 "19 Mar 2005" "1.3.23" "Video Disk Recorder Files"
.SH NAME
@@ -210,6 +210,7 @@ l l.
\fB1\fR@the timer is active (and will record if it hits)
\fB2\fR@this is an instant recording timer
\fB4\fR@this timer uses VPS
+\fB8\fR@this timer is currently recording (may only be up-to-date with SVDRP)
.TE
Bits other than these can be used by external programs to mark active timers
and recognize if the user has modified them. When a user modifies an active