MythTV  master
Macros | Functions | Variables
mythbackend_main_helpers.cpp File Reference
#include "libmythbase/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 <QFile>
#include <QDir>
#include <QMap>
#include "libmyth/mythcontext.h"
#include "libmythbase/compat.h"
#include "libmythbase/dbutil.h"
#include "libmythbase/exitcodes.h"
#include "libmythbase/hardwareprofile.h"
#include "libmythbase/mythdb.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythtimezone.h"
#include "libmythbase/mythtranslation.h"
#include "libmythbase/mythversion.h"
#include "libmythbase/programinfo.h"
#include "libmythbase/remoteutil.h"
#include "libmythbase/signalhandling.h"
#include "libmythbase/storagegroup.h"
#include "libmythtv/dbcheck.h"
#include "libmythtv/eitcache.h"
#include "libmythtv/jobqueue.h"
#include "libmythtv/mythsystemevent.h"
#include "libmythtv/previewgenerator.h"
#include "libmythtv/scheduledrecording.h"
#include "libmythtv/tv_rec.h"
#include "autoexpire.h"
#include "backendcontext.h"
#include "backendhousekeeper.h"
#include "encoderlink.h"
#include "httpstatus.h"
#include "mainserver.h"
#include "mediaserver.h"
#include "mythbackend_commandlineparser.h"
#include "mythbackend_main_helpers.h"
#include "scheduler.h"
#include "libmythbase/http/mythhttproot.h"
#include "libmythbase/http/mythhttprewrite.h"
#include "libmythbase/http/mythhttpinstance.h"
#include "servicesv2/v2myth.h"
#include "servicesv2/v2video.h"
#include "servicesv2/v2dvr.h"
#include "servicesv2/v2content.h"
#include "servicesv2/v2guide.h"
#include "servicesv2/v2channel.h"
#include "servicesv2/v2status.h"
#include "servicesv2/v2capture.h"
#include "servicesv2/v2music.h"
#include "servicesv2/v2config.h"
Include dependency graph for mythbackend_main_helpers.cpp:

Go to the source code of this file.

Macros

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

Functions

static void be_sd_notify (const char *)
 
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)
 
int run_setup_webserver ()
 

Variables

static HouseKeepergHousekeeping { nullptr }
 
static JobQueuegJobQueue { nullptr }
 
static MythSystemEventHandlergSysEventHandler { nullptr }
 
static MediaServerg_pUPnp { nullptr }
 
static MainServermainServer { nullptr }
 
static QString gPidFile
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("MythBackend: ")

Definition at line 76 of file mythbackend_main_helpers.cpp.

◆ LOC_WARN

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

Definition at line 77 of file mythbackend_main_helpers.cpp.

◆ LOC_ERR

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

Definition at line 78 of file mythbackend_main_helpers.cpp.

Function Documentation

◆ be_sd_notify()

static void be_sd_notify ( const char *  )
inlinestatic

Definition at line 6 of file mythbackend_main_helpers.cpp.

Referenced by run_backend(), and run_setup_webserver().

◆ setupTVs()

bool setupTVs ( bool  ismaster,
bool error 
)

Definition at line 87 of file mythbackend_main_helpers.cpp.

Referenced by run_backend().

◆ cleanup()

void cleanup ( void  )

Definition at line 262 of file mythbackend_main_helpers.cpp.

Referenced by run_backend().

◆ handle_command()

int handle_command ( const MythBackendCommandLineParser cmdline)

Definition at line 331 of file mythbackend_main_helpers.cpp.

Referenced by main().

◆ connect_to_master()

int connect_to_master ( void  )

Definition at line 412 of file mythbackend_main_helpers.cpp.

Referenced by run_backend().

◆ print_warnings()

void print_warnings ( const MythBackendCommandLineParser cmdline)

Definition at line 496 of file mythbackend_main_helpers.cpp.

Referenced by run_backend().

◆ run_backend()

int run_backend ( MythBackendCommandLineParser cmdline)

Definition at line 524 of file mythbackend_main_helpers.cpp.

Referenced by main().

◆ run_setup_webserver()

int run_setup_webserver ( )

Definition at line 797 of file mythbackend_main_helpers.cpp.

Referenced by run_backend().

Variable Documentation

◆ gHousekeeping

HouseKeeper* gHousekeeping { nullptr }
static

Definition at line 80 of file mythbackend_main_helpers.cpp.

Referenced by cleanup(), and run_backend().

◆ gJobQueue

JobQueue* gJobQueue { nullptr }
static

Definition at line 81 of file mythbackend_main_helpers.cpp.

Referenced by cleanup(), and run_backend().

◆ gSysEventHandler

MythSystemEventHandler* gSysEventHandler { nullptr }
static

Definition at line 82 of file mythbackend_main_helpers.cpp.

Referenced by cleanup(), and run_backend().

◆ g_pUPnp

MediaServer* g_pUPnp { nullptr }
static

Definition at line 83 of file mythbackend_main_helpers.cpp.

Referenced by cleanup(), and run_backend().

◆ mainServer

MainServer* mainServer { nullptr }
static

Definition at line 84 of file mythbackend_main_helpers.cpp.

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

◆ gPidFile

QString gPidFile
static

Definition at line 85 of file mythbackend_main_helpers.cpp.

Referenced by cleanup(), and run_backend().