summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-25 12:22:02 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-25 12:22:02 +0100
commit60e937f57bafb8dea3bb5fc8097afb4b132db6c6 (patch)
treeb0774b80d7cca95a648e2d016c7ad9c576b0a6ef
parentbc2e59909fed6772360effd9d11ccae65af26a02 (diff)
downloadvdr-60e937f57bafb8dea3bb5fc8097afb4b132db6c6.tar.gz
vdr-60e937f57bafb8dea3bb5fc8097afb4b132db6c6.tar.bz2
The upper 16 bit of a timer's "flags" are no longer treated specially when a timer is modified in the "Edit timer" menu
-rw-r--r--HISTORY4
-rw-r--r--menu.c7
-rw-r--r--vdr.59
3 files changed, 8 insertions, 12 deletions
diff --git a/HISTORY b/HISTORY
index 75f189ad..778b6f0b 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4382,3 +4382,7 @@ Video Disk Recorder Revision History
a side effect, however, this also disables VPS for such an event).
- There is no more "Summary" menu when pressing "Ok" in the "Timers" menu.
The "Ok" key now always opens the "Edit timer" menu.
+- The upper 16 bit of a timer's "flags" are no longer treated specially when a timer
+ is modified in the "Edit timer" menu. If an external application needs to know if
+ a timer was modified, it has to keep a copy of the timer's data and compare that
+ to the actual data.
diff --git a/menu.c b/menu.c
index c791db25..daa97d4f 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.417 2006/02/25 12:09:22 kls Exp $
+ * $Id: menu.c 1.418 2006/02/25 12:16:34 kls Exp $
*/
#include "menu.h"
@@ -686,11 +686,8 @@ eOSState cMenuEditTimer::ProcessKey(eKeys Key)
if (!*data.file)
strcpy(data.file, data.Channel()->ShortName(true));
if (timer) {
- if (memcmp(timer, &data, sizeof(data)) != 0) {
+ if (memcmp(timer, &data, sizeof(data)) != 0)
*timer = data;
- if (timer->HasFlags(tfActive))
- timer->ClrFlags(~tfAll); // allows external programs to mark active timers with values > 0xFFFF and recognize if the user has modified them
- }
if (addIfConfirmed)
Timers.Add(timer);
timer->Matches();
diff --git a/vdr.5 b/vdr.5
index c360f161..6171191c 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.50 2006/02/25 11:16:02 kls Exp $
+.\" $Id: vdr.5 1.51 2006/02/25 12:18:59 kls Exp $
.\"
.TH vdr 5 "19 Feb 2006" "1.3.43" "Video Disk Recorder Files"
.SH NAME
@@ -217,13 +217,8 @@ l l.
\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
-timer, the upper 16 bits of this unsigned 32 bit parameter will be explicitly set to 0.
-Note: in order to allow future extensibility, external programs using the
-\fBstatus\fR parameter should only use the upper 16 bit of this 32 bit parameter
-and leave the lower 16 bit untouched.
+All other bits are reserved for future use.
.TP
.B Channel
The channel to record from. This is either the channel number as shown in the