2008-11-16 01:29:24 +01:00
|
|
|
#ifndef _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
|
|
|
|
#define _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
|
|
|
|
|
|
|
|
typedef void* (*QueryValveInterface)(const char *pName, int *pReturnCode);
|
|
|
|
class IServerPluginCallbacks;
|
|
|
|
|
|
|
|
struct vsp_bridge_info
|
|
|
|
{
|
|
|
|
QueryValveInterface engineFactory;
|
|
|
|
QueryValveInterface gsFactory;
|
|
|
|
IServerPluginCallbacks * vsp_callbacks;
|
|
|
|
unsigned int vsp_version;
|
|
|
|
};
|
|
|
|
|
|
|
|
class IVspBridge
|
|
|
|
{
|
|
|
|
public:
|
2008-11-16 04:10:13 +01:00
|
|
|
virtual bool Load(const vsp_bridge_info *info, char *buffer, size_t maxlength) = 0;
|
2008-11-16 01:29:24 +01:00
|
|
|
virtual void Unload() = 0;
|
|
|
|
virtual const char *GetDescription() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_ */
|
|
|
|
|