summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-03-19 13:02:11 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-03-19 13:02:11 +0000
commit44d0c3c1ac3d238386d48b10249fa0480aa54e2a (patch)
tree74d535813c7afe73fd20d23b660b196e9bc867d8
parent0a2ecd2736cf4ba2d1b6e7050b531239b385bce0 (diff)
added old-style MirandaPluginInfo function for back-compatibility with pre 0.7 cores
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@138 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r--metacontacts/meta_main.c6
-rw-r--r--otr/dllmain.cpp6
-rw-r--r--otr/otr.mdsp2
-rw-r--r--tipper/tipper.cpp6
-rw-r--r--updater/updater.cpp6
-rw-r--r--yapp/popups2.cpp6
6 files changed, 31 insertions, 1 deletions
diff --git a/metacontacts/meta_main.c b/metacontacts/meta_main.c
index 6376e0e..4ad0b35 100644
--- a/metacontacts/meta_main.c
+++ b/metacontacts/meta_main.c
@@ -120,6 +120,12 @@ __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
return &pluginInfo;
}
+__declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+{
+ pluginInfo.cbSize = sizeof(PLUGININFO);
+ return (PLUGININFO*)&pluginInfo;
+}
+
static const MUUID interfaces[] = {MIID_PROTOCOL, MIID_METACONTACTS, MIID_LAST};
__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{
diff --git a/otr/dllmain.cpp b/otr/dllmain.cpp
index 68fbf4b..8be1df2 100644
--- a/otr/dllmain.cpp
+++ b/otr/dllmain.cpp
@@ -60,6 +60,12 @@ extern "C" DLLIMPORT PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) {
return &pluginInfo;
}
+extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+{
+ pluginInfo.cbSize = sizeof(PLUGININFO);
+ return (PLUGININFO*)&pluginInfo;
+}
+
/////////////////////////
// dodgy, INNEFFICIENT, utility function
////////////////////////
diff --git a/otr/otr.mdsp b/otr/otr.mdsp
index dc3fb96..2076694 100644
--- a/otr/otr.mdsp
+++ b/otr/otr.mdsp
@@ -102,4 +102,4 @@ extraResourceOptions=
utils.cpp,6882
common.h,2043
otr_private.h,149
-dllmain.cpp,1358
+dllmain.cpp,1741
diff --git a/tipper/tipper.cpp b/tipper/tipper.cpp
index 9ad87bc..b7268b7 100644
--- a/tipper/tipper.cpp
+++ b/tipper/tipper.cpp
@@ -61,6 +61,12 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
return &pluginInfo;
}
+extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+{
+ pluginInfo.cbSize = sizeof(PLUGININFO);
+ return (PLUGININFO*)&pluginInfo;
+}
+
static const MUUID interfaces[] = {MIID_TOOLTIPS, MIID_LAST};
extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{
diff --git a/updater/updater.cpp b/updater/updater.cpp
index b5ced02..fa1c0c0 100644
--- a/updater/updater.cpp
+++ b/updater/updater.cpp
@@ -47,6 +47,12 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
return &pluginInfo;
}
+extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+{
+ pluginInfo.cbSize = sizeof(PLUGININFO);
+ return (PLUGININFO*)&pluginInfo;
+}
+
static const MUUID interfaces[] = {MIID_UPDATER, MIID_LAST};
extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{
diff --git a/yapp/popups2.cpp b/yapp/popups2.cpp
index 66bbc13..1597bbc 100644
--- a/yapp/popups2.cpp
+++ b/yapp/popups2.cpp
@@ -65,6 +65,12 @@ extern "C" POPUPS2_API PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
return &pluginInfo;
}
+extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+{
+ pluginInfo.cbSize = sizeof(PLUGININFO);
+ return (PLUGININFO*)&pluginInfo;
+}
+
static const MUUID interfaces[] = {MIID_POPUPS, MIID_LAST};
extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{