diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-10-06 18:00:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-10-06 18:00:00 +0200 |
commit | 313e33539cd22fd571fc9a0f9f841173e9faebc4 (patch) | |
tree | 29b3031574b45c44e21bcfea6128fbbcd4f959da /config.h | |
parent | d08073815d6d9132f7fb5cd9f82877967dc6b0e4 (diff) | |
download | vdr-patch-lnbsharing-313e33539cd22fd571fc9a0f9f841173e9faebc4.tar.gz vdr-patch-lnbsharing-313e33539cd22fd571fc9a0f9f841173e9faebc4.tar.bz2 |
Version 1.1.12vdr-1.1.12
- Fixed a missing Flush() call in the remote control learning procedure (thanks
to Oliver Endriss).
- Modified channel handling to cover all parameters necessary for DVB-C and DVB-T
(see man vdr(5) for the meaning of the additional parameters stored in the field
previously named 'polarisation'). Thanks to Uwe Scheffler and Andy Carter for testing.
If you have a system with different kinds of DVB cards, like DVB-T and DVB-C,
for instance, there is no more need to distinguish the channels through the
'Ca' parameter in order to assign them to the various DVB cards. This is now
taken care of by the "source" parameter. So a channel marked as "terrestrial",
for example, will only be received on DVB-T cards.
Note that the cChannel class has been moved into a separate file (channels.[ch]),
and that all data members have been made private and are now only accessible
through member functions. You may have to change any plugin code that accesses
cChannel data accordingly.
- The new configuration file 'sources.conf' contains the various signal sources
(satellites, cable and terrestrial) which are used in 'channels.conf' and
'diseqc.conf' (thanks to Reinhard Walter Buchner for adding some satellites to
'sources.conf' and Oliver Endriss and Lauri Tischler for testing and debugging).
- The 'diseqc' parameter in the channel definitions has been redefined to hold the
"source" of the given channel (which can be either a satellite, cable or terrestrial).
For compatibility with channels.conf files from older versions, numeric values in
this parameter will be tolerated, but they have no meaning. If you want to use
DiSEqC you will need to replace these old values with the proper source identifiers
defined in the new configuration file 'sources.conf'. See how this is done in the
'channels.conf' file that comes with the VDR package.
- The new configuration file 'diseqc.conf' can be used to set up the individual
diseqc configuration (see man vdr(5) for a description of the file format).
- The "Edit channel" menu has a new entry "Source:" in which the source of this
channel can be selected (either a satellite, cable or terrestrial). The set of
parameters at the end of this menu will change according to the type of source.
- The "Use DiSEqC" parameter in the "Setup/LNB" menu has been moved to the beginning
of the list and disables the rest of the parameters when set to "yes", since these
are now only meaningful if DiSEqC is _not_ used.
- Removed some unnecessary #includes from eit.c and changed cMenuRecordings::Del()
to cMenuRecordings::Delete() to avoid warnings in gcc-3.2 (thanks to Andreas
Schultz for pointing this out).
- Improved skipping channels that are (currently) not available (thanks to Stefan
Huelswitt).
- Updated channels.conf.terr and channels.conf.cable (thanks to Uwe Scheffler).
- Fixed a bug when pressing the "Blue" button in the main menu without having
displayed it (thanks to Oliver Endriss for reporting this one).
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 52 |
1 files changed, 3 insertions, 49 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.129 2002/09/29 10:42:17 kls Exp $ + * $Id: config.h 1.131 2002/10/05 09:58:58 kls Exp $ */ #ifndef __CONFIG_H @@ -20,7 +20,7 @@ #include "eit.h" #include "tools.h" -#define VDRVERSION "1.1.11" +#define VDRVERSION "1.1.12" #define MAXPRIORITY 99 #define MAXLIFETIME 99 @@ -32,34 +32,6 @@ #define MaxFileName 256 -#define ISTRANSPONDER(f1, f2) (abs((f1) - (f2)) < 4) - -class cChannel : public cListObject { -private: - static char *buffer; - static const char *ToText(cChannel *Channel); -public: - enum { MaxChannelName = 32 }; // 31 chars + terminating 0! - char name[MaxChannelName]; - int frequency; // MHz - char polarization; - int diseqc; - int srate; - int vpid; - int apid1, apid2; - int dpid1, dpid2; - int tpid; - int ca; - int pnr; - int number; // Sequence number assigned on load - bool groupSep; - cChannel(void); - cChannel(const cChannel *Channel); - const char *ToText(void); - bool Parse(const char *s); - bool Save(FILE *f); - }; - enum eTimerActive { taInactive = 0, taActive = 1, taInstant = 2, @@ -193,7 +165,7 @@ public: if (l->Parse(buffer)) Add(l); else { - esyslog("error in %s, line %d\n", fileName, line); + esyslog("ERROR: error in %s, line %d\n", fileName, line); delete l; result = false; break; @@ -229,23 +201,6 @@ public: } }; -class cChannels : public cConfig<cChannel> { -protected: - int maxNumber; -public: - cChannels(void) { maxNumber = 0; } - virtual bool Load(const char *FileName, bool AllowComments = false); - int GetNextGroup(int Idx); // Get next channel group - int GetPrevGroup(int Idx); // Get previous channel group - int GetNextNormal(int Idx); // Get next normal channel (not group) - void ReNumber(void); // Recalculate 'number' based on channel type - cChannel *GetByNumber(int Number); - cChannel *GetByServiceID(unsigned short ServiceId); - const char *GetChannelNameByNumber(int Number); - bool SwitchTo(int Number); - int MaxNumber(void) { return maxNumber; } - }; - class cTimers : public cConfig<cTimer> { public: cTimer *GetTimer(cTimer *Timer); @@ -265,7 +220,6 @@ public: const cCaDefinition *Get(int Number); }; -extern cChannels Channels; extern cTimers Timers; extern cCommands Commands; extern cSVDRPhosts SVDRPhosts; |