summaryrefslogtreecommitdiff
path: root/rcu.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-12-16 14:53:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-12-16 14:53:58 +0100
commitdb35165e25974df8719d253cde398831877c526d (patch)
tree19ebb537f3870623910448072da6b0730f225c56 /rcu.h
parent72759ed1313982aaade3a380fe5beddfffc7824b (diff)
downloadvdr-db35165e25974df8719d253cde398831877c526d.tar.gz
vdr-db35165e25974df8719d253cde398831877c526d.tar.bz2
Fixed the RCU remote control handling to avoid problems with NPTL
Diffstat (limited to 'rcu.h')
-rw-r--r--rcu.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/rcu.h b/rcu.h
index be5c64af..47c684af 100644
--- a/rcu.h
+++ b/rcu.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: rcu.h 1.4 2005/07/31 10:18:00 kls Exp $
+ * $Id: rcu.h 1.5 2005/12/16 14:21:20 kls Exp $
*/
#ifndef __RCU_H
@@ -19,19 +19,19 @@ private:
enum { modeH = 'h', modeB = 'b', modeS = 's' };
int f;
unsigned char dp, code, mode;
- int numberToSend;
- int lastNumber;
+ int number;
+ unsigned int data;
bool receivedCommand;
bool SendCommand(unsigned char Cmd);
int ReceiveByte(int TimeoutMs = 0);
bool SendByteHandshake(unsigned char c);
bool SendByte(unsigned char c);
- bool Digit(int n, int v);
- bool SetCode(unsigned char Code);
- bool SetMode(unsigned char Mode);
- bool Number(int n, bool Hex = false);
+ bool SendData(unsigned int n);
+ void SetCode(unsigned char Code);
+ void SetMode(unsigned char Mode);
+ void SetNumber(int n, bool Hex = false);
void SetPoints(unsigned char Dp, bool On);
- bool String(char *s);
+ void SetString(char *s);
bool DetectCode(unsigned char *Code);
virtual void Action(void);
virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber);