diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-23 12:01:39 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-23 12:01:39 +0000 |
commit | 021891ebbd16e9456d23b7c648bdb26c718d69d2 (patch) | |
tree | 240ea8b342afa8aa93c5d8f4258ee44258b4c9b8 /plugins/Console/init.cpp | |
parent | 3447ff8cda5ba4f4f219107e4907cb9aa8947497 (diff) |
Console:
plusified
git-svn-id: http://svn.miranda-ng.org/main/trunk@540 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Console/init.cpp')
-rw-r--r-- | plugins/Console/init.cpp | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/plugins/Console/init.cpp b/plugins/Console/init.cpp index f52a8f3ae1..474c48a1a6 100644 --- a/plugins/Console/init.cpp +++ b/plugins/Console/init.cpp @@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. PLUGINLINK *pluginLink;
DWORD mirandaVer;
int hLangpack;
+HINSTANCE hInst;
PLUGININFOEX pluginInfoEx={
sizeof(PLUGININFOEX),
@@ -41,48 +42,36 @@ PLUGININFOEX pluginInfoEx={ MIID_CONSOLE
};
-
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
{
hInst = hinstDLL;
return TRUE;
}
-////////////////////////////////////////////////////////////////////////////////
-
-__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- mirandaVer = mirandaVersion;
return &pluginInfoEx;
}
// we implement service mode interface
static const MUUID interfaces[] = {MIID_LOGWINDOW, MIID_LAST};
-__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{
return interfaces;
}
-////////////////////////////////////////////////////////////////////////////////
-
-int __declspec(dllexport) Load(PLUGINLINK *link)
+extern "C" __declspec(dllexport) int Load(PLUGINLINK *link)
{
pluginLink = link;
mir_getLP(&pluginInfoEx);
- if (mirandaVer < PLUGIN_MAKE_VERSION(0,8,0,3))
- return -1;
- else
- {
- InitCommonControls();
- InitConsole();
- return 0;
- }
+ InitCommonControls();
+ InitConsole();
+ return 0;
}
-
-int __declspec(dllexport) Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
ShutdownConsole();
return 0;
-}
+}
\ No newline at end of file |