diff options
| author | 2007-04-29 11:37:12 +0000 | |
|---|---|---|
| committer | 2007-04-29 11:37:12 +0000 | |
| commit | 516f07ced40840d388d50fa9948570d4d8e6ad65 (patch) | |
| tree | 5aad4c9172f5354be3cd3298f5da11955e3178b8 /src/modules/system/plugin.h | |
| parent | *AUTOMATICALLY* updated KVI_SOURCES_DATE variable (diff) | |
| download | KVIrc-516f07ced40840d388d50fa9948570d4d8e6ad65.tar.gz KVIrc-516f07ced40840d388d50fa9948570d4d8e6ad65.tar.bz2 KVIrc-516f07ced40840d388d50fa9948570d4d8e6ad65.zip | |
added _canunload + more doc + small fix
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@542 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/system/plugin.h')
| -rw-r--r-- | src/modules/system/plugin.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/system/plugin.h b/src/modules/system/plugin.h index cd6002e5c..c94ebb013 100644 --- a/src/modules/system/plugin.h +++ b/src/modules/system/plugin.h @@ -31,6 +31,7 @@ typedef int (*plugin_function)(int argc, char* argv[], char ** buffer); typedef int (*plugin_unload)(); +typedef int (*plugin_canunload)(); typedef int (*plugin_load)(); typedef int (*plugin_free)(char * pBuffer); @@ -49,7 +50,8 @@ private: public: static KviPlugin* load(const QString& szFileName); bool pfree(char * pBuffer); - bool unload(bool forced); + bool unload(); + bool canunload(); int call(const QString& szFunctionName, int argc, char * argv[], char ** pBuffer); QString name(); void setName(const QString& szName); @@ -69,7 +71,7 @@ class KviPluginManager public: bool pluginCall(KviKvsModuleFunctionCall *c); bool checkUnload(); - void unloadAll(bool forced); + void unloadAll(); protected: bool findPlugin(QString& szName); bool isPluginLoaded(const QString& szFileNameOrPathToLoad); |
