summaryrefslogtreecommitdiff
path: root/sources.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-11 15:54:37 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-11 15:54:37 +0100
commit7f9d14ee8b181a999afb997d74a24b3087fd9d33 (patch)
tree8c1c2238cb7137033ae68ba7d4e32a3d7a22f548 /sources.c
parent43ca916c20a72c9b47a15c460cced63b5c19c286 (diff)
downloadvdr-7f9d14ee8b181a999afb997d74a24b3087fd9d33.tar.gz
vdr-7f9d14ee8b181a999afb997d74a24b3087fd9d33.tar.bz2
The actual transponder data is now taken from the NIT1.3.1
Diffstat (limited to 'sources.c')
-rw-r--r--sources.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sources.c b/sources.c
index fc660a5c..a9c31488 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 1.1 2002/10/06 09:27:10 kls Exp $
+ * $Id: sources.c 1.2 2004/01/11 10:36:57 kls Exp $
*/
#include "sources.h"
@@ -90,6 +90,17 @@ int cSource::FromString(const char *s)
return code;
}
+int cSource::FromData(eSourceType SourceType, int Position, bool East)
+{
+ int code = SourceType;
+ if (SourceType == stSat) {
+ if (East)
+ code |= st_Neg;
+ code |= (Position & st_Pos);;
+ }
+ return code;
+}
+
// -- cSources ---------------------------------------------------------------
cSources Sources;