From f7e482e4333df76b198b16c7685c2304007fbe79 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Jul 2012 18:28:49 +0000 Subject: dynamic dll checker git-svn-id: http://svn.miranda-ng.org/main/trunk@989 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CSList/cslist.cpp | 24 ++++++++++++++++-------- plugins/CSList/cslist.h | 17 ----------------- 2 files changed, 16 insertions(+), 25 deletions(-) (limited to 'plugins/CSList') diff --git a/plugins/CSList/cslist.cpp b/plugins/CSList/cslist.cpp index ff4870f4d4..b8078ae1be 100644 --- a/plugins/CSList/cslist.cpp +++ b/plugins/CSList/cslist.cpp @@ -45,6 +45,22 @@ SortedList *servicesList; int hLangpack; +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { PLUGIN_GUUID, MIID_LAST }; + +PLUGININFOEX pluginInfoEx = +{ + sizeof(PLUGININFOEX), + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + PLUGIN_GUUID +}; + // ====[ MAIN ]=============================================================== BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) @@ -62,14 +78,6 @@ extern "C" __declspec( dllexport ) PLUGININFOEX* MirandaPluginInfoEx( DWORD mira return &pluginInfoEx; } -// ====[ INTERFACES ]========================================================= - -extern "C" __declspec( dllexport ) const MUUID* MirandaPluginInterfaces( void ) -{ - return interfaces; -} - - // ====[ LOADER ]============================================================= extern "C" __declspec( dllexport ) int Load( ) diff --git a/plugins/CSList/cslist.h b/plugins/CSList/cslist.h index 5365b75774..7a4f0f8e75 100644 --- a/plugins/CSList/cslist.h +++ b/plugins/CSList/cslist.h @@ -623,22 +623,6 @@ BOOL CSList::bAccountsSupported = FALSE; // ====[ GLOBALS ]============================================================ -static const MUUID interfaces[] = { PLUGIN_GUUID, MIID_LAST }; - -PLUGININFOEX pluginInfoEx = -{ - sizeof(PLUGININFOEX), - __PLUGIN_NAME, - PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), - __DESCRIPTION, - __AUTHOR, - __AUTHOREMAIL, - __COPYRIGHT, - __AUTHORWEB, - UNICODE_AWARE, - PLUGIN_GUUID -}; - CSList* cslist = NULL; // ====[ INIT STUFF ]========================================================= @@ -646,7 +630,6 @@ CSList* cslist = NULL; BOOL WINAPI DllMain( HINSTANCE, DWORD, LPVOID ); extern "C" __declspec( dllexport ) PLUGININFOEX* MirandaPluginInfoEx( DWORD ); -extern "C" __declspec( dllexport ) const MUUID* MirandaPluginInterfaces( void ); extern "C" __declspec( dllexport ) int Load(void); extern "C" __declspec( dllexport ) int Unload( void ); -- cgit v1.2.3