1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/loader/loader_bridge.h Sat Nov 15 18:29:24 2008 -0600
1.3 @@ -0,0 +1,24 @@
1.4 +#ifndef _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
1.5 +#define _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
1.6 +
1.7 +typedef void* (*QueryValveInterface)(const char *pName, int *pReturnCode);
1.8 +class IServerPluginCallbacks;
1.9 +
1.10 +struct vsp_bridge_info
1.11 +{
1.12 + QueryValveInterface engineFactory;
1.13 + QueryValveInterface gsFactory;
1.14 + IServerPluginCallbacks * vsp_callbacks;
1.15 + unsigned int vsp_version;
1.16 +};
1.17 +
1.18 +class IVspBridge
1.19 +{
1.20 +public:
1.21 + virtual bool Load(const vsp_bridge_info *info) = 0;
1.22 + virtual void Unload() = 0;
1.23 + virtual const char *GetDescription() = 0;
1.24 +};
1.25 +
1.26 +#endif /* _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_ */
1.27 +