From b853fca0a3132cada6a575a6e81109dc3a70d689 Mon Sep 17 00:00:00 2001 From: jmo <jmo@wiback.org> Date: Thu, 20 Nov 2008 09:48:20 +0000 Subject: [PATCH] missing macro call and inculdes added --- Utils/Daemon/Mainpage.dox | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Utils/Daemon/Mainpage.dox b/Utils/Daemon/Mainpage.dox index 7cb274f9..e73b224c 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 <senf/Utils/Daemon.hh> + 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 <senf/Utils/Daemon.hh> + 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 -- GitLab