diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-08 09:55:26 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-08 09:55:26 +0100 |
commit | b9422baff21024b2ca16e7cbb3dc049cf16ad371 (patch) | |
tree | 1d805fed0f9745a3892912cfe6378ff7fd7c5596 /diseqc.h | |
parent | 2d2369fca0c1d715009c9c29b03ffd47c0afa659 (diff) | |
download | vdr-b9422baff21024b2ca16e7cbb3dc049cf16ad371.tar.gz vdr-b9422baff21024b2ca16e7cbb3dc049cf16ad371.tar.bz2 |
The actual tuning is now done in a separate thread
Diffstat (limited to 'diseqc.h')
-rw-r--r-- | diseqc.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: diseqc.h 1.1 2002/10/05 13:02:52 kls Exp $ + * $Id: diseqc.h 1.2 2002/12/07 13:54:02 kls Exp $ */ #ifndef __DISEQC_H @@ -31,7 +31,6 @@ private: char polarization; int lof; char *commands; - char *currentAction; bool parsing; uchar codes[MaxDiseqcCodes]; int numCodes; @@ -41,7 +40,14 @@ public: cDiseqc(void); ~cDiseqc(); bool Parse(const char *s); - eDiseqcActions Execute(bool Start = false); + eDiseqcActions Execute(char **CurrentAction); + // Parses the DiSEqC commands and returns the appropriate action code + // with every call. CurrentAction must be the address of a character pointer, + // which is initialized to NULL. This pointer is used internally while parsing + // the commands and shall not be modified once Execute() has been called with + // it. Call Execute() repeatedly (always providing the same CurrentAction pointer) + // until it returns daNone. After a successful execution of all commands + // *CurrentAction points to the value 0x00. int Source(void) const { return source; } int Slof(void) const { return slof; } char Polarization(void) const { return polarization; } |