summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-27 13:58:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-27 13:58:25 +0000
commit81e8caf42867b65677efe2bffaa52ecff7303c3a (patch)
tree846f06ef51787c58205cd87546976bda29556680 /plugins/StatusPlugins
parentd9da7f147fbe91d2e70721de96907ae1d273b591 (diff)
no more pluginLink in load()
git-svn-id: http://svn.miranda-ng.org/main/trunk@652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins')
-rw-r--r--plugins/StatusPlugins/AdvancedAutoAway/main.cpp6
-rw-r--r--plugins/StatusPlugins/KeepStatus/main.cpp6
-rw-r--r--plugins/StatusPlugins/StartupStatus/main.cpp6
3 files changed, 9 insertions, 9 deletions
diff --git a/plugins/StatusPlugins/AdvancedAutoAway/main.cpp b/plugins/StatusPlugins/AdvancedAutoAway/main.cpp
index cc2887ce96..f2e357e853 100644
--- a/plugins/StatusPlugins/AdvancedAutoAway/main.cpp
+++ b/plugins/StatusPlugins/AdvancedAutoAway/main.cpp
@@ -28,7 +28,7 @@
#define MIID_ADVAUTOAWAY { 0xf0fdf73a, 0x753d, 0x499d, { 0x8d, 0xba, 0x33, 0x6d, 0xb7, 0x9c, 0xdd, 0x41 } }
HINSTANCE hInst;
-PLUGINLINK *pluginLink;
+
HANDLE hCSModuleLoadedHook;
@@ -71,9 +71,9 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
/////////////////////////////////////////////////////////////////////////////////////////
// plugin's entry point
-extern "C" __declspec(dllexport) int Load(PLUGINLINK *link)
+extern "C" __declspec(dllexport) int Load(void)
{
- pluginLink = link;
+
mir_getLP( &pluginInfoEx );
InitCommonStatus();
diff --git a/plugins/StatusPlugins/KeepStatus/main.cpp b/plugins/StatusPlugins/KeepStatus/main.cpp
index af840be01d..4cd57cbd31 100644
--- a/plugins/StatusPlugins/KeepStatus/main.cpp
+++ b/plugins/StatusPlugins/KeepStatus/main.cpp
@@ -32,7 +32,7 @@ HANDLE hStopRecon = NULL, hEnableProto = NULL, hIsProtoEnabled = NULL, hAnnounce
HINSTANCE hInst;
-PLUGINLINK *pluginLink;
+
/////////////////////////////////////////////////////////////////////////////////////////
// dll entry point
@@ -78,9 +78,9 @@ INT_PTR EnableProtocolService(WPARAM wParam, LPARAM lParam);
INT_PTR IsProtocolEnabledService(WPARAM wParam, LPARAM lParam);
INT_PTR AnnounceStatusChangeService(WPARAM wParam, LPARAM lParam);
-extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
+extern "C" int __declspec(dllexport) Load(void)
{
- pluginLink = link;
+
mir_getLP( &pluginInfoEx );
InitCommonStatus();
diff --git a/plugins/StatusPlugins/StartupStatus/main.cpp b/plugins/StatusPlugins/StartupStatus/main.cpp
index ece3eef5c9..3e2e9fdeb4 100644
--- a/plugins/StatusPlugins/StartupStatus/main.cpp
+++ b/plugins/StatusPlugins/StartupStatus/main.cpp
@@ -29,7 +29,7 @@ static HANDLE
hGetProfileNameService;
HINSTANCE hInst;
-PLUGINLINK *pluginLink;
+
int hLangpack = 0;
@@ -73,9 +73,9 @@ static INT_PTR SrvGetProfile( WPARAM wParam, LPARAM lParam )
{ return GetProfile(( int )wParam, *(TSettingsList*)lParam );
}
-extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
+extern "C" int __declspec(dllexport) Load(void)
{
- pluginLink = link;
+
mir_getLP( &pluginInfoEx );
if ( DBGetContactSettingByte(NULL, MODULENAME, SETTING_SETPROFILE, 1) ||