diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-11 15:54:37 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-11 15:54:37 +0100 |
commit | 7f9d14ee8b181a999afb997d74a24b3087fd9d33 (patch) | |
tree | 8c1c2238cb7137033ae68ba7d4e32a3d7a22f548 /tools.h | |
parent | 43ca916c20a72c9b47a15c460cced63b5c19c286 (diff) | |
download | vdr-7f9d14ee8b181a999afb997d74a24b3087fd9d33.tar.gz vdr-7f9d14ee8b181a999afb997d74a24b3087fd9d33.tar.bz2 |
The actual transponder data is now taken from the NIT1.3.1
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 1.54 2002/12/15 14:59:53 kls Exp $ + * $Id: tools.h 1.55 2004/01/11 15:42:15 kls Exp $ */ #ifndef __TOOLS_H @@ -52,6 +52,9 @@ template<class T> inline int sgn(T a) { return a < 0 ? -1 : a > 0 ? 1 : 0; } template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; } #endif +#define BCDCHARTOINT(x) (10 * ((x & 0xF0) >> 4) + (x & 0xF)) +int BCD2INT(int x); + ssize_t safe_read(int filedes, void *buffer, size_t size); ssize_t safe_write(int filedes, const void *buffer, size_t size); void writechar(int filedes, char c); |