MythTV  master
Macros | Functions | Variables
main_helpers.cpp File Reference
#include "mythconfig.h"
#include <cerrno>
#include <csignal>
#include <cstdlib>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <QCoreApplication>
#include <QFileInfo>
#include <QRegExp>
#include <QFile>
#include <QDir>
#include <QMap>
#include "tv_rec.h"
#include "scheduledrecording.h"
#include "autoexpire.h"
#include "scheduler.h"
#include "mainserver.h"
#include "encoderlink.h"
#include "remoteutil.h"
#include "backendhousekeeper.h"
#include "mythcontext.h"
#include "mythversion.h"
#include "mythdb.h"
#include "dbutil.h"
#include "exitcodes.h"
#include "compat.h"
#include "storagegroup.h"
#include "programinfo.h"
#include "dbcheck.h"
#include "jobqueue.h"
#include "previewgenerator.h"
#include "commandlineparser.h"
#include "mythsystemevent.h"
#include "main_helpers.h"
#include "backendcontext.h"
#include "mythtranslation.h"
#include "mythtimezone.h"
#include "signalhandling.h"
#include "hardwareprofile.h"
#include "eitcache.h"
#include "mediaserver.h"
#include "httpstatus.h"
#include "mythlogging.h"
Include dependency graph for main_helpers.cpp:

Go to the source code of this file.

Macros

#define be_sd_notify(x)
 
#define LOC   QString("MythBackend: ")
 
#define LOC_WARN   QString("MythBackend, Warning: ")
 
#define LOC_ERR   QString("MythBackend, Error: ")
 

Functions

bool setupTVs (bool ismaster, bool &error)
 
void cleanup (void)
 
int handle_command (const MythBackendCommandLineParser &cmdline)
 
int connect_to_master (void)
 
void print_warnings (const MythBackendCommandLineParser &cmdline)
 
int run_backend (MythBackendCommandLineParser &cmdline)
 

Variables

static MainServermainServer = nullptr
 

Macro Definition Documentation

◆ be_sd_notify

#define be_sd_notify (   x)

Definition at line 10 of file main_helpers.cpp.

◆ LOC

#define LOC   QString("MythBackend: ")

Definition at line 64 of file main_helpers.cpp.

◆ LOC_WARN

#define LOC_WARN   QString("MythBackend, Warning: ")

Definition at line 65 of file main_helpers.cpp.

◆ LOC_ERR

#define LOC_ERR   QString("MythBackend, Error: ")

Definition at line 66 of file main_helpers.cpp.

Function Documentation

◆ setupTVs()

bool setupTVs ( bool  ismaster,
bool error 
)

Definition at line 70 of file main_helpers.cpp.

Referenced by run_backend().

◆ cleanup()

void cleanup ( void  )

Definition at line 230 of file main_helpers.cpp.

Referenced by run_backend().

◆ handle_command()

int handle_command ( const MythBackendCommandLineParser cmdline)

Definition at line 299 of file main_helpers.cpp.

Referenced by main().

◆ connect_to_master()

int connect_to_master ( void  )

Definition at line 443 of file main_helpers.cpp.

Referenced by run_backend().

◆ print_warnings()

void print_warnings ( const MythBackendCommandLineParser cmdline)

Definition at line 527 of file main_helpers.cpp.

Referenced by run_backend().

◆ run_backend()

int run_backend ( MythBackendCommandLineParser cmdline)

Definition at line 555 of file main_helpers.cpp.

Referenced by main().

Variable Documentation

◆ mainServer

MainServer* mainServer = nullptr
static

Definition at line 68 of file main_helpers.cpp.

Referenced by cleanup(), run_backend(), and HttpStatus::SetMainServer().