From a9777a12d8bd78ed4075a873bd0f59eb4ed3dec9 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 9 Feb 2013 20:23:21 +0000 Subject: removed not needed interfaces git-svn-id: http://svn.miranda-ng.org/main/trunk@3503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/LangMan/src/main.cpp | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) (limited to 'plugins/LangMan/src/main.cpp') diff --git a/plugins/LangMan/src/main.cpp b/plugins/LangMan/src/main.cpp index c5b267fd33..3493431e9c 100644 --- a/plugins/LangMan/src/main.cpp +++ b/plugins/LangMan/src/main.cpp @@ -31,11 +31,11 @@ static PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), "Language Pack Manager", PLUGIN_VERSION, - "Helps you manage Language Packs of different languages.", /* autotranslated */ + "Helps you manage Language Packs of different languages.", "H. Herkenrath", "hrathh@users.sourceforge.net", "© 2005-2007 H. Herkenrath", - PLUGIN_WEBSITE, + "http://miranda-ng.org/", UNICODE_AWARE, // {D4BDD1EB-56F1-4a87-A187-67246EE919A2} {0xd4bdd1eb, 0x56f1, 0x4a87, {0xa1, 0x87, 0x67, 0x24, 0x6e, 0xe9, 0x19, 0xa2}}, @@ -45,9 +45,7 @@ static PLUGININFOEX pluginInfo = { BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, void*) { - if (fdwReason == DLL_PROCESS_ATTACH) - hInst = hinstDLL; - + hInst = hinstDLL; return TRUE; } @@ -82,23 +80,15 @@ static void InstallFile(const TCHAR *pszFileName, const TCHAR *pszDestSubDir) } } -#ifdef __cplusplus -extern "C" { -#endif - /////////////////////////////////////////////////////////////////////////////// -__declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD) +extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; } /////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_LANGMAN, MIID_LAST}; - -/////////////////////////////////////////////////////////////////////////////// - static int LangManModulesLoaded(WPARAM, LPARAM) { if ( ServiceExists("DBEditorpp/RegisterSingleModule")) @@ -106,7 +96,7 @@ static int LangManModulesLoaded(WPARAM, LPARAM) return 0; } -__declspec(dllexport) int Load(void) +extern "C" __declspec(dllexport) int Load(void) { mir_getLP( &pluginInfo ); @@ -141,13 +131,9 @@ __declspec(dllexport) int Load(void) /////////////////////////////////////////////////////////////////////////////// -__declspec(dllexport) int Unload(void) +extern "C" __declspec(dllexport) int Unload(void) { UninitOptions(); UnhookEvent(hHookModulesLoaded); return 0; -} - -#ifdef __cplusplus -} -#endif +} \ No newline at end of file -- cgit v1.2.3