diff options
| author | oy <Tom_Adams@web.de> | 2011-02-27 15:03:57 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-02-27 15:03:57 +0100 |
| commit | d9ce7203871cea0046144bce175df5bf1d7fcc19 (patch) | |
| tree | 10ecc4f818eb7c5f1402a774a351e6d7bc9a04bf /src/engine/engine.h | |
| parent | 45eee0c8c2bb5af6629db9adefeecea88a547fb4 (diff) | |
| download | zcatch-d9ce7203871cea0046144bce175df5bf1d7fcc19.tar.gz zcatch-d9ce7203871cea0046144bce175df5bf1d7fcc19.zip | |
made engine an interface
Diffstat (limited to 'src/engine/engine.h')
| -rw-r--r-- | src/engine/engine.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/engine/engine.h b/src/engine/engine.h new file mode 100644 index 00000000..73f68b0a --- /dev/null +++ b/src/engine/engine.h @@ -0,0 +1,31 @@ +/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ +/* If you are missing that file, acquire a complete release at teeworlds.com. */ +#ifndef ENGINE_ENGINE_H +#define ENGINE_ENGINE_H + +#include "kernel.h" +#include <engine/shared/jobs.h> + +class CHostLookup +{ +public: + CJob m_Job; + char m_aHostname[128]; + NETADDR m_Addr; +}; + +class IEngine : public IInterface +{ + MACRO_INTERFACE("engine", 0) + +protected: + class CJobPool m_HostLookupPool; + +public: + virtual void InitLogfile() = 0; + virtual void HostLookup(CHostLookup *pLookup, const char *pHostname) = 0; +}; + +extern IEngine *CreateEngine(const char *pAppname); + +#endif |