summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-04-22 10:44:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-04-22 10:44:20 +0200
commit09e58657a1abc2dcebf1761c5c2406f3b4a4345f (patch)
tree5edabd98d7fa56df612ef83887fcfc2a6d37cebc /menu.c
parentf822cdf2613096a2b545daed6cab1ed3a5c8ef5b (diff)
downloadvdr-09e58657a1abc2dcebf1761c5c2406f3b4a4345f.tar.gz
vdr-09e58657a1abc2dcebf1761c5c2406f3b4a4345f.tar.bz2
Added a function to get a cRecordControl for a given cTimer
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 91a86d95..6fe8bbfa 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 2.48 2012/04/15 10:15:16 kls Exp $
+ * $Id: menu.c 2.49 2012/04/22 10:44:20 kls Exp $
*/
#include "menu.h"
@@ -4395,6 +4395,15 @@ cRecordControl *cRecordControls::GetRecordControl(const char *FileName)
return NULL;
}
+cRecordControl *cRecordControls::GetRecordControl(const cTimer *Timer)
+{
+ for (int i = 0; i < MAXRECORDCONTROLS; i++) {
+ if (RecordControls[i] && RecordControls[i]->Timer() == Timer)
+ return RecordControls[i];
+ }
+ return NULL;
+}
+
void cRecordControls::Process(time_t t)
{
for (int i = 0; i < MAXRECORDCONTROLS; i++) {