mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Some code cleanup
This commit is contained in:
parent
e1eb84db49
commit
56f1b1b741
12
channels.c
12
channels.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: channels.c 1.57 2008/02/08 13:43:07 kls Exp $
|
||||
* $Id: channels.c 1.58 2008/02/10 14:11:47 kls Exp $
|
||||
*/
|
||||
|
||||
#include "channels.h"
|
||||
@ -18,7 +18,7 @@
|
||||
// format characters in order to allow any number of blanks after a numeric
|
||||
// value!
|
||||
|
||||
// -- Channel Parameter Maps -------------------------------------------------
|
||||
// --- Channel Parameter Maps ------------------------------------------------
|
||||
|
||||
const tChannelParameterMap InversionValues[] = {
|
||||
{ 0, INVERSION_OFF },
|
||||
@ -123,7 +123,7 @@ int MapToDriver(int Value, const tChannelParameterMap *Map)
|
||||
return -1;
|
||||
}
|
||||
|
||||
// -- tChannelID -------------------------------------------------------------
|
||||
// --- tChannelID ------------------------------------------------------------
|
||||
|
||||
const tChannelID tChannelID::InvalidID;
|
||||
|
||||
@ -158,7 +158,7 @@ tChannelID &tChannelID::ClrPolarization(void)
|
||||
return *this;
|
||||
}
|
||||
|
||||
// -- cChannel ---------------------------------------------------------------
|
||||
// --- cChannel --------------------------------------------------------------
|
||||
|
||||
cChannel::cChannel(void)
|
||||
{
|
||||
@ -850,7 +850,7 @@ bool cChannel::Save(FILE *f)
|
||||
return fprintf(f, "%s", *ToText()) > 0;
|
||||
}
|
||||
|
||||
// -- cChannelSorter ---------------------------------------------------------
|
||||
// --- cChannelSorter --------------------------------------------------------
|
||||
|
||||
class cChannelSorter : public cListObject {
|
||||
public:
|
||||
@ -866,7 +866,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
// -- cChannels --------------------------------------------------------------
|
||||
// --- cChannels -------------------------------------------------------------
|
||||
|
||||
cChannels Channels;
|
||||
|
||||
|
12
config.c
12
config.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: config.c 1.158 2007/11/25 13:46:27 kls Exp $
|
||||
* $Id: config.c 1.159 2008/02/10 14:10:48 kls Exp $
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
@ -86,7 +86,7 @@ const char *cCommand::Execute(const char *Parameters)
|
||||
return result;
|
||||
}
|
||||
|
||||
// -- cSVDRPhost -------------------------------------------------------------
|
||||
// --- cSVDRPhost ------------------------------------------------------------
|
||||
|
||||
cSVDRPhost::cSVDRPhost(void)
|
||||
{
|
||||
@ -122,12 +122,12 @@ bool cSVDRPhost::Accepts(in_addr_t Address)
|
||||
return (Address & mask) == (addr.s_addr & mask);
|
||||
}
|
||||
|
||||
// -- cCommands --------------------------------------------------------------
|
||||
// --- cCommands -------------------------------------------------------------
|
||||
|
||||
cCommands Commands;
|
||||
cCommands RecordingCommands;
|
||||
|
||||
// -- cSVDRPhosts ------------------------------------------------------------
|
||||
// --- cSVDRPhosts -----------------------------------------------------------
|
||||
|
||||
cSVDRPhosts SVDRPhosts;
|
||||
|
||||
@ -142,7 +142,7 @@ bool cSVDRPhosts::Acceptable(in_addr_t Address)
|
||||
return false;
|
||||
}
|
||||
|
||||
// -- cSetupLine -------------------------------------------------------------
|
||||
// --- cSetupLine ------------------------------------------------------------
|
||||
|
||||
cSetupLine::cSetupLine(void)
|
||||
{
|
||||
@ -208,7 +208,7 @@ bool cSetupLine::Save(FILE *f)
|
||||
return fprintf(f, "%s%s%s = %s\n", plugin ? plugin : "", plugin ? "." : "", name, value) > 0;
|
||||
}
|
||||
|
||||
// -- cSetup -----------------------------------------------------------------
|
||||
// --- cSetup ----------------------------------------------------------------
|
||||
|
||||
cSetup Setup;
|
||||
|
||||
|
6
diseqc.c
6
diseqc.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: diseqc.c 1.5 2005/12/30 15:41:48 kls Exp $
|
||||
* $Id: diseqc.c 1.6 2008/02/10 14:09:27 kls Exp $
|
||||
*/
|
||||
|
||||
#include "diseqc.h"
|
||||
@ -12,7 +12,7 @@
|
||||
#include "sources.h"
|
||||
#include "thread.h"
|
||||
|
||||
// -- cDiseqc ----------------------------------------------------------------
|
||||
// --- cDiseqc ---------------------------------------------------------------
|
||||
|
||||
cDiseqc::cDiseqc(void)
|
||||
{
|
||||
@ -122,7 +122,7 @@ cDiseqc::eDiseqcActions cDiseqc::Execute(char **CurrentAction)
|
||||
return daNone;
|
||||
}
|
||||
|
||||
// -- cDiseqcs ---------------------------------------------------------------
|
||||
// --- cDiseqcs --------------------------------------------------------------
|
||||
|
||||
cDiseqcs Diseqcs;
|
||||
|
||||
|
10
keys.c
10
keys.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: keys.c 1.16 2007/09/26 12:35:21 kls Exp $
|
||||
* $Id: keys.c 1.17 2008/02/10 14:08:48 kls Exp $
|
||||
*/
|
||||
|
||||
#include "keys.h"
|
||||
@ -70,7 +70,7 @@ static tKey keyTable[] = { // "Up" and "Down" must be the first two keys!
|
||||
{ kNone, NULL },
|
||||
};
|
||||
|
||||
// -- cKey -------------------------------------------------------------------
|
||||
// --- cKey ------------------------------------------------------------------
|
||||
|
||||
cKey::cKey(void)
|
||||
{
|
||||
@ -149,7 +149,7 @@ const char *cKey::ToString(eKeys Key, bool Translate)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// -- cKeys ------------------------------------------------------------------
|
||||
// --- cKeys -----------------------------------------------------------------
|
||||
|
||||
cKeys Keys;
|
||||
|
||||
@ -194,7 +194,7 @@ void cKeys::PutSetup(const char *Remote, const char *Setup)
|
||||
esyslog("ERROR: called PutSetup() for %s, but setup has already been defined!", Remote);
|
||||
}
|
||||
|
||||
// -- cKeyMacro --------------------------------------------------------------
|
||||
// --- cKeyMacro -------------------------------------------------------------
|
||||
|
||||
cKeyMacro::cKeyMacro(void)
|
||||
{
|
||||
@ -260,7 +260,7 @@ bool cKeyMacro::Parse(char *s)
|
||||
return true;
|
||||
}
|
||||
|
||||
// -- cKeyMacros -------------------------------------------------------------
|
||||
// --- cKeyMacros ------------------------------------------------------------
|
||||
|
||||
cKeyMacros KeyMacros;
|
||||
|
||||
|
@ -4,13 +4,13 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: sources.c 1.3 2004/12/26 11:58:52 kls Exp $
|
||||
* $Id: sources.c 1.4 2008/02/10 14:07:26 kls Exp $
|
||||
*/
|
||||
|
||||
#include "sources.h"
|
||||
#include <ctype.h>
|
||||
|
||||
// -- cSource ----------------------------------------------------------------
|
||||
// --- cSource ---------------------------------------------------------------
|
||||
|
||||
cSource::cSource(void)
|
||||
{
|
||||
@ -101,7 +101,7 @@ int cSource::FromData(eSourceType SourceType, int Position, bool East)
|
||||
return code;
|
||||
}
|
||||
|
||||
// -- cSources ---------------------------------------------------------------
|
||||
// --- cSources --------------------------------------------------------------
|
||||
|
||||
cSources Sources;
|
||||
|
||||
|
4
spu.c
4
spu.c
@ -6,13 +6,13 @@
|
||||
* This code is distributed under the terms and conditions of the
|
||||
* GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
|
||||
*
|
||||
* $Id: spu.c 1.3 2006/04/17 11:00:00 kls Exp $
|
||||
* $Id: spu.c 1.4 2008/02/10 14:06:48 kls Exp $
|
||||
*/
|
||||
|
||||
#include "spu.h"
|
||||
#include <inttypes.h>
|
||||
|
||||
// -- cSpuDecoder ------------------------------------------------------------
|
||||
// --- cSpuDecoder -----------------------------------------------------------
|
||||
/*
|
||||
cSpuDecoder::cSpuDecoder()
|
||||
{};
|
||||
|
6
timers.c
6
timers.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: timers.c 1.69 2008/02/10 12:22:02 kls Exp $
|
||||
* $Id: timers.c 1.70 2008/02/10 14:05:49 kls Exp $
|
||||
*/
|
||||
|
||||
#include "timers.h"
|
||||
@ -19,7 +19,7 @@
|
||||
// format characters in order to allow any number of blanks after a numeric
|
||||
// value!
|
||||
|
||||
// -- cTimer -----------------------------------------------------------------
|
||||
// --- cTimer ----------------------------------------------------------------
|
||||
|
||||
cTimer::cTimer(bool Instant, bool Pause, cChannel *Channel)
|
||||
{
|
||||
@ -608,7 +608,7 @@ void cTimer::OnOff(void)
|
||||
Matches(); // refresh start and end time
|
||||
}
|
||||
|
||||
// -- cTimers ----------------------------------------------------------------
|
||||
// --- cTimers ---------------------------------------------------------------
|
||||
|
||||
cTimers Timers;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user