summaryrefslogtreecommitdiff
path: root/sources.c
diff options
context:
space:
mode:
Diffstat (limited to 'sources.c')
-rw-r--r--sources.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sources.c b/sources.c
index 780c1fdc..ffaee98a 100644
--- a/sources.c
+++ b/sources.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: sources.c 3.3 2013/05/23 09:41:54 kls Exp $
+ * $Id: sources.c 3.4 2013/05/23 10:20:28 kls Exp $
*/
#include "sources.h"
@@ -37,6 +37,13 @@ bool cSource::Parse(const char *s)
return code != stNone && description && *description;
}
+bool cSource::Matches(int Code1, int Code2)
+{
+ if (Code1 == (stSat | st_Any))
+ return IsSat(Code2);
+ return Code1 == Code2;
+}
+
int cSource::Position(int Code)
{
int n = (Code & st_Pos);