diff options
Diffstat (limited to 'project2/daemon/lib')
-rw-r--r-- | project2/daemon/lib/Jamfile.jam | 15 | ||||
-rw-r--r-- | project2/daemon/lib/daemon.cpp | 10 | ||||
-rw-r--r-- | project2/daemon/lib/daemon.h | 20 |
3 files changed, 45 insertions, 0 deletions
diff --git a/project2/daemon/lib/Jamfile.jam b/project2/daemon/lib/Jamfile.jam new file mode 100644 index 0000000..e028f19 --- /dev/null +++ b/project2/daemon/lib/Jamfile.jam @@ -0,0 +1,15 @@ +alias glibmm : : : : + <cflags>"`pkg-config --cflags glibmm-2.4`" + <linkflags>"`pkg-config --libs glibmm-2.4`" + ; +lib p2daemonlib : + [ glob *.cpp ] + : + <include>../../../libmisc + <library>glibmm + <library>../../common//p2common + : : + <include>. + ; + + diff --git a/project2/daemon/lib/daemon.cpp b/project2/daemon/lib/daemon.cpp new file mode 100644 index 0000000..1a70fc1 --- /dev/null +++ b/project2/daemon/lib/daemon.cpp @@ -0,0 +1,10 @@ +#include "daemon.h" + +Daemon::Daemon() +{ +} + +Daemon::~Daemon() +{ +} + diff --git a/project2/daemon/lib/daemon.h b/project2/daemon/lib/daemon.h new file mode 100644 index 0000000..106d3f4 --- /dev/null +++ b/project2/daemon/lib/daemon.h @@ -0,0 +1,20 @@ +#ifndef DAEMON_H +#define DAEMON_H + +#include <glibmm/ustring.h> +#include <genLoader.h> +#include <intrusivePtrBase.h> + +class Daemon : public IntrusivePtrBase { + public: + Daemon(); + virtual ~Daemon(); + + virtual void process() const = 0; +}; + +typedef boost::intrusive_ptr<Daemon> DaemonPtr; +typedef GenLoader<Daemon, int &, char **> DaemonLoader; + +#endif + |