summaryrefslogtreecommitdiff
path: root/diseqc.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-12-08 09:55:26 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-12-08 09:55:26 +0100
commitb9422baff21024b2ca16e7cbb3dc049cf16ad371 (patch)
tree1d805fed0f9745a3892912cfe6378ff7fd7c5596 /diseqc.h
parent2d2369fca0c1d715009c9c29b03ffd47c0afa659 (diff)
downloadvdr-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.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/diseqc.h b/diseqc.h
index f2b0e99c..602bdecb 100644
--- a/diseqc.h
+++ b/diseqc.h
@@ -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; }