added more "remote extension" stuff

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401661
This commit is contained in:
David Anderson
2007-10-30 20:43:59 +00:00
parent 11c5ce6996
commit e425558f3f
4 changed files with 44 additions and 1 deletions
+20 -1
View File
@@ -288,6 +288,24 @@ namespace SourceMod
virtual const char *GetExtensionDateString() =0;
};
/**
* @brief Returned via OnMetamodQuery() to get an IExtensionManager pointer.
*/
#define SOURCEMOD_INTERFACE_EXTENSIONS "SM_ExtensionManager"
/**
* @brief Fired through OnMetamodQuery() to notify plugins that SourceMod is
* loaded.
*
* Plugins should not return an interface pointer or IFACE_OK, instead,
* they should attach as needed by searching for SOURCEMOD_INTERFACE_EXTENSIONS.
*
* This may be fired more than once; if already attached, an extension should
* not attempt to re-attach. The purpose of this is to notify Metamod:Source
* plugins which load after SourceMod loads.
*/
#define SOURCEMOD_NOTICE_EXTENSIONS "SM_ExtensionsAttachable"
#define SMINTERFACE_EXTENSIONMANAGER_NAME "IExtensionManager"
#define SMINTERFACE_EXTENSIONMANAGER_VERSION 2
@@ -389,7 +407,8 @@ namespace SourceMod
}
#define SM_FIND_IFACE(prefix, variable) \
sharesys->RequestInterface(SM_IFACEPAIR(prefix), myself, (SMInterface **)&variable));
sharesys->RequestInterface(SM_IFACEPAIR(prefix), myself, (SMInterface **)&variable);
}
#endif //_INCLUDE_SOURCEMOD_MODULE_INTERFACE_H_
`