aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/system/plugin.h
diff options
context:
space:
mode:
authorGravatar TheXception2007-04-23 09:39:23 +0000
committerGravatar TheXception2007-04-23 09:39:23 +0000
commitadf2d3863b679fbf5f7b579ceacddb752c4a9103 (patch)
treec3457673a2267986d4267c066e1e140d652ff9bc /src/modules/system/plugin.h
parentremoved _free function of plugin (diff)
downloadKVIrc-adf2d3863b679fbf5f7b579ceacddb752c4a9103.tar.gz
KVIrc-adf2d3863b679fbf5f7b579ceacddb752c4a9103.tar.bz2
KVIrc-adf2d3863b679fbf5f7b579ceacddb752c4a9103.zip
added _free function again due problems while freeing memory
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@529 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/system/plugin.h')
-rw-r--r--src/modules/system/plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/system/plugin.h b/src/modules/system/plugin.h
index 43c513fe3..cd6002e5c 100644
--- a/src/modules/system/plugin.h
+++ b/src/modules/system/plugin.h
@@ -32,6 +32,7 @@
typedef int (*plugin_function)(int argc, char* argv[], char ** buffer);
typedef int (*plugin_unload)();
typedef int (*plugin_load)();
+typedef int (*plugin_free)(char * pBuffer);
class KviPlugin
{
@@ -47,6 +48,7 @@ private:
QString m_szName;
public:
static KviPlugin* load(const QString& szFileName);
+ bool pfree(char * pBuffer);
bool unload(bool forced);
int call(const QString& szFunctionName, int argc, char * argv[], char ** pBuffer);
QString name();