diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-03-07 13:56:09 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-03-07 13:56:09 +0100 |
commit | 1c922cbb542132481004aabe7d7ffff26e641ce9 (patch) | |
tree | 133db2dfcdc6841c7bef971f00ebf59578407605 /sources.h | |
parent | 74d6d35bce1f724e0d1e1b57fe5b022189c73f2c (diff) | |
download | vdr-1c922cbb542132481004aabe7d7ffff26e641ce9.tar.gz vdr-1c922cbb542132481004aabe7d7ffff26e641ce9.tar.bz2 |
Added cChannel::IsSourceType() to test if a channel's source is of a given type
Diffstat (limited to 'sources.h')
-rw-r--r-- | sources.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sources.h 2.2 2010/03/06 11:53:54 kls Exp $ + * $Id: sources.h 2.3 2010/03/07 13:53:11 kls Exp $ */ #ifndef __SOURCES_H @@ -40,6 +40,7 @@ public: static bool IsCable(int Code) { return (Code & st_Mask) == stCable; } static bool IsSat(int Code) { return (Code & st_Mask) == stSat; } static bool IsTerr(int Code) { return (Code & st_Mask) == stTerr; } + static bool IsType(int Code, char Source) { return int(Code & st_Mask) == (int(Source) << 24); } }; class cSources : public cConfig<cSource> { |