diff options
Diffstat (limited to 'project2/daemon/lib')
-rw-r--r-- | project2/daemon/lib/daemon.cpp | 10 | ||||
-rw-r--r-- | project2/daemon/lib/daemon.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/project2/daemon/lib/daemon.cpp b/project2/daemon/lib/daemon.cpp index 2f1760f..bde0f45 100644 --- a/project2/daemon/lib/daemon.cpp +++ b/project2/daemon/lib/daemon.cpp @@ -9,5 +9,15 @@ Daemon::~Daemon() { } +void +Daemon::setup() const +{ +} + +void +Daemon::teardown() const +{ +} + INSTANTIATESTORE(std::string, DaemonLoader); diff --git a/project2/daemon/lib/daemon.h b/project2/daemon/lib/daemon.h index acb4abf..d565e57 100644 --- a/project2/daemon/lib/daemon.h +++ b/project2/daemon/lib/daemon.h @@ -10,7 +10,9 @@ class Daemon : public IntrusivePtrBase { Daemon(); virtual ~Daemon(); + virtual void setup() const; virtual void run() const = 0; + virtual void teardown() const; virtual void shutdown() const = 0; }; |