diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-20 15:08:48 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-20 15:08:48 +0300 |
commit | 8a74e7495ce5ad39de4f5c25121a84d35df90c36 (patch) | |
tree | 03e5b4870f09a3163306740c2eebee47bc15b042 /include | |
parent | c5bf7d6123dd1c3b82ccb8fdb1b068077e9d56d4 (diff) |
CMPlugin to receive a reference to PLUGININFOEX
Diffstat (limited to 'include')
-rw-r--r-- | include/newpluginapi.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/newpluginapi.h b/include/newpluginapi.h index 4aa29322b4..a0b52ff81f 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -159,9 +159,10 @@ class MIR_APP_EXPORT CMPluginBase protected:
HINSTANCE m_hInst;
const char *m_szModuleName;
+ const PLUGININFOEX &m_pInfo;
HANDLE m_hLogger = nullptr;
- CMPluginBase(const char *moduleName);
+ CMPluginBase(const char *moduleName, const PLUGININFOEX &pInfo);
~CMPluginBase();
// pass one of PROTOTYPE_* constants as type
@@ -353,8 +354,8 @@ template<class T> class PLUGIN : public CMPluginBase typedef CMPluginBase CSuper;
protected:
- PLUGIN(const char *moduleName)
- : CSuper(moduleName)
+ __forceinline PLUGIN(const char *moduleName, const PLUGININFOEX &pInfo)
+ : CSuper(moduleName, pInfo)
{}
__forceinline HANDLE CreatePluginEvent(const char *name)
@@ -394,8 +395,8 @@ template<class P> class ACCPROTOPLUGIN : public PLUGIN<CMPlugin> typedef PLUGIN<CMPlugin> CSuper;
protected:
- ACCPROTOPLUGIN(const char *moduleName) :
- CSuper(moduleName)
+ ACCPROTOPLUGIN(const char *moduleName, const PLUGININFOEX &pInfo) :
+ CSuper(moduleName, pInfo)
{
CMPluginBase::RegisterProtocol(1002, &fnInit, &fnUninit);
}
|