summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-04-15 17:38:11 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-04-15 17:38:11 +0200
commit735093b8faef4f667e6a6c65f7290858286816e3 (patch)
treef5b3cb133d5ec1ede63de04cf9c394bcf4a514a2 /config.h
parent571686d90996968c01a8bc560659e364efab2942 (diff)
downloadvdr-735093b8faef4f667e6a6c65f7290858286816e3.tar.gz
vdr-735093b8faef4f667e6a6c65f7290858286816e3.tar.bz2
Implemented actual record/replay; support for CICAM0.0.3
Diffstat (limited to 'config.h')
-rw-r--r--config.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/config.h b/config.h
index 51fd22e0..6184f562 100644
--- a/config.h
+++ b/config.h
@@ -4,12 +4,13 @@
* See the main source file 'osm.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 1.2 2000/03/05 14:58:23 kls Exp $
+ * $Id: config.h 1.3 2000/04/15 12:44:23 kls Exp $
*/
#ifndef __CONFIG_H
#define __CONFIG_H
+#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <time.h>
@@ -30,6 +31,14 @@ enum eKeys { // "Up" and "Down" must be the first two keys!
kGreen,
kYellow,
kBlue,
+ kRecord,
+ kPause,
+ kStop,
+ kBegin,
+ kSearchForward,
+ kSearchBack,
+ kSkipForward,
+ kSkipBack,
kNone
};
@@ -64,6 +73,8 @@ public:
int srate;
int vpid;
int apid;
+ int ca;
+ int pnr;
cChannel(void);
cChannel(const cChannel *Channel);
bool Parse(char *s);
@@ -84,11 +95,10 @@ public:
int start;
int stop;
//TODO VPS???
- char quality;
int priority;
int lifetime;
char file[MaxFileName];
- cTimer(void);
+ cTimer(bool Instant = false);
bool Parse(char *s);
bool Save(FILE *f);
bool IsSingleEvent(void);
@@ -128,7 +138,7 @@ public:
if (l->Parse(buffer))
Add(l);
else {
- fprintf(stderr, "error in %s, line %d\n", fileName, line);
+ esyslog(LOG_ERR, "error in %s, line %d\n", fileName, line);
delete l;
result = false;
break;
@@ -137,7 +147,7 @@ public:
fclose(f);
}
else {
- fprintf(stderr, "can't open '%s'\n", fileName);
+ esyslog(LOG_ERR, "can't open '%s'\n", fileName);
result = false;
}
return result;
@@ -168,7 +178,6 @@ class cChannels : public cConfig<cChannel> {};
class cTimers : public cConfig<cTimer> {};
extern int CurrentChannel;
-extern bool ChannelLocked;
extern cChannels Channels;
extern cTimers Timers;