|
void | cb () |
|
void | add_stream (IWvStream *istream, bool auto_free, const char *id) |
| Add a stream to the daemon; don't do anything if it goes !isok(). More...
|
|
void | add_restart_stream (IWvStream *istream, bool auto_free, const char *id) |
| Add a stream to the daemon; the daemon will restart, re-populating the initial streams using the callback passed to the constructor, if the stream goes !isok(). More...
|
|
void | add_die_stream (IWvStream *istream, bool auto_free, const char *id) |
| Add a stream to the daemon; if the stream goes !isok() the daemon will exit. More...
|
|
void | close_existing_connections_on_restart () |
| If this member is called then any existing streams on the globallist added after the WvDaemonCallback was executed will be closed if the daemon restarts; otherwise, they will persist after the restart. More...
|
|
void | setcallback (WvDaemonCallback cb) |
| Change the callback function and userdata. More...
|
|
const char * | wstype () const |
|
int | run (const char *argv0) |
| Run the daemon with no argument processing. Returns exit status. More...
|
|
int | run (int argc, char **argv) |
| Run the daemon after doing argument processing. Returns exit status. More...
|
|
void | restart () |
| Force the daemon to restart as soon as the run callback exits. More...
|
|
void | die (int status=0) |
| Force the daemon to exit as soon as the run callback exits. More...
|
|
bool | want_to_restart () const |
| Whether the daemon will restart when the run callback exits. More...
|
|
bool | want_to_die () const |
| Whether the daemon will quit when the run callback exits. More...
|
|
bool | should_run () const |
| Whether the daemon should continue runnning. More...
|
|
const WvStringList & | extra_args () const |
| Remaining args. More...
|
|
Definition at line 13 of file wvdbusd.cc.
◆ WvDBusDaemon()
WvDBusDaemon::WvDBusDaemon |
( |
| ) |
|
|
inline |
◆ ~WvDBusDaemon()
virtual WvDBusDaemon::~WvDBusDaemon |
( |
| ) |
|
|
inlinevirtual |
◆ cb()
void WvDBusDaemon::cb |
( |
| ) |
|
|
inline |
◆ do_start()
void WvStreamsDaemon::do_start |
( |
| ) |
|
|
protectedvirtualinherited |
◆ do_run()
void WvStreamsDaemon::do_run |
( |
| ) |
|
|
protectedvirtualinherited |
◆ do_stop()
void WvStreamsDaemon::do_stop |
( |
| ) |
|
|
protectedvirtualinherited |
◆ add_stream()
void WvStreamsDaemon::add_stream |
( |
IWvStream * |
istream, |
|
|
bool |
auto_free, |
|
|
const char * |
id |
|
) |
| |
|
inherited |
◆ add_restart_stream()
void WvStreamsDaemon::add_restart_stream |
( |
IWvStream * |
istream, |
|
|
bool |
auto_free, |
|
|
const char * |
id |
|
) |
| |
|
inherited |
◆ add_die_stream()
void WvStreamsDaemon::add_die_stream |
( |
IWvStream * |
istream, |
|
|
bool |
auto_free, |
|
|
const char * |
id |
|
) |
| |
|
inherited |
◆ close_existing_connections_on_restart()
void WvStreamsDaemon::close_existing_connections_on_restart |
( |
| ) |
|
|
inlineinherited |
If this member is called then any existing streams on the globallist added after the WvDaemonCallback was executed will be closed if the daemon restarts; otherwise, they will persist after the restart.
Definition at line 87 of file wvstreamsdaemon.h.
◆ setcallback()
void WvStreamsDaemon::setcallback |
( |
WvDaemonCallback |
cb | ) |
|
|
inherited |
◆ wstype()
const char * WvStreamsDaemon::wstype |
( |
| ) |
const |
|
inlineinherited |
◆ do_load()
void WvDaemon::do_load |
( |
| ) |
|
|
protectedvirtualinherited |
◆ do_unload()
void WvDaemon::do_unload |
( |
| ) |
|
|
protectedvirtualinherited |
◆ dec_log_level()
bool WvDaemon::dec_log_level |
( |
void * |
| ) |
|
|
inlineprotectedinherited |
◆ inc_log_level()
bool WvDaemon::inc_log_level |
( |
void * |
| ) |
|
|
inlineprotectedinherited |
◆ run() [1/2]
int WvDaemon::run |
( |
const char * |
argv0 | ) |
|
|
inherited |
◆ run() [2/2]
int WvDaemon::run |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
inherited |
◆ restart()
void WvDaemon::restart |
( |
| ) |
|
|
inlineinherited |
Force the daemon to restart as soon as the run callback exits.
Definition at line 182 of file wvdaemon.h.
◆ die()
void WvDaemon::die |
( |
int |
status = 0 | ) |
|
|
inlineinherited |
Force the daemon to exit as soon as the run callback exits.
Definition at line 187 of file wvdaemon.h.
◆ want_to_restart()
bool WvDaemon::want_to_restart |
( |
| ) |
const |
|
inlineinherited |
Whether the daemon will restart when the run callback exits.
Definition at line 194 of file wvdaemon.h.
◆ want_to_die()
bool WvDaemon::want_to_die |
( |
| ) |
const |
|
inlineinherited |
Whether the daemon will quit when the run callback exits.
Definition at line 199 of file wvdaemon.h.
◆ should_run()
bool WvDaemon::should_run |
( |
| ) |
const |
|
inlineinherited |
Whether the daemon should continue runnning.
Definition at line 205 of file wvdaemon.h.
◆ extra_args()
◆ me()
◆ name
◆ version
◆ pid_file
The path to the pid file to use for the daemon; defaults to /var/run/name.pid, where name is above.
Definition at line 97 of file wvdaemon.h.
◆ daemonize
Whether the daemon should daemonize by default (it can be changed by the default options); defaults to false.
Definition at line 100 of file wvdaemon.h.
Referenced by WvDaemon::run().
◆ args
The arguments the daemon accepts; the defaults are described above.
Definition at line 104 of file wvdaemon.h.
Referenced by WvDaemon::run().
◆ log_level
WvLog::LogLevel WvDaemon::log_level |
|
inherited |
◆ syslog
◆ load_callback
WvDaemonCallback WvDaemon::load_callback |
|
inherited |
See the class description.
Definition at line 113 of file wvdaemon.h.
◆ start_callback
WvDaemonCallback WvDaemon::start_callback |
|
inherited |
◆ run_callback
WvDaemonCallback WvDaemon::run_callback |
|
inherited |
◆ stop_callback
WvDaemonCallback WvDaemon::stop_callback |
|
inherited |
◆ unload_callback
WvDaemonCallback WvDaemon::unload_callback |
|
inherited |
◆ _extra_args
The documentation for this class was generated from the following file: