|
vdr 2.8.3
|
#include <getopt.h>#include <grp.h>#include <langinfo.h>#include <locale.h>#include <malloc.h>#include <pwd.h>#include <signal.h>#include <stdlib.h>#include <sys/capability.h>#include <sys/prctl.h>#include <termios.h>#include <unistd.h>#include "args.h"#include "audio.h"#include "channels.h"#include "config.h"#include "cutter.h"#include "device.h"#include "diseqc.h"#include "dvbdevice.h"#include "eitscan.h"#include "epg.h"#include "i18n.h"#include "interface.h"#include "keys.h"#include "libsi/si.h"#include "lirc.h"#include "menu.h"#include "osdbase.h"#include "pes2ts.h"#include "plugin.h"#include "recording.h"#include "shutdown.h"#include "skinclassic.h"#include "skinlcars.h"#include "skinsttng.h"#include "sourceparams.h"#include "sources.h"#include "status.h"#include "svdrp.h"#include "themes.h"#include "timers.h"#include "tools.h"#include "transfer.h"#include "videodir.h"Go to the source code of this file.
Classes | |
| class | cSpinUpDisk |
Macros | |
| #define | MINCHANNELWAIT 10 |
| #define | ACTIVITYTIMEOUT 60 |
| #define | MEMCLEANUPDELTA 3600 |
| #define | SHUTDOWNWAIT 300 |
| #define | SHUTDOWNRETRY 360 |
| #define | SHUTDOWNFORCEPROMPT 5 |
| #define | SHUTDOWNCANCELPROMPT 5 |
| #define | RESTARTCANCELPROMPT 5 |
| #define | MANUALSTART 600 |
| #define | CHANNELSAVEDELTA 600 |
| #define | DEVICEREADYTIMEOUT 30 |
| #define | MENUTIMEOUT 120 |
| #define | TIMERCHECKDELTA 5 |
| #define | TIMERDEVICETIMEOUT 8 |
| #define | TIMERLOOKAHEADTIME 60 |
| #define | VPSLOOKAHEADTIME 24 |
| #define | VPSUPTODATETIME 3600 |
| #define | EXIT(v) |
| #define | EXITWATCHDOG 40 |
| #define | SPINUPDISK_TIME 60 |
| #define | dd(a, b) |
| #define | DEFAULTSVDRPPORT 6419 |
| #define | DEFAULTWATCHDOG 0 |
| #define | DEFAULTVIDEODIR VIDEODIR |
| #define | DEFAULTCONFDIR dd(CONFDIR, VideoDirectory) |
| #define | DEFAULTARGSDIR dd(ARGSDIR, "/etc/vdr/conf.d") |
| #define | DEFAULTCACHEDIR dd(CACHEDIR, VideoDirectory) |
| #define | DEFAULTRESDIR dd(RESDIR, ConfigDirectory) |
| #define | DEFAULTPLUGINDIR PLUGINDIR |
| #define | DEFAULTLOCDIR LOCDIR |
| #define | DEFAULTEPGDATAFILENAME "epg.data" |
| #define | DELETE_MENU ((IsInfoMenu &= (Menu == NULL)), delete Menu, Menu = NULL) |
| #define | DirectMainFunction(function...) |
Functions | |
| static bool | SetUser (const char *User, bool UserDump) |
| static bool | DropCaps (void) |
| static bool | SetKeepCaps (bool On) |
| static void | SignalHandler (int signum) |
| static void | Watchdog (int signum) |
| int | main (int argc, char *argv[]) |
Variables | |
| static volatile sig_atomic_t | LastSignal = 0 |
| #define dd | ( | a, | |
| b ) |
| #define DEFAULTEPGDATAFILENAME "epg.data" |
Referenced by main().
| #define DEFAULTLOCDIR LOCDIR |
Referenced by main().
| #define DEFAULTPLUGINDIR PLUGINDIR |
Referenced by main().
| #define DEFAULTSVDRPPORT 6419 |
Referenced by main().
| #define DEFAULTVIDEODIR VIDEODIR |
Referenced by main().
| #define DEFAULTWATCHDOG 0 |
Referenced by main().
| #define DELETE_MENU ((IsInfoMenu &= (Menu == NULL)), delete Menu, Menu = NULL) |
Referenced by main().
| #define DirectMainFunction | ( | function... | ) |
Referenced by main().
| #define EXIT | ( | v | ) |
Definition at line 95 of file vdr.c.
Referenced by main().
| #define EXITWATCHDOG 40 |
Definition at line 188 of file vdr.c.
Referenced by Watchdog().
| #define SPINUPDISK_TIME 60 |
Definition at line 229 of file vdr.c.
Referenced by cSpinUpDisk::Check().
|
static |
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 252 of file vdr.c.
References cEITScanner::Active(), cRecordControls::Active(), cThread::Active(), cEITScanner::Activity(), ACTIVITYTIMEOUT, cDevice::ActualDevice(), AddDirectory(), cPluginManager::AddPlugin(), cTimers::AdjustSpawnedTimers(), cChannel::Apid(), APIVERSION, AssertFreeDiskSpace(), cControl::Attach(), Audios, cDvbDevice::BondDevices(), CamControl(), CamMenuActive(), CamResponsesLoad(), CamSlots, cCountdown::Cancel(), cArgs::cArgs(), cDisplayChannel::cDisplayChannel(), cExternalAudio::cExternalAudio(), ChannelCamRelations, cRecordControls::ChannelDataModified(), CHANNELMOD_RETUNE, CHANNELSAVEDELTA, cSpinUpDisk::Check(), cShutdownHandler::CheckManualStart(), CiResourceHandlers, cSchedules::Cleanup(), cListBase::Clear(), cSkins::Clear(), cMenuMain::cMenuMain(), cPlugin::CommandLineHelp(), Commands, cInterface::Confirm(), cShutdownHandler::ConfirmRestart(), cShutdownHandler::ConfirmShutdown(), cControl::Control(), cShutdownHandler::countdown, cDisplaySubtitleTracks::Create(), cDisplayTracks::Create(), cDisplayVolume::Create(), cSkins::Current(), cDevice::CurrentChannel(), cSetup::CurrentChannel, cDevice::CurrentVolume(), cSetup::CurrentVolume, CutRecording(), DEFAULTARGSDIR, DEFAULTCACHEDIR, DEFAULTCONFDIR, DEFAULTEPGDATAFILENAME, DEFAULTLOCDIR, DEFAULTPLUGINDIR, DEFAULTRESDIR, DEFAULTSVDRPPORT, DEFAULTVIDEODIR, DEFAULTWATCHDOG, cRecordingsHandler::DelAll(), DELETE_MENU, cTimers::DeleteExpired(), cReplayControl::DelTimeshiftTimer(), cPlugin::Description(), cVideoDirectory::Destroy(), cPositioner::DestroyPositioner(), cSetup::DeviceBondings, cDevice::DeviceNumber(), DEVICEREADYTIMEOUT, DirectMainFunction, DirectoryEncoding, DirectoryNameMax, DirectoryOk(), DirectoryPathMax, cSetup::DiSEqC, Diseqcs, cShutdownHandler::DoExit(), cCountdown::Done(), DoneRecordingsPattern, cShutdownHandler::DoShutdown(), cChannel::Dpid(), DropCaps(), dsyslog, EITScanner, cShutdownHandler::EmergencyExitRequested(), EpgHandlers, Error(), esyslog, EXIT, cRecordingsHandler::Finished(), cList< T >::First(), Folders, cSetup::FontOsd, tChannelID::FromString(), GenerateIndex(), cKeyMacros::Get(), cArgs::GetArgc(), cArgs::GetArgv(), cChannels::GetChannelsRead(), cDevice::GetDevice(), cDevice::GetDeviceForTransponder(), cShutdownHandler::GetExitCode(), cFont::GetFontFileName(), cControl::GetInfo(), cInterface::GetKey(), cTimers::GetMatch(), cTimers::GetMaxPriority(), cPluginManager::GetPlugin(), cRemote::GetPlugin(), cPositioner::GetPositioner(), cSchedules::GetSchedulesRead(), cTimers::GetTimersRead(), cTimers::GetTimersWrite(), cDevice::HasDecoder(), cPluginManager::HasPlugins(), cDevice::HasProgramme(), cControl::Hide(), cPluginManager::Housekeeping(), I18nInitialize(), cSetup::InitialChannel, cDvbDevice::Initialize(), cPluginManager::InitializePlugins(), cSetup::InitialVolume, InstanceId, Interface, cOsdObject::IsMenu(), ISMODELESSKEY, isnumber(), cDisplayChannel::IsOpen(), cDisplaySubtitleTracks::IsOpen(), cDisplayTracks::IsOpen(), cOsd::IsOpen(), cDevice::IsPrimaryDevice(), ISREALKEY, cDevice::IsTunedToTransponder(), cShutdownHandler::IsUserInactive(), isyslog, k0, k1, k9, k_Plugin, k_Repeat, kAudio, kChanDn, kChannels, kChanPrev, kChanUp, kCommands, kDown, KeyMacros, Keys, kInfo, kLeft, kMenu, kMute, kNext, kNone, kOk, kPause, kPlay, kPlayPause, kPower, kPrev, kRecord, kRecordings, kRight, kSchedule, kSetup, kSubtitles, kTimers, kUp, kUser0, kUser9, kVolDn, kVolUp, cRemote::LastActivity(), cReplayControl::LastReplayed(), LastSignal, cControl::Launch(), cInterface::LearnKeys(), ListGarbageCollector, LIVEPRIORITY, cChannelCamRelations::Load(), cChannels::Load(), cConfig< T >::Load(), cDiseqcs::Load(), cDoneRecordings::Load(), cNestedItemList::Load(), cScrs::Load(), cSetup::Load(), cThemes::Load(), cTimers::Load(), cPluginManager::LoadPlugins(), LOCK_CHANNELS_READ, LOCK_SCHEDULES_READ, main(), cPlugin::MainMenuAction(), cPluginManager::MainThreadHook(), MANUALSTART, MAXDEVICES, cSetup::MaxVideoFileSize, MAXVIDEOFILESIZEDEFAULT, MAXVIDEOFILESIZETS, MEGABYTE, MEMCLEANUPDELTA, cSetup::MenuKeyCloses, MENUTIMEOUT, cSkins::Message(), MINCHANNELWAIT, MINPRIORITY, MINVIDEOFILESIZE, cChannels::ModifiedByUser(), cStatus::MsgChannelChange(), mtError, mtInfo, mtWarning, cPlugin::Name(), cSkin::Name(), cOsdObject::NeedsFastResponse(), cRecordings::NeedsUpdate(), cLircRemote::NewLircRemote(), cList< T >::Next(), NORMALKEY, cReplayControl::NowReplaying(), cChannel::Number(), cDevice::NumDevices(), cSetup::OpenRecMenuAtLastReplayed, osBack, osChannels, osCommands, cOsdProvider::OsdSizeChanged(), cSetup::OSDSkin, cSetup::OSDTheme, osEnd, osPause, osPlugin, osRecord, osRecordings, osReplay, osSchedule, osSetup, osStopReplay, osTimers, osUnknown, cSetup::PauseKeyHandling, cRecordControls::PauseLiveVideo(), Pes2Ts(), cMenuMain::PluginOsdObject(), cSchedule::PresentSeenWithin(), cDevice::PrimaryDevice(), cSetup::PrimaryDVB, cDisplaySubtitleTracks::Process(), cDisplayTracks::Process(), cDisplayVolume::Process(), cEITScanner::Process(), cRecordControls::Process(), cOsdObject::ProcessKey(), cSkins::ProcessQueuedMessages(), cListGarbageCollector::Purge(), cRemote::Put(), cRemote::PutMacro(), cSkins::QueueMessage(), cArgs::ReadDirectory(), RecordingCommands, RecordingsHandler, cSetup::RecordKeyHandling, Remotes, cStateKey::Remove(), RemoveDeletedRecordings(), ReportEpgBugFixStats(), cStateKey::Reset(), RESTARTCANCELPROMPT, cShutdownHandler::Retry(), cChannelCamRelations::Save(), cConfig< T >::Save(), cSetup::Save(), Scrs, cPlugin::SetCacheDirectory(), cRecordingUserCommand::SetCommand(), cPlugin::SetConfigDirectory(), cSkins::SetCurrent(), cPluginManager::SetDirectory(), cSchedules::SetEpgDataFileName(), cTimers::SetEvents(), SetKeepCaps(), cThread::SetMainThreadId(), cVideoDirectory::SetName(), cDevice::SetOccupied(), SI::SetOverrideCharacterTable(), cDevice::SetPrimaryDevice(), cMenuRecordings::SetRecording(), cPlugin::SetResourceDirectory(), cShutdownHandler::SetRetry(), cShutdownHandler::SetShutdownCommand(), SetSVDRPGrabImageDir(), SetSVDRPPorts(), cListBase::SetSyncStateKey(), cCharSetConv::SetSystemCharacterTable(), SI::SetSystemCharacterTable(), cThemes::SetThemesDirectory(), Setup, cDevice::SetUseDevice(), SetUser(), cShutdownHandler::SetUserInactive(), cShutdownHandler::SetUserInactiveTimeout(), cDevice::SetVolume(), cOsdObject::Show(), cControl::Shutdown(), cDevice::Shutdown(), cOsdProvider::Shutdown(), cPluginManager::Shutdown(), cRecordControls::Shutdown(), SHUTDOWNCANCELPROMPT, SHUTDOWNFORCEPROMPT, ShutdownHandler, SHUTDOWNRETRY, SHUTDOWNWAIT, SignalHandler(), Skins, SourceParams, Sources, cTimers::SpawnPatternTimers(), cSetup::SplitEditedFiles, cCountdown::Start(), cRecordControls::Start(), cThread::Start(), cPluginManager::StartPlugins(), StartSVDRPHandler(), cStateKey::StateChanged(), StateKeySVDRPRemoteTimersPoll, cPluginManager::StopPlugins(), cDevice::StopReplay(), StopSVDRPHandler(), StrToNum(), SVDRPhosts, cDevice::SwitchChannel(), cChannels::SwitchTo(), SysLogLevel, tfActive, tfVps, cSkin::Theme(), cThread::ThreadId(), TIMERCHECKDELTA, TIMERDEVICETIMEOUT, TIMERLOOKAHEADTIME, cDevice::ToggleMute(), tr, cCountdown::Update(), cRecordings::Update(), cOsdProvider::UpdateOsdSize(), cDvbDevice::useDvbDevices, VDRVERSION, cPlugin::Version(), VOLUMEDELTA, cChannel::Vpid(), VPSLOOKAHEADTIME, cSetup::VpsMargin, VPSUPTODATETIME, cCamSlots::WaitForAllCamSlotsReady(), cDevice::WaitForAllDevicesReady(), Watchdog(), and cSetup::ZapTimeout.
Referenced by main().
|
static |
Definition at line 162 of file vdr.c.
References SetKeepCaps().
Referenced by main(), and SetKeepCaps().
|
static |
|
static |
Definition at line 172 of file vdr.c.
References cShutdownHandler::Exit(), Interface, cInterface::Interrupt(), LastSignal, ShutdownHandler, and SignalHandler().
Referenced by main(), and SignalHandler().
|
static |
Definition at line 190 of file vdr.c.
References esyslog, EXITWATCHDOG, and Watchdog().
Referenced by main(), and Watchdog().
|
static |
Definition at line 97 of file vdr.c.
Referenced by main(), and SignalHandler().