diff options
Diffstat (limited to '')
-rw-r--r-- | src/plugger.h | 6 | ||||
-rw-r--r-- | src/test/plugin/plugin.cpp (renamed from src/plugin.cpp) | 0 | ||||
-rw-r--r-- | src/test/plugin/plugin.h (renamed from src/plugin.h) | 0 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/plugger.h b/src/plugger.h index 2cf224e..5f7df6d 100644 --- a/src/plugger.h +++ b/src/plugger.h | |||
@@ -17,13 +17,13 @@ typedef struct PluginInfo | |||
17 | void (*destroyPlugin)( class Plugin * ); | 17 | void (*destroyPlugin)( class Plugin * ); |
18 | } PluginInfo; | 18 | } PluginInfo; |
19 | 19 | ||
20 | #define PluginInterface( classname, name, ver, rev ) \ | 20 | #define PluginInterface( classname, baseclass, name, ver, rev ) \ |
21 | extern "C" { \ | 21 | extern "C" { \ |
22 | class Plugin *create ##classname() \ | 22 | class baseclass *create ##classname() \ |
23 | { \ | 23 | { \ |
24 | return new classname(); \ | 24 | return new classname(); \ |
25 | } \ | 25 | } \ |
26 | void destroy ##classname( class Plugin *pCls ) \ | 26 | void destroy ##classname( class baseclass *pCls ) \ |
27 | { \ | 27 | { \ |
28 | delete pCls; \ | 28 | delete pCls; \ |
29 | } \ | 29 | } \ |
diff --git a/src/plugin.cpp b/src/test/plugin/plugin.cpp index ea558fd..ea558fd 100644 --- a/src/plugin.cpp +++ b/src/test/plugin/plugin.cpp | |||
diff --git a/src/plugin.h b/src/test/plugin/plugin.h index f726867..f726867 100644 --- a/src/plugin.h +++ b/src/test/plugin/plugin.h | |||