loader/loader_bridge.h
author Scott Ehlert <ds@alliedmods.net>
Mon Nov 17 00:57:17 2008 -0600 (2008-11-17)
changeset 557 0a8ad2b12708
parent 547 d43e4c343426
child 579 be04fd67923b
permissions -rw-r--r--
Added Windows support for loader, core, and core-legacy
     1 #ifndef _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
     2 #define _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
     3 
     4 typedef void* (*QueryValveInterface)(const char *pName, int *pReturnCode);
     5 class IServerPluginCallbacks;
     6 
     7 struct vsp_bridge_info
     8 {
     9 	QueryValveInterface 		engineFactory;
    10 	QueryValveInterface 		gsFactory;
    11 	IServerPluginCallbacks *	vsp_callbacks;
    12 	unsigned int				vsp_version;
    13 };
    14 
    15 class IVspBridge
    16 {
    17 public:
    18 	virtual bool Load(const vsp_bridge_info *info, char *buffer, size_t maxlength) = 0;
    19 	virtual void Unload() = 0;
    20 	virtual const char *GetDescription() = 0;
    21 };
    22 
    23 #endif /* _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_ */
    24