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 "libmyth/programinfo.h"
#include "libmyth/remoteutil.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/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)
 

Variables

static MainServermainServer = nullptr
 

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().

◆ setupTVs()

bool setupTVs ( bool  ismaster,
bool error 
)

Definition at line 82 of file mythbackend_main_helpers.cpp.

Referenced by run_backend().

◆ cleanup()

void cleanup ( void  )

Definition at line 257 of file mythbackend_main_helpers.cpp.

Referenced by run_backend().

◆ handle_command()

int handle_command ( const MythBackendCommandLineParser cmdline)

Definition at line 326 of file mythbackend_main_helpers.cpp.

Referenced by main().

◆ connect_to_master()

int connect_to_master ( void  )

Definition at line 472 of file mythbackend_main_helpers.cpp.

Referenced by run_backend().

◆ print_warnings()

void print_warnings ( const MythBackendCommandLineParser cmdline)

Definition at line 556 of file mythbackend_main_helpers.cpp.

Referenced by run_backend().

◆ run_backend()

int run_backend ( MythBackendCommandLineParser cmdline)

Definition at line 584 of file mythbackend_main_helpers.cpp.

Referenced by main().

Variable Documentation

◆ mainServer

MainServer* mainServer = nullptr
static

Definition at line 80 of file mythbackend_main_helpers.cpp.

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