X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FDaemon%2FMainpage.dox;h=e73b224c8c6b2802351de188b070f152372fa701;hb=a726ae0cb14d0ce37e5aab3c4e07121bbbd3b31c;hp=7cb274f9c5affe9f5793fd60c83c0b71d189e24c;hpb=a1a6c76a214ad1935032826713cabaf9ac57bf07;p=senf.git diff --git a/Utils/Daemon/Mainpage.dox b/Utils/Daemon/Mainpage.dox index 7cb274f..e73b224 100644 --- a/Utils/Daemon/Mainpage.dox +++ b/Utils/Daemon/Mainpage.dox @@ -26,6 +26,8 @@ process is implemented by deriving from senf::Daemon and implementing the necessary (virtual) member functions. \code + #include + class MyDaemon : public senf::Daemon { void configure() { @@ -65,6 +67,8 @@ must call detach() as soon as initialization is completed to detach from the foreground terminal. \code + #include + class MyDaemon : public senf::Daemon { // 'configure()' like above. Don't implement 'init()' or 'run()' if you implement 'main()'. @@ -88,6 +92,9 @@ app.run(); } }; + + // Provide main() function + SENF_DAEMON_MAIN(MyDaemon); \endcode \see