From: jmo Date: Thu, 20 Nov 2008 09:48:20 +0000 (+0000) Subject: missing macro call and inculdes added X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=244490de3a1e25c2f26f5ed5d01d35a831815a8e;p=senf.git missing macro call and inculdes added git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@967 270642c3-0616-0410-b53a-bc976706d245 --- 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