initial import of extension API and SDK as well as auto-loading

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40303
This commit is contained in:
David Anderson
2007-01-16 19:41:21 +00:00
parent f7545a848f
commit 03277707b5
11 changed files with 905 additions and 111 deletions
+7 -2
View File
@@ -14,6 +14,11 @@ namespace SourceMod
class IExtension
{
public:
/**
* @brief Returns whether or not the extension is properly loaded.
*/
virtual bool IsLoaded() =0;
/**
* @brief Returns the extension's API interface
*
@@ -128,7 +133,7 @@ namespace SourceMod
* @param err_max Maximum error buffer length.
* @return New IExtension on success, NULL on failure.
*/
virtual IExtension *LoadModule(const char *path,
virtual IExtension *LoadExtension(const char *path,
ExtensionLifetime lifetime,
char *error,
size_t err_max) =0;
@@ -158,7 +163,7 @@ namespace SourceMod
* @param pExt IExtension pointer.
* @return True if successful, false otherwise.
*/
virtual bool UnloadModule(IExtension *pExt) =0;
virtual bool UnloadExtension(IExtension *pExt) =0;
};
};