diff options
author | lordjaxom <lordjaxom> | 2004-12-21 18:35:54 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-12-21 18:35:54 +0000 |
commit | c05277882c111760d4e275b8521bb057e913a946 (patch) | |
tree | 4eafb4a11134d83b3a5f0d6658fa3df9f924d26f /common.c | |
parent | de783ac67265a5a11ebbad52e8dbc81292b4ac66 (diff) | |
download | vdr-plugin-text2skin-c05277882c111760d4e275b8521bb057e913a946.tar.gz vdr-plugin-text2skin-c05277882c111760d4e275b8521bb057e913a946.tar.bz2 |
- dunno
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - * $Id: common.c,v 1.1 2004/12/19 22:03:09 lordjaxom Exp $ + * $Id: common.c,v 1.2 2004/12/21 18:35:54 lordjaxom Exp $ */ #include "common.h" @@ -89,6 +89,28 @@ const char *ChannelBouquet(const cChannel *Channel, int Number) { #endif } */ + +bool StoppedTimer(const char *Name) +{ + cTimer *timer = Timers.First(); + while (timer) { + if (strcmp(Name, timer->File()) == 0) + break; + timer = Timers.Next(timer); + } + return timer == NULL || !timer->Recording(); +} + +const cRecording *GetRecordingByName(const char *Name) +{ + const cRecording *rec = Recordings.First(); + for (; rec != NULL; rec = Recordings.Next(rec)) { + if (strcmp(rec->Name(), Name) == 0) + return rec; + } + return NULL; +} + cxType TimeType(time_t Time, const std::string &Format) { static char result[1000]; |