each plugin must have its own identity.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40224
This commit is contained in:
David Anderson 2006-12-16 22:30:58 +00:00
parent c189dfa991
commit 77ca28b8a3

View File

@ -4,8 +4,8 @@
#include <IShareSys.h>
#include <sp_vm_api.h>
#define SMINTERFACE_PLUGINMANAGER_NAME "IPluginManager"
#define SMINTERFACE_PLUGINMANAGER_VERSION 1
#define SMINTERFACE_PLUGINSYSTEM_NAME "IPluginManager"
#define SMINTERFACE_PLUGINSYSTEM_VERSION 1
#define SM_CONTEXTVAR_USER 3
@ -141,6 +141,11 @@ namespace SourceMod
* @return A new IPluginFunction pointer, NULL if not found.
*/
virtual IPluginFunction *GetFunctionById(funcid_t func_id) =0;
/**
* @brief Returns a plugin's identity token.
*/
virtual IdentityToken_t GetIdentity() =0;
};
@ -221,12 +226,12 @@ namespace SourceMod
public:
virtual const char *GetInterfaceName()
{
return SMINTERFACE_PLUGINMANAGER_NAME;
return SMINTERFACE_PLUGINSYSTEM_NAME;
}
virtual unsigned int GetInterfaceVersion()
{
return SMINTERFACE_PLUGINMANAGER_VERSION;
return SMINTERFACE_PLUGINSYSTEM_VERSION;
}
public:
/**