|
MythTV master
|
#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 "libmythbase/compat.h"#include "libmythbase/dbutil.h"#include "libmythbase/exitcodes.h"#include "libmythbase/hardwareprofile.h"#include "libmythbase/mythcorecontext.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/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 "libmythupnp/ssdp.h"#include "libmythupnp/taskqueue.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"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 HouseKeeper * | gHousekeeping { nullptr } |
| static JobQueue * | gJobQueue { nullptr } |
| static MythSystemEventHandler * | gSysEventHandler { nullptr } |
| static MediaServer * | g_pUPnp { nullptr } |
| static MainServer * | mainServer { nullptr } |
| #define LOC QString("MythBackend: ") |
Definition at line 77 of file mythbackend_main_helpers.cpp.
| #define LOC_ERR QString("MythBackend, Error: ") |
Definition at line 79 of file mythbackend_main_helpers.cpp.
| #define LOC_WARN QString("MythBackend, Warning: ") |
Definition at line 78 of file mythbackend_main_helpers.cpp.
|
inlinestatic |
Definition at line 6 of file mythbackend_main_helpers.cpp.
Referenced by run_backend(), and run_setup_webserver().
| void cleanup | ( | void | ) |
Definition at line 264 of file mythbackend_main_helpers.cpp.
Referenced by run_backend().
| int connect_to_master | ( | void | ) |
Definition at line 402 of file mythbackend_main_helpers.cpp.
Referenced by run_backend().
| int handle_command | ( | const MythBackendCommandLineParser & | cmdline | ) |
Definition at line 321 of file mythbackend_main_helpers.cpp.
Referenced by main().
| void print_warnings | ( | const MythBackendCommandLineParser & | cmdline | ) |
Definition at line 486 of file mythbackend_main_helpers.cpp.
Referenced by run_backend().
| int run_backend | ( | MythBackendCommandLineParser & | cmdline | ) |
Definition at line 514 of file mythbackend_main_helpers.cpp.
Referenced by main().
| int run_setup_webserver | ( | void | ) |
Definition at line 777 of file mythbackend_main_helpers.cpp.
Referenced by run_backend().
Definition at line 87 of file mythbackend_main_helpers.cpp.
Referenced by run_backend().
|
static |
Definition at line 84 of file mythbackend_main_helpers.cpp.
Referenced by cleanup(), and run_backend().
|
static |
Definition at line 81 of file mythbackend_main_helpers.cpp.
Referenced by cleanup(), and run_backend().
|
static |
Definition at line 82 of file mythbackend_main_helpers.cpp.
Referenced by cleanup(), and run_backend().
|
static |
Definition at line 83 of file mythbackend_main_helpers.cpp.
Referenced by cleanup(), and run_backend().
|
static |
Definition at line 85 of file mythbackend_main_helpers.cpp.
Referenced by cleanup(), run_backend(), and HttpStatus::SetMainServer().