Skip to content
Snippets Groups Projects
Commit b853fca0 authored by jmo's avatar jmo
Browse files

missing macro call and inculdes added

parent ab7c2341
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
process is implemented by deriving from senf::Daemon and implementing the necessary (virtual) process is implemented by deriving from senf::Daemon and implementing the necessary (virtual)
member functions. member functions.
\code \code
#include <senf/Utils/Daemon.hh>
class MyDaemon : public senf::Daemon class MyDaemon : public senf::Daemon
{ {
void configure() { void configure() {
...@@ -65,6 +67,8 @@ ...@@ -65,6 +67,8 @@
must call detach() as soon as initialization is completed to detach from the foreground must call detach() as soon as initialization is completed to detach from the foreground
terminal. terminal.
\code \code
#include <senf/Utils/Daemon.hh>
class MyDaemon : public senf::Daemon class MyDaemon : public senf::Daemon
{ {
// 'configure()' like above. Don't implement 'init()' or 'run()' if you implement 'main()'. // 'configure()' like above. Don't implement 'init()' or 'run()' if you implement 'main()'.
...@@ -88,6 +92,9 @@ ...@@ -88,6 +92,9 @@
app.run(); app.run();
} }
}; };
// Provide main() function
SENF_DAEMON_MAIN(MyDaemon);
\endcode \endcode
\see \see
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment