X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FDaemon%2FMainpage.dox;fp=senf%2FUtils%2FDaemon%2FMainpage.dox;h=6ae1bd006abcf428bb95db637ac2a28f78ec3570;hb=9cb871b939efe93e35dd96808d25089399acfc46;hp=e73b224c8c6b2802351de188b070f152372fa701;hpb=3a43b572a2c0028b353d47e86fa7546633d6e2cf;p=senf.git diff --git a/senf/Utils/Daemon/Mainpage.dox b/senf/Utils/Daemon/Mainpage.dox index e73b224..6ae1bd0 100644 --- a/senf/Utils/Daemon/Mainpage.dox +++ b/senf/Utils/Daemon/Mainpage.dox @@ -27,7 +27,7 @@ member functions. \code #include - + class MyDaemon : public senf::Daemon { void configure() { @@ -38,7 +38,7 @@ // here after setting default parameters senf::Daemon::configure(); } - + void init() { // Initialize application. Setup all necessary objects. After init() // has completed, the startup should not fail @@ -65,10 +65,10 @@ Since there are times, where separating init() and run() into two separate functions is difficult, instead of defining init() and run(), the member main() may be defined. This member must call detach() as soon as initialization is completed to detach from the foreground - terminal. + terminal. \code #include - + class MyDaemon : public senf::Daemon { // 'configure()' like above. Don't implement 'init()' or 'run()' if you implement 'main()'. @@ -97,7 +97,7 @@ SENF_DAEMON_MAIN(MyDaemon); \endcode - \see + \see \ref senf::Daemon class \n \ref SENF_DAEMON_MAIN() main() implementation macro */