summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-12-08 11:05:39 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-12-08 11:05:39 +0100
commit83fe591f3254a8010e107739256ef0df780b219c (patch)
tree87ee41dbc77184af071f450ea29969579a53efb5 /timers.c
parentbc0b67e6302a114e1efd2701aafa6ecd9282cc69 (diff)
downloadvdr-83fe591f3254a8010e107739256ef0df780b219c.tar.gz
vdr-83fe591f3254a8010e107739256ef0df780b219c.tar.bz2
The new functions SetItemEvent(), SetItemTimer(), SetItemChannel() and SetItemRecording() of the cSkinDisplayMenu class can be reimplemented by skin plugins to display these items in a more elaborate way than just a simple line of text1.7.33
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/timers.c b/timers.c
index a29cf12f..ab8e4778 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 2.14 2012/10/16 08:22:39 kls Exp $
+ * $Id: timers.c 2.15 2012/12/07 13:14:00 kls Exp $
*/
#include "timers.h"
@@ -480,7 +480,7 @@ bool cTimer::Matches(time_t t, bool Directly, int Margin) const
#define FULLMATCH 1000
-int cTimer::Matches(const cEvent *Event, int *Overlap) const
+eTimerMatch cTimer::Matches(const cEvent *Event, int *Overlap) const
{
// Overlap is the percentage of the Event's duration that is covered by
// this timer (based on FULLMATCH for finer granularity than just 100).
@@ -758,12 +758,12 @@ cTimer *cTimers::GetMatch(time_t t)
return t0;
}
-cTimer *cTimers::GetMatch(const cEvent *Event, int *Match)
+cTimer *cTimers::GetMatch(const cEvent *Event, eTimerMatch *Match)
{
cTimer *t = NULL;
- int m = tmNone;
+ eTimerMatch m = tmNone;
for (cTimer *ti = First(); ti; ti = Next(ti)) {
- int tm = ti->Matches(Event);
+ eTimerMatch tm = ti->Matches(Event);
if (tm > m) {
t = ti;
m = tm;