summaryrefslogtreecommitdiff
path: root/timers.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-04-10 10:09:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2021-04-10 10:09:50 +0200
commit0003d6391cbf3c16daca4cd6a45632bb619342d6 (patch)
treefed2cb559f06eea7001feca43e207597589ea93c /timers.h
parent4e52547a59c14f619b053e2731a413221d65647f (diff)
downloadvdr-0003d6391cbf3c16daca4cd6a45632bb619342d6.tar.gz
vdr-0003d6391cbf3c16daca4cd6a45632bb619342d6.tar.bz2
When spawning pattern timers, the new function cTimers::GetTimerForEvent() is now used to check whether a matching event already has a local timer
Diffstat (limited to 'timers.h')
-rw-r--r--timers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/timers.h b/timers.h
index 0c707f7b..18c8362d 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 5.4 2021/04/06 08:48:35 kls Exp $
+ * $Id: timers.h 5.5 2021/04/10 10:09:50 kls Exp $
*/
#ifndef __TIMERS_H
@@ -192,6 +192,7 @@ public:
cTimer *GetMatch(time_t t) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetMatch(t)); };
const cTimer *GetMatch(const cEvent *Event, eTimerMatch *Match = NULL) const;
cTimer *GetMatch(const cEvent *Event, eTimerMatch *Match = NULL) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetMatch(Event, Match)); }
+ const cTimer *GetTimerForEvent(const cEvent *Event, eTimerFlags Flags = tfNone);
int GetMaxPriority(void) const;
///< Returns the maximum priority of all local timers that are currently recording.
///< If there is no local timer currently recording, -1 is returned.