summaryrefslogtreecommitdiff
path: root/sources.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-06-17 12:27:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-06-17 12:27:07 +0200
commit45d261fb7448daed79b9873e0929386dfee0445f (patch)
tree2487555b5fc227cdb26c930a828b8213938883d8 /sources.h
parent1912d36f00b53ad33155f5788985f23ead69a873 (diff)
downloadvdr-45d261fb7448daed79b9873e0929386dfee0445f.tar.gz
vdr-45d261fb7448daed79b9873e0929386dfee0445f.tar.bz2
The new setup option "Miscellaneous/Show channel names with source" can be used to turn on adding the source character to channel names whenever they are displayed
Diffstat (limited to 'sources.h')
-rw-r--r--sources.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources.h b/sources.h
index 6b362e38..516a3edc 100644
--- a/sources.h
+++ b/sources.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: sources.h 2.3 2010/03/07 13:53:11 kls Exp $
+ * $Id: sources.h 2.4 2012/06/17 11:19:23 kls Exp $
*/
#ifndef __SOURCES_H
@@ -33,6 +33,7 @@ public:
int Code(void) const { return code; }
const char *Description(void) const { return description; }
bool Parse(const char *s);
+ static char ToChar(int Code) { return (Code & st_Mask) >> 24; }
static cString ToString(int Code);
static int FromString(const char *s);
static int FromData(eSourceType SourceType, int Position = 0, bool East = false);