ddnet/src/engine/engine.h

34 lines
760 B
C
Raw Normal View History

2011-02-27 14:03:57 +00:00
/* (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:
2011-02-27 16:56:03 +00:00
class CJobPool m_JobPool;
2011-02-27 14:03:57 +00:00
public:
virtual void Init() = 0;
2011-02-27 14:03:57 +00:00
virtual void InitLogfile() = 0;
virtual void HostLookup(CHostLookup *pLookup, const char *pHostname) = 0;
2011-02-27 16:56:03 +00:00
virtual void AddJob(CJob *pJob, JOBFUNC pfnFunc, void *pData) = 0;
2011-02-27 14:03:57 +00:00
};
extern IEngine *CreateEngine(const char *pAppname);
#endif